Skip to Content
0
Former Member
Sep 12, 2007 at 05:05 AM

Give me an Example for On Change OF

67 Views

Hi experts ,

Im Some Fields which are Frequently changed. if any of the fields values are changed. Then it has to Trigger the Output Type.

Fields : Matnr ,kwmeng,werks,lgort.

For this i written a logic like this :

SELECT matnr kwmeng werks lgort

UP TO l_index ROWS '''l_index contains 2 rows"

FROM vbap INTO tp_vbap

WHERE vbeln = com_kbv1-vbeln.

Here i want 2 incude the Logic On Change of conditional Statement.

Here it should compare wit com_kbv1-yymatnr, com_kbv1-kwmeng , com_kbv1- yywerks & com_kbv1-lgort with tp_vbap-matnr, tp_vbap-kwmeng,

tp_vbap-werks, tp_vbap-lgort.

if it found any changes then it should give sy-subrc eq o.

ENDSELECT.