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

bapi for creating documents in cv03n

Former Member
0 Likes
1,297

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
Read only

Former Member
0 Likes
940

Hi!

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

Regards,

Maxim.

Read only

Former Member
0 Likes
940

hi!

what is the difference between bapi_document_create and

bapi_document_create2 ( i am using 46c).

regards

yifat

Read only

0 Likes
940

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

Read only

Former Member
0 Likes
940

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