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 help

Former Member
0 Likes
557

Hello Friends,

Please check this code:

PA <C6>Ship To :</>

PA &WA_GRKOR-StoN1&

PA &WA_GRKOR-StoN2&

PA &WA_GRKOR-StoN3&

PA &WA_GRKOR-StoN4&

PA

PA <C6>Note :</>&WA_GRKOR-shipto_attn1+0(40)&

PA &WA_GRKOR-shipto_attn2+0(40)&

Here, I am displaying 'ship to' address and 'Note', whenever there is no data available in the table it is printing blank line and remaining address is printing in next line.

Eg:

Shreekant SR,

Brigade. Road,

Behind Brigde towers,

Bangalore-560 001

Note: Please collect your shipment etc..

My requirement is, I don't want to print the blank line, and I want to keep the position of 'Note' same..., I know if we remove that blank line, then the Note will go up one line. I do not want to distrub the position of the Note:

Please help me how to achieve this.

Thanks,

Shreekant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
532

hi Shrrekant,

Keep the program variables between Address and EndAddress.

Ex:

/: Address

......

;....

/: EndAddress.

Rgds.,

subash

4 REPLIES 4
Read only

Former Member
0 Likes
533

hi Shrrekant,

Keep the program variables between Address and EndAddress.

Ex:

/: Address

......

;....

/: EndAddress.

Rgds.,

subash

Read only

Former Member
0 Likes
532

Hi,

Use the IF conditions for each variable.

Regards,

Vamshi.

Read only

Former Member
0 Likes
532

hi,

u can acheive this by setting condition..

go with if condition

if data available (ie) check with the field u r printing

print address

else

print note

Regards,

priya

Read only

Former Member
0 Likes
532

Hi,

Go To paragraph Formats. For Paragraph PA just tick the check box 'No Blank Line'.

I hope this helps,

Regards

Raju Chitale