I am calling a smartform through a report program.In the report program i have used 'GET_PRINT_PARAMETERS' function module to get the output device and passing it to smartform.When i'm printing the smartform it is getting printed properly but when i am clicking on the BACK button it is not coming back to the selection screen.It is going to a screen named 'SPOOL REQUEST : INFORMATION' screen.At that screen when i'm pressing the back button , it is gonig to the selection screen.
I dont want that screen should come into picture.
Below is the code that i did...
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMMEDIATELY = 'X'
LAYOUT = 'DINA4'
NO_DIALOG = 'X'
LINE_COUNT = 65
LINE_SIZE = 80
OUT_ARCHIVE_PARAMETERS = V_ARCPAR
OUT_PARAMETERS = V_PRIPAR
VALID = C_VAL
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
IF C_VAL <> SPACE.
NEW-PAGE PRINT ON NEW-SECTION
ARCHIVE PARAMETERS V_ARCPAR
NO DIALOG .
if i dont use this function module and hard code the output device and pass it to smartform than i dont face that problem.
In the 'SPOOL REQUEST : INFORMATION' window i'm getting the following informtion:
I just want to skip this screen.
I have tried following things at PAI for BACK command.
1. LEAVE TO SCREEN 0.
2. CALL THE SAME TRANSACTION.
LEAVE PROGRAM. is giving me the solution but it is coming out of the program completely that i dont want at all.
If you guys have some solution than pls help me.
Thanks & Regards