on 05-22-2006 12:57 PM
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
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
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.