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

Error with import 'SAP_APPLICATION'

Former Member
0 Likes
451

Hello,

I am writing an abap program and for some reason, when i import 'SAP_APPLICATION' the draw table is empty even if i have a selected document(s).

1-Does anyone know why DRAW is empty ?

2-And can you please explain to me what is 'SAP_APPLICATION' and who takes care of it. I mean that in my program i am doing an import, but who is initially exporting data to 'SAP_APPLICATION' ?

Thank You

3 REPLIES 3
Read only

Former Member
0 Likes
421

Hi Hassan,

From the look of your problem I feel you are using a different session.

1) IMPORT and EXPORT work in same session not across session.

2) Who has asked you to import 'SAP_APPLICATION'. If you are not exporting it and since you are talking about selecting documents then it seems SAP standard program must be exporting it which then will not work if the export is happening in another session and you are importing in another session.

3) If you try to import and if no export has happened in same session your 'DRAW' table will be empty.

Check the specifications with the person who gave you this.

This will help you

Regards

Nishant

Read only

0 Likes
421

Hello Nishant,

You are 100% correct. I am expecting SAP to do the exporting at sometime but i guess that it is not doing so. Here is what i am trying to do and i hope you can provide me with some insight.

after performing search using cv04n, i want the user to select the file(s) that he/she want and then press on a specific button to activate my abap program. Now in my abap, i need to get the list of documents that have been selected by the user. In a similar abap program i have i saw that they are importing 'SAP_APPLICATION' and their draw table is not empty and it contains the selected document. But in my program when i import, my draw table is empty and thus i can not know the selected document. Any ideas on how to proceed ?

regards

Hassan

Read only

0 Likes
421

Hi Hassan,

Since you already know this much the only thing that is logically coming out is that at the step when you want to IMPORT, EXPORT has not happened.

Just check the same program which is having that code... Now if you can somehow trigger the same sy-ucomm without affecting business logic then please do that or else since you are already coding it for a specific program just check at the point when user presses the button the same table ( as used by the reference program ) is having values. If yes then just put and EXPORT statement ( same as in reference program ) and the execute your program.

This should do it.

Revert in case you need more inputs

Regards

Nishant