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

Issue in SAP Script editor

Former Member
0 Likes
770

Hi all,

In Script Editor, i am displaying a line with a paragraph format I1.

Below i am trying to show a simulation of my code.

I1 &ZMATNR&,,&ZARKTX&

/: IF &COND& = 'X'

= &ZPRICE1&

/: ELSE

= &ZPRICE2&

/: ENDIF

so i expect ZPRICE1 and ZPRICE2 to follow I1 paragraph format

So, after i save and activate the SAP Script what happens is the tag column for line &ZPRICE1& Becomes * and looks like

I1 &ZMATNR&,,&ZARKTX&

/: IF &COND& = 'X'

  • &ZPRICE1&

/: ELSE

= &ZPRICE2&

/: ENDIF

No matter how many times i change * to = it still remains as *

Any help?

1 ACCEPTED SOLUTION
Read only

NAeda
Contributor
0 Likes
738

hi,

Use like this, if you want to print Continues line

/: IF &COND& = 'X'

I1 &ZMATNR&,,&ZARKTX&,, &ZPRICE1&

/: ELSE

I1 &ZMATNR&,,&ZARKTX&,, &ZPRICE2&

/: ENDIF

rgds

Aeda

5 REPLIES 5
Read only

Former Member
0 Likes
738

Hi,

= is used for extended line feed...Since you might have * as default paragraph format, it is taking it..

Hence i suggest you to have the same paragraph format I1 again as this will not follow as there is a condition command after your I1 &ZMATNR&,,&ZARKTX&.

Hence use the below:

/: IF &COND& = 'X'

I1 &ZPRICE1&

/: ELSE

I1 &ZPRICE2&

/: ENDIF

Hope this helps

Regards

Shiva

Read only

0 Likes
738

Thanks Shiva

But then by doins as below, ZPRICE1 or ZPRICE2 gets printed in next line(but i want in coninuity to ZMATNR ZARKTX)

/: IF &COND& = 'X'

I1 &ZPRICE1&

/: ELSE

I1 &ZPRICE2&

/: ENDIF

Read only

NAeda
Contributor
0 Likes
739

hi,

Use like this, if you want to print Continues line

/: IF &COND& = 'X'

I1 &ZMATNR&,,&ZARKTX&,, &ZPRICE1&

/: ELSE

I1 &ZMATNR&,,&ZARKTX&,, &ZPRICE2&

/: ENDIF

rgds

Aeda

Read only

Former Member
0 Likes
738

Not possible to code like this

The example what i had shown is to explain my problem.

However In my case there are a series of conditions within which i am trying to display the rest of the fields with tag column as =, but it takes as *

Read only

Former Member
0 Likes
738

Any more suggestions friends ?