A Setup for Basis Code 8 on Price Adjustment Detail

This appendix contains the topic:

A.1 Setting Up Price Adjustments With a Basis Code of 8

Price adjustments that you create with a basis code of 8 cause the server to call a user-defined business function to calculate the adjustment amount.

The following describes the requirements for setting up the adjustments and defining the parameters that the server passes to the user-defined function.

To set up adjustment detail

On Price Adjustment Detail

Create an adjustment level-break with the basis code of 8 and the name of the user program in the Factor field.

The following displays the parameters for the call to the user program.

Parameter Description Size and Type Input or Output Notes
PS@@6 Sales Order Detail (F4211) record image 1600 Alpha Input The system passes the F4211 record image left justified in the 1600 byte field.
#PCRCD Domestic Currency Code 3 Alpha Input This has the base currency code for the sales order.
#PCRDC Foreign Currency Code 3 Alpha Input This has the foreign (customer) currency code for the sales order.
#PADJ Domestic Adjustment Amount 29.9 Numeric Output The system populates this with the domestic adjustment amount calculated by the user program.
#PADJF Foreign Adjustment Amount 29.9 Numeric Output The system populates this with the foreign adjustment amount calculated by the user program. If the sales order is domestic, the server ignores this parameter.