Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Triggering of enhancement codes upon changes on certain field only

Hi,

Considers the below statements in SAPMV45A, Screen 4900 (PAI module).

    CHAIN.

       FIELD: vbap-matnr,

              vbapd-matnr_g,

              rv45a-mabnr,

* IS2ERP Media enhancement

              vbap-idcodetype,                           "ISBN-Nr.

              vbap-ismidentcode,                         "ISBN-Nr.

              vbap-kdmat,

              vbap-posex

               MODULE vbap-posex_pruefen ON CHAIN-REQUEST.

     ENDCHAIN.

I implemented my code enhancement in module 'vbap-posex_pruefen'.

May I know is there a way to trigger the enhancement codes only when VBAP-KDMAT is changed (while changes on other fields such as vbap-matnr, vbap-posex etc will not trigger it)?

Kindly please let me know if you know how to achieve this.

Thank much, Nick

Former Member
Former Member replied

Hi Nicholas,

Currently I am not over my system, so I can't tell you the correct answer, but would request you to look into the following proposed solutions :

1. Check if system contains the unchanged value ( previous value ) in variable YVBAP, if yes, then you can put your piece in code inside If clause ( If YVBAP-posex_pruefe NE XVBAP-posex_pruefe ).

2. Otherwise you can also check, if there is some Exit in PBO, if yes, set unchanged value in memory and then again check for the changed variable in PAI block.

Hope it helps.

Thanking You All.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question