Application Development 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: 

bapi for creating documents in cv03n

Former Member
0 Kudos

hi!

i am looking for a bapi to create document in cv03n and open an objectlink tab.

I need to transfer the following parameters:

document type = 'ENG'

tables:

objectlink: objecttype = 'AENR'

objectkey = change number field.

regards

yifat

4 REPLIES 4

Former Member
0 Kudos

Hi!

Your BAPI is BAPI_DOCUMENT_CREATE. There is TABLES parameter OBJECTLINKS you have to populate.

Regards,

Maxim.

Former Member
0 Kudos

hi!

what is the difference between bapi_document_create and

bapi_document_create2 ( i am using 46c).

regards

yifat

0 Kudos

Hi Yifat,

BAPI_DOCUMENT_CREATE2 is the lastest release BAPI.BAPI_DOCUMENT_CREATE is a bit older.

I Think you were having some problem with the bapi BAPI_DOCUMENT_CREATE2 right?

What exactly are you looking for?

Regards,

Ravi

Former Member
0 Kudos

hi!

i used the create item to open document and that was o.k,

but i also wanted to open objectlink tab and it didnt work.

i transfered documentdata-doctype = 'ENG'.

objectlinks-OBJECTTYPE = 'AENR'

objectlinks-OBJECTKEY = value of change

number

the system grants documentnumber internally and automatically.

regards

yifat