Ansicht
Dokumentation

GLE_MCA_DOC_REL_ATTR - BAdI: MCA Document Release Structure Processing

GLE_MCA_DOC_REL_ATTR - BAdI: MCA Document Release Structure Processing

BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the MCA document release processing.

You can use this Business Add-In (BAdI) to influence the release attributes, checks, and messages:

  1. The custom attributes in the release attribute structure GLE_STR_MCA_DOC_RELEASE can be filled. The attributes from the line item (cost center, profit center, functional area, business area, partner profit center and so on) can be filled.
  2. The custom checks can be performed before the final release or reject of the MCA document.
  3. The calculate operations can be performed from the approval dashboard for the selected line items in the dashboard.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

You can implement the following methods:

  • FILL_MCA_DOC_REL_ATTRIBUTE:
The release structure GLE_STR_MCA_DOC_RELEASE can be enhanced with an append structure. This method fills the custom attributes in the release criteria structure to influence the release relevancy and agent assignment criteria. This method can fill the line item attributes like profit center, cost center, functional area etc. in the release structure. By default, these attributes are filled with the first line item attributes in the document.
Importing parameter:
-,,I_STR_MCA_DOC_SND_REL of the GLE_STR_MCA_DOC_SND_REL type.
,,This is the release structure for the MCA document with RUN ID as key
- ,,I_TAB_POSTLINE of the GLE_MCA_TAB_POSTLINE type.
,,This is the table of postline items in the document.
Exporting parameter:
E_RC of the SYST_SUBRC type.
Changing parameter:
C_STR_REL_CRITERIA of the GLE_STR_MCA_DOC_RELEASE type.
This includes the standard release criteria attributes. You can enhance this structure using custom fields by creating an append structure.
  • CHECK_BEFORE_RELEASE
There can be additional checks added before the MCA document run ID is finally released or rejected.
Importing parameter:
  • I_RUN_ID of the,,GLE_MCA_DTE_RUNID type.

This is the key for the document to be release/rejected.
  • I_USER_ACT of the BCA_DTE_ACTIVITY type, indicating the activity.

Where activity 43 is for release and activity 06 for reject
Exporting parameter:
  • E_TAB_MESSAGE of the BAPIRETTAB type for messages

  • E_RC,,of type SYST_SUBRC to indicate an error (where E_RC does not equal 0)

  • CALCULATE_BULK_RELEASE
This method is called in the approval dashboard for the action “calculate”. A calculation can be performed to the selected lines. For example, the total amount of all the selected lines can be calculated and displayed. This will provide the user with additional information on the bulk approval and reject.
Importing parameter:
  • I_TAB_PARKED_DOC of the type GLE_TAB_MCA_PARKED_DOC_LIST is the table of MCA document header details

  • I_USER_ACT of the BCA_DTE_ACTIVITY type which indicated the activity (for example, 43 is for release and 06 is for reject)

Exporting parameter:
  • E_TAB_MESSAGE of the BAPIRETTAB type: This is the table of messages displayed on the dashboard UI.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

This BAdI uses the interface IF_GLE_MCA_DOC_RELEASE_ATTR.

For more information, display the interface in the Class Builder.

An example implementation CL_MCA_DOC_RELEASE_EXAMPLE_IMP of BAdI is available with CALCULATE_BULK_RELEASE method implemented. This method calculates the summary of total debit and credit in P&L accounts and balance sheet account in functional currency and returns the messages to be displayed.






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

Length: 5604 Date: 20240523 Time: 194328     sap01-206 ( 125 ms )