2007 Feb 15 9:53 AM
Hi All,
How to write the below expression in ABAP,
check, if it_ltap_vb-bwlvs is in internal table it_bwlvs
if yes: continue with First decision.
if no: EXIT.
First Decision,
Secodn Decision.
Please let me know.
Thanks,
KCR
2007 Feb 15 10:01 AM
Hi,
try like this:
<b>
sort it_bwlvs f1.
loop at it_ltap_vb.
read table it_bwlvs with key f1 = it_ltap_vp-f1
binary search.
if sy-subrc = 0.
first condition.
else.
exit.
endif.
</b>
Regards
Shiva
Hi,
try like this:
<b>
sort it_bwlvs f1.
loop at it_ltap_vb.
read table it_bwlvs with key f1 = it_ltap_vp-f1
binary search.
if sy-subrc = 0.
first condition.
else.
exit.
endif.
</b>
Regards
Shiva
2007 Feb 15 9:57 AM
Use this code:
read table it_bwlvs with key bwlvs = it_itap_vb-bwlvs.
if sy-subrc eq 0.
* First Decision
else.
* Second Decision
endif.
2007 Feb 15 11:12 AM
loop at it_bwlvs where bwlvs = it_ltap_vb-bwlvs.
perform first decision
endloop.
if sy-subrc ne 0.
perform second decision
endif.
2007 Feb 15 10:01 AM
Hi,
try like this:
<b>
sort it_bwlvs f1.
loop at it_ltap_vb.
read table it_bwlvs with key f1 = it_ltap_vp-f1
binary search.
if sy-subrc = 0.
first condition.
else.
exit.
endif.
</b>
Regards
Shiva
2007 Feb 15 10:03 AM
loop at it_bwlvs.
read table it_ltap_vb with key bwlvs = it_bwlvs-bwlvs.
if sy-subrc = 0.
<first decision>
endif.
<second dicisson>
endloop.
regards
shiba dutta
2007 Feb 15 10:22 AM
loop at it_bwlvs.
read table it_ltap_vb with key f eq it_bwlvs-f.
if it_ltap_vb-bwlvs eq it_bwlvs-bwlvs.
perform first decision
else.
exit.
endif.
endloop.
form firstdecision.
................
..............
endform.
form seconddecision.
..................
..............
endform.
2007 Feb 15 11:13 AM
Hi
You can write the following code for that purpose:
read table it_bwlvs with key bwlvs = it_itap_vb-bwlvs.
if sy-subrc eq 0.
ur First Decision
else.
ue Second Decision
endif.
Regards
kumar
2007 Feb 15 11:56 AM
Hi,
U can use the following code:
read table it_bwlvs with key bwlvs = it_itap_vb-bwlvs.
if sy-subrc = 0.
first decision.
else.
second decision.
endif.
Reward if this helps.
Thanks.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |