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

IMPORT/EXPORT statement in Background Mode

Former Member
0 Likes
2,425

Hey dudes,

I am facing a problem in my coding. I am dealing with coding in several events in IS-U, transaction FPY1.

However, it's not so important ya. Now I am written some code on IMPORT and EXPORT some parameters between 2 program code. It's work very fine only in 'DEBUG MODE', but when it's running not debug mode (Is BACKGROUND MODE), coz it's massive run program.

I suspect it's because of the background job. Does background job using ABAP Memory? IMPORT/EXPORT is only for dialog work process, not background work process?? I have a lot of question mark on my head now..

Hope anyone facing dis issue before can help.

Cheers,

Isaac.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,285

Are you trying to pass data via EXPORT/IMPORT between two programs that are both running in background, or from an online session to a background process?... i.e. what are the two lots of program code that you are wanting to pass parameters between?

It would be fine for a background program to "export" data to a memory ID, then for the same batch program to submit another program that does the "import" from the same memory ID... but this method won't work for an online user doing an "export" and a batch job doing an "import" -> for this to work, you would need to persist the parameters so that the batch job can retrieve them.

If you can explain the scenario a bit more, will try to offer more help...

Jonathan

4 REPLIES 4
Read only

Former Member
0 Likes
1,286

Are you trying to pass data via EXPORT/IMPORT between two programs that are both running in background, or from an online session to a background process?... i.e. what are the two lots of program code that you are wanting to pass parameters between?

It would be fine for a background program to "export" data to a memory ID, then for the same batch program to submit another program that does the "import" from the same memory ID... but this method won't work for an online user doing an "export" and a batch job doing an "import" -> for this to work, you would need to persist the parameters so that the batch job can retrieve them.

If you can explain the scenario a bit more, will try to offer more help...

Jonathan

Read only

0 Likes
1,285

Hi Jon,

Thanks a lot for your help.

I found the problem already. It's because I was checking on sy-tcode, whereas sy-tcode is blank on background processing.

Really appreciate your help man.

Cheers,

Isaac.

Read only

Former Member
0 Likes
1,285

An error cause by myself.

In conclusion:

I realize that SY-TCODE is blank for background job.

Thanks.

Read only

0 Likes
1,285

This message was moderated.