Skip to Content
0

I need to create notification on Measurement data crossing limits in PM

May 17, 2017 at 08:51 AM

86

avatar image

Hi All,

I found EXIT_SAPLIMR0_001 user exit. but didnot understand what code should need to write.

Thanks,

Aarti.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

K Jogeswara Rao May 17, 2017 at 08:56 AM
0

This your ABAPer only can help you. You wont get code from anywhere else. The code will be using BDC program or using Function module like BAPI_ALM_NOTI_CREATE for Creating a Notification.

Show 7 Share
10 |10000 characters needed characters left characters exceeded

Thank u sir. Do u have any sample data for this ?

0
0

I tried above steps. now got dump while calling

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

* IMPORTING * return = gt_return.

dump.png (21.1 kB)
0

You should not use fm 'BAPI_TRANSACTION_COMMIT' in this exit, because this exit is after COMMIT. So better you should use BDC way of creating Notification (Call transaction 'IW21').

0

Here is a sample code for BDC route of creating Notification:

(You should take help of IW21 recording through SHDB for coding your following lines)

              REFRESH bdcdata.
              PERFORM bdc_dynpro USING 'SAPLIQS0' '0100'.
              PERFORM bdc_field USING 'RIWO00-QMART' 'M1'.
              PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
              PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
              PERFORM bdc_field USING 'RIWO1-EQUNR'  it_data-equip.
              PERFORM bdc_field USING 'RIWO1-TPLNR'  it_data-tplnr.
              PERFORM bdc_field USING 'VIQMEL-QMTXT' it_data-qmtxt.
              PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
              PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
              PERFORM bdc_field USING 'BDC_OKCODE' '=10\TAB02'.
              PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
              PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
              PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
              PERFORM bdc_field USING 'BDC_OKCODE' '=BUCH'.

              CALL TRANSACTION 'IW21' USING bdcdata MODE 'N' UPDATE 'S'.
0

Thank you for your suggestion sir. Now I am calling z program inside of the user exit . Which includes Fms BAPI_ALM_NOTIF_CREATE, BAPI_ALM_NOTIF_SAVE and BAPI_TRANSACTION_COMMIT in sequence.

But problem is I didn't understand from where to get Equipment number to pass that z program.

0

As I told you you should use BDC route for creating Notification not above FMs.

The other things you are asking for like 'Where from to get Equipment?' these are fundamentals of user exit. You need to take help of experience ABAPer. You can not learn here.

0
Peter Atkin May 17, 2017 at 11:34 AM
0

Aarti,

Function module EXIT_SAPLIMR0_001 belongs to user-exit IMRC0001 (MeasPoint/MeasDoc: Exit before update (after COMMIT WORK)

Search google for " SAP IMRC0001"

https://help.sap.com/saphelp_erp60_sp/helpdata/en/39/6cb65334e6b54ce10000000a174cb4/frameset.htm

PeteA

Share
10 |10000 characters needed characters left characters exceeded