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

Sapscript Address variable change not working

Former Member
0 Likes
1,303

I am using a program to change Addrerss Name1 by using a Perform  in the SapScript

It returns the converted Name in upper case as it should, but then names2, 3, and 4 are blanked out. 

If I uncomment the line    NAME        &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&

and comment out line   NAME        &UPPERCS_NM&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&

it prints each of the Name variables but Name 1 is Lower Case and it must be Upper Case

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,264

Solved.   I moved the perform so that it is called before the Address command.  Also needed to remove the 2 lines that had * as the line type

5 REPLIES 5
Read only

Rashid_Javed
Contributor
0 Likes
1,264

Umm, can you please try to change value in   &REGUH-ZNME1& and see what happens ?

Like instead of updating &UPPERCS_NM&, how if you directly update &REGUH-ZNME1& through your PERFORM statement.

Message was edited by: Rashid Javed

RJv
Read only

0 Likes
1,264

When I tried that, it returned the Name it printed the name in lower case and also wiped out the values in name2 name 3 and name 4.     I could see that in the perform, the value was translated to Upper case, but cannot see what happens when it returns from the perform.  It seems like somehow if value of name 1 is changed, it will ignore the other 3 name fields

Read only

Former Member
0 Likes
1,264

Hi,

If your Script is calling any Standard Text (INCLUDE), then there might be chances of using STLYE...

In case, if it calling any text, Goto SO10 enter the text name, press change. u ill enter into Text Editor screen of SO10, here click on menu item FORMAT>PARAGRAPH> here u ill find the Style name if any created.

Thanks,

Karthik

Read only

0 Likes
1,264

The values in the SapScript address are coming from the calling program.

Read only

Former Member
0 Likes
1,265

Solved.   I moved the perform so that it is called before the Address command.  Also needed to remove the 2 lines that had * as the line type