Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Please help this issue ( Condition type problem)

Former Member
0 Likes
533

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 am modifing the program <b>RV64A811</b>

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 = 'ZFI4' OR KSCHL = 'ZFI6'.

CLEAR XKOMV.

ENDIF.

ENDIF.

Thankx for him,

But in that above its its deactivating only the ZFI3 , but i want to deactivate the ZFI3 and ZFI4 and ZFI6 for the respective logic . Can any one plz guide this may be whts the reason of that.

its urgent, 10 point will be sure.

Mohana

1 REPLY 1
Read only

Former Member
0 Likes
412

<b>TRY THIS..............................</b>

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.

READ TABLE XKOMV INTO L_XKOMV WITH KEY KSCHL = 'ZFI6'.

IF SY-SUBRC = 0.

.....DISPLAY THE VALUES HERE FOR Z16....

XKOMV-KINAK = 'X'.

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

CLEAR XKOMV.

ELSE.

READ TABLE XKOMV INTO L_XKOMV WITH KEY KSCHL = 'ZFI4'.

IF SY-SUBRC = 0.

.....DISPLAY THE VALUES HERE FOR Z16....

XKOMV-KINAK = 'X'.

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

CLEAR XKOMV.

ELSE.

XKOMV-KINAK = ''.

MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZFI3' .

CLEAR XKOMV.

ENDIF.

Message was edited by:

Muthurajan Ramkumar