cancel
Showing results for 
Search instead for 
Did you mean: 

spool request issue in the smartforms

Former Member
0 Kudos

Hi all,

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'

EXPORTING

  • IMMEDIATELY = 'X'

LAYOUT = 'DINA4'

NO_DIALOG = 'X'

  • LINE_COUNT = 65

  • LINE_SIZE = 80

IMPORTING

OUT_ARCHIVE_PARAMETERS = V_ARCPAR

OUT_PARAMETERS = V_PRIPAR

VALID = C_VAL

EXCEPTIONS

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.

ENDIF.

IF C_VAL <> SPACE.

NEW-PAGE PRINT ON NEW-SECTION

PARAMETERS V_PRIPAR

ARCHIVE PARAMETERS V_ARCPAR

NO DIALOG .

ENDIF.

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:

Name ZVXAR021_BT4

Title

Number 0

Pages 0

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

Dheeraj

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member205763
Active Contributor
0 Kudos

in PAI for BACK

use leave to screen 1000 or set screen 1000, if neither works use call transaction to call report again