We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

EXIT_RGCPCU40_100 -

EXIT_RGCPCU40_100 -

BAL Application Log Documentation   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

General

Flexible upload is a universal tool enabling individual financial statement data generated from a non-SAP system to be imported into the FI-LC system via a file.

Data is imported record by record, checked for compatibility with the master data in the SAP system, and posted to the FI-LC summary database.

You can use the function exit EXIT_RGCPCU40_100 to modify the imported data and/or prompt the output of error messages before the upload program runs its check.

Technical description

  1. Import parameters
    1. I_METH: Upload method
    2. I_CATNR: Single-space character field
      '2': Transferred record is header.
      '3': Transferred record is data line.
    3. I_DATA: Character field
      Contains the header or data line imported from the file. The quotation marks ("...") enclosing the lines were removed.
    4. IT_CATALOG: Internal table of character type
      For I_CATNR = '2' this is identical with IT_CATALOG2 and for IT_CATNR = '3' it is identical with IT_CATALOG3.
    5. IT_CATALOG1, IT_CATALOG2, IT_CATALOG3: Internal tables of character type
      These contain the technical names for fields in the request screen (IT_CATALOG1), header (IT_CATALOG2) or data lines (IT_CATALOG3). The names are identical with the field names for the structure LCUPLOAD.
    6. IT_SPLIT: Internal table of character type
      The imported header or data line is stored in accordance with the definition of upload methods (fixed or variable column widths with a field separator) in character fields which are individually specified in the table IT_SPLIT.
  2. Change parameter
    1. C_UPLOAD: Structure LCUPLOAD
      The values found in the request screeen and in the header/data line are entered into the structure C_UPLOAD before the function module is called up. Changes can be made here, however you can only change those fields which appear in IT_CATALOG.
  3. Export parameter
    1. IT_ERROR: Internal table of character type
      Checks can also be carried out in the function exit. Names of those fields for which errors were found can be set in IT_ERROR, however these should only be fields contained in IT_CATALOG. These fields are marked in the log and the corresponding records are not posted.
    2. IT_CHANGES: Internal table of character type
      If the value of a field was changed in C_UPLOAD, the corresponding field name should be set in IT_CHANGES. The field will then be highlighted in color in the log.

Example:

The subsidiary sends information about profit center and business segments. This is coded in the transaction type: if this begins with 'A', the information concerns the profit center and if it begins with 'B', the information concerns the business center. The parent company manages this information in additional fields. Reassignment of keys takes place as follows:

read table it_catalog with key 'RMVCT'. check sy-subrc eq 0. case c_upload-rmvct(1). when 'A'. read table it_catalog with key 'ADFLD1'. if sy-subrc eq 0. c_upload-adfld1 = c_upload-rmvct. clear c_upload-rmvct. it_changes = 'ADFLD1'. collect it_changes. it_changes = 'RMVCT'. collect it_changes. else. it_error = 'RMVCT'. collect it_error. endif. when 'B'. read table it_catalog with key 'ADFLD2'. if sy-subrc eq 0. c_upload-adfld2 = c_upload-rmvct. clear c_upload-rmvct. it_changes = 'ADFLD2'. collect it_changes. it_changes = 'RMVCT'. collect it_changes. else. it_error = 'RMVCT'. collect it_error. endif. endcase.




SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3928 Date: 20200919 Time: 213731     sap01-206 ( 70 ms )