Ansicht
Dokumentation
MMPUR_PROC_WF_FCAL - Determination of Factory Calendar for Workflow Deadline
BAL Application Log Documentation TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used to determine the factory calendar that can be used for deadline calculation in flexible workflows.
The following business objects are currently supported:
- PurchaseRequisition
- CentralPurchaseRequisition
- PurchaseOrder
- CentralPurchaseContract
- PurchaseContract
- PurchaseSchedulingAgreement
·,,In the standard system, the BAdI is not active.
·,,The BAdI is filter-dependent.
Method: GET_WORKFLOW_FACTORY_CALENDAR
Parameters:
Importing Parameters:
BUSINESSOBJECT | Business object type |
PURCHASINGDOCUMENT | Purchasing document number |
PURCHASINGDOCUMENTITEM | Purchasing document item number |
EXTSOURCESYSTEM | For future use |
WORKFLOWSCENARIO | Workflow scenario or step type, as there can be several scenarios for the same business object |
Changing Parameters:
FACTORYCALENDAR | Factory calendar Identifier |
Example Implementation |
The below sample implementation is for business object PurchaseRequisition
IF businessobject EQ 'PurchaseRequisition'.
IF PurchasingDocumentItem IS NOT INITIAL.
SELECT SINGLE Plant INTO @DATA(lv_Plant)
FROM I_PurchaseRequisitionItemAPI01
WHERE PurchaseRequisition EQ @PurchasingDocument.
AND PurchaseRequisitionItem EQ @PurchasingDocumentItem.
CASE lv_Plant.
WHEN '0001'.
FactoryCalendarID = '01'.
WHEN '0002'.
FactoryCalendarID = '02'.
WHEN '1010'.
FactoryCalendarID = '12'.
ENDCASE.
ENDIF.
Implementing this piece of code does the following: |
- Based on the plant, the corresponding factory calendar is returned. For example, for plant '0001', the factory calendar 01 is returned, and for plant '0002', the factory calendar 02 is returned.
Note:The factory calendars are maintained in SPRO using the configuration Maintain Calendarunder General Settings.
General Data in Customer Master CPI1466 during Backup
This documentation is copyright by SAP AG.
Length: 3359 Date: 20240523 Time: 193823 sap01-206 ( 38 ms )