cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with BAPI_DOCUMENT_CREATE2

Former Member
0 Kudos

Hello All,

I am using the Fm BAPI_DOCUMENT_CREATE2 to create a document.

I am passing the values as below.

DOCUMENTDATA :

DOC DOCUMENTNUMBER DO DOC DESCRIPTION

EDU 01000000_01 07 009 EDU01000000_01

DOCUMENTDESCRIPTIONS :

LA LA DESCRIPTION

EN EN TEST

DOCUMENTFILES :

ORIGI STORAGECAT WSA

1 ZDMS_MTC PDF

DOCFILE

D:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\009_07\EDU01000000_01.PDF

Now the FM is executed with out any error message.

But The Document is not created. I do not understand why.

Thanks,

Damodar.

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Dear Damodar,

please note to execute also function module BAPI_TRANSACTION_COMMIT after the CREATE2 BAPI. This is mandatory to realise the changes in the database tables.

Best regards,

Christoph

Answers (1)

Answers (1)

Former Member
0 Kudos

I have the same problem but I am using the bapi_transaction_commit.

The program execute correctly the BAPI_DOCUMENT_CREATE2 without a return message but no document is created.

But documents are created correctly in CV04N.

Edited by: KhalidTaibi on Aug 25, 2009 3:01 PM