‎2006 May 23 11:46 AM
Hi Experts,
I have problem in Scripts, the problem is as follows:
There are 10 pages in which i need to print later five pages only not the first 5 pages.
Could any one help me in this regrad how to program.
Concerned points willbe awarded to the optimum satisfied answer.
Thanks in advance..
Rgds
Giri
‎2006 May 23 11:48 AM
Hai Giri
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING MODE = 'BATCH'
REPORT = 'MYREPORT'
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
look into this link
http://help.sap.com/saphelp_nw04/helpdata/en/d5/6243ea8a4111d4b605006094192fe3/content.htm
You need to set the USER_SETTINGS perameter in your SmartForm to SPACE
Regards
Sreeni
‎2006 May 23 11:48 AM
Hai Giri
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING MODE = 'BATCH'
REPORT = 'MYREPORT'
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
look into this link
http://help.sap.com/saphelp_nw04/helpdata/en/d5/6243ea8a4111d4b605006094192fe3/content.htm
You need to set the USER_SETTINGS perameter in your SmartForm to SPACE
Regards
Sreeni
‎2006 May 23 11:49 AM
Hi,
If you are sure that in your script you have 10 pages,
keep track of next-page variable.
As soon as next-page value reaches 6, start printing what you want.
hope, this helps you.
Regards,Tarun
‎2006 May 23 11:49 AM
Hi giri wat do u mean by pages
u mean 10 pgs of data or 10 pages in the script layout
‎2006 May 23 11:53 AM
Hi Ganesh,
It is of 10 pages layout.
If possible send me the code as well.
Rgds
Giri
‎2006 May 23 11:50 AM
Are these static pages?
Or these are coming out of the MAIN window?
Regards,
Ravi
‎2006 May 23 11:55 AM
I think these are all static pages.
Not coming out of the main window.
rgds
Giri
‎2006 May 23 12:05 PM
I am not sure in SAP Scripts, but in SMART Forms, you can place a condition based on which a PAGE will get displayed. So, if you put a condition, which will never be true ( 1 = 0 ), then that page will never get printed.
Regards,
Ravi
Note : Please mark all the helpful answers
‎2006 May 23 11:51 AM
‎2006 May 23 11:56 AM
Hii
check this code
DATA i_print TYPE SSFCOMPOP.
DATA i_ctrl TYPE SSFCTRLOP.
i_print-tddest = 'LP01'. "Device
*i_ctrl-preview = 'X'.
*i_ctrl-no_dialog = SPACE.
i_print-TDPAGESLCT='6,7,8,9,10'."page num
CALL FUNCTION '/1BCDWB/SF00000204'
EXPORTING
CONTROL_PARAMETERS = i_ctrl
OUTPUT_OPTIONS = i_print
this is from the link
This will work
Regards
Naresh
‎2006 May 23 12:55 PM
HI,
THE STRUCTURE NAME IS ITCPO AND FIELDNAME IS TDPAGESELECT.
MURALI