on 10-27-2009 10:46 AM
Hi there,
i want to create an activity with reference to the order. Like you can do it in WebUI. To create an activity i actually use the Bapi BAPI_ACTIVITYCRM_CREATEMULTI. To test the Bapi i use the CRM_CALL_ACTIVITY_INTERFACE Programm.
Now if i enter the object id (guid) and bor object type of the related order header in the object link section it doesnt work. I get a short dump which says that i want to create an item relation without a header realation.
So has anybody some ideas for me?
Bye Richard
Thanks i have solved it the same way as suggested
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Richard,
Try to fill the 'Object Link' data like this:
Object ID: Your Order GUID
BOR Object Type: Your Order Object type (BUS2000116 if service order)
Relatshp Cat.: INTO (this is the relation type I mostly use, but check within your scenario)
Level: A (header level)
Kind regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use FM, CRM_ORDER_MAINTAIN to create follow up documents.
you need to fill the parameters.. ct_doc_flow, ct_input_fields ..
See some sample code, below..
CLEAR : ls_doc_flow, ls_doc_link .
ls_doc_flow-ref_kind = lc_ref_kind.
ls_doc_flow-ref_handle = lc_ref_handle.
ls_doc_link-objkey_a = p_lv_guid. "Guid of Preceding Doc
ls_doc_link-vona_kind = 'A'.
ls_doc_link-handle_b = '1'.
ls_doc_link-brel_kind = 'A'.
ls_doc_link-brel_mode = 'A'.
INSERT ls_doc_link INTO TABLE lt_doc_link.
ls_doc_flow-doc_link = lt_doc_link.
APPEND ls_doc_flow TO lt_doc_flow.
Thanks,
Sreekanth
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.