Ansicht
Dokumentation

/FRE/FU_DIF_INBOUND - DIF Occurrence Inbound Interface

/FRE/FU_DIF_INBOUND - DIF Occurrence Inbound Interface

BAL_S_LOG - Application Log: Log header data   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function processes DIF occurrence data (occurrence with texts, assignment records and memo) received via the inbound interface. It is called from the external connectivity inbound processing.

Features:

  • Sets SAP lock for the occurrence. An exception error message is created for each record that is locked by another process. All other records are posted to the database.
  • The memo string is extracted from the occurrence inbound structure if the X-field for the memo is set. It is converted into the F&R internal memo (notes) structure and key fields are added.
  • Merging of U-records with existing records according to X-fields. All attributes with X-field set are taken from the U-record, all others from the existing one. If no record exists for an U-record, for some tables the U-record is changed to an I-record.
  • Converts the DIF Occurrence value to the currency given in the DIF definition, if there is one. If no currency is passed via the inbound interface, no conversion is done.
  • Performs scaling of DIF Occurrence value with scaling factor from DIF definition. In case of overflow or zero result, the record is posted and an F&R exception is created.
  • Checks consistency of DIF Occurrence record after merging.
  • When a occurrence record is deleted, all dependent records (memo, short texts and assignment) are deleted automatically.
  • Returns table with error messages for all faulty records that could not be posted. The line numbers of the faulty records is returned. Messages include DIFNR as the first message variable.
  • The processing mode is indicated for each individual data record:
  • I - Insert

  • U - Update

  • D - Delete

  • All records passed to the function have the DIF Occurrence number correctly assigned:
  • New DIF Occurrences (I-records):

  • ,,External number assignment: Number must be given by external system.

  • ,,Internal number assignment: Number is populated by CON.

  • Existing DIF Occurrences (U- and D-records):

  • ,,The number can be given by the external system.

  • ,,If the number is not given by the external system, it can be derived from the DIF Occurrence reference field (REF_FIELD) that can be used as 'external key' by the external system.

  • The function is called for only one object at the time (DIF Occurrence including memo, short texts and assignments). That is, all records must have the same DIFNR.
  • External numbers (for location, location group and product) are converted to internal IDs by the caller. That means the existence of those objects is already checked.
  • It is possible that only parts of the object are transferred (for example, only assignment records for insert or deletion).
  • For DIF assignment records, only processing modes I and D are allowed. For all other records, I, D and U are allowed.
  • The function does not perform a database commit or rollback. The caller may perform a rollback in case not all records of one object could be posted.

Example

Notes

Further information





Parameters

ET_RETTAB
IT_DIF_ASSIGN_IN
IT_DIF_OCC_TXT_IN
I_CALL_IN_PARALLEL
I_DIF_OCCURR_IN

Exceptions

/FRE/CX_FU
/FRE/CX_FU_DIF_INBOUND_ERROR
/FRE/CX_FU_WRONG_PARAM
CX_STATIC_CHECK

Function Group

/SAPLFU_DIF_INBOUND

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

Length: 4472 Date: 20240328 Time: 234519     sap01-206 ( 59 ms )