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

GUI_UPLOAD FM in a batch program

Former Member
0 Likes
1,967

Is is possible to use FM GUI_UPLOAD in a batch program? I am thinking about a program that will grab, one by one, every csv file in a particular directory and processing them (entering orders). How would one use this FM in a batch process?

Regards,

Davis

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,241

No, u can use this only in foreground not in batch mode. in batch mode you will have to use open dateset statement.

A

6 REPLIES 6
Read only

Former Member
0 Likes
1,242

No, u can use this only in foreground not in batch mode. in batch mode you will have to use open dateset statement.

A

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,241

No, generally you can not use the GUI_UPLOAD in a background process, because there is no connection to the frontend. The file must be on the application server and you can access it using the DATASET statements.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,241

No ,You should not use GUI_UPLOAD if the file from application server( Unix directory).

You should use open dataset command.

Please press f1 on open dataset -> here you get good documentation.

Thanks

Seshu

Read only

ferry_lianto
Active Contributor
0 Likes
1,241

Hi Davis,

Are you running the batch program in background mode with FM GUI_UPLOAD?

If you are then you can not use FM GUI_UPLOAD. You need to use OPEN DATASET statement.

If you are running online perhaps you can ...

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,241

Generally considered impossible, but apparently not. Please see:

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2">Comunication to Presentation Server in Background Mode</a>

But I've never heard of anyone actually implementing this, so I don't know if it really works.

Rob

Read only

Former Member
0 Likes
1,241

Thanks to all who responded. I didn't think that the FM would work in background but I wasn't sure. Thanks again!

Davis