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

call selection screen ??

Former Member
0 Likes
755

hi,

i want to stop current statement in code and turn to selection screen to refill the field in selection screen , i use call screen 1000 but error occurs say that i can't call a selection screen,

someone please tell me how to fulfill my task ?

thank you!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
728

Hello,

Use

<b>LEAVE TO SCREEN 0.</b>

Vasanth

5 REPLIES 5
Read only

Former Member
0 Likes
728

Hi Kun,

Write the code like Call Selection-screen 100.

Thanks.

Read only

Former Member
0 Likes
729

Hello,

Use

<b>LEAVE TO SCREEN 0.</b>

Vasanth

Read only

0 Likes
728

hi both,

thank you for your reply!

this is my program structure,

parameters:

start-of-selection.

perform upload_file.

perform process.

form upload_file.

some check.

if not pass.

return to selection screen to reselect. (1)

endform.

if i use "leave to screen 0" in (1) it goes to LS38EF00 and final go out the program.

if use "call selection-screen 100" it goes to 'perform process'. though with new selection field value. but i just it goes to 'perform upload_file' with new value.

so please tell me how ?

thank you!

Read only

0 Likes
728

Hello ZHang,

may be u can use Submit statement to call the same report again whnevr some error occurs.

refer my demo code -

REPORT ZHANG .

parameters: p1 type i,

p2 type i.

data p3 type i.

p3 = p1 + p2.

if p3 GE 0.

write: p3.

else.

submit Zhang via selection-screen.

endif.

hope it helps.

Read only

Former Member
0 Likes
728

Hi,

1) Create a transaction for your program.

2) Use LEAVE TO TRANSACTION '(name of the transaction you created)'.

This will bring your initial screen.

To refill the entries in the screen again... create a VARIANT TRANSACTION for your program with the required fields filled and then call the variant.

Hope this solves your problem!!

Come back if any queries...

regards,

Naveenan.