Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

ON CHANGE OF keyword is not working properly when using Module pool programming

$
0
0

Hi Experts,

 

I am using 'ON CHANGE OF' keyword for identifying change in values. But this is failing in my case.

 

In my program, i created a screen and in that screen i called a sub screen which contains the selection screen. In the main screen i am displaying Logo.

In the initial screen PF-STATUS i created a button for Execution of program based on input selection. If user presses this Execution button, program code will run, and in that code i used ON CHANGE OF lw_vbap-vbeln or lw_vbap-posnr. ENDON. statement.

 

In the first execution it is going inside of the ON CHANGE OF .... ENDON. and it is displaying output also. I am displaying output using REUSE_ALV_GRID_DISPLAY_LVC. If i come back of the output and again if i run the program with same input selection (means by pressing Execution button) without closing that Transaction. Then this time it is not going inside of ON CHANGE OF ...ENDON. This issue is happening only when our processing data is having only one SO/Item.

 

Can any one suggest why it is happening whether due to buffering of data or any other reason. If it is due to buffering then how to avoid this please suggest it is very urgent.

 

Thanks in Advance.

Naveenkumar M


Viewing all articles
Browse latest Browse all 8332

Trending Articles