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

Export & Import obsolete statment

Former Member
0 Likes
4,730

Hi all,

The following code is showing as obsolete in ECC 6.0. Please suggest me what should i have to do it.

EXPORT itcpo TO MEMORY ID 'RFFORI01_ITCPO'.

IMPORT itcpo FROM MEMORY ID 'RFFORI01_ITCPO'.

here itcpo is a structure.

The error is : EXPORT var_1 ... var_n TO MEMORY ... is not supported in the OO context. Use

EXPORT name_1 from var_1 ... name_n from var_n TO MEMORY ... instead . . . . .

.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,404

Hello Sapna

You have to code EXPORT / IMPORT like this:

*&---------------------------------------------------------------------*
*& Report  ZUS_SDN_EXPORT_IMPORT
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  zus_sdn_export_import.



TABLES: itcpo.

DATA:
  gs_itcpo    TYPE itcpo.



START-OF-SELECTION.

  itcpo-tddest = '1234'.

  EXPORT gs_itcpo FROM itcpo TO MEMORY ID 'RFFORI01_ITCPO'.


  CLEAR: itcpo,
         gs_itcpo.
  WRITE: / 'Before IMPORT:', '''', itcpo-tddest, ''''.

  IMPORT gs_itcpo TO itcpo FROM MEMORY ID 'RFFORI01_ITCPO'.

  WRITE: / 'After IMPORT:', '''', itcpo-tddest, ''''.

END-OF-SELECTION.

Regards

Uwe

5 REPLIES 5
Read only

Former Member
0 Likes
1,404

Hi Sapna,

Just add the "FROM ...." after EXPORT itcpo.

Regards,

John.

Read only

0 Likes
1,404

hi John,

Thanks for ur reply. But ' from ........' what i have to use. Means any workarea or what. pls clarify it.

Regards

Swapna

Read only

0 Likes
1,404

Hi Sapna,

Ok: what you specify behind EXPORT is just the name under which the object is stored, so this can be anything. FROM.... is itcpo in your case.

Regards,

John.

Read only

Former Member
0 Likes
1,404

Hi,

Press F1 on import statement then you will get all the details of import statement

for both obslete and other declaration,it will very why it is obselete also,

it is better practice to use f1 help for syntax.

Thanks,

Sarala.

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,405

Hello Sapna

You have to code EXPORT / IMPORT like this:

*&---------------------------------------------------------------------*
*& Report  ZUS_SDN_EXPORT_IMPORT
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  zus_sdn_export_import.



TABLES: itcpo.

DATA:
  gs_itcpo    TYPE itcpo.



START-OF-SELECTION.

  itcpo-tddest = '1234'.

  EXPORT gs_itcpo FROM itcpo TO MEMORY ID 'RFFORI01_ITCPO'.


  CLEAR: itcpo,
         gs_itcpo.
  WRITE: / 'Before IMPORT:', '''', itcpo-tddest, ''''.

  IMPORT gs_itcpo TO itcpo FROM MEMORY ID 'RFFORI01_ITCPO'.

  WRITE: / 'After IMPORT:', '''', itcpo-tddest, ''''.

END-OF-SELECTION.

Regards

Uwe