cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Copy from sales order to production order?

majusko
Explorer
0 Likes
559

Hi,

is there a way to impact copy of information from sales order to Planned/Production order in Public cloud?

In our MTO scenario we would need to copy text from sales order document to  Planned/Production order. This additional information should be stored either as additional sales order text type or maybe in custom field.

Thank you for sharing any ideas!

Accepted Solutions (1)

Accepted Solutions (1)

Divyesh_Mistry
Active Contributor

Hi @majusko,

Option 1: Use Custom Fields + In-App Extensibility (Key-User Tools)

Step-by-step:

  1. Create a Custom Field:
    • App: “Custom Fields” (F1481)
    • Business Context:
      • For Sales Order: Sales: Sales Document
      • For Production Order: Manufacturing: Production Order Header
    • Field Type: Text (short or long)
    • Enable the field for:
      • Sales Document
      • Planned/Production Order
      • UI and OData services as needed
  2. Enable Field for Use in Both Documents
    • Make sure the custom field is visible in both:
      • Sales Order (via Manage Sales Orders)
      • Production Order (via Change Production Order or Display Production Order)
  3. Create a Custom Logic (BAdI Implementation):
    • App: "Custom Logic" (F1482)
    • Use BAdI: MRP_PRODUCTION_ORDER_READ or similar available BAdIs (depends on scenario)
    • Logic: Read sales order (via reference from MTO link), and populate the custom field or text.

Option 2: Use Text Determination (Sales Order Text → Production Order Text)

This is limited in Public Cloud, but you can:

  • Define text types in Sales Orders
  • If those are part of material master or BOM, use long texts or notes
  • There is no standard automatic text determination from SO to production order in Public Cloud, but you can mimic this using a custom field with long text instead.

Option 3: Use Side-by-Side Extension in BTP

If in-app extensibility isn't sufficient:

  • Use SAP BTP (Business Technology Platform) to build a side extension
  • Create a small CAP (Cloud Application Programming) app:
    • Reads sales order
    • Updates custom field or long text in production order via OData APIs

Don't hesitate to reply if you need further support.
If you find my response useful, I kindly request you to award kudos as a small gesture. This motivates me to serve you better.

Appreciate your feedback.
Thanks,
Divyesh

 

Answers (0)