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

Query meaning

Former Member
0 Likes
581

Hello all,

Please help me understanding this query:

T_EINA_EINE is internal table, prepare a new internal table with field VAKEY LIKE KONH-VAKEY and populate data from T_EINA_EINE by placing VAKEY0(10) = lifnr, VAKEY10(18) = matnr, VAKEY28(4) = ekorg, VAKEY32(4) = werks, VAKEY+36(1) = ESOKZ.

Thanks,

Shreekant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
530

Hi,

This is simple:

VAKEY field is a keyfield madeup of combination of LIFNR, MATNR, EKORG, WERKS and ESOKZ. this query is asking u to prepare a new itab iwth fileds:

VAKEY, LIFNR, MATNR, EKORG, WERKS and ESOKZ.

where rest all fielied will be filled with relevent VAKEY strings parts.

like:

VAKEY0(10) = lifnr, VAKEY10(18) = matnr, VAKEY28(4) = ekorg, VAKEY32(4) = werks, VAKEY+36(1) = ESOKZ.

i think it will help u ..

revert if u want more clarification.

3 REPLIES 3
Read only

Former Member
0 Likes
531

Hi,

This is simple:

VAKEY field is a keyfield madeup of combination of LIFNR, MATNR, EKORG, WERKS and ESOKZ. this query is asking u to prepare a new itab iwth fileds:

VAKEY, LIFNR, MATNR, EKORG, WERKS and ESOKZ.

where rest all fielied will be filled with relevent VAKEY strings parts.

like:

VAKEY0(10) = lifnr, VAKEY10(18) = matnr, VAKEY28(4) = ekorg, VAKEY32(4) = werks, VAKEY+36(1) = ESOKZ.

i think it will help u ..

revert if u want more clarification.

Read only

0 Likes
530

HI Jogdand,

I need more clarification on this:

MY internal table T_EINA_EINE is having structure:

DATA: begin of t_eina_eine occurs 0,

infnr like eina-infnr,

ekorg like eine-ekorg,

esokz like eine-esokz,

werks like eine-werks,

matnr like eina-matnr,

lifnr like eina-lifnr,

end of t_eina_eine.

Thanks,

Shreekant

Read only

Former Member
0 Likes
530

Hi,

excute this code .hope u understand your query.

DATA: D1 TYPE STRING,
D2 TYPE STRING.

D1 = 'ABCDEFGH'.
D2 = D1+4(2).
 WRITE:/ D1,
D2.

result after execution:

D1 -


> ABCDEFGH

D2 -


> EF.

<i><b>Regards

Debjani

Reward point for helpful answer</b></i>