Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Re: BI Content Modelling for SAP PM - Maintenance Orders and Notifications

$
0
0

Hi Anirudh,

 

We have to use the enhancement option to get the system and user status. In general notification text and status has to enhanced and it is strange.

 

 

Things to consider when populating status.

1) Decide you need active or current status or all historical status.

2) Decide you status as line or individual status. Ex if need to know when the notification is technically completed or any specific status then you can try 'STATUS_READ_MULTI'.

 

 

******************START  FOR SYSTEM STATUS LINE AND USER STATUS LINES

CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING

************ line for user status
flg_user_stat
= 'X'
objnr
= wa_ven_compc_attr-objnr_ntf

************ line for active status *************** Imp
only_active
= 'X'
spras
= lc_en
bypass_buffer
= ' '
IMPORTING
line = line
user_line
= user_line
e_stsma
= e_stsma
EXCEPTIONS
object_not_found
= 1
OTHERS = 2.

 

**********************************************************Stuats for individual objects

CALL FUNCTION

 

'STATUS_READ_MULTI'
EXPORTING
all_in_buffer
= 'X'
get_change_documents
= 'X'
no_buffer_fill
= 'X'
TABLES
objnr_tab
= it_jsto_pre
status
= it_jest
jsto_tab
= it_jsto
jcdo_tab
= it_jcdo
jcds_tab
= it_jcds
EXCEPTIONS
object_not_found
= 1
OTHERS = 2

.

 

 

Thanks,

Shakthi Raj Natarajan.


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>