‎2009 Sep 21 9:52 AM
Dear experts,
I am provding a small code snippet of my program from module pool .Here my aim is that incase message
'No pending gatenentry found by this no.Plz check details.' is displayed .Program should go back to screen.
However, it moves to next statement after displaying information message. What to do ?.I
dont wat to use type 'E' as it doesnot let me do anything further.
if t_zrgpno[] is initial.
clear: t_rec,t_rec[]. "Incase something was entered previously
message 'No pending gatenentry found by this no.Plz check details.' type 'I'.
leave list-processing.
endif.
endif.
*********** Check if grn attached to this process has a blank store loc
*********** if yes then direct user to old system flow in order to finish ok.
data: genmes type string.
select mblnr zeile matnr lgort from mseg into table check_542 where smbln = p_grn
and bwart = '542' and shkzg = 'S' and werks = p_werks.
‎2009 Sep 21 10:43 AM
you can use : message 'asdasd' type 'S' display like 'E'.
and the next statement : call screen 0. take you back to the screen executing the PBO.
‎2009 Sep 21 9:54 AM
‎2009 Sep 21 10:00 AM
This snippet is on user_command module in case to button click.
Preeti, are you sure i will stay on same screen by doing set screen 0 and exit.If no then this is
not my choice.
I will also try through nabapdocu as told by you sir.
‎2009 Sep 21 10:23 AM
Just execute an EXIT and don't set SCREEN to 0, so program will go out of FORM/MODULE and at the end of PAI it will execute the PBO of the screen specified in the current screen definition (usually the same - SE51-attributes-next screen)
Setting SCREEN to 0 will send you back to previous screen.
Regards,
Raymond
‎2009 Sep 21 9:56 AM
Hi
There are two special key words for Flow Logic ON INPUT and ON REQUEST
issue an Error Message instead of Type S message by using above key words.
for further info please take the help of Key word documentation of help of Tcode ABAPDOCU
Cheers
Ram
‎2009 Sep 21 10:43 AM
you can use : message 'asdasd' type 'S' display like 'E'.
and the next statement : call screen 0. take you back to the screen executing the PBO.
‎2009 Sep 21 11:10 AM
‎2009 Sep 21 11:11 AM
But i will be glad incase i can print the same message in form of information
‎2009 Sep 21 11:13 AM
‎2009 Sep 21 11:14 AM
‎2009 Sep 22 10:24 AM
If you put it in FIELD statement in module pool program, it will allow to edit the same field, but with error message in message bar.
Thus, you can directly use MESSAGE ... TYPE 'E'.
Example: FIELD zrgpno MODULE check_zrgpno.