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 command not working

Former Member
0 Likes
760

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

4 REPLIES 4
Read only

Former Member
0 Likes
541

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.

Read only

Former Member
0 Likes
541

EXPORT doesn't set sy-subrc. The value 4 is left over from an earlier statement.

Rob

Read only

venkat_o
Active Contributor
0 Likes
541

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

Read only

Former Member
0 Likes
541

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