‎2009 Mar 25 3:35 AM
Hi Experts
I have created ABAP report in se38, based on the delivey no.When we enter delivery no we get the packing slip of that delivery no in smart form.
I have given the input validation also.When the delivery no is not in the LIKP table ihave given a message like this "Delivery no not found"
At thet time one blank screen will come.My problem is i want to enable the back button in that blank screen.Plz guide me how to enable the back button
Regards
Manoj
‎2009 Mar 25 3:39 AM
Hi,
To avoid this situation peform all validations in AT SELECTION-SCREEN event.
AT SELECTION-SCREEN.
"validate delivery no from LIKP table; if not found display error message
"control is on selection screen only
START-OF-SELECTION.
"code
Hope this helps you.
Regards,
Tarun
Edited by: Tarun Gambhir on Mar 25, 2009 9:09 AM
‎2009 Mar 25 3:39 AM
Hi,
To avoid this situation peform all validations in AT SELECTION-SCREEN event.
AT SELECTION-SCREEN.
"validate delivery no from LIKP table; if not found display error message
"control is on selection screen only
START-OF-SELECTION.
"code
Hope this helps you.
Regards,
Tarun
Edited by: Tarun Gambhir on Mar 25, 2009 9:09 AM
‎2009 Mar 25 3:45 AM
‎2009 Mar 25 3:39 AM
Hi
Can u plz tell why you need the Back button there ?
If you give stop statement after the error message it returns to the previous screen .
‎2009 Mar 25 3:41 AM
Hi,
my sugesstion is, make the MESSAGE type as 'I', then whenever there is no entry in LIKP, it will give an information message in a pop-up and when u click on the ok button it will navigate to selection screen
Hope it helps!!
Regards,
Pavan
‎2009 Mar 25 3:45 AM
hi,
you can give the error message when no record found in LIKP table as
MESSAGE i100 WITH text-001. "text 001 is the message
thanks