Skip to Content
author's profile photo Former Member
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.

READ TABLE XKOMV INTO L_XKOMV

WITH KEY

KSCHL = 'ZFI6'.

IF sy-subrc = 0.

XKOMV-KINAK = 'X'.

MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZFI4'.

endif.

point will be sure.

Vijai

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    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.
     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.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.