‎2007 Jun 12 9:17 AM
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!
‎2007 Jun 12 9:20 AM
‎2007 Jun 12 9:19 AM
‎2007 Jun 12 9:20 AM
‎2007 Jun 12 9:45 AM
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!
‎2007 Jun 12 9:58 AM
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.
‎2007 Jun 12 9:56 AM
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.