‎2007 Mar 02 7:27 AM
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 . . . . .
.
‎2007 Mar 02 7:37 AM
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
‎2007 Mar 02 7:30 AM
Hi Sapna,
Just add the "FROM ...." after EXPORT itcpo.
Regards,
John.
‎2007 Mar 02 7:37 AM
hi John,
Thanks for ur reply. But ' from ........' what i have to use. Means any workarea or what. pls clarify it.
Regards
Swapna
‎2007 Mar 02 7:40 AM
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.
‎2007 Mar 02 7:31 AM
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.
‎2007 Mar 02 7:37 AM
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