Ansicht
Dokumentation

IDMX_DI_SOURCE_OIMFI - Check Data Sources Required to Form Original Input Message

IDMX_DI_SOURCE_OIMFI - Check Data Sources Required to Form Original Input Message

Addresses (Business Address Services)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you check the sources of the data that the system uses to compile the original input message (OIM).
You use the data listed in the Source of Data in Original Input Message table to check that the data the system requires for the OIM is stored in the correct place in your system, and where required, that you have used a Business Add-In (BAdI) implementation to incorporate the required data into the OIM.

The table below shows the combination of a group and field in the OIM, as defined by the Mexican authorities. To enable the system to form the OIM in the required order, the system must concatenate data for the individual fields in each group in a specific order. This means that there is not a one-to-one relationship between the groups defined by law and the groups that the system uses to form the OIM.

Since the system works with numbers and the legal definition works with letters for the fields within a group, you must use the latest legal definition of the OIM to find the internal number that the system uses for that field in the legal definition of the OIM. For example, field a in the group for document data corresponds to field 1 in the system, field b corresponds to field 2, and so on. The system numbers the fields in each group in consecutive, ascending numerical order. If the government introduces an additional field between a and b (a1, aa, or ab, for example) the internal number that the system assigns to that field will be 2, because it is the second field in that particular group. That therefore affects all subsequent numbers in that group.

For example, assume there is a problem with the contents of the data in one of the fields. The system outputs an error message that refers to group 1, field 3. Based on the contents in the table below, this combination corresponds to the following data in the legal definition of the OIM: field c (official document number) in the Document Data group.

Check the sources of data for each part of the original input message. For example, if your master data or Customizing settings are incomplete or incorrect, you can use the table below to identify fields or settings that you need to change.

Group in Legal Definition of OIM Field in Legal Definition of OIM Group in System to Form OIM Index of Field in System Data Source in System
Document data a. Version (versión) Group 1 Index 1 The XML Version field in the Customizing activity Specify XML Version for Digital Invoice.
Document data b. Official document prefix Group 1 Index 2 The Reference Document Number (XBLNR) field in the Billing Document: Header (VBRK) table.
Document data c. Official document number Group 1 Index 3 The Reference Document Number (XBLNR) field in the Billing Document: Header (VBRK) table.
Document data d. Date and time Group 1 Index 4 The Date on Which Record Was Created (ERDAT) and Entry Time (ERZET) fields in the Billing Document: Header (VBRK) table.
Document data e. Approval number Group 1 Index 5 The Approval Number field in the Customizing activity Assign Number Range for a combination of company code, document class, and approval year.
Document data f. Approval year Group 1 Index 6 The Approval Year field in the Customizing activity Assign Number Range for a combination of company code, document class, and approval number.
Document data g. Document type Group 1 Index 7 Derived based on the document type that you define in the Customizing activity Define Billing Types. Based on the billing type, the system inserts the corresponding text in line with Mexican law: ingreso (income), egreso (expense), or traslado (transfer).
Document data h. Payment method Group 1 Index 8 Based on the setting of the Installment Payment checkbox in the Customizing activity Define Terms of Payment. If you do not select the checkbox, or select the checkbox and enter only one installment, the system inserts the Spanish text Pago en una sola exhibición (only one payment). If there is more than one installment, the system enters the Spanish text Pago en <(número de pagos parciales)> parcialidades (payment made in <(number of partial payments)> partial payments).
Document data i. Payment terms Group 1 Index 9 For a combination of the language in the billing document and the ID of the Terms of Payment (ZTERM) field, the system reads the payments terms from the Customers: Terms of Payment Texts table in the language of the billing document.
Document data j. Subtotal Group 1 Index 10 The sum of each item multiplied by the unit price; without any surcharges, discounts, or taxes. The system reads the subtotal from the Subtotal 1 from pricing (KZWI1) field in the Billing Document: Item Data (VBRP) table.
Document data k. Discount Group 1 Index 11 The system calculates the total discounts by subtracting the subtotal (Subtotal 1 from pricing procedure for condition (KZWI1) field in the Billing Document: Item Data (VBRP) table from the net total (the Net value of the billing item in document currency (NETWR) field in the Billing Document: Item Data (VBRP) table).
Document data l. Total Group 1 Index 12 The system adds the subtotal less any discounts (see above) to the taxes stored in the Tax amount in document currency (MWSBK) field in the Billing Document: Header Data (VBRK) table.
Document data m. Means of Payment Group 1 Index 13 The way that the payment has been done, such as by bank transfer, cash or credit card. The system populates this field by taking the value in Spanish assigned to the field TEXT1 of the table T042Z
Document data n. Issuing Place Group 1 Index 14 The place where the invoice has been issued. The system reads from the company code the fields CITY and STATE and displays them separated by a space.
Document Data o. Account Number Group 1 Index 15 The account number assigned to the means of payment. The system reads the Bank Keyfrom (BANKL) from Customer Master (Bank Details)table (KNBK).
Document Data p. Exchange Rate Group1 Index 16 The exchange rate of the document. The system reads the Exchange rate (KURSF) field from the Accounting Document Header table(BKPF)
Document Data q. Document Currency Group 1 Index 17 The currency of the document. The system reads the Currency Key (WAERS) field from the Accounting Document Header table(BKPF)
Document Data r. Original Folio Group 1 Index 18 The number of the original document which payment is split into installments. Field is populated if Get Installment Data of Original Document BAdI method is implemented.
Document Data s. Original Prefix Group 1 Index 19 The series of the original document which payment is split into installments. Field is populated if Get Installment Data of Original Document BAdI method is implemented.
Document Data t. Original Date Group 1 Index 20 The creation date ofthe original document which payment has been split into installments. Field is populated if Get Installment Data of Original Document BAdI method is implemented.
Document Data u. Original Amount Group 1 Index 21 The total amount of the original document which payment has been split into installments. Field is populated if Get Installment Data of Original Document BAdI method is implemented.
Company code global data a. Company's tax number (rfc) Group 2 Index 1 The tax number stored in the Parameter Value (PAVAL) field in the Additional Specifications for Company Code (T001Z) table for the respective company code with the value MX_RFC in the Parameter Type (PARTY) field in the Company Code - Parameter Types (T001I) table.
Company code global data b. Company's name (nombre) Group 2 Index 2 The Name 1 field in the Addresses (ADRC) table.
Company address data a. Street (calle) Group 3 Index 1 The Street (STREET) field in the Addresses (ADRC) table.
Company address data b. House number (noExterior) Group 3 Index 2 The House Number (HOUSE_NUM1) field in the Addresses (ADRC) table.
Company address data c. Second house number (noInterior) Group 3 Index 3 The House Number Supplement (HOUSE_NUM2) field in the Addresses (ADRC) table.
Company address data d. Subdistrict (colonia) Group 3 Index 4 The Street 4 (STR_SUPPL3) field in the Addresses (ADRC) table.
Company address data e. Location reference (if any) (localidad) Group 3 Index 5 Not supported.
Company address data f. City Group 3 Index 6 The City (CITY1) field in the Addresses (ADRC) table.
Company address data g. District (Municipo) Group 3 Index 7 The District (CITY2) field in the Addresses (ADRC) table. If you do not store the district in this field, you use the Get District (GET_DISTRICT) method in the Customizing activity BAdI: Component-Independent Data Determination.
Company address data h. State (estado) Group 3 Index 8 The Description (BEZEI) field in the Customizing activity Insert Regions.
Company address data i. Country/Region (pais) Group 3 Index 9 The Country/Region Name (LANDX) field in the Customizing activity Define Countries/Regions.
Company address data j. Postal code (codigoPostal) Group 3 Index 10 The City Postal Code (POST_CODE1) field in the Addresses (ADRC) table.
Sales organization data a. Street (calle) Group 4 Index 1 The Street (STREET) field in the Addresses (ADRC) table.
Sales organization data b. House number (noExterior) Group 4 Index 2 The House Number (HOUSE_NUM1) field in the Addresses (ADRC) table.
Sales organization data c. Second house number (noInterior) Group 4 Index 3 The House Number Supplement (HOUSE_NUM2) field in the Addresses (ADRC) table.
Sales organization data d. Subdistrict (Colonia) Group 4 Index 4 The Street 4 (STR_SUPPL3) field in the Addresses (ADRC)table.
Sales organization data e. Location's reference (localidad) Group 4 Index 5 Not supported.
Sales organization data f. City Group 4 Index 6 The City (CITY1) field in the Addresses (ADRC) table.
Sales organization data g. District (Municipo) Group 4 Index 7 The District (CITY2) field in the Addresses (ADRC) table. If you do not store the district in this field, you use the Get District (GET_DISTRICT) method in the Customizing activity BAdI: Component-Independent Data Determination.
Sales organization data h. State (estado) Group 4 Index 8 The Description (BEZEI) field in the Customizing activity Insert Regions.
Sales organization data i. Country/Region (pais) Group 4 Index 9 The Country/Region Name (LANDX) field in the Customizing activity Define Countries/Regions.
Sales organization data j. Postal code (codigoPostal) Group 4 Index 10 The City Postal Code (POST_CODE1) field in the Addresses (ADRC) table.
Tax Regime Tax Regime of Document Issuer (Regimen) Group 5 Index 1 The tax regime as defined in Maintain Tax Regime Codes
Customer's identification data a. Customer's tax number (rfc) Group 6 Index 1 The Tax Number 1 (STCD1) field in the General Data in Customer Master (KNA1) table.
Customer's identification data b. Customer's name (nombre) Group 6 Index 2 The Name (NAME1) field in the Addresses (ADRC) table.
Customer's address data a. Street (calle) Group 7 Index 1 The Street (STREET) field in the Addresses (ADRC) table.
Customer's address data b. House number Group 7 Index 2 The House Number (HOUSE_NUM1) field in the Addresses (ADRC) table.
Customer's address data c. Second house number Group 7 Index 3 The House Number Supplement (HOUSE_NUM2) field in the Addresses (ADRC) table.
Customer's address data d. Subdistrict (Colonia) Group 7 Index 4 The Street 4 (STR_SUPPL3) field in the Addresses (ADRC)table.
Customer's address data e. Location reference Group 7 Index 5 Not supported.
Customer's address data f. City Group 7 Index 6 The City (CITY1) field in the Addresses (ADRC) table.
Customer's address data g. District (Municipo) Group 7 Index 7 The District (CITY2) field in the Addresses (ADRC) table. If you do not store the district in this field, you use the Get District (GET_DISTRICT) method in the Customizing activity BAdI: Component-Independent Data Determination.
Customer's address data h. State (estado) Group 7 Index 8 The Description (BEZEI) field in the Customizing activity Insert Regions.
Customer's address data i. Country/Region Group 7 Index 9 The Country/Region Name (LANDX) field in the Customizing activity Define Countries/Regions.
Customer's address data j. Postal code (codigoPostal) Group 7 Index 10 The City Postal Code (POST_CODE1) field in the Addresses (ADRC) table.

If there is more than one line item in an invoice, the sequence a, b, c, d, e, and f in group 7 below is repeated.

Goods or services sold a. Quantity (cantidad) Group 8 Index 1 The Actual Invoiced Quantity (FKIMG) field in the Billing Document: Item Data (VBRP) table.
Goods or services sold b. Unit of measure (unidad) Group 8 Index 2 The Sales Unit (VRKME) field in the Billing Document: Item Data (VBRP) table.
Goods or services sold c. ID number (noIdentificacion) Group 8 Index 3 The Material Number (MATNR) field in the Billing Document: Item Data (VBRP) table.
Goods or services sold d. Description (descripcion) Group 8 Index 4 The Description (ARKTX) field in the Billing Document: Item Data (VBRP) table.
Goods or services sold e. Unit price (valorUnitario) Group 8 Index 5 The system divides the net total in the billing document (the Net value of the billing item in document currency (NETWR) field in the Billing Document: Item Data (VBRP) table.
Goods or services sold f. Amount (importe) Group 8 Index 6 The Net value of the billing item in document currency (NETWR) field in the Billing Document: Item Data (VBRP) table.
Customs data a. Customs document number (numero) Group 8 Index 7 Not defined
Customs data b. Date when customs document was issued Group 8 Index 8 Not defined
Customs data c. Customs office where customers document was issued Group 7 Index 9 Not defined
Property account data a. Property account number Group 8 Index 10 Not defined
Supplement of goods or services data a. Supplement data Group 8 Index 11 The Get Supplement Data of the Line Item method in the Customizing activity BAdI: FI Data Determination.
Withholding tax data a. Withholding tax type Group 9 Index 1 The Get Withholding Tax Data method in the Customizing activity BAdI: FI Data Determination.
Withholding tax data b. Withholding tax amount Group 9 Index 2 The Get Withholding Tax Data method in the Customizing activity BAdI: FI Data Determination.
Withholding tax data c. Withholding tax type Group 10 Index 1 The sum of the withholding tax amount per withholding tax type.

If there is more than one tax type in the invoice, the sequence a, b, and c in group 10 below is repeated.

Taxes a. Tax type Group 11 Index 1 Based on the account key; for more information, see the Customizing activity Enter Tax Code Abbreviations.
Taxes b. Tax rate Group 11 Index 2 The Rate (Condition Amount or Percentage) (KBETR) field in the Conditions (Transaction Data) (PRCD_ELEMENTS) table.
Taxes c. Tax amount Group 11 Index 3 The Condition Value (KWERT) field in the Conditions (Transaction Data) (PRCD_ELEMENTS) table.
Taxes d. Total tax amount Group 12 Index 1 The sum of the Condition Value (KWERT) field in the Conditions (Transaction Data) (PRCD_ELEMENTS) table.
Supplement of document data a. Supplement data Group 13 Index 1 The Get Supplement Data of the Document Header method in the Customizing activity BAdI: FI Data Determination.

Index 1






CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 34445 Date: 20240523 Time: 215652     sap01-206 ( 309 ms )