‎2007 May 04 1:00 PM
hi masters - got one quick issue.
IF ( &P_BUKRS& EQ '0070'
OR &P_BUKRS& EQ '0107'
OR &P_BUKRS& EQ '0178'
...........................
...........................
........................... )
then i shud print one text.
else.
i shud print another text.
i'm trying the above way, but its showing some syntax error.
Please help me..........
p_bukrs is the fied i'm passing thru sel-screen of the print program.
..
hope u got my point.
Thanks
Praveen.
‎2007 May 04 1:05 PM
Hi praveen
r u running this script through a background program. What is the error u got
Regards
Pavan
Message was edited by:
pavan praveen
‎2007 May 04 1:05 PM
Hi praveen
r u running this script through a background program. What is the error u got
Regards
Pavan
Message was edited by:
pavan praveen
‎2007 May 04 1:11 PM
‎2007 May 04 1:16 PM
Ya thats fine what error is it displaying or posty ur code here so that we can do any modifications accordingly
Regards
pavan
‎2007 May 04 1:18 PM
‎2007 May 04 1:19 PM
/: IF ( &P_BUKRS& EQ '0070' OR &P_BUKRS& EQ '0107' OR &P_BUKRS& EQ '0178' OR .....................few more conditions.....................)
/: INCLUDE ZHU01_INVOICEDAT1 OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH V4
/: ELSE
/: INCLUDE ZHU01_INVOICEDAT OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH V4
/: ENDIF
its saying that AND, OR or some end condition shud be used.......
‎2007 May 04 1:29 PM
Ok u follow this it will execute
/: IF &P_BUKRS& = '0070'
or &P_BUKRS& = '0107'
or &P_BUKRS& = '0178'
/: INCLUDE ZHU01_INVOICEDAT1 OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH V4
/: ELSE
/: INCLUDE ZHU01_INVOICEDAT OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH V4
/: ENDIF
if this hasnt worked out and then reply me
regards
pavan
‎2007 May 04 1:33 PM
perhaps you should build it up with one comparison first to see if the releational operator works.
IF &P_BUKRS& EQ '0010'
.....
ELSE
......
ENDIF
The next step would be to put in all your operators.
IF &P_BUKRS& EQ '0010'
OR &P_BUKRS& EQ '0020'
OR &P_BUKRS& EQ '0030'
....
ELSE
......
ENDIF
without the brackets ()
‎2007 May 04 1:43 PM
hey Pavan - Thanks a lot yaar....
its working......
/Praveen....i'll reward it.
‎2007 May 04 1:49 PM
Its ok any problem u post here we are here to solve ur problem
Regards
pavan
‎2007 May 04 1:44 PM