SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create Purchase Order and Purchase Contract

Create a purchase contract via EML, then create a new purchase order with reference to the newly created purchase contract.

Overview

🎓 beginner 25 min. SAP S 4hana Cloud ABAP EnvironmentBeginnerABAP DevelopmentABAP Extensibility

You will learn

  • โœ”How to create a purchase contract
  • โœ”How to create a purchase order requisition
  • โœ”How to run ABAP classes
Merve Temel M Merve Temel September 25, 2023
Created by March 9, 2023
Contributors

Prerequisites

Prerequisites

  • You have a license for SAP S/4HANA Cloud and have a developer user in it
  • You have installed the latest Eclipse with ADT.

Steps

Intro

HINT: The administrator receives an welcome e-mail after provisioning. This e-mail includes the system URL. By removing /ui you can log into the SAP S/4HANA Cloud ABAP Environment system. Further information can be found here.


Step 1 Create ABAP package
โ€”

  1. Logon to Eclipse. Select ZLOCAL > New > ABAP Package.

    package
    package

  2. Create new ABAP package:

    • Name: Z_PURCHASE_CONTRACT_XXX
    • Description: Package for purchase contract
    • Check Add to favorite packages

    package
    package

    Click Next >.

  3. Create a new request:

    • Request Description: TR12345

    package
    package

    Click Finish.

Step 2 Create purchase contract via EML
+
Step 3 Create purchase order requisition with reference to the purchase contract via EML
+
Step 4 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Create ABAP package 2. Create purchase contract via EML 3. Create purchase order requisition with reference to the purchase contract via EML 4. Test yourself

Learn more →