cancel
Showing results for 
Search instead for 
Did you mean: 

Checking Condition

former_member575017
Participant
0 Kudos

Hi Experts,

I am checking a condition in lfa1 table field lovem depending on the result X or not. I need pass a value 1 or 0 to a field in output file structure in that i am passing all fields from one z table zvend along with one extra field to check flag 1 or 0. zvend table contains lifnr field as primary key means as a common field between lfa1 and zvend

Read table LFA1 where LIFNR = ZVENDPLT-LIFNR. If LFA1-LOEVM = 'X' send '1' Else send '0' to DELETE_LOC field and dont pass lovem field.

Plz need your help.

Thanks

Basu

.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do something like this..

Loop at ZVENDPLT.

Read table LFA1 where LIFNR = ZVENDPLT-LIFNR.

If LFA1-LOEVM = 'X'.

Move '1' to DELETE_LOC.

else.

move '0' to DELETE_LOC.

endif.

EndLoop.

Regards,

Sarvesh

former_member575017
Participant
0 Kudos

Thanks Sarvesh

Edited by: Basanagouda Sasanur on Sep 5, 2008 12:15 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Basu,

wrong forum

Regards Mario