‎2010 Feb 26 3:47 PM
Hi all,
I don't know what'z wrong with this command
EXPORT zmatnr FROM g_matnr
zwerks FROM g_werks
zqty FROM g_qty
zuser FROM syst-uname
ztime FROM syst-uzeit
TO MEMORY ID 'Z_TEST'.
this returns sy-subrc = 4.
When i try to import its not importing from memory id Z_TEST.
no field is empty in the above command and all are character type except time,
I gave search, but everywhere i could find the syntax, but i couldnt find the solution for this problem. So I'm posting here
‎2010 Feb 26 3:52 PM
A stupid suggesiton...
Try initially exporting only a field. If sy-subrc is 0 add a new field and try again....and so on...
If problem is a field, this is the best way to found it.
Bye.
‎2010 Feb 26 4:30 PM
EXPORT doesn't set sy-subrc. The value 4 is left over from an earlier statement.
Rob
‎2010 Feb 26 4:59 PM
Hello <li>As Rob told, EXPORT statement does not set sy-subrc value. Sy-subrc eq might be from some other statement value. <li>You can only check the values saved in memory using IMPORT statement. Check it out. Thanks Venkat.O
‎2010 Feb 26 5:32 PM
Well, first of all, I'll try to not merely repeat what Rob wrote...:-} but...
When you import, are you importing from memory id 'Z_TEST' to g_matnr, zwerks, etc....?
It really sounds like your import is the problem, and that you're looking at the wrong end of the process...