Objective
After completing this lesson, you will be able to explain how to configure Purchase Order Flows in an SAP System, CIG, and in Ariba Network.
Purchase Order Flow
A Purchase Order (PO) is a commercial document and first official offer issued by a buyer to a seller, indicating material or service types, quantities, and agreed prices for products or services.
- It is used to control the purchasing of products and services from external suppliers.
- Acceptance of a purchase order by a seller forms a contract between the buyer and seller.
- A contract does not exist until the purchase order is accepted.
Types of Purchase Orders Supported:
- Standard Purchase Orders
- Blanket Purchase Orders
- Scheduling Agreement Release Purchase Orders
- Service Purchase Orders
- Subcontracting Purchase Orders
- Consignment Purchase Orders
- Purchase Orders with Returns
Additional Information:
- Schedule lines in a Purchase Order are supported.
- A Standard Purchase Order can have lines with catalog material or non-catalog material.
- A Service Purchase Order, using SAP ERP 6.0 EHP 0, can only have a single-level hierarchy (one parent and child line item). However, using SAP ERP 6.0 EHP 4 & higher, you can send a Service PO with service line items in up to five levels of hierarchy (1 parent and 4 child levels).
- A Blanket PO with item category "B" is supported.
- Price Basis Quantity (PBQ) along with different types of Account Assignment Category is supported.
- Defining 2 way or 3 way match is also supported.
Pre-requisites:
- Standard NACE or Output Determination configuration should be in place.
- SAP Ariba AddOn package downloaded in your SAP system.
- Ensure that the parameter ORDER_ENABLED is set.
- ORDER_ENABLED – Enables you to bypass the SAP Ariba code in case it is causing issues in customer specific scenario.
- SAP Cloud Connector installed & configured (for Direct Connect option).
- Supported middleware should be configured (for Mediated Connect option).
- CIG enabled through your AN Buyer Account & you have P User info.
- SAP system information is sent to CIG.
- AN Buyer and Supplier relationship should exist.
Configuration in SAP System – Global Settings
Ensure that following configurations of Global Settings section are in place:
- Define Authorizations: Make sure that users working on CIG AddOn configurations have necessary authorizations / roles assigned.
- Enable Integration through Middleware: This is an optional activity. Maintain a parameter if you are integrating via any of the supported middleware.
- Maintain Certificates: This is a mandatory activity to establish SSL handshake / connectivity between SAP system & CIG. Upload Loadbalancer certificate of CIG in the Trust Manager.
- Create RFC Destination: RFC Destination is needed for transmitting IDocs. It allows you to connect from an ABAP system to an external system. Before creating an RFC destination for CIG, ensure that you have maintained CIG’s Loadbalancer certificate in the Trust Manager & you have P User & password information handy.
- Create Port Definition: A port is the communication channel through which IDocs are sent. The port describes the technical link between the sending and receiving systems. Port Definition is needed to specify the way in which the IDocs are transferred to the EDI subsystem.
- Create Logical System: The value created here will be used in Interface Setup program for generating outbound parameters of Partner Profile under TCode WE20.
- Configure Receiver Port: Assign ports created to a specific IDoc flow based on the solutions you are adopting.
- Send SAP Information to CIG: Run this (SAP Data Sync) report to send specific set f information from SAP system to CIG. This information will be used during project creation & for applying accurate mapping set to your documents.
- Maintain Parameters for Attachments Support: This is an optional activity. You can maintain certain parameters to send or receive attachments for the documents where SAP standard UI doesn’t support it by default.
- Map Variants & Partitions: Applicable only for SAP Ariba Sourcing Integration & SAP Ariba Procurement Integration. Define unique values of variant & partition for your SAP Ariba realms. This is required by our various export programs to apply filters & parameters while exporting data for a specific SAP Ariba solution.
- Maintain BAdIs as per your requirements to further massage the data for filters & parameters before storing it in Ariba specific tables.
Configuration in SAP System – General Settings
To navigate to general settings in SAP ERP and SAP S/4 HANA for Ariba Network Transactions
- Run the transaction code SPRO – The Customizing: Execute Project screen appears.
- Click SAP Reference IMG – The Display IMG screen appears.
- Navigate to –
- Integration with Other SAP Components → SAP Ariba Cloud Integration Gateway → Ariba Network Integration → General Settings
Ensure that following configurations of General Settings section are in place:
- Setup the Interface: This program helps you to automatically create Inbound & Outbound parameters in Partner Profile for IDocs and Logical Ports & Service Names in SOAMANAGER for Web Services / Proxies.
- BAdIs for Setting Up Interface: When setting up the interface, you can optionally implement the BAdI to modify any parameters.
- Create Partner Profile for House Bank: Since the Setup Interface program will always configure interface for IDocs only against the partner function of type LS (Logical System), you would need to need to manually configure outbound parameters for REMADV & PAYEXT (under partner type B) to generate Payment Remittance documents & send it to Ariba Network & also optionally send the info to bank.
- Configure Document Status Update: Using the document status update functionality, you can monitor status of all transactions that:
- You send from your SAP ERP or SAP S/4 HANA system through CIG to suppliers on the Ariba Network.
- Send the document status update for transactions that you receive from suppliers on the Ariba Network.
- Enable Supply Chain Collaboration (SCC): If you want to enable Supply Chain Collaboration related functionality, then you need to maintain required parameter. This is purely based on requirement. Since Enable SCC is a toggle driven feature in AN, we also have provided same flexibility in AddOn code.
- Enable Vendors: In this activity, user needs to maintain the vendor & company code combination in ARBCIG_AN_Vendor table (via SPRO node) for all the SAP vendors that are registered as suppliers on Ariba Network. Thus, the documents are filtered & sent to Ariba Network only for such SAP vendors who are registered suppliers on Ariba Network.
- Maintain Vendor for the Outbound Transaction: This is an additional filter for outbound transactions. Maintaining "Enable Vendors" table is prerequisite for this activity. Here user needs to select the vendors that are already added in ARBCIG_AN_Vendor table & then maintain one or more message types for each vendor in ARBCIG_OB_VENDOR table (via SPRO node). This configuration helps you to further specify or filter message types per vendor that you wish to send to Ariba Network. If this table is not maintained, CIG AddOn code will only refer to AN Vendor table & will send all the message types for the vendors available in ARBCIG_AN_VENDOR table to Ariba Network.
- Enable External Format Conversion: You can configure SAP system to convert the format of data to external format before sending it to Ariba Network. This parameter helps you to remove leading zeros of the object IDs such as Purchase Order Number; Material Number; Item Number; G/L Account; Asset; WBS Element; Cost Center; Internal Order; etc.
- Plant Specific Time Zone Conversion: User can configure SAP system to send delivery date with Plant time zone instead of System time zone for PO/SA/SAR transaction.
Configuration in SAP System – Transaction Specific Settings
Configure Ariba Network Transactions
In this section, we will look into the configurations of sample IDOC outbound (Purchase Order) transactions required on the SAP AddOn to map the transactions and messages to cXML and send to Ariba Network.
- Run the Tcode SPRO
- The Customizing: Execute Project screen appears.
- Click SAP Reference IMG
- The Display IMG screen appears.
Navigate to:
- Integration with Other SAP Components
- SAP Ariba Cloud Integration Gateway
- Ariba Network Integration
- Application Specific Settings
All supported transactions for Ariba Network Integration are listed under Application Specific Settings.
Purchase Order
To send a Purchase Order from an SAP System to Ariba Network, you need to perform following activities:
- Define Message Output Control for Purchase Orders
- Maintain Parameters for Purchase Orders
- Configure Implicit Enhancements for Change & Cancel Orders
- Configure Service Map Key for Service Orders
- Implement Customer Exit for Purchase Orders
- Mapping setting for Purchase Order/SA/SAR Outbound
Purchase Order- Define Message Output Control
Steps
Navigate to:
- Integration with Other SAP Components.
- SAP Ariba Cloud Integration Gateway.
- Ariba Network Integration.
- Application Specific Settings.
- Purchase Order.
Expand the Purchase Order section & click IMG-Activity for "Define Message Output Control for Purchase Order."
- The Conditions for Output Controlscreen appears.
Select EF and click Output types.
The Display View "Output Types": Overview screen appears.
Click NEU (for example) & click Change.
Double-click NEU (for example).
The Change View "Output Types": Details screen appears.
On the General Data tab, for Access sequence choose 0001 DocType/PurchaseOrg/Vendor.
On the Default values tab, create following entry:
- Dispatch Time: Send immediately (when saving the application)
- Transmission Medium: EDI
- Partner Function:LS
- Click Save & go back to the Change View "Output Types": Overview screen
Click NEU (for example) & then double-click Processing routines.
The Display View "Processing routines": Overview screen appears.
In the Processing Routines section, create following entry:
- Transmission Medium: EDI
- Program: RSNASTED
- Form Routine: EDI_PROCESSING
- Click Save.
Click NEU (for example) & then double-click Partner Functions.
The Display View "Partner functions": Overview screen appears.
In the Partner Functions section, create following entry:
- Medium: EDI
- Function: LS
- Name: Logical System
- Click Save.
Select application EF and click Condition records.
The Output Types popup appears.
Click NEU (for example) & then click Condition records.
The Key Combination popup appears.
Maintain the required key combination for
- Purchasing Output Detrmination: Doc.Type/Purch.Org/Vendor:
- Purchasing Doc Type: NB
- Purch. Organization: US001 (for example)
Click Execute.
The Change Condition Records (Purchase order): Fast Change screen appears.
In the Condition Recs section, enter the following:
- Vendor: 100005 (for example)
- Name:
- Function: LS (for example)
- Partner: T90CLNT90 (for example)
- Medium: EDI (for example)
- Date/Time: Send immediately (when saving the application) (for example)
- Language: EN (for example)
Click Save.
Purchase Order- Maintain Parameters
Buyer users need to maintain the few parameters to send Purchase Orders or Subcontracting Purchase Orders to suppliers. Buyer users also need to maintain parameters to send copies of Subcontracting Purchase Orders to multiple contract manufacturer suppliers on Ariba Network.
Navigate to:
The Parameters – Purchase Order screen appears.
- Maintain parameters as mentioned in the table.
| Parameter Name | Description | Supported Values |
|---|
| ORDER_ENABLED | Enable or disable the SAP Ariba provided enhancements for purchase order. | - Variable Name: ORDER_ENABLED - Field Name: Leave it empty - Number: 0000 - Low: X to enable or blank |
| REGIO_DESC_ENABLED | Enable this parameter to populate Region / Regio description in the IDoc segment. | - Variable Name: REGIO_DESC_ENABLED - Field Name: Leave it blank - Number: 0000 - Low: X to enable or blank |
| CSC_COPY_SUPPLIER_PARVW | Required for multi-tier purchase orders for SAP Ariba Supply Chain Collaboration. Use this parameter to send more than one copy of the multi-tier purchase order or receipt. | - Variable Name: CSC_COPY_SUPPLIER_PARVW - Field Name: Leave it blank - Number: 0000 - Low: For example YL. |
| CSC_COPY_SUPPLIER_PARVW | Required for multi-tier purchase orders for SAP Ariba Supply Chain Collaboration. Use this parameter to send more than one copy of the multi-tier purchase order or receipt. | - Variable Name: CSC_COPY_SUPPLIER_PARVW - Field Name: Leave it blank - Number: 0000 - Low: For example YL. |
| DELIVER_TO_PARVW | Mention the partner function to fetch the partner details for "Deliver To" partner function. | - Variable Name: DELIVER_TO_PARVW - Field Name: Leave it blank - Number: 0000 - Low: YS or YL, for example. |
| ARIBA_SRVMAPKEY | Required for service purchase orders that have service line number & use the service map key activated on the SAP ERP or SAP S/4HANA system. | - Variable Name: ARIBA_SRVMAPKEY - Field Name: Leave it blank - Number: 0000 - Low: X to enable or blank |
| PRINT_RELV_CHK_ENABLED | Required to enable change purchase orders output based on print-relevant field settings. | - Variable Name: PRINT_RELV_CHK_ENABLED - Field Name: Leave it blank - Number: 0000 - Low: X (to enable) or leave it blank (to disable). |
Purchase Order- Configure Implicit Enhancements
Buyer users need to configure implicit enhancements to send Purchase Order to Ariba Network.
Steps
Run the TCode SE38
The ABAP Editor: Initial screen appears.
Enter LEINMF0Q for Program & click Display
The Choose Program for LEINMF0Q popup appears.
Click Select.
Note
As standard SAP’s ORDERS IDoc is not capable of handling PO changes & deletion by default, this enhancement helps to enable the IDoc to send change & cancel / delete info to AN.
Click Enhance in the application toolbar.
Select SAPLEINM from the popup.
Click Edit → Enhancement Operations → Show Implicit Enhancement Optionsto display a line after the lesen-beleg form.
Right-click the line below FORM lesen_beleg & select:
- Enhancement Implementation.
- Create Implementation.
Click Code on the Choose Type of Enhancement popup to display Select or Create Enhancement Implementation buttons.
Click Create Enhancement Implementation button.
Enter a name & description for the enhancement & press Enter.
In the package popup, specify your Z or Y package or Local Object, press Enter & save the package to a transport request.
Enter the include: INCLUDE ARBCIG_ORDER_REQUEST_LEINMF0Q IF FOUND.
Activate the enhancement and save it.
Purchase Order - Configure Service Map Key
This functionality is actually built for SAP SRM and SAP Ariba is using that. It is available from EhP 4+ (Enhancement Pack).
- Configure this setting only if your service purchase order transfer from ERP to Ariba Network fails.
- This usually occurs when the business function LOG_MM_P2PSE_1 is not active on your SAP ERP system.
- To have the SRVMAPKRY generated, customer needs to turn on the Business Function (BF) – LOG_MM_P2PSE_1.
- You only need to implement the SAP Note (#2372821) if the standard field SRVMAPKEY is not activated on your SAP ERP system.
- The standard field SRVMAPKEY in the SAP Table ESLL stores service purchase order Item ID information.
- The service map key is required to identify the line numbers for the service lines.
- If the SRVMAPKEY is not available, the Item ID does not populate the line numbers for the service lines correctly and the SAP Process Integration mappings fail.
Purchase Order- Implement Customer Exit
The INCLUDE ARBCIG_ORDER_REQUEST_002 is called from the customer exit for outbound purchase orders.
Steps
Navigate to:
- Integration with Other SAP Components
- SAP Ariba Cloud Integration Gateway
- Ariba Network Integration
- Application Specific Settings.
Expand the Purchase Order section & click IMG-Activity for "Implement Customer Exit for Purchase Order."
The Project Management of SAP Enhancements screen appears.
Create a new customer exit. ZARIBAPO (for example) & click Create.
In the package popup, specify your Z or Y package or Local Object, press Enter & save the package to a transport request.
Click Enhancement Assignments;
- Enter the user exit name MM06E001 & press Enter.
Go back & click Components. Then double-click the enhancement name EXIT_SAPLEINM_002.
In the new screen that appears, double-click INCLUDE ZXM06U02.
In the new screen that appears, double-click INCLUDE ZXM06U02.
Click Activate.
Go back & click Components & then double-click the enhancement name EXIT_SAPLEINM_011.
In the new screen that appears, double-click INCLUDE ZXM06U33.
Enter the include: INCLUDE ARBCIG_ORDER_REQUEST_011 IF FOUND.
Click Activate.
Go back & activate user exit as well.
Purchase Order- Mapping Setting for Purchase Order/SA/SAR Outbound
This configuration filters out account assignment details such as G/L Account, Profit or Cost Center etc. at the company code level, when the purchase order is sent from SAP to Ariba Network via CIG. In the case of Invoice Pro, the customer may choose to send organization data in the PO to Ariba Network.
Navigate to:
- Integration with Other SAP Components
- SAP Ariba Cloud Integration Gateway
- Ariba Network Integration
- Application Specific Settings.
- Expand Purchase Order section & click IMG-Activity for "Mapping Setting for Purchase Order/SA/SAR Outbound"
The Change View Further mapping settings for Purchase Order Outbound Ov screen appears.
- Maintain parameters as mentioned:
| Parameter Name | Description |
|---|
| Do not Send Account Assignment Data | For any company code, user can choose not to send the account assignment data by selecting the checkbox against that company code. |
| Do not Send Additional Data for SAP Ariba Invoice Management | For any company code, user can choose not to send additional data like Org data by selecting the checkbox against that company code. |
Configuration in CIG
In this section, we will only focus on the configurations in CIG which are very specific to Purchase Order integration:
- Enable CIG for your Ariba Network Buyer Account.
- Provide Basic Information in the project in CIG for "Product = Ariba Network".
- Define Connection information to establish connectivity between CIG & your SAP system.
- Define Cross Reference for Parameter for Purchase Order (Doc Type – OrderRequest)
- Define Cross References for UOM.
- Define Cross Reference for Lookup Table not required for Ariba Network PO Integration.
- Review project configuration & Confirm the Project.
- Test the Project.
- Deploy the Project.
Cross Reference Configuration - Parameter
You will need to define values in the parameter fields in which you want to map. The transactions & the related parameters are added by the administrator. You can define the values for both test & production environments.
Steps
Select the Document Type = OrderRequest in Parameters tab & click Add.
Edit the entry.
Enter values for the parameters in the TEST Environment and PROD Environment & click Save.
If you want to have different value in PROD Environment, uncheck the box Use same values.
Enter parameter values for another Document Type as needed or click Next.
Configuration in CIG: Cross Reference Configuration - Parameter
Note
Text ID: The Text ID is an identifier to differentiate between various types of texts / comments. In SAP system, you can find more than one text / comment fields at header as well as line item level. Each of these text / comment fields are identified by a unique Text ID.
Configuration in Ariba Network
In this section, we will only focus on the configurations in CIG which are very specific to Purchase Order integration:
- Specify Default Transaction Rules
- Define Active Relationships with the suppliers you would want to trade
Specify Default Transaction Rules
Steps
Login to you’re AN Buyer account; click on Administration & then click on Configuration.
Click on Default Transaction Rules.
Specify the rules by checking boxes against individual rules & click Save.
Note
Specifying Invoice Transaction Rules is completely based on business requirements of individual customer.
Define Supplier Relationships
Steps
Login to you’re an Buyer account; click on Supplier Enablement & then click on Active Relationships.
Click on Search for Suppliers button.
Search any of the parameters such as Company name; Supplier’s ANID; etc. & click Search.
In the Search Results, click on Request Relationship link against your desired supplier.
On the Supplier Detail page, check the box to confirm review & verification of the supplier profile & click on Request a Trading Relationship button.
Popup window will appear to confirm that the trading relationship with supplier is established. Click Done.
Once the supplier accepts & approve the trading relationship request, you can see the supplier in your Current Suppliers section under Active Relationships page.
You can also see the notification of new supplier getting added under Alerts & Messages section.
You then need to define SAP Vendor ID for that supplier. Click on More Actions button & select Edit from the dropdown.
On the next page, scroll down to Unique Supplier ID Configuration section, click Add to define SAP Vendor ID.
In the Add Supplier Unique Keypopup, enter 10 digit SAP Vendor ID & click Save. Make sure that you also add any leading zeros in the vendor ID.
Your Ariba Network Supplier is now associated with an SAP Vendor ID. Click Save.