/zsd_sales_and_distribution

ZSD - Sales and Distribution

Primary LanguageABAPApache License 2.0Apache-2.0

ZSD - Sales and Distribution

First install the prerequirement packages and than this package. Install the code with https://abapgit.org.

This package contains code about the Sales Order Business Object ZSD_SALES_ORDER_BO.

The functionality is for now limited to

  • Creating a Sales Order PDF document
  • Sending an Email with attached the Sales order PDF document

For more information see SAP Blog post: https://blogs.sap.com/2022/05/27/abap-oo-design-part-7-step-3-reuse-optimization-example-send-sales-order-document-by-email-to-customer/

Creating a Sales Order PDF document

Methods:

  • ZSD_SALES_ORDER_BO_I~CREATE_DOCUMENT
  • ZOPM_OUTP_PRINT_OUTPUT_I~EXECUTE

Sending an Email with attached the Sales order PDF document

Methods:

  • ZSD_SALES_ORDER_BO_I~CREATE_EMAIL
  • ZOPM_OUTP_EXTERNAL_SEND_I~EXECUTE

Prerequirement packages

Class with unit test

Class ZSD_SALES_ORDER_BO contains unit test class UNIT_TEST. First turn all the test off and than test them each by each.