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

Problem when calling function module CV120_DOC_CHECKOUT_VIEW in background

Former Member
0 Likes
1,811

Hi ,

I'm currently developping an abap program which extract document from KPRO for printing into a windows Folder.

For this I use standard function module CV120_DOC_CHECKOUT_VIEW.

When i run my program in foreground task there's no problem, but when i run it in background task the extract doesn't work. It seems that the system cannot connect to the Windows Network.

Whe the program is running in foreground task, the function module user SAPHHTP RFC destination, when it runs in background task it use SAPFTP destination .

Does somebody can help me ?

thanks in advance

5 REPLIES 5
Read only

Former Member
0 Likes
1,324

Hi,

You are writing this onto the windows folder of the pc on which SAPGUI is running, is that assumption correct?

For background execution, there is no dialog, hence no GUI hence no PC (or windows client) to connect to.

cheers,

Ajay

Read only

0 Likes
1,324

Hi Ajay,

The program extract document into a folder on Windows Network that means on a server not on a PC .

I know that in background task ther's no connection with sapgui.

For example when i want to create a file on network n background task i use OPEN_DATASET instruction and that works fine.

My problem is the use of the standard function module CV120_DOC_CHECKOUT_VIEW in background task because when this function module is running in background task it use the SAPFTP rfc destination instead of SAPHHTP rfc destination in foreground task . I check the RFC destination , thoses works both . SO i think the problem comes from parameters given to the function module.

Regards.

Read only

Former Member
0 Likes
1,324

Problem solved by myself

Read only

0 Likes
1,324

Hi Bertrand !

I try to use the function CV120_DOC_CHECKOUT_VIEW by visual basic via

rfc connection, however the function run ok when i execute it from R3

and the function doesn't run ok when i execute it from VB RFC.

Can you tell me please what should be the functions parameters ( Hostname,platform, etc.) , and how to get them?

are there any documenting ? about executing the function in via RFC mode?

Thanks

Moshe

Read only

ravitwip
Discoverer
0 Likes
1,043

Hi , I am still looking to run this FM in background and save file in PC . for location i already passed hard coded . Running on frontend every thing is fine .But because need to download 3 month file that has huge size want to run in backgrond . Let me know if any advice