cancel
Showing results for 
Search instead for 
Did you mean: 

How to view code for, or copy, standard VOFM pricing routines in S/4HANA Cloud?

former_member803556
Discoverer

Hi Sales/OTC Experts -


As part of implementing EDI 850/860 messages for my client, I am utilizing the standard pricing conditions DCEV, PCE1 (with Alt. Calc. Condition Amount Routine 9), and PCE2 (with Alt. Calc. Condition Amount Routine 8 ) as outlined in SAP documentation: Customer-Expected Price.


However, to meet my client's requirements, I want to create a copy of routines 8 and 9, and add logic to first set the value of the condition line equal to XWORKF, and then let the standard code for each of the routines run.
I'm following the SAP Help Portal documentation Custom Logic: Condition Amount , SAP Note 2885513 - VOFM - Pricing custom routine in SAP S/4HANA Cloud, and an SAP best practices deck on pricing enhancements that I found.

But I'm unable to figure out to copy an existing standard routine, or at least view the code of an existing standard routine, so that I can try to copy/paste into my new one.

Thoughts?

For reference, here are the old-school program names for those routines: FV64A008 and FV64A009. And if I had access to an On-Premise system with full IMG, I could of course easily view the code for these via VOFM!

Thanks,

Ryan

OwenLiu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Removed the general tag.

Accepted Solutions (0)

Answers (1)

Answers (1)

vinita_kasliwal
Active Contributor
0 Kudos

Hey Ryan

Can you follow these steps and see if it helps in custom fields and logic just create a new one and you can go to the editor and write your own code there.

In your pricing example I think your business context would be pricing and when you go inside the editor you need to populate and populate this parameter

* Set the requirement always to true in the prestep execution.

pricingrequirementisfulfilled = 'X'.

"This Business Add-In (BAdI) is used in the Pricing and Conditions (SD-BF-PR) component. You can use this BAdI as a tuning measure for pricing requirements that first checks the document fields. If the result of this check is negative, the document item fields do not have to be checked.

The method IS_PRCG_REQUIREMENT_FULFILLED allows you to check if the pricing requirement is fulfilled for the step in the pricing procedure or the access in the access sequence."

Let me know if that helped

Regards

Vinita