cancel
Showing results for 
Search instead for 
Did you mean: 

extra page in script output

Former Member
0 Kudos

Hi all,

I'm facing a issue with the extra page which is not needed in the output of a script.

when the data has got line items which exactly fits in the page, there is an extra page coming which is to be avoided.

For instance, If the data has got 10 line items which exactly fits in first page, 2 pages are coming without any data in second page.

Any pointers on this would be of great help.

Regards,

Vamsee.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member585060
Active Contributor
0 Kudos

Hi,

Just make sure that there is no blank line after the line item variables are entred in Sapscript editor.

/E ITEM_LINE
P1 &WA_ITAB-MATNR&,,&WA_ITAB-ERSDA&              " Line items variables
" -----------> see that no blank line here

Regards

Bala Krishna

Former Member
0 Kudos

Hi Bala Krishna,

There are no blank spaces after the line items in the script,but some fields are being called through performs in the script as show below:

Y7,,&IL_ITEM_DEL(3)&,,&TVBDPL-ARKTX&,,&QKEY&,,&MEHI&,,

=<A1>&TVBDPL-LFIMG(CT10.0)&</>,,&ITEM_BACKORDER(CT10.0)&,,

/:DEFINE &CKEY& = &TVBDPL-MATNR&

/:PERFORM GET_KENSA IN PROGRAM ZJPV0167

/:USING &CKEY&

/:CHANGING &RKEY&

/:ENDPERFORM

Y7&RKEY&

Is this way of calling fields is causing the extra page??

Thanks in advance,

Vamsi.

former_member585060
Active Contributor
0 Kudos

Hi,

Just check what does the value &RKEY& is holding, whether is it displaying on output, and what what location, see that no blank lines before the DEFINE statement.

or just copy the whole statements from DEFINE upto Y7&RKEY&, to just above the item variables and see the output. Just comment the down lones and paste them above.

See below

/:DEFINE &CKEY& = &TVBDPL-MATNR&
/:PERFORM GET_KENSA IN PROGRAM ZJPV0167
/:USING &CKEY&
/:CHANGING &RKEY&
/:ENDPERFORM
Y7,,&IL_ITEM_DEL(3)&,,&TVBDPL-ARKTX&,,&QKEY&,,&MEHI&,,
=<A1>&TVBDPL-LFIMG(CT10.0)&,,&ITEM_BACKORDER(CT10.0)&,,     
Y7&RKEY&  "--> is this continuoes of above line? if so remove the Y7 and add =

Regards

Bala Krishna

Edited by: Bala Krishna on Aug 12, 2009 3:08 PM

matt
Active Contributor
0 Kudos

Moved to correct forum. Please take care in future.

Former Member
0 Kudos

This message was moderated.