cancel
Showing results for 
Search instead for 
Did you mean: 

Create Container Element for PFF Action Condition

Former Member
0 Kudos

Hi all!

In CRM5.0, I'm trying to define PPF actions in transaction CRMC_ACTION_CONF using fields which are not defined in the standard BOR object.

For instance, the standard container for the BOR Object BUS2000116 only has the Sold-To Party Business Partner.

I'd like to have as a condition field some attributes from that Business Partner.

We can create a Container Element in the conditions detail view, but how can we populate this element with the correct value?

Is this the best approach to define PPF Action Conditions using fields which are not defined in the standard BOR container?

Regards,

Dora

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hallo all,

the SAP-Note 865619 contains an example to use the BADI CONTAINER_PPF and the method: if_ex_container_ppf~modify_container. Perhaps it helps.

My problem is, I´am looking for an documentation of the badi and its methods. Can anyone help? I tried to find the badi in the IMG, but unfortunately my search was not successful. Any idea?

Best regards

Marc

Former Member
0 Kudos

We've implemented the start condition BADI EVAL_STARTCOND_PPF

But its never running - I have a filter ZZTEST

I then create a start condition called ZZTEST - with nothing else in it

Any ideas?

Former Member
0 Kudos

Hi Dora,

Here is the alternative approach that doesnt involve business object or container modification.

Lets take an example.

Say you want to schedule an action X

where sold-to-party BP has BPKIND (field in BUT000. not defined in BOR object) value = 'ZSME'. (as you described).

Implement BADI EVAL_SCHEDCOND_PPF.

Method: EVALUATE_SCHEDULE_CONDITION.

This method has following parameters:

<b>IO_CONTEXT</b>

Business object

<b>IP_PROTOCOL</b>

Application log

<b>IP_TTYPE</b>

Action name

<b>FLT_VAL</b>

Filter value

<b>II_CONTAINER</b>

Container

<b>EP_RC</b>

Return code (0 = condition fulfilled, <> 0 = condition not fulfilled)

In this method you can determine the value for field BPKIND for the given sold-to-party.

If BPKIND = 'ZSME' (fulfils schedule condition),

set EP_RC = 0

If BPKIND NE 'ZSME' (condition not fulfilled), set EP_RC <> 0.

You create an implementation of the relevant BAdI using transaction assigning a filter value.

You enter this filter value as the schedule condition in Customizing.

The BAdI is then executed for every action with this condition.

This way you can implement complex schedule conditions.

Please feel free to get back for further information if required.

Please reward points if this information helps you.

Regards

Kaushal

Former Member
0 Kudos

Hi Dora,

Does this solution help you.

Please let me know if your problem is solved.

Regards

Kaushal

Former Member
0 Kudos

I'm very interested on this development. The only thing, I'm working on CRM4.0 and this BADI doesn't exist. It only has the CONTAINER_PPF BADI with MODIFY_CONTAINER method.

Could you help me with this code?

Thanks in advance

Former Member
0 Kudos

Hello Javier,

Unfortunately this technique is not available in CRM4.0

We have to use condition editor.

What you can do over here is in the BADI that you have mentioned, fill the values for parameters in method

MODIFY_CONTAINER

Regards

Kaushal

Former Member
0 Kudos

Thanks a lot for your reply Kaushal, it helps me very much.

So, ¿what do you think it's the best (and easy) solution? ¿Extend my object (campaign) or use the CONTAINER_PPF BADI?

Thanks in advance

Javier Merino

Former Member
0 Kudos

Hi Javier,

I always prefer BADIs to modification or extension of business objects, escpecially when you just require those fields in just a few situations(like this one)

Regards,

Kaushal

Former Member
0 Kudos

Thank you very much Kaushal. I think I'll try to develop the BADI as you said.

Regards

Javier

Former Member
0 Kudos

Please close this thread

Regards

Kaushal

Former Member
0 Kudos

Hello, Kaushal.

We are implementing CRM 5.0 and we need to understand how to implement the BADI.

Can you explain in more details how to do it?

Thanks,

Julia

Former Member
0 Kudos

Hi Javier,

Any luck in using the BADI CONTAINER_PPF? I have the same requirement, i.e. changing one of the fields in the container. Can you tell me how you did it?

Your help will be highly appreciated.

Former Member
0 Kudos

Hi,

We finally made a BOR extension option because our developer experience. Excuse me but I can't tell you more about the BADI development,

Regards

Javier Merino

Former Member
0 Kudos

Maybe this BADi wil help you : COM_PARTNER_BADI

Check and try it.

Best regards

Abdo ABI ATMI