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

Attach document from application server using BAPI

Former Member
0 Likes
470

Hi,

I am trying to attach files to Document Info Record using BAPI

BAPI_DOCUMENT_CHECKIN_REPLACE2. When i execute the z program that calls this BAPI on

presentation server in foreground by giving path of documents which are locating on local pc it works

fine and check in the file in document infor record

But when i run program in background and file path is of application server.It gives error that

Program no longer started via RFC. No return possible.

I want to know the cause of this error.

Please help.

2 REPLIES 2
Read only

Former Member
0 Likes
399

i think u need to pass Storage category = FILESYSTEM.

check the documentation of data element -

DE CV_STORAGE_CAT

but i'm not 100% sure abt it.

regards

Prabhu

Read only

Former Member
0 Likes
399

BAPI does not work when we want to check in the document on application server. Now we have linked content server to R3 server. So document is stored in content server. BAPI works fine with the content server.But this BAPI does not work in background mode to do check in on the application server.