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_DOCUMENT_CREATE2 object link

Former Member
0 Likes
1,676

Hi guys

I created Purchase Req number "1xxxxxxxx" and item number "10".

I want to attach the original file to PR document using DMS by using addon program.

so i am using BAPI_DOcument _Create2 to do this.

I am not sure where the PR number and item can be mentioned in object link BAPI parameter.

I can only see below object level declaration.

lt_drad-objecttype = 'MARA' or "EBAN".

lt_drad-objectkey = 'M4711'.

APPEND lt_drad to tab_drad.

Once you go Object link tab in CV01, i will select Purchase Req item tab in Object key tab and set the PR number and item manually. but how to do this using BAPI.

Pls suggest me

Edited by: princeck on Dec 2, 2010 7:22 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,124

Hi all

Can anybody shed light on this.

I would also like to know how the Object link->Network setting in CV01N can be done using bapi for below

- Network and Activity values

Which parameter has to be used?

btw. lt_drad-objectkey is PR number? pls confirm.

Regards

Ckumar

3 REPLIES 3
Read only

Former Member
0 Likes
1,125

Hi all

Can anybody shed light on this.

I would also like to know how the Object link->Network setting in CV01N can be done using bapi for below

- Network and Activity values

Which parameter has to be used?

btw. lt_drad-objectkey is PR number? pls confirm.

Regards

Ckumar

Read only

0 Likes
1,124

Hi there ,

btw. lt_drad-objectkey is PR number? pls confirm.-->it should be Header+Item Number(complete length)...

regards

Prabhu

Read only

Former Member
0 Likes
1,124

Hi Prabhu

Thanks for the support.

I will close the thread by giving points

Thanks

Ckumar