cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script ADDRESS....ENDADDRESS

Former Member
0 Kudos
116

Hi,

I have the following code in one window of my SAP Script

/: ADDRESS

/: NAME &SHIPINV-S2NAME1&, &SHIPINV-S2NAME2&, &SHIPINV-S2NAME3&

-


All other address nodes

-


/: ENDADDRESS

All the 3 names are printed successfully.

Now i want to add &SHIPINV-S2NAME4& to NAME node of ADDRESS. Since the length of the line in editor window is occupied by first 3 name fields I had to put my 4th field in next line.

/: ADDRESS

/: NAME &SHIPINV-S2NAME1&, &SHIPINV-S2NAME2&, &SHIPINV-S2NAME3&

<b>/: &SHIPINV-S2NAME4&</b> <i>is this correct ??</i>

-


All other address nodes

-


/: ENDADDRESS

But its not at all printing the 4th value (In debugger i checked the value s available in &SHIPINV-S2NAME4&). I am not sure about the syntax for next line in NAME node & also notation to use like /: or /( or space, or /= and so on. I tried many combinations but cudn't get thru it. So i am confused with NAME node of ADDRESS...ENDADDRESS

Please help me out in this case.

Thanks,

Sail

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

You can still add it on the same line by RIGHT CLICK on the line, selecting page LEFT/ RIGHT(SHIFT+F8). and continues to the current line will come.

OR

Use

/: NAME <call standard text> or Use BLANK for continuous fields.

Reward points if useful.

Regards,

SaiRam

Former Member
0 Kudos

I hope RIGHT CLICK & go RIGHT will work.....Let me try tomor morning...Thanks yaa..

Will close the thread once its fine.

Regards,

Sail

Former Member
0 Kudos

I expect RIGHT CLICK & go RIGHT will work, but also a blank is used for line continuation. So instead of /: on your second line leave the format field blank.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello if things don't work as suggested.

Try this simple solution:

/: DEFINE &NAME1& = &SHIPINV-S2NAME1&

/: DEFINE &NAME2& = &SHIPINV-S2NAME2&

/: DEFINE &NAME3& = &SHIPINV-S2NAME3&

/: DEFINE &NAME4& = &SHIPINV-S2NAME4&

/: ADDRESS

/: NAME &NAME1& &NAME2& &NAME3& &NAME4&

By the way Have you tried with this also:

/: NAME &SHIPINV-S2NAME1& &SHIPINV-S2NAME2& ....S2NAME3& = &SHIPINV-S2NAME4&

Enjoy !!

Message was edited by:

Amarjit Singh

Former Member
0 Kudos

Use below as like :

/: ADDRESS

/: NAME &SHIPINV-S2NAME1&, &SHIPINV-S2NAME2&, &SHIPINV-S2NAME3&

/: <b>NAME</b> &SHIPINV-S2NAME4&

/: ENDADDRESS

Now it should print.

Thanks

Seshu

Former Member
0 Kudos

Seshu,

Thanks. I tried that but its printing only 4th name . First 3 names are not displayed. I'ill tell u the version too its 4.6c.

Former Member
0 Kudos

Okay ,try like this,it should come( But take care about formatting)

/: ADDRESS

/: NAME &SHIPINV-S2NAME1&, &SHIPINV-S2NAME2&, &SHIPINV-S2NAME3&

= &SHIPINV-S2NAME4&

/: ENDADDRESS

Thanks

Seshu

Former Member
0 Kudos

Hi guys,

Thanks for all ur replies.

<b>= &SHIPINV-S2NAME4& </b> wont work - I tried this y'day itself...its printing the 4th name above all the 3 names.

<b>RIGHT CLICK + PAGE RIGHT or DEFINE logic is okay for me. Its working fine.</b>

Thanks,

Sail