Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 2 of 6

Classic message control for EDI

9 min

Listen to this lesson

0:00 / 10:32

Most EDI outputs in a converted system still run on message control, so an EDI consultant needs to read NACE fluently. Transaction NACE lists the applications; each one holds its output types, access sequences, condition tables and procedures. The ones that matter for order-to-cash and procure-to-pay EDI are V1 (sales), V2 (shipping), V3 (billing) and EF (purchase orders).

Output determination procedureThe list of output types a document type can receive; assigned to the sales document type, delivery type or billing type
Output typeBA00 order confirmation, LAVA shipping notification, RD00 invoice, NEU purchase order: defines partner functions, media, default dispatch time and processing routines
Access sequenceThe order in which condition tables are searched, most specific first
Condition tableThe key fields of a rule, for example sales organization and customer
Condition recordThe actual rule: for 1710 / 17100001, send BA00 to partner function SP by medium 6, immediately
The condition technique behind message control, from the procedure down to the individual record.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-202

The output type for EDI

An output type defines which media are allowed, which partner functions may receive it, its default values, and the processing routine per medium. For EDI, the processing routine for medium 6 points to the standard EDI program (program RSNASTED with form routine EDI_PROCESSING in the standard), which passes the output to the IDoc interface. If medium 6 has no processing routine in the output type, EDI output for it cannot work at all, which is a classic gap when a custom output type is copied from a print-only one.

MediumMeaningUsed for EDI?
1Print outputNo
2FaxNo
5External send (email and similar)No
6EDI: output handed to the IDoc interfaceYes, for business partners
7Simple mailNo
8Special function (custom routine)Sometimes, in custom designs
ADistribution (ALE)For system integration, not trading partners

Transmission media in message control; medium 6 is the EDI medium.

Dispatch time

The dispatch time on the condition record says when the output is processed: 4 sends immediately when the document is saved; 3 waits for the application's own send transaction (for deliveries, the "Output from Deliveries" function); 1 and 2 wait for a periodically scheduled job running report RSNAST00, with 2 adding a time specification. Contoso sets BA00 and LAVA for Great Lakes to 4 so the 855 and 856 leave within minutes. A dispatch time of 1 without a scheduled RSNAST00 job is one of the most common reasons why "no IDoc went out".

Contoso's condition records

Output typeApplicationKeyPartner functionMediumDispatch timeMaintained with
BA00 order confirmationV1Sales org 1710, customer 17100001SP64VV11
LAVA shipping notificationV2Sales org 1710, customer 17100001SP64VV21
NEU purchase orderEFPurchasing org 1710, Lakeside ComponentsVN64MN04

Contoso's EDI condition records in message control after the conversion.

Two details deserve attention. First, the partner function on the record must be one the output type allows and must match the outbound row in WE20. SAP's documentation adds a rule that surprises people: when the medium is EDI, message control only proposes the output if the output partner is set up as a partner in the IDoc interface. So a missing WE20 profile can make the output disappear from determination instead of failing loudly. Second, condition records are master data, maintained per system with VV11, VV21 and MN04 (and VV31 for billing where it still runs on NAST), not transported Customizing. Cutover must load them into CMP.

Saving the order runs message control, which finds Great Lakes' BA00 record and passes the output straight to the IDoc interface.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-202

Where the procedure comes from

Message control only considers output types that are in the output determination procedure assigned to the document. For sales documents the procedure is assigned to the sales document type (the standard header procedure is V10000), for deliveries to the delivery type, and for purchase orders per purchasing document category. When Contoso created a new order type for fleet contracts during the conversion, the first test showed no 855 at all: the new type had been assigned a procedure without BA00. The output type, records and partner profile were all fine; the document type simply never asked for BA00. Checking the procedure assignment belongs in every test of a new document type.

Requirements and change output

A requirement routine on the procedure can stop an output from being determined, for example until the order is complete or free of credit blocks. Great Lakes wants an 855 only for orders without incompletion, so Contoso's procedure keeps the standard requirement that checks the order status before BA00 is proposed. Output types can also allow multiple issuing and send change output when the document changes, which is how an order change can produce a second 855. Whether that is right depends on the partner: Great Lakes accepts a changed 855, and its guide says so.

What would you do?

Lakeside Components says it received no 850 for purchase order 4500002210 in CMQ. The PO's output shows NEU with medium 6 and status 0 (not processed). The condition record has dispatch time 1. What is the most likely explanation?

Key points
  • NACE holds message control per application: V1 sales, V2 shipping, V3 billing, EF purchasing.
  • Medium 6 is EDI; the output type's processing routine for medium 6 hands the output to the IDoc interface.
  • Dispatch time 4 sends on save; 1 and 2 wait for RSNAST00; 3 waits for the application's send transaction.
  • Condition records (VV11, VV21, VV31, MN04) are master data per system and must be loaded at cutover.

Check your understanding · not graded

Lesson check

  1. 1. In classic message control, which transmission medium sends output as EDI?

  2. 2. Which report processes NAST outputs with dispatch time 1 or 2?

  3. 3. Which transaction maintains condition records for shipping output such as LAVA?

  4. 4. Why must condition records be part of the cutover plan?