Ansicht
Dokumentation

PI_COUNT_SCAN_CHANGE - BAdI: Changing of Scan Results for Physical Inventory Counts

PI_COUNT_SCAN_CHANGE - BAdI: Changing of Scan Results for Physical Inventory Counts

RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

The Business Add-In (BAdI) is used in the Inventory Management(MM-IM) component.

You can use this BAdI to change items in the function response of the default SAP coding for the scan in the app Manage Physical Inventory Count.

The import parameter KEY contains a string with the scan result and the keys of a physical inventory document items (optional), that indicates on which screen the scan was triggered.

If the parameters FiscalYearand PhysicalInventoryDocumentin the structure are initial, the scan was triggered on the list report. If the parameters FiscalYearand PhysicalInventoryDocumentin the structure are filled, the scan was triggered on the detail page of the corresponding document.

The changing parameter CHANGE_ITEMS contains all items that were found by the default SAP coding. Note, this parameter is empty if the default SAP coding is disabled by the BAdI BAdI: Disablement of Default Scan Coding for Physical Inventory Counts (MMIM_PI_CNT_SCAN_EXECUTE_DFLT).

When the system executes the BAdI BAdI: Changing of Scan Results for Physical Inventory Counts(MMIM_PI_CNT_SCAN_CHANGE_RESULT), all items in the changing parameter CHANGE_ITEMS are returned by the RAP function and send to the frontend.

If you only provide one line in this table with the fields FiscalYearand PhysicalInventoryDocumentfilled and the field PhysicalInventoryDocumentitemempty, the app will navigate from the list report to the detail page of the corresponding document.
If you provide one or multiple physical inventory document items of one document, the app will set a filter to this items in the item table of the object page and, if necessary, navigate from the list report to the object page.
If you provide multiple items from different physical inventory documents, the app will display a dialog to select a specific document (only on list report). On this dialog the additional fields Material, PlantName, StorageLocation, PhysicalInventoryStockTypeName, InventorySpecialStockTypeName, and Batchcan be displayed.
If a scan was triggered on the object page, only provide items of the corresponding document of the object page. Only items of this document can be processed.
Note
Do not fill the fields QuantityInUnitOfEntry, UnitOfEntryand, PhysicalInventoryItemIsZero, as they may be interpreted by the app Manage Physical Inventory Countin the future as well.

Message Handling

Inside the customer coding you can fill the changing parameter MESSAGE with a message text and severity. If you have filled this parameter, the app Manage Physical Inventory Countwill display the message in a message popup.

  • The Business Add-In is active in the standard system.
  • The Business Add-In can be used more than once.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.






TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.

Length: 4710 Date: 20240523 Time: 201827     sap01-206 ( 127 ms )