Ansicht
Dokumentation

GR4XY_CHECK_DATA - BAdI: Check Header and Item Data in Goods Receipts

GR4XY_CHECK_DATA - BAdI: Check Header and Item Data in Goods Receipts

Addresses (Business Address Services)   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This Business Add-In (BAdI) is used in the Inventory Management(MM-IM) component. You can use this Business Add-In (BAdI) to check the data in the document header, document item, subitem and serial number fields of goods receipts for purchase orders, production orders, goods receipts without reference, goods receipts for inbound delivery and subsequent adjustment of subcontracting purchasing documents processes.

Parameters

The following parameters are provided:

Import Parameters

  • GR4XY_HEADER:
Contains information about the document header of the goods receipt that is currently being processed (for example: SourceOfGR, InboundDelivery number, PurchasingDocument number, PurchasingDocumentTypeetc).
Note that depending on the goods receipt process, not all fields of this structure contain data.
  • GR4XY_ITEM:
Contains information about the corresponding document item of the goods receipt that is currently being processed (for example: InboundDelivery number, SourceOfGR, DeliveryDocumentItem, Material, StockType, MovementType, Quantitiesetc).
Note that depending on the goods receipt process, not all fields of this structure contain data.
  • GR4XY_SUBITEM:
Contains information about the component items of the subcontracting document items that are currently being processed in the subcontracting process (for example: InboundDelivery number, SourceOfGR, DeliveryDocumentItem, ComponentID, Material, Plant etc).
Note that depending on the goods receipt subcontracting process, this structure table is filled with values only when there is change on the component item through the Fiori App or through the changing parameter CHANGE_SUBITEM in the BAdI MMIM_GR4XY_PROVIDE_DATA for subcontracting purchasing document.
  • GR4XY_SERIALNUMBER:
Contains information about the serial numbers of the goods receipt that is currently being processed (for example: DeliveryDocumentItem, InboundDelivery, ParentItem, ParentComponentID, SerialNo).

Changing Parameters

  • MESSAGES:
Contains the messages with the check results (for example: MessageType and MessageText)

Notes

For some fields, restrictions apply:

  • GR4XY_HEADER - SOURCEOFGR, GR4XY_ITEM-SOURCEOFGR, GR4XY_SUBITEM-SOURCEOFGR, GR4XY_STOCKTYPE-SOURCEOFGR:
These fields have values according to the corresponding processes as follows:
  • Production Order: ‘PURORD’

  • Purchase Order: ‘PRODORD’

  • Inbound Delivery: ‘INBDELIV’

  • No Reference: ‘NOREF’

  • Subsequent Adjustment: 'SUBSQNTADJ'

  • MESSAGES-MESSAGETYPE:
This field needs to be assigned to one of the following message types:
  • S: Success

  • E: Error

  • W: Warning

  • I: Info

  • A: Abort

  • MESSAGES-MESSAGETEXT:
This field can be filled with free text with up to 200 characters






BAL_S_LOG - Application Log: Log header data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 4663 Date: 20240523 Time: 211603     sap01-206 ( 66 ms )