Master Data on Document - User Stories

Prev Next

# Master Data on Documents — Complete Feature Overview & User Stories

Master Data Information App (BC682)


1. Feature Overview

Master Data on Documents is a feature in the MDI app that automatically populates and carries MDI data (Information Entries, Extended Text, Long Description, Report Description) onto Sales, Purchase, and Production documents. When a document is created or an item is entered on a document line, the system looks up the item's (or customer's/vendor's) Information Entries and writes them as structured "Master Data on Documents" lines attached to the document header and/or lines.

The data travels with the document through its lifecycle: from open orders through posting to invoices, shipments, receipts, and credit memos. It can also transfer cross-process — from sales lines to production orders, assembly orders, purchase orders (special order / drop shipment), and warehouse shipments. The feature is template-driven, giving full control over which Information Codes appear on which document types, and how the data behaves at posting time.

Key Facts

Property Detail
Core data table SCB MDI On Documents — stores all master data lines attached to documents, keyed by table, document type, document no., and line no.
Template structure 3-level: Document Setup → Document Template → Template Content lines. Each level narrows from document type down to individual Information Codes.
Supported process types Sales, Purchase, Production
Supported document types Quote, Order, Invoice, Credit Memo, Blanket Order, Return Order, Production Order
Template content types Header, Line, Footer, Item Tracking (Serial No., Lot No., Package No.)
Source tables for data Item (27), Customer (18), Vendor (23), Serial No. Information (6504), Lot No. Information (6505), Package No. Information (6515)
Auto-population trigger When an item/customer/vendor is entered on a document line, the system reads the template and pulls matching Information Entries into the MDI on Documents table.
Action when posting Controls how data transfers at posting: Transfer Invoice and Shipment or Receipt, Transfer Invoice only, Transfer Shipment or Receipt only, Transfer Credit Memo, Transfer Invoice and Credit Memo and Shipment or Receipt, or no transfer.
Cross-process transfer flags Transfer to Prod. Order Line (also Assembly), Transfer to Purchase Line (Special Order/Drop Shipment), Transfer to Warehouse Shipment
Print control Don't print on open documents, Don't print on posted documents, Print on Inventory Document (pick instruction)
Long Description injection Template can auto-include the item's Long Description as a document line
Report Description injection Template can auto-include the item's Report Description as a document line
Extended Text support Template content lines can pull Extended Text (language-aware, with fallback chain) onto the document
File attachment support MDI on Documents lines can carry file attachments (File Placement + Blob) from the source Information Entry
Archive table SCB Master Data on Docs Arch. stores archived versions of document data
Specification on Pages integration MDI on Documents lines sync bi-directionally with Specification on Pages fields on document headers/lines

2. Template Architecture

The Master Data on Documents feature is configured through a three-level template hierarchy:

Level 1 — Master Data on Document Setup
Maps a specific document context (Type + Document Type + optional Number) to a Document Template. For example: Sales + Order → "SALES ORDER" template. You can also map a specific customer/vendor number to give them a unique template.

Level 2 — Master Data Document Template
Defines the overall structure for a document type. Specifies which sub-templates to use for Header, Line, Footer, and Item Tracking (Serial No., Lot No., Package No.). Also carries document-level flags: Add Long Description, Add Long Report Description, Transfer to Prod. Order Line, Transfer to Purchase Line, Transfer to Warehouse Shipment, Action when posting, and print control flags.

Level 3 — Template Content (Master Data on Doc. Content)
The individual lines within a sub-template. Each line specifies an Information Code to pull, with flags for: Add Master Data Text (include the Information Entry values), Add Extended Text (include language-aware Extended Text), plus the same transfer and print flags at line granularity. The Order field controls the sequence in which data appears on the document. A Display Master Data field allows linking to a Description Setup for formatted output.


3. User Stories

US-01: Automatically show item specifications on Sales Order lines

As a Sales Manager
I want to have item specifications (colour, material, dimensions) automatically appear on my Sales Order lines when I enter an item
So that sales staff don't need to manually type specifications and customers receive accurate product details

Setup:

  1. Create Information Codes for the relevant attributes (e.g. "COLOUR", "MATERIAL", "DIMENSIONS") and assign Information Values/Values to your items.
  2. Create a Template Content sub-template (e.g. code "SALES LINE") with Type = Line, Master Data Table = 27 (Item).
  3. Add content lines for each Information Code with "Add Master Data Text" = Yes.
  4. Create a Document Template (e.g. "SALES ORDER") and set Master Data Line = "SALES LINE".
  5. In Master Data on Document Setup, create a row: Type = Sales, Document Type = Order, Master Data Doc Template = "SALES ORDER".
  6. When a user enters an item on a Sales Order line, MDI automatically creates Master Data on Documents lines with the item's specifications.

Note: The standard setup creates templates for both Sales and Purchase. The DefaultSetup procedure can be run to pre-populate standard templates.

US-02: Show customer-specific information on document headers

As a Sales Manager
I want to have customer-level information (delivery instructions, account manager, special terms) automatically appear on Sales Order headers
So that order processors see critical customer context without navigating to the Customer Card

Setup:

  1. Create a Template Content sub-template (e.g. "SALES HEADER") with Type = Header, Master Data Table = 18 (Customer).
  2. Add content lines for each relevant Information Code (e.g. "DELIVERY INSTRUCTIONS", "ACCOUNT MANAGER").
  3. In your Document Template (e.g. "SALES ORDER"), set Master Data Header = "SALES HEADER".
  4. When a Sales Order is created for a customer, the header-level MDI data is populated from the Customer's Information Entries.
US-03: Show vendor information on Purchase Orders

As a Purchasing Agent
I want to have vendor-specific information automatically appear on Purchase Order headers
So that I see vendor compliance requirements, payment terms notes, or contact details directly on the PO

Setup:

  1. Create a Template Content sub-template (e.g. "PURCHASE HEADER") with Type = Header, Master Data Table = 23 (Vendor).
  2. Add content lines for each Information Code.
  3. Create a Document Template (e.g. "PURCHASE ORDER") and set Master Data Header = "PURCHASE HEADER".
  4. In Master Data on Document Setup: Type = Purchase, Document Type = Order, Master Data Doc Template = "PURCHASE ORDER".
US-04: Add footer information to documents

As a Sales/Purchase Manager
I want to have standard footer information (terms, disclaimers, certifications) appear at the bottom of documents
So that critical legal or compliance text is automatically included without manual entry

Setup:

  1. Create a Template Content sub-template (e.g. "SALES FOOTER") with Type = Footer, Master Data Table = 18 (Customer).
  2. Add content lines for relevant Information Codes. Footer lines appear at the bottom of the document.
  3. In your Document Template, set Master Data Footer = "SALES FOOTER".

Note: Footer-type templates pull data from the same source as Header (Customer/Vendor) but are positioned separately on the document.

US-05: Include item Long Description on document lines

As a Sales Manager
I want to have the item's composed Long Description automatically appear as text on the document line
So that customers see the full, formatted item description on orders, quotes, and invoices without manual typing

Setup:

  1. In the Template Content sub-template for lines, ensure Master Data Table = 27 (Item).
  2. On the sub-template, set "Add Long Description" = Yes.
  3. When items are entered on document lines, the system reads the item's SCB Long Description field and inserts it as a Master Data on Documents line.

Note: Add Long Description only works when the sub-template's Master Data Table = 27 (Item). The Long Description itself is composed from Information Entries using the "Include in Long Description" flag on Information Codes.

US-06: Include Report Description on document lines

As a Sales Manager
I want to have a formatted Report Description (a structured summary of key attributes) appear on document lines
So that printed documents show a clean, structured summary of the item's specifications

Setup:

  1. On the Template Content sub-template for lines, set "Add Long Report Description" = Yes.
  2. Ensure the relevant Information Codes have "Include in Report Description" configured.
  3. The system builds a Report Description from the item's Information Entries and inserts it as a document line.

Note: Report Description is an alternative to Long Description, built from Information Codes with the "Include in Report Description" setting.

US-07: Include Extended Text on documents (language-aware)

As an International Sales Manager
I want to have language-specific extended text appear on documents based on the customer's language
So that international customers receive documents with specifications in their own language

Setup:

  1. Set up Extended Text entries for the relevant Information Codes in multiple languages.
  2. In the Template Content lines, enable "Add Extended Text" = Yes.
  3. The system uses a fallback chain to find the best language match: (1) Record-specific language text → (2) Record-specific default text → (3) Global language text → (4) Information Value default → (5) Information Language default → (6) Information Code default.
  4. The customer's Language Code on the document drives the language selection.

Note: Extended Text and Master Data Text can both be enabled on the same content line — they complement each other.

US-08: Transfer document data to posted invoices and shipments

As a Finance / Logistics Manager
I want to have Master Data on Documents automatically transfer from the open order to posted invoices and shipments when posting
So that posted documents retain all the specification data from the original order

Setup:

  1. On the Template Content lines (or on the Document Template), set "Action when posting" to the appropriate value.
  2. Options: "Transfer Invoice and Shipment or Receipt" (both), "Transfer Invoice only", "Transfer Shipment or Receipt only", "Transfer Credit Memo", or "Transfer Invoice and Credit Memo and Shipment or Receipt" (all).
  3. When the document is posted, the system reads the Action when posting flag on each MDI on Documents line and copies matching lines to the posted document tables.

Note: Each MDI on Documents line can have its own Action when posting, so some data can go only to invoices while other data goes only to shipments.

US-09: Control which data prints on open vs. posted documents

As a Document Manager
I want to control which Master Data on Documents lines appear on printed open orders vs. printed posted documents
So that I can have internal notes that show on the working order but not on the customer invoice, and vice versa

Setup:

  1. On each Template Content line (or Document Template), set the print control flags:
  2. "Don't print on open documents" = Yes to hide from open order printouts.
  3. "Don't print on posted documents" = Yes to hide from posted invoice/shipment printouts.
  4. "Print on Inventory Document" = Yes to include on pick instructions.
  5. These flags transfer to the individual MDI on Documents lines and are respected by report layouts.
US-10: Transfer specifications from Sales Order to Production Order

As a Production Planner
I want to have item specifications from the Sales Order line automatically transfer to the Production Order when I create a production order from a sales order
So that production staff see the exact customer requirements without re-entering them

Setup:

  1. On the Template Content lines (or Document Template), enable "Transfer to Prod. Order Line or Assembly Order" = Yes.
  2. When a Production Order is created from a Sales Order line (via reservation/link), the system copies all MDI on Documents lines flagged for transfer.
  3. The data is written to the Prod. Order Line's MDI on Documents entries (TABLE 5406).
  4. When the Production Order changes status (e.g. Firm Planned → Released), the data moves with it.

Note: This also works for Assembly Orders. The system detects Assembly-to-Order links and transfers the data to the Assembly Header (TABLE 900).

US-11: Transfer specifications from Sales Order to Assembly Order

As an Assembly Manager
I want to have specifications from the Sales Order automatically appear on the linked Assembly Order
So that assembly workers see the customization requirements for assemble-to-order items

Setup:

  1. Enable "Transfer to Prod. Order Line or Assembly Order" = Yes on the relevant Template Content lines.
  2. When an Assembly Order is created from a Sales Order (Assemble-to-Order link), MDI on Documents lines are copied to the Assembly Header.
  3. The transfer happens automatically through the Assemble-to-Order Link detection.
US-12: Transfer specifications from Sales to Purchase (Special Order / Drop Shipment)

As a Purchasing Agent
I want to have customer requirements from the Sales Order automatically transfer to the Purchase Order when creating Special Orders or Drop Shipments
So that the vendor receives the exact specifications the customer needs without manual re-entry

Setup:

  1. On the Template Content lines, enable "Transfer to Purchase Line" = Yes.
  2. When a Purchase Order is created from a Sales Order (via Special Order or Drop Shipment), the system copies flagged MDI on Documents lines from the Sales Line to the Purchase Header as Footer-type lines.
  3. The vendor sees the transferred specifications on their Purchase Order.

Note: Transferred lines are inserted as Footer type on the Purchase Header, so they appear as additional information rather than line-level data.

US-13: Transfer specifications to Warehouse Shipment documents

As a Warehouse Manager
I want to have item specifications from the Sales Order appear on the Warehouse Shipment
So that warehouse staff see picking/handling instructions derived from item specifications

Setup:

  1. On the Template Content lines, enable "Transfer to Warehouse Shipment" = Yes.
  2. When a Warehouse Shipment is created from the Sales Order, flagged MDI on Documents lines transfer to the Warehouse Shipment document.
  3. Use "Print on Inventory Document" = Yes on the relevant lines to include them on pick instructions.
US-14: Include Serial/Lot/Package tracking information on documents

As a Quality Manager
I want to have item tracking information (serial number certificates, lot-level analysis data, package details) appear on documents
So that traceability and quality data follows the document chain from order to shipment

Setup:

  1. Create a Template Content sub-template with Type = Item Tracking and Master Data Table = 6504 (Serial No. Information), 6505 (Lot No. Information), or 6515 (Package No. Information).
  2. Add content lines for the relevant Information Codes attached to the tracking records.
  3. In your Document Template, set the appropriate tracking field: Master Data Serial Number Tracking, Master Data Lot Number Tracking, or Master Data Package Number Tracking.
  4. When documents with item tracking lines are processed, the system pulls the tracking-level Information Entries.
US-15: Use different templates for different document types

As a Functional Consultant
I want to configure different sets of specifications for Sales Quotes vs. Sales Orders vs. Sales Invoices
So that each document type shows only the relevant information for its purpose

Setup:

  1. Create separate Document Templates (e.g. "SALES QUOTE", "SALES ORDER", "SALES INVOICE").
  2. Each template can have different sub-templates for Header, Line, and Footer, or the same sub-templates with different content.
  3. In Master Data on Document Setup, map each: Sales + Quote → "SALES QUOTE", Sales + Order → "SALES ORDER", Sales + Invoice → "SALES INVOICE".

Note: You can reuse the same sub-templates across multiple Document Templates, or create unique ones for full control.

US-16: Use customer/vendor-specific templates

As a Key Account Manager
I want to assign a specific document template to a particular customer
So that VIP customers get enriched document data while standard customers get a simpler layout

Setup:

  1. In Master Data on Document Setup, create a row with: Type = Sales, Document Type = Order, Number = "C10000" (the customer number), Master Data Doc Template = "SALES VIP".
  2. Create the "SALES VIP" Document Template with the enriched sub-templates.
  3. When a Sales Order is created for customer C10000, the system uses the VIP template. Other customers fall through to the default (Number = blank) setup.

Note: The Number field in the setup acts as a specificity key. The code first tries GET(Type, DocumentType, CustVendNo) and falls back to GET(Type, DocumentType, '') if no specific match exists. This applies to Sales and Purchase documents only — Production Orders always use the default.

US-17: Manually add or edit Master Data on Documents lines

As an Order Processor
I want to manually add, edit, or remove Master Data on Documents lines on a specific document
So that I can handle exceptions or add order-specific notes beyond what the template provides

Setup:

  1. Open the Sales Order (or any supported document) and navigate to the Master Data on Documents subpage.
  2. Manually add new lines with Information Code, Information Value, Value, Description, and File attachments.
  3. Edit existing auto-populated lines as needed.
  4. The lines support the same fields as template-generated lines: Type (Header/Line/Footer), print flags, Action when posting, and transfer flags.

Note: Manual entries follow the same lifecycle rules as template-generated entries — they transfer at posting based on their Action when posting flag.

US-18: Attach files to document lines

As a Sales / Quality Manager
I want to attach files (certificates, drawings, specifications) to Master Data on Documents lines
So that supporting documents travel with the order through its full lifecycle

Setup:

  1. On any Master Data on Documents line (template-generated or manual), use the File Placement field to attach a file.
  2. Files from Information Entries are automatically carried over when template content lines are populated with "Add Master Data Text" = Yes.
  3. The file attachment (stored as File Placement Blob) transfers with the MDI line when the document is posted or transferred to other documents.

Note: File Storage Type tracks whether the file is stored as a blob, external reference, or other storage mechanism.

US-19: Transfer MDI data when Production Order changes status

As a Production Planner
I want to have all Master Data on Documents lines automatically move when a Production Order changes status (e.g. Firm Planned → Released)
So that specification data is preserved through all production phases without manual re-entry

Setup:

  1. No specific template setup needed — this is automatic behaviour.
  2. When a Production Order changes status, the system calls TransferToNewProdOrder, TransferToNewProdOrderLine, and TransferToNewProdOrderComponent to move all MDI on Documents lines from the old status key to the new status key.
  3. The original lines under the old status are deleted after transfer.

Note: This covers Production Order headers (TABLE 5405), lines (TABLE 5406), and components (TABLE 5407).

US-20: Control the order of specification lines on documents

As a Functional Consultant
I want to control the sequence in which specification lines appear on the document
So that the most important information appears first and the document reads logically

Setup:

  1. In the Template Content lines, use the "Order" field (integer) to set the sequence.
  2. Lines are processed in Order sequence when populating the document.
  3. Within each line, the underlying Information Entry's own sorting applies.

Note: The Order field uses a secondary key on the Template Content table, so it governs the processing sequence independently of the Line No.

US-21: Use the Display Master Data field for formatted output

As a Functional Consultant
I want to control how the specification data is formatted/displayed on documents
So that the printed document shows a clean, professionally formatted representation of the data

Setup:

  1. Create a Description Setup record defining the desired display format.
  2. In the Template Content line, set "Display Master Data" to point to the Description Setup code.
  3. The system uses the Description Setup to format the output when generating the MDI on Documents line.

Note: Description Setup is a shared MDI feature that controls how Information Code + Value + Description are formatted into a single display string.

US-22: Run the default setup to quickly get started

As a Functional Consultant
I want to quickly create a standard template configuration for Sales, Purchase, and Production documents
So that I have a working baseline that I can customize rather than building everything from scratch

Setup:

  1. Open the Template Content sub-template page and trigger the DefaultSetup procedure.
  2. The system creates standard sub-templates: SALES HEADER (Customer, Header), SALES FOOTER (Customer, Footer), SALES LINE (Item, Line), PURCHASE HEADER (Vendor, Header), PURCHASE FOOTER (Vendor, Footer), PURCHASE LINE (Item, Line), PRODUCTION HEADER (Item, Header), PRODUCTION COMPONENT (Item, Line).
  3. It creates Document Templates: SALES ORDER, PURCHASE ORDER, PRODUCTION — each wired to the appropriate sub-templates.
  4. It creates Document Setup rows mapping Sales Orders/Quotes/Invoices, Purchase Orders/Quotes/Invoices, and Production Orders to their templates.
  5. Customize from this baseline by adding Information Code content lines, adjusting transfer flags, and print settings.

Note: If data already exists, the procedure offers options to cancel, delete and recreate, or merge with existing records.

US-23: View and manage archived document data

As an Auditor / Compliance Manager
I want to view archived versions of Master Data on Documents data
So that I have an audit trail of what specification data was attached to documents at different points in time

Setup:

  1. The SCB Master Data on Docs Arch. table stores archived document data.
  2. Archived records preserve the full structure: Key Fields, Type, Information Code, Information Value, Value, Description, and all transfer/print flags.
  3. Access via the Master Data on Documents Archive page.
US-24: Use both Specification on Pages and Master Data on Documents together

As a Functional Consultant
I want to use both Specification on Pages (for direct field editing) and Master Data on Documents (for template-driven auto-population) together on the same document
So that users get the best of both worlds — editable fields on the page AND auto-populated specification text

Setup:

  1. Configure Specification on Pages for document header/line tables as described in the Specification on Pages feature documentation.
  2. Configure Master Data on Documents templates for the same document types.
  3. The two features co-exist: Specification on Pages fields provide direct editing on the page, while Master Data on Documents provides template-driven bulk population.
  4. Changes made via Specification on Pages fields automatically update the corresponding MDI on Documents entries (and vice versa) through the bi-directional sync in SCBReplicateMDIFunction.

Note: The Spec. Field Name column on MDI on Documents entries tracks which Specification on Pages field slot the entry is linked to, enabling the two-way sync.


4. Setup Pages Reference

Page / Table Key Fields Purpose
Master Data on Document Setup (6083244) Type, Document Type, Number, Master Data Doc Template Maps document contexts to templates. One row per Type + Document Type + Number combination.
Master Data Document Template Code, Description, Master Data Header/Line/Footer/Item Tracking sub-templates, Add Long Description, Add Report Description, Transfer flags, Action when posting, Print flags Defines the overall template for a document type. References sub-templates.
Template Content (Master Data on Doc. Content) Template Code, Information Code, Add Master Data Text, Add Extended Text, Display Master Data, Order, Transfer flags, Action when posting, Print flags, Value Individual lines within a sub-template. Each line references one Information Code.
Master Data on Documents (6083079) Key Fields 1–5, Type, Line No., Information Code, Information Value, Value, Description, File Placement, Transfer flags, Print flags, Action when posting The runtime data table. Lines are auto-populated from templates or manually created. Travels with the document through posting and cross-process transfers.

5. Action When Posting Options

Option Behaviour
(blank / none) Data stays on the open document only. Not transferred to any posted document.
Transfer Invoice and Shipment or Receipt Copies to both the posted invoice/credit memo AND the posted shipment/receipt.
Transfer Invoice only Copies only to the posted invoice (Sales Invoice / Purch. Invoice).
Transfer Shipment or Receipt only Copies only to the posted shipment (Sales Shipment / Purch. Receipt).
Transfer Credit Memo Copies to the posted Credit Memo.
Transfer Invoice and Credit Memo and Shipment or Receipt Copies to all posted document types (invoice, credit memo, shipment/receipt).

6. Default Template Overview

Document Template Sub-templates (Source) Mapped Document Types
SALES ORDER Sales Header (Cust.), Sales Footer (Cust.), Sales Line (Item) Sales Quote, Sales Order, Sales Invoice
PURCHASE ORDER Purchase Header (Vendor), Purchase Footer (Vendor), Purchase Line (Item) Purchase Quote, Purchase Order, Purchase Invoice
PRODUCTION Production Header (Item), Production Component (Item) Production Order