cancel
Showing results for 
Search instead for 
Did you mean: 

CRM - PPF- Method call - Help needed

Former Member
0 Kudos

Hi All,

I am new to CRM and trying to understand and use Post Processing Framework. My requirement is i have to make a web service call on saving a opportunity. My understanding is that PPF is analogous to Output management using Tcode: NACE.

So of the possible processing type i feel that i should be using "METHOD CALL".

Now, below are the things that i have tried and i am still not able to invoke the implementation of the BADI: EXEC_METHODCALL_PPF.

I have created an action profile as given in the below Wiki, and feel that there is a few other configurations that need done, so that on saving the opportunity the control flows to the method call that i have configured.

http://wiki.sdn.sap.com/wiki/display/CRM/Actionprofilesin+SAP-CRM

I have also gone through the links on HELP.SAP.COM, but not able to understand and put the bits and pieces together.

So, any help in achieving the above, or guidance/pointers to understand the PPF framework (i have gone through the help portal and still not able to crack it), or any documentation that is a step by step guide to achive a similar requirement would be really appreciated.

Please let me know if you need any more information,

Regards,

Chen

Accepted Solutions (1)

Accepted Solutions (1)

stephenjohannes
Active Contributor
0 Kudos

Very basic step I would suggest is have you assigned the action profile to your transaction type?

In addtion your actions should be setup for "execute immediately" or otherwise the action monitor batch job will need to be run in order for them to be processed.

Take care,

Stephen

Former Member
0 Kudos

Hi Stephen,

Thank a lot for taking time to help a novice,

No, i haven't assigned my action profile to a business transaction type, just to be sure i haven't missed anything else, below are the things i have covered/completed so far.

1) SPRO->CRM->Basic Functions->Actions->Actions in Transactions->Create actions with wizard.

a) Create New Action Profile - "ZTEST_OPPORTUNITY_WS_AP", date profile - blank, BOR - "BUS2000111"

b) Action Deifinition - "ZTEST_OPPORTUNITY_WS_AD"

c) Action details -> Processing Time = 'Immediate processing', Changeable in dialog, Exec in Dialod = 'X'

schedule automatically and Display in toolbox - blank.

d) Partner determination for the action - Set this as partner independent

e) Select Processing - Method call - Chose the method of the BADI implemented - EXEC_METHODCALL_PPF

f) Enter action description - "Test"

g) Assign Schedule Condition - None

h) Assign Start Condition - None

i) Complete.

2) SPRO->CRM->Basic Functions->Actions->Actions in Transactions->Assign Action Profile to the Business Transaction Type

Here i see that there is an existing transaction type - CXOP for opportunity, i copied this as "ZXOP" (not sure if this was the right thing to do).

Under Profiles, i changed the Action profile to the one i created above, and let the other values be the same as they were for CXOP

Text Det. Procedure CX000001 Opportunity

Partner Determ.Proc. CX000005 Opportunity

Status Profile CRMOPPOR

Org. Data Prof. CX0000000001 CRM Express - Org.Unit Resp. Employees

Partner Function ORG

Date Profile

Action Profile ZTEST_OPPORTUNITY_WS_AP

AP Procedure

Obj. Ref. Prof.

3) Now i go into "CRMD_BUS2000111" and pick an opportunity, change the description and save it. I tried creating an opportunity too, this is not triggering the call to the BADI method(i have added a pop up message in the method).

Please advise, on how to proceed.

Regards,

Chen

stephenjohannes
Active Contributor
0 Kudos

Chen,

I think your problem is you are trying to generate a popup via an action. Actions are meant for background and/or batch processing of data instead. Normally with actions you update the document or create output from the document. Action framework is not meant for dialog control.

What release are you on also? I assume you are working on a relase below CRM 2007, because the SAP GUI transactions for changing data are not supported in the newer versions of SAP CRM.

Take care,

Stephen

Former Member
0 Kudos

Hi Stephen,

Since i had chosen "immediate Processing" i thought the processing would happen within the same session. I guess i misunderstood the flow diagram in the below article.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70a838b7-019d-2b10-d693-dca85d7e3...

Anyways, i changed the logic to update a Z table within the method(instead of a message), and executed the opportunity using the WEB UI, still no luck,

Do you think i might have missed something in the configurations steps listed on my previous post?

Regards,

Chen

Former Member
0 Kudos

Hi,

Please make the setting of display in toolbar to "X"

Let me know in case if still it doesnt works..

Former Member
0 Kudos

Hi,

Tried setting the "Display in Toolbar" as 'X', still the same, let me describe my requirement at a high level,

On saving an opportunity, i need to update a few "Z" tables along with few other things, this i am trying to accomplish using PPF (which if i am correct is similar to message control using - NACE). As of now, i have not been able to get PPF trigger the method call.

Please look at my second post where i have given a brief account of all the settings and configurations i have tried, i feel that i have followed the steps as needed but still not able to figure out what is missing.

Thanks for your time and help.

Regards,

Chen

Former Member
0 Kudos

Hi,

Have you used interface as IF_EX_EXEC_METHODCALL_PPF and implemented the method EXECUTE?

Former Member
0 Kudos

Hi,

Yes i have implemented the interface "IF_EX_EXEC_METHODCALL_PPF".

Regards,

Chen

Former Member
0 Kudos

There should still be a schedule condition may be something like open or start and it should be scheduled automatically (as you have also done it) and processing time as when saving document

I had a requirement like yours and implemented it successfully

Answers (0)