cancel
Showing results for 
Search instead for 
Did you mean: 

ForSetting theO/S CoverSheetParameter throughProgramForLayoutPrintSpool

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This field (OPTIONS-TDCOVER) is for setting SAP Cover Page not O/S Cover Page.

In the Function Module OPEN_FORM, Options are declared as of type ITCPO and there is no field for O/S Cover Page in this structure.

Sandra_Rossi
Active Contributor
0 Kudos

>

> This field (OPTIONS-TDCOVER) is for setting SAP Cover Page not O/S Cover Page.

>

I don't understand why you say it's not the same thing, is that just because of the word that is different? Just have a try and tell us.

Anyway, the function modules you mentioned are only for ABAP lists.

Former Member
0 Kudos

Hi Rossi,

Thanks for the solution, the problem is resolved now. After sending to the QA Server, User tested after a long time so took time to acknowledge about the solution.

Problem is resolved but still I've doubt, in Spool Request we can see 2 parameters in Output Attributes Tab 1. SAP Cover Page 2. OS Cover Sheet

Now I want to know how by setting only one parameter, another is working in the same way i.e. setting SAP Cover Page as "Do not Print" 2nd is also not printed whether after checking in Debugging the value of it comes as "Print Operating System cover page as set at printer". Can't I also set it as "Do not print" ?

Sandra_Rossi
Active Contributor
0 Kudos

Hello sai,

I realized that my last answer was wrong, and investigated more in depth since then. Here is detailed information: [SDN wiki - Special printer functions - Cover page|http://wiki.sdn.sap.com/wiki/display/ABAP/Cover+page]

Tell me if it helps.

sandra

Sandra_Rossi
Active Contributor
0 Kudos

In your post, you are talking about List print parameters.

SAPscript print parameters are defined in parameter OPTIONS of OPEN_FORM function module: set OPTIONS-TDCOVER equal to space (don't print cover page).