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'
i_bname = sy-uname
e_usr01 = usr01.
and the other is
CALL FUNCTION 'GET_PRINT_PARAMETERS'
mode = 'CURRENT'
no_dialog = 'X'
out_parameters = pri_params
OTHERS = 4.