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

scripts

Former Member
0 Likes
1,414

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,390

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

Thanks a lot

10 REPLIES 10
Read only

Former Member
0 Likes
1,391

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

Read only

0 Likes
1,390

its going to short dump

Read only

0 Likes
1,390

Ya thats fine what error is it displaying or posty ur code here so that we can do any modifications accordingly

Regards

pavan

Read only

Former Member
0 Likes
1,390

I think bracketing is not allowed here.

Read only

0 Likes
1,390

/: 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.......

Read only

0 Likes
1,390

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

Read only

0 Likes
1,390

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 ()

Read only

0 Likes
1,390

hey Pavan - Thanks a lot yaar....

its working......

/Praveen....i'll reward it.

Read only

0 Likes
1,390

Its ok any problem u post here we are here to solve ur problem

Regards

pavan

Read only

Former Member
0 Likes
1,390

Thanks a lot