‎2009 Nov 17 11:03 AM
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?
‎2009 Nov 17 11:23 AM
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
‎2009 Nov 17 11:07 AM
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
‎2009 Nov 17 11:13 AM
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
‎2009 Nov 17 11:23 AM
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
‎2009 Nov 17 11:26 AM
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 *
‎2009 Nov 17 11:38 AM