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

ISSUE IN EXPORT STATEMENT

Former Member
0 Likes
691

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
660

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.

5 REPLIES 5
Read only

Former Member
0 Likes
660

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..

Read only

dev_parbutteea
Active Contributor
0 Likes
660

Hi,

update INDX from table IT_CONTENTS

Read only

tarangini_katta
Active Contributor
0 Likes
660

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,

Read only

0 Likes
660

thank you,tarangini.

it is working fine.

Regards,

Xavier.P

Read only

Former Member
0 Likes
661

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.