‎2005 Mar 23 8:25 AM
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
‎2005 Mar 23 8:56 AM
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
‎2005 Mar 23 9:16 AM
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.
‎2007 Oct 02 9:29 AM
‎2007 Oct 25 2:18 PM
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
‎2025 Mar 02 3:25 PM
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