Ansicht
Dokumentation
FSH_BADI_ARUN - BAdI: Enhancements to Order Allocation Run
rdisp/max_wprun_time - Maximum work process run time RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used in the Order Allocation Run (LO-RFM-ARN) component.
You can use this BAdI to create your own implementations and customize the following steps when you execute an
- Requirement Selection
- Stock Selection
- Requirement Filter
- Before Requirement Grouping
- After Requirement Grouping
- Requirement Sorting
- Determination of Release Rule
- Preparation for Allocation
- Allocation List
- Before Saving to DB
- After Saving to DB
- Stock Sorting
- Allocate Remaining Quantities
- Change Release Rule
This BAdI is optional.
Methods
The following methods are available: Note
MT_REQMT, MT_STOCK, MT_ALLOC are internal tables used for processing.
- REQUIREMENT_SELECTION
- After requirement selection, all SOs and STOs are updated in the table MT_REQMT. You can use this method to change the table where these details are updated.
- STOCK_SELECTION
- After stock selection, all stock types are updated in the table MT_STOCK. You can use this method to change the table where these details are updated.
- REQUIREMENT_FILTER
- After the requirements are filtered using the standard requirement filter check, you can remove any extra requirements using this method.
- BEFORE_REQUIREMENT_GROUPING
- Before the requirements are grouped, you can add and arrange the customer fields using this method. You can map fields such as CUFLD_01 to values as needed.
- AFTER_REQUIREMENT_GROUPING
- After the requirements are grouped, internal and external groups are formed based on Customizing settings. You can rename these groups using this method.
- REQUIREMENT_SORTING
- Before the requirements are sorted, you can add and arrange the fields using this method. You can also map fields such as CSOFL_01 to values as needed.
- DETERMINE_RELEASE_RULE
- Release rules can be determined based on the determination logic and external groups. After the release rules are determined, you can overwrite the release rule for a particular sales order or STO by using this method.
- ALLOCATION_PREPARE
- The requirements are available in the MT_REQMT table and the stock is available in MT_STOCK table. You can use this method to modify the MT_REQMT and MT_STOCK tables before they are used to form the final allocation table MT_ALLOC.
- ALLOCATION_LIST
- Before the allocation list is displayed, you can use this method to change the values of fields that appear in the allocation result list.
- BEFORE_SAVE_TO_DB
- This method is called before saving the data to the database. The data from internal requirements, stock, and the allocation table are updated in the database tables. You can use this method to change the internal tables as required.
- AFTER_SAVE_TO_DB
- This method is called after saving the data to the database. You can use this method to update your own internal tables. You can also write internal reports as required.
- STOCK_SORTING
- This method is called before allocation. You can use this method to change the sorting sequence of the stock selected for a requirement. This method uses the variable CV_STOCK which holds the total stock of the selected requirement.
- ALLOCATE_REMAINING_QUANTITIES
- This method is called during allocation and is applicable only for spread allocation logic. You can execute this method only if you have not selected the Allocate Remaining Quantities checkbox in the Customizing activity Maintain Allocation Logic.
- Based on the allocation results, you must update the following fields for stock, allocation, and requirement tables:
- Stock Table (CT_STOCK)
- FSH_SOPEN_QTY (Open Stock Quantity which can be allocated)
- FSH_SALLOC_QTY (Allocated Stock Quantity)
- UPD_IND (Update Stock in database table)
- Allocation Table (CT_ALLOC)
- FSH_ALLOC_QTY (Allocated Quantity)
- FSH_OPEN_QTY (Unallocated Quantity)
- Requirement Table (CT_REQMT)
- FSH_ROPEN_QTY (Open Quantity)
- FSH_RALLOC_QTY (Allocated Quantity)
- CHANGE_RELEASE_RULE
- This method is called before you apply the release rule in parallel ARun. You can use this method to change release rule (FSH_REREG) ID associated with the entries in the requirement table (CT_REQMT).
For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).
For information about implementing BAdIs as part of the Enhancement Framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View → Application Server → Application Server ABAP Application Development on AS ABAP→ ABAP Customer Development → Enhancement Framework.
TXBHW - Original Tax Base Amount in Local Currency RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 6925 Date: 20240523 Time: 201851 sap01-206 ( 94 ms )