ERPClimb logoERPClimb
IDoc
ABAP Developmentadvanced 7 min read

IDoc Part 7: Outbound Triggering — Output Control and Change Pointers

Preview · a free account unlocks the full lesson

Key takeaway

Trigger outbound IDocs automatically: output types with medium EDI/ALE (NACE, e. g. BA00 order confirmation, RD00 invoice), process codes like SD10/SD09, change pointers for master data (BD50, BD52, BD61, BD21), and custom outbound FMs with MASTER IDOC DISTRIBUTE.

In this lessonShow sections

Visual overview

IDoc Part 7: Outbound Triggering — Output Control and Change Pointers — learning sheetFlow: VA02: open an order → Extras → Output → Header → check BA00 with medium 6 → WE20: check the message control tab for the customer → BD50: check change pointers for MATMAS; change a material and run BD21 in a test system. Key ideas: OUTPUT CONTROL (SD/MM); CHANGE POINTERS (MASTER DATA); CUSTOM OUTBOUND; REDUCED MESSAGE TYPES. Watch out: If output determination or change pointers are not active, nothing is sent and no error appears — check NAST/output log and BDCP2 first.ERPClimb.com / ABAP / LESSON 7/10 / LEARNING SHEETIDoc Part 7: Outbound Triggering — Output Control andChange Pointers1 · HOW IT FLOWS1VA02open an order → Extras → Output →Header → check BA00 with medium 62WE20check the message control tab forthe customer3BD50check change pointers for MATMAS;change a material and run BD21 in…2 · KEY IDEAS EXPLAINEDOutput Control (Sd/Mm)Output type (NACE, e.g. BA00 order confirmation,LAVA dispatch advice, RD00 invoice, NEU forpurchase orders) with condition records (VV11…Medium 6 (EDI) and partner function.Change Pointers (Master Data)BD61: activate change pointers globally.BD50: activate per message type (e.g. MATMAS,DEBMAS).Custom OutboundOwn program or BAdI/exit after save →MASTER_IDOC_DISTRIBUTE with control and datarecords → COMMIT WORK.Or own process code for output control with an FMfollowing the outbound interface (OBJECT (NAST),CONTROL_RECORD_IN/OUT, INT_EDIDD).Reduced Message TypesBD53 creates reduced message types (e.g. ZMATMAS)sending only selected segments/fields.3 · REMEMBER · WATCH OUTRememberTransactional documents (orders, deliveries, invoices) send IDocs viaoutput control: output type with medium 6 (EDI) or A (ALE) → partner…Master data (materials, customers) sends IDocs via change pointers:changes are recorded, then program RBDMIDOC (BD21) creates IDocs for…Custom outbound IDocs use MASTER_IDOC_DISTRIBUTE, then COMMIT WORK.!Watch outIf output determination or changepointers are not active, nothing issent and no error appears — checkNAST/output log and BDCP2 first.4 · IN A REAL PROJECTA new customer did not receive order confirmations by EDI. The order output log showed no BA00 output at all:the condition record VV11 existed only for print medium 1. After adding a condition record with medium 6 andthe message control entry in WE20, confirmations were sent. For material master distribution, the team found…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Part 4 of this series described outbound IDoc processing itself; this lesson explains what actually triggers it.

Transactional documents — orders, deliveries, invoices — send IDocs through output control: an output type with medium 6 (EDI) or A (ALE) leads to a partner profile's message control, which points to a process code, such as SD10 for an order confirmation (ORDRSP) or SD09 for an invoice (INVOIC).

Master data, such as materials and customers, instead sends IDocs through change pointers: changes get recorded, and the program RBDMIDOC (run via transaction BD21) then creates IDocs for the objects that changed. Custom outbound processing uses MASTER_IDOC_DISTRIBUTE followed by COMMIT WORK.

One important trap: if output determination or change pointers simply aren't active, nothing gets sent and no error appears at all — the first places to check are the NAST output log and table BDCP2.

For output control in SD and MM, you configure an output type in NACE — for example BA00 for an order confirmation, LAVA for a dispatch advice, RD00 for an invoice, or NEU for purchase orders — together with condition records maintained in VV11, VV31, VV21, or MN04, using medium 6 (EDI) and a partner function.

The partner profile's outbound side is set up in WE20, combining a message type with the message control tab, which records the application (V1, V2, V3, or EF), the output type, and the process code.

When the document is saved, output is determined into NAST, then processed either immediately or via the RSNAST00 job, and the process code's function module (for example IDOC_OUTPUT_ORDRSP) actually builds the IDoc. The document's own output log, under Extras → Output, shows whether that succeeded or failed.

In S/4HANA, many documents have moved to Output Management built on BRF+, though EDI output still works through the classic output parameters.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.