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

sap script address print issue

Former Member
0 Likes
632

Hi

I am printing invoice. This invoice has more than one items.

My requirement is i need to prind address for first line item.

I using t.code so10 to display this address. .The address is comming in Original Copy but it is not showing in other copies like (Duplicate , Quintriplicate ,Triplicate, Quadriplicate and Extra) .

how to print this address in Firstpages. pls help me out

5 REPLIES 5
Read only

Former Member
0 Likes
594

Hi,

You can use text element on that particular window and assin the variables you can get address in each page.

Thanks and regards,

Das.........

Read only

0 Likes
594

Hi

I can not able to create new text element. B'coz driver program is a commen program for 20 output types. If i create new text element it will affect other invoices.

IF &PAGE& = '1'
INCLUDE &'ZV'VBDKR-VKORG'ARE1ADDRESS'& OBJECT TEXT ID ST PARAGRAPH IP
ENDIF

I tried the above code.

when i debug the script page number value is always one. so it is printing all pages.

Pls help me

Read only

Former Member
0 Likes
594

Hi Use like below.

/: IF &PAGE& = '1'

/: INCLUDE &'ZTXT& OBJECT TEXT ID ST PARAGRAPH PO

/: ENDIF

Read only

former_member761936
Active Participant
0 Likes
594

Hi Kumar,

Instead of &PAGE1& = '1'

try &SAPSCRIPT-FORMPAGES& = '1' (OR)

&SAPSCRIPT-JOBPAGES& = '1'.

Hope this will help you.

Read only

0 Likes
594

Issue solved