Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

scripts Problem

Former Member
0 Likes
1,004

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
973

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

10 REPLIES 10
Read only

Former Member
0 Likes
974

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

Read only

Former Member
0 Likes
973

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

Read only

Former Member
0 Likes
973

Hi giri wat do u mean by pages

u mean 10 pgs of data or 10 pages in the script layout

Read only

0 Likes
973

Hi Ganesh,

It is of 10 pages layout.

If possible send me the code as well.

Rgds

Giri

Read only

Former Member
0 Likes
973

Are these static pages?

Or these are coming out of the MAIN window?

Regards,

Ravi

Read only

0 Likes
973

I think these are all static pages.

Not coming out of the main window.

rgds

Giri

Read only

0 Likes
973

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

Read only

rahulkavuri
Active Contributor
0 Likes
973

check this, may be it can help u

Read only

Former Member
0 Likes
973

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

Read only

Former Member
0 Likes
973

HI,

THE STRUCTURE NAME IS ITCPO AND FIELDNAME IS TDPAGESELECT.

MURALI