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

How to use 'BAPI_DOCUMENT_CHANGE2' in SAPGUI FOR java

Former Member
0 Likes
1,169

Hello,everybody!

I met a question.

In unix, use sapgui for java, use function 'BAPI_DOCUMENT_CHANGE2' upload local file to document master record.

when calling 'BAPI_DOCUMENT_CHANGE2',

CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'

EXPORTING

documenttype = gt_doc-dokar

documentnumber = gt_doc-doknr

documentpart = gt_doc-doktl

documentversion = gt_doc-dokvr

documentdata = ls_doc

documentdatax = ls_docx

IMPORTING

return = ls_return

TABLES

documentfiles = lt_files.

how to write TABLES documentfiles-DOCFILE (it_files). now documentfiles-DOCFILE = '\home\sapgui\sapguiconf.txt',show error 'Error while checking in and storing: \home\sapgui\sapguiconf.txt'

PLEASE HELP ME.

THANK YOU!

Best Regards.

Vera Pang.

4 REPLIES 4
Read only

Former Member
0 Likes
935

who can help me?

Vera Pang.

Read only

0 Likes
935

Hello,

What is exactly the problem ?

I dont undertstand.

Thierry

Read only

Former Member
0 Likes
935

Dear,hello.

actually scene is:

OS:AIX UNIX SAPGUI FOR JAVA

1.se37,execute function 'BAPI_DOCUMENT_CHANGE2'

in function table parameters,

documentfiles-DOCFILE = '\home\sapgui\sapguiconf.txt'

2.return error message:

Error while checking in and storing: \home\sapgui\sapguiconf.txt'

now,call the function in SAPGUI for windows, uploaded the local file in windows,it is no problem.

how can i upload local original file in unix to SAP using function 'BAPI_DOCUMENT_CHANGE2' or other means.

Thank you!

Vera Pang.

Read only

0 Likes
935

Hello,

I dont use unix, but you can try to use the parameters docpath

I think more information in this tfread :

There is a person with the same problem. You can contact it for more informations.

Thierry