Question:
Hi Experts
I need some help moving an existing lead from one opportunity to another!!
As I see the Scenario, You first create a lead. Then U can create a Opportunity as follow-up to that lead.
Afterwards you have the possibillity to create an new lead as a follow-up within the newly created opportunity (Confused???)
We have the need to move an already created lead - which have not yet resultet in an opportunity - to be "moved" as a follow-up to an existing opportunity. IS THAT POSSIBLE?????
I hope U understand my problem!!!???
Best regards
Carsten
Answer:
Hi Carsten,
I don't think you can achieve this using standard functionality.
We have created our own functionality to link two existing documents. We have used the function module 'BAPI_REL_CREATERELATION' to achieve this.
Hope this helps.
Raoul
Answer:
Hi Raoul
Thank U for your answer. I have been looking at the
FM: BAPI_LEAD* May be that I could use these??
Or maybe U would send me some ABAP code I could use???
My email: ces@kmd.dk
Best regards
Carsten
Answer:
Carsten
we have linked an existing contract to an existing activity in the following way:
ls_objects-objkey_a = lv_guid_ref. (the guid of the contract)
ls_objects-objtype_a = 'BUS2000121'.
ls_objects-objkey_b = lv_order_guid. (the guid of the activity)
ls_objects-objtype_b = 'BUS2000126'.
ls_objects-relation = 'VONA'.
CALL FUNCTION 'BAPI_REL_CREATERELATION'
EXPORTING
OBJECTS = ls_objects
IMPORTING
return = lt_return.
Hope this helps
Raoul
Answer:
Do you know if this solution works for linking opportunities (BUS2000111) to activities (BUS2000126)?
I've test run the BAPI, but have not created anything...
Any help grately appreciated!
Answer:
Hi again.
And my need is to link between an existing Opportunity (BUS2000111 or BUS000130) and a Lead (BUS000108)
I've test run the BAPI, but have not created anything...
Any help grately appreciated!
Have a nice day.
Carsten
Answer:
Cartsen
Maybe you have to perform a commit?
Did you check the return-table?
Raoul