Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Condition type problem-Clarrification for code

Hi,

My requirement is if ZFI6 having values then it will display the ZFI6value no need no activate ZFI4 and ZFI3.

if ZFI6 having no values ZFI4 having value then it display ZFI4 only no need no activate ZFI3 and ZFI6.

if ZFI6 having ZERO then ZFI4 having ZERO so need to activate ZFI3 only.

i got a logic from one of our SDN user,

READ TABLE XKOMV INTO L_XKOMV

WITH KEY

KSCHL = 'ZFI6'.

IF SY-SUBRC = 0.

XKOMV-KINAK = 'X'.

MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZFI4' OR KSCHL = 'ZFI3' .

CLEAR XKOMV.

ELSE.

READ TABLE XKOMV INTO L_XKOMV

WITH KEY KSCHL = 'ZFI4'.

IF SY-SUBRC = 0.

XKOMV-KINAK = 'X'.

MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZFI6' OR KSCHL = 'ZFI3' .

CLEAR XKOMV.

ELSE.

XKOMV-KINAK = 'X'.

MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZFI3'.

CLEAR XKOMV.

ENDIF.

ENDIF.

Thankx for him,

But in that above its its deactivating only the ZFI3 values not of ZFI4 . Can any one plz guide this may be whts the reason of that.

Mohana

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question