cancel
Showing results for 
Search instead for 
Did you mean: 

get activity by reference

former_member196079
Active Contributor
0 Kudos

Hi experts

i've a little problem...i must get the activity number using the field reference...

in the reference field i can define the reference of the activity(campaign, complaint, opportunity and so on).

in my case i've as reference a campaign....

anybody can help me??

best regards

Marco

Accepted Solutions (0)

Answers (3)

Answers (3)

Subhankar
Active Contributor
0 Kudos

Hi,

I think you are talking about SAP CRM Campaign and activity. To get the reference data you can use the FM CRM_DOC_FLOW_READ_DB.

Thanks

Subhankar

former_member196079
Active Contributor
0 Kudos

Hi Subhankar Garani

yes the FM is correct for the data..but i need the inverse step....

so..having the reference i must get the activity.

Marco

Subhankar
Active Contributor
0 Kudos

Hi,

You have the reference number . From this reference number you will get the header guid from CRMD_ORDERADM_H. Then pass this header guid to this FM. Then you will get the details.

Thanks

Subhankar

former_member196079
Active Contributor
0 Kudos

Hi Subhankar Garani.

Thanks for your suggestion, but you can explain me how i can get the header guid from CRMD_ORDERADM_H using

the guid of the reference???

i've the guid of the campaign(table CGPL_PROJECT) and using this guid i must read all the business activity whit an reference at this guid(CAMPAIGN).

Best regards

Marco

Edited by: Menegazzo Marco on Jan 24, 2011 11:10 AM

Former Member
0 Kudos

It would help to know which transaction you see this data in.

Rob

former_member196079
Active Contributor
0 Kudos

I give any data informations

In crmd_order in the first page you can find an selection with tittle "relationship".in this section u can see 4 field (activity,opportunity, do not use, Campaign.)

I must find the activity using this field campaign (CRMT_2000_REFERENCES_UI-OBJECT_ID4)

in web guid i can give the component information

UI component -> BT126H_APPT

contextnode -> BTDOCFLOW

view ->BT126H_APPT/ApptDetails

attribute ->OBJTYPEA

thanks for the help

former_member201275
Active Contributor
0 Kudos

That's really not a lot to go on.

Are you sure this should be in abap forum?

former_member196079
Active Contributor
0 Kudos

yes because a need any table or any fm for link reference with activity