Former Member

# anyone help the condition type problem

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 developed the below coding but its not working correctly anyone plz explain how to solve this issue.

WITH KEY

KSCHL = 'ZFI6'.

IF sy-subrc = 0.

XKOMV-KINAK = 'X'.

MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZFI4'.

endif.

point will be sure.

Vijai

10|10000 characters needed characters exceeded

### Related questions

• Former Member
Posted on Nov 24, 2007 at 12:54 PM

Hi Vijaya,

Try this

```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.
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.```

Regards,

Satish

10|10000 characters needed characters exceeded
• Former Member Former Member

Then try this

XKOMV-KINAK = 'X'. "<< Make it ' ' instead of 'X'.

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

CLEAR XKOMV.

Regards,

Satish