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

Regarding BAPI_DOCUMENT_CREATE2

Former Member
0 Likes
704

HI,

I want to do in background job schedule for BAPI_DOCUMENT_CREATE2 ,

I have written a program for this BAPI, and uploading a file which is contain ( Doc_no,Doc_part,Doc_type and Doc_ver),

But this is working fine in Foreground ,but i would have requirement to do the same in Background,

Can anyone help what needs to be done ?

Thanks for your help.

Regards,

Prasad.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
652

If you use the GUI Upload functionality by using FM GUI_UPLOAD or the method GUI_UPLOAD of the class CL_GUI_FRONTEND_SERVICES does not works at background mode try to use the commands

OPEN DATASET and READ DATASET

4 REPLIES 4
Read only

Former Member
0 Likes
653

If you use the GUI Upload functionality by using FM GUI_UPLOAD or the method GUI_UPLOAD of the class CL_GUI_FRONTEND_SERVICES does not works at background mode try to use the commands

OPEN DATASET and READ DATASET

Read only

0 Likes
652

Hi,

Thanks for your answere, But my question is that, how to upload data instead of using GUI_UPLOAD or CLASS cl_gui_frontend services ? Because my requirement is that, it would pick a file from front end(Local drive or netwrok folder), run in backgorund,

they must schedule a job in Background!

Any other alternate solution for this ?

Thanks in Advance for your help.

Regards,

Prasad.

Read only

0 Likes
652

use OPEN DATASET statement

Read only

Former Member
0 Likes
652

Hi,

For foregroung uploading of file you can use Gui_upload,

But for backgroung uploading you can only upload the file

from the application server using Open Dataset and Read Dataset statements.

Hope it helps

Regards

Mansi