on 01-02-2010 8:36 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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" ?
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.