‎2007 Aug 02 11:18 AM
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
‎2007 Aug 02 11:25 AM
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.
‎2007 Aug 02 11:25 AM
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.
‎2007 Aug 02 11:45 AM
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
‎2007 Aug 02 11:28 AM
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>