Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Enable back button in blank screen

Former Member
0 Likes
948

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

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
792

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

5 REPLIES 5
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
793

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

Read only

Former Member
0 Likes
792

Thanks.now my problem is solved

Regards

Manoj

Read only

Former Member
0 Likes
792

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 .

Read only

Former Member
0 Likes
792

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

Read only

Former Member
0 Likes
792

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