Skip to Content
0
Former Member
Jan 02, 2010 at 08:36 AM

ForSetting theO/S CoverSheetParameter throughProgramForLayoutPrintSpool

82 Views

Dear Experts,

I've made a program for printing CREDIT NOTE by copying the SAP Standard Porgram RFKORD50.

Now when the user is taking print of this Layout he is getting one extra page printed which is o/s cover sheet and he doesn't want this page. Now every time when he has to take print he has to set the parameter manually in Spool Request.

I've checked in Spool request this parameter is in Output Attributes Tab given as "O/S Cover Sheet". In the Program this parameter is set through the field PRUNX which is of the structure PRI_PARAMS. I also passed it explicitly as blank but it is not working. If it helps sth to resolve i've found below:

There are 2 function modules used in the program by which it seems that print parameters have been set one is

CALL FUNCTION 'GET_PRINT_PARAM'

EXPORTING

i_bname = sy-uname

IMPORTING

e_usr01 = usr01.

and the other is

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

mode = 'CURRENT'

no_dialog = 'X'

IMPORTING

out_parameters = pri_params

EXCEPTIONS

OTHERS = 4.

Please help.

Regards,

Sai