Application Development 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: 

Please give the meaning of this code

Former Member
0 Kudos
209

Hi anyone please give the meaning of the below mentioned modify command code

READ TABLE XKOMV INTO L_XKOMV

WITH KEY

KSCHL = 'ZGBC'.

IF sy-subrc = 0.

XKOMV-KINAK = 'X'.

<b>MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZFIK'.</b>

ENDIF.

Point will be sure.

vijai

1 ACCEPTED SOLUTION

Former Member
0 Kudos
123

hi,

tht table i.e.xkomv will be read where kschl field value = zgbc

if it suceeded then kinah field is modified with X

and modify statement will do modifications

The TRANSPORTING addition has the effect that only the specified fields of the work area are assigned to the corresponding components of the line(s) to be changed

5 REPLIES 5

Former Member
0 Kudos
123

HI Vijaya,

Here XKOMV is an internal table. Program is reading a record from XKOMV where KSCHL = ZGBC. If it returns the record,XKOMV-KINAK value making as X and updating XKOMV with 'X' value for KINAK field where KSCHL is 'ZFIK'.

Regards,

Satish

Former Member
0 Kudos
124

hi,

tht table i.e.xkomv will be read where kschl field value = zgbc

if it suceeded then kinah field is modified with X

and modify statement will do modifications

The TRANSPORTING addition has the effect that only the specified fields of the work area are assigned to the corresponding components of the line(s) to be changed

Former Member
0 Kudos
123

plzzz reward if my answer is helpful

Former Member
0 Kudos
123

if condition type is kschl is zgbc then u r making kinak as active

KSCHl is condition type

KINAK Condition is inactive

Definition

Indicates if the condition is active.

Procedure

If you want to deactivate the condition, mark the field. During pricing, the system ignores conditions that are valid but not active.

Former Member
0 Kudos
123

Hello Vijaya,

Its reading the Conditiuon table and checking for the condition type ZGBC in the document condition table. If it exists then its makeing the Condition ZFIK as in active. So During pricing, the system ignores conditions that are valid but not active in this case ZFIK.

Regards,

<b>Reward Points if Useful</b>

Sake Sharma