SAP ABAP IMG Activity PYIN_ESS_CLM_BADI_93 (BAdI: Process Attachments)
Hierarchy
EA-HRCIN (Software Component) Sub component EA-HRCIN of EA-HR
   PY-IN-PS (Application Component) INDIA PUBLIC SECTOR
     PAOC_PAD_IN_PS (Package) HR IN: India Public Sector
IMG Activity
ID PYIN_ESS_CLM_BADI_93 BAdI: Process Attachments  
Transaction Code S_P7H_77000252   (empty) 
Created on 20120220    
Customizing Attributes PYIN_ESS_CLM_BADI_93   BAdI: Process Attachments 
Customizing Activity PYIN_ESS_CLM_BADI_93   BAdI: Process Attachments 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HRPBSIN_PROCESS_ATTACHMENTS    

Use

This Business Add-In is used in the Advanced Claims (PY-IN) component.

This Add-In enables you to store the attachments generated by the Advanced Claims component, on any third party server to minimize the consumption of storage space on the ERP Central Component (ECC) database server.

In the standard SAP solution, you store the attachments in PCL4 cluster table. Due to their large size, these attachments consume a lot of storage space on the ECC database server. To avoid this, you can use this BAdI to store the generated files on any third party server.

You can use the following methods in the BAdI with the corresponding import, change and export parameters as per your requirements:

1.    CREATE_ATTACHMENT

You can use this method to create the attachments on any third party server.

  • Importing Parameters
    • IST_TRANS - Transaction data of the claim
    • IFD_REFNR - Reference number of the claim
    • ITB_FDATA - Attachments data
  • Exporting parameters
    • ETB_ERRTB - Table to store the error details
    • EFD_EFLAG - Error flag
    • EFD_DFLAG - Flag to check if third party is DMS
    • ETB_CLFDAT - Table to store the file data stored in third party server

2.    DELETE_ATTACHMENT

You can use this method to delete the attachments that you have stored in the third party server.

  • Importing Parameters
    • IST_TRANS - Transaction data of the claim
    • IFD_DFLAG - Flag to check if third party is DMS
    • ITB_CLFDAT - Table to store the file data stored in third party server
  • Exporting parameters
    • ETB_ERRTB - Table to store the error details
    • EFD_EFLAG - Error flag

3.    MODIFY_ATTACHMENT

You can use this method to modify the attachments stored in the third party server.

  • Importing Parameters
    • IST_TRANS - Transaction data of the claim
    • ITB_FDATA - Attachments data
  • Exporting parameters
    • ETB_ERRTB - Table to store the error details
    • EFD_EFLAG - Error flag
    • EFD_DFLAG - Flag to check if third party is DMS
    • ETB_CLFDAT - Table to store the file data stored in third party server

4.    RETRIEVE_ATTACHMENT

You can use this method to retrieve the attachments stored in the third party server.

  • Importing Parameters
    • IST_TRANS - Transaction data of the claim
    • IFD_ DFLAG - Flag to check if third party is DMS
    • ITB_CLFDAT -Table to store the file data stored in third party server
  • Exporting parameters
    • ETB_ERRTB - Table to store the error details
    • EFD_EFLAG - Error flag
  • Changing Parameters
    • CTB_FDATA - Attachments data

Requirements

You should only carry out this step if both of the following points apply:

  • The SAP standard processes do not suit your needs
  • You are a competent ABAP/4 programmer

Standard settings

In the standard SAP solution, the Business Add-In is not activated.

Activities

After calling up the Customizing activity, a dialog box appears, in which the existing implementations are displayed. Choose Change, and proceed as follows:

  1. From the tab index, choose Interface.
  2. Place the cursor on the method, and double-click to enter method processing.
  3. Enter the coding for the implementation between the statements method if_AC_PROCESS_ATTACHMENTS ~ <Name of method> and endmethod.
  4. Save and implement your coding. Return to the Edit Implementation screen.
  5. Save the entries on the Edit Implementation screen.
    Note
    You can also change the implementation, and then activate it at a later time. In such a case, end the processing stage at this point.
  6. Choose Activate
    The coding you stored in the method will be run when the application program is executed.

Example

To display the sample code, choose Goto -> Sample Code -> Display

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 1   Mandatory activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
PYIN_ESS_CLM_BADI_93 IN India
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20120220 
SAP Release Created in