‎2006 Aug 25 1:38 PM
I have to update an uinternal table like below..
loop at T_Shipto.
SELECT
EKUNDE EEQUNR E1EQKTX EMATNR ESERNR EINVNR IEQFNR IANLNR
INTO table T_Equip
FROM EQUI as E inner join EQUZ as Z
On EEQUNR = ZEQUNR
Inner join ILOA as I
On IILOAN = ZILOAN
Inner Join EQKT as E1
On E1EQUNR = EEQUNR
For All Entries in T_SHipto
WHERE KUNDE = T_Shipto-KUNN2.
If SY-SUBRC <> 0.
T_output-KUNNR = T_Shipto-KUNNR.
T_Output-KUNN2 = T_Shipto-KUNN2.
T_Output-Status = 'N'.
Append T_Output.
Clear T_Output.
Else.
T_output-KUNNR = T_Shipto-KUNNR.
T_Output-KUNN2 = T_Shipto-KUNN2.
Append T_Output.
Clear T_Output.
Endif.
clear T_EQUIP.
Endloop.
If I give this.. For first shipto customer its uopdating values in internal table...for 2nd its not adding as new line..its modifying the previous value...
‎2006 Aug 25 1:45 PM
‎2006 Aug 25 1:46 PM
in Select statement instead of inton table T_Equip
I gave appending Table T_Equip..
Now its working fine