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

Selection screen

Former Member
0 Likes
464

Hi,

I have created a selection screen after executing the 1st selection screen as below:

SELECTION-SCREEN: BEGIN OF SCREEN 200 TITLE text-017 .

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-016.

PARAMETERS: pfile1 type rlgrap-filename.

SELECTION-SCREEN END OF BLOCK b2.

SELECTION-SCREEN:END OF SCREEN 200.

INITIALIZATION.

SET PF-STATUS 'ABC'.

AT SELECTION-SCREEN.

WHEN c_fcode_execute.

PERFORM upload.

form UPLOAD .

CALL SELECTION-SCREEN 200.

endform. " UPLOAD

But when I execute at my selection screen the 2nd screen comes but when I am trying to upload something at this screen, getting the following error message.Can anyone tell me why it is happening?

"Selection screen YXXX01TEST

1000 was not called using CALL SELECTION-SCREEN"

Edited by: Jjammy on Jun 16, 2009 12:06 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
434

Hai Jjammy,

Just Call the " PERFORM upload " in START-OF-SELECTION event.

if you try to trigger the same as the code given by you no-output would be there.

keep you validation code for selection screen in the event AT Selection-Screen.

Hope tis helps.

Cheers,

Suvendu

4 REPLIES 4
Read only

Former Member
0 Likes
435

Hai Jjammy,

Just Call the " PERFORM upload " in START-OF-SELECTION event.

if you try to trigger the same as the code given by you no-output would be there.

keep you validation code for selection screen in the event AT Selection-Screen.

Hope tis helps.

Cheers,

Suvendu

Read only

0 Likes
434

Hi Suvendu,

I called the screen at start-of-selection.Still same error.

Read only

0 Likes
434

Hi,

Please call the screen directly in the START-OF-SELECTION.. As suggested earlier dont keep it inside a perform... please try this out.. I think this time it will work..

Read only

Former Member
0 Likes
434

Hi,

You can not place your CALL SELECTION-SCREEN in subroutine.

Just call PERFORM upload.

regards,