cancel
Showing results for 
Search instead for 
Did you mean: 

Document flow - Multiple Documents linking using crm_order_maintain

Former Member
0 Kudos

Hi All,

I need to link multiple business activities i.e. there is 1 source business activity and 2 or more target business activities to be linked using guids for business partners.

I am using CRM_ORDER_MAINTAIN and doc_flow table for the same. Rightnow we are calling the FM inside loop to achieve the result.

But can we know what other parameters or tables do we need to populate in crm_order_maintain if we want to link all the targets and one source document in a single call.

Thanks & Regards,

Swapnil.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Populate all the target business activities in the deep structure (DOC_LINK-OBJKEY_B) of the doc_flow table (CT_DOC_FLOW). DOC_LINK-OBJKEY_B will be the source business activity.

Thanks

Kamal

Former Member
0 Kudos

Alternate way of doing this is to call CRM_ORDER_MAINTAIN for all the target business activities with each call creating a document flow link with the source business activity.

Thanks

Kamal

Former Member
0 Kudos

Hi Shaik i have a similar requirement but in my case iam using BAPI_ACTIVITYCRM_CREATEMULTI to create activities and

i want these activities to be link to campaign element,i had a look at structure BAPIBUS20001_DOC_FLOW_INS and i see there are few fields in this structure like OBJKEY_A- Identification of a Reference Object for Items,OBJKEY_B-Identification of a Reference, i feel this were we have to pass some values if you wanna to link the activity with campaign element, i donno when to use

OBJKEY_A and when to use OBJKEY_B, can you please help me how can i do this is it possible to do it in same program while creating activity or has to be done seperately after the activity is created.

any more ideas you have please

Thanks