‎2009 Jan 12 9:44 AM
hi friends,
I have the data in internal table,i.e IT_CONTENTS.
I want this data to be saved in INDX table. how can i do this?
I have written in following way, it gives me and error.
EXPORT it_contents to database indx(PX) ID l_indx-srtfd.
if possible, kindly send me the sample code.
Regards,
xavier.P
‎2009 Jan 12 9:57 AM
Hi,
You can check out the following link for the sample code.
http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3c2c358411d1829f0000e829fbfe/content.htm
Regards,
Deepthi.
‎2009 Jan 12 9:50 AM
hi,
you can use this syntax code..
update indx from table it_data.(your internal table data must have the key values)...
please ensure that, the updation should not create the duplication of records..
regards
vijay..
‎2009 Jan 12 9:52 AM
‎2009 Jan 12 9:53 AM
HI reddy,
Have u searched in the ABAP help(f1 help)
here is the example form f1 help.
TYPES:
BEGIN OF tab_type,
col1 TYPE i,
col2 TYPE i,
END OF tab_type.
DATA:
wa_indx TYPE indx,
wa_itab TYPE tab_type,
cl TYPE mandt VALUE '100',
itab TYPE STANDARD TABLE OF tab_type.
WHILE sy-index < 100.
wa_itab-col1 = sy-index.
wa_itab-col2 = sy-index ** 2.
APPEND wa_itab TO itab.
ENDWHILE.
wa_indx-aedat = sy-datum.
wa_indx-usera = sy-uname.
wa_indx-pgmid = sy-repid.
EXPORT tab = itab
TO DATABASE indx(XY)
FROM wa_indx
CLIENT cl
ID 'TABLE'.
search f1 help you will get more info.
Thanks,
‎2009 Jan 12 10:25 AM
‎2009 Jan 12 9:57 AM
Hi,
You can check out the following link for the sample code.
http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3c2c358411d1829f0000e829fbfe/content.htm
Regards,
Deepthi.