Skip to Content
0
Former Member
May 14, 2008 at 08:07 AM

Export and Import statments

33 Views

Hi,

I am using a BADI in which the required parameters are not there. So I am using one more BADI where I export the data

(internal table) to memory and import it back in my BADI where the actual changes are done. But his Export and Import is not working. Can any one help withe below code I am using

-


Export

DATA: wa_indx TYPE indx,

cl TYPE mandt VALUE '230',

item TYPE BBPT_PD_SC_ITEM_ICU.

wa_indx-aedat = sy-datum.

wa_indx-usera = sy-uname.

wa_indx-pgmid = sy-repid.

EXPORT item = it_item

TO DATABASE indx(XY)

FROM wa_indx

CLIENT cl

ID 'TABLE'.

-


Import

DATA: wa_indx TYPE indx,

cl TYPE mandt VALUE '230' ,

item TYPE BBPT_PD_SC_ITEM_ICU.

v_category = ITEM_DATA-CATEGORY_ID.

DATA: it_item TYPE STANDARD TABLE OF BBPT_PD_SC_ITEM_ICU.

IMPORT item = it_item

FROM DATABASE indx(xy)

TO wa_indx

CLIENT cl

ID 'TABLE'.

-


Thanks