on 04-23-2008 7:05 PM
hi
i had a long if statement.
it is extending more than one line.
IF ®UH-RZAWE& = '2' AND ( ®UH-LAUFI0(1)& EQ 'E' OR ®UH-LAUFI0(1)& EQ 'G' )
IF i use '=' Extended line the statement in that line is printing as it is.
If i use '/:' this command even for the next line it works fine
what i s the correct procedure
commands are written /:
= - extended line applies to text values and variable display in the output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When I had a similar issue I tried many possibilities, but some how nothing worked.
So I used PERFORM <SUBROUTINE> IN PROGRAM <ROUTINE PROGRAM> USING <FIELD> CHANGING <FIELD> END PERFORM.
I passed the fields required under USING <Field1> USING <field2> ..... USING <Field n> and the fields in which i should get output under CHANGING <FIELD1> CHANGING <FIELD2>....... CHANGING <FIELD N>.
and once i received the fields i just displayed them as required.
Regards,
-Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys!
I've tested it (it is really better then giving just assumptions). Only solution is the one from KK: use SHIFT+F8 - it will give You one extra line to continue Your command (but only one).
If You try to use next line SAPScript will interpret only first line of Your command, no mater which line type will You select for second line. Example:
/: IF &VBDKA-VKORG& EQ '0001'
/: AND &NAST-SPRAS& EQ 'DE'
In this case SAPScript will omit what is in second line and it will do whatever is inside this IF for every language. Whats more: If second line type is ' ' or '=', then You will get a printout of fixed text >> AND &NAST-SPRAS& EQ 'DE' <<
BR, Michał
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If your statement is extending more than one line ,then just give 'space' instead of '/: 'in the tag for the next line .
Reward if it works.
anitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have You used Periods '.' at the end of If and Endif statements.
Just try it.
regards,
sg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can continue in the same line itself by pressing SHIFT+F8
If u want it in the next line then u can give space in the tag column.
Hope it helps.
Regards,
KK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
use '=' Extended line.
it is the best method.
PLEASE REWARD IF USEFUL..
THANKS,
GUPTA
Edited by: gupta pullipudi on Apr 23, 2008 8:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.