How to Trigger IDOC immediately when SAP PO is created or updated ?

Trigger IDOC immediately PO is created or updated is a recurrent requirement for business.
This post will explain the main steps to make it happens.

Trigger IDoc for PO Customizing

Please refer to SAP NACE for more information on NACE Transaction and how to configure an output message.

NACE: Maintain Procedures

The NACE transaction is created to maintain Procedures for output.
Go to Nace Transaction and the application EF for Purchase Order. Open Procedures

NACE PO Trigger IDoc 1

Application in SAP NACE

Here the list of Application available in NACE tcodes:

  • CF Error Control
  • CV Document Management
  • E1 Inbound Delivery
  • EA Purchasing RFQ
  • EF Purchase Order
  • EL Purch. SchAgrRelease
  • ES Entry Sheet
  • EV Purch.Outline Agr.
  • K1 Sales activities
  • M1 Rough Goods Receipt
  • MD Direct Procurement
  • ME Inventory Management
  • MR Invoice Verification
  • NF Nota fiscal
  • P1 Direct Production
  • PA JIT Call
  • RD DBM Automotive
  • RE DBM Putaway Manager
  • RS Automotive
  • RW DI – Warranty
  • V1 Sales
  • V2 Shipping
  • V3 Billing
  • V5 Groups
  • V6 Handling Units
  • V7 Transport
  • VL Visit List
  • WA Allocation Table
  • WB Retail Promotion
  • WE Labeling
  • WN Free Sett. Rel. Del.
  • WR Agency Business
  • WS Free Sett. Agreem.
  • WT Trading Contract

Maintain SAP Message Schemas (SPRO)

Go to transaction SPRO and Message Schema for Purchase Order.
In this, navigate as following:
Materials management > Purchasing > Messages > Output control > Message Determination Schemas > Define Message Schema for Purchase Order

NACE PO Trigger IDoc Define

Select Assign Schema to Purchase Order and make sure the Procedure RMBEF1 ( or the custom Procedure maintained ) is active

NACE PO Trigger IDoc Assign Msg Determination

Maintain Output types (NACE)

Here the step by step to follow to create / configure an Output Types :

  • Go back to transaction NACE.
  • Select ‘EF’ and click on “Output types”. Go to NEU
    • PS: use NEU Output Type or a copy of NEU .
  • Add a new entry in Processing Routines with Transmission Medium EDI
    • We can use the standard program RSNASTED with the form EDI_PROCESSING

NACE PO Trigger IDoc NEU

Maintain Conditions Records for NEU (NACE)

Make sure the partner function is set to LS Logical System and the partner is the Logical System receiver of the Idoc.

Maintain ALE configuration (WE20)

For Purchase Order, the message type is ORDERS and the IDOC Type ORDERS05

NACE PO Trigger IDoc WE20Set Process Code (WE20)

Within the control tab, maintain the process code ME10 with Message Type NEU and application EF

NACE PO Trigger IDoc WE20 Process Code

Behind the Process Code ME10, there is either:

List of SAP Process Code

Here the list of possible value for Process Code in SAP. ( Note that you can create your own Process Code ).

/ISDFPS/ Process Code

Process Code Description
/ISDFPS/ADCompany Addresses Infotype 1952
/ISDFPS/BOMEQUEquipment BOM
/ISDFPS/BOMSTDStandard BOM
/ISDFPS/BOMTPLFunctional Location BOM
/ISDFPS/CP01Change Authorization
/ISDFPS/CRE1CREMAS Venddor Master Data ISDFPS with UPS
/ISDFPS/DEBMDEBMAS Customer Master Data ISDFPS with UPS
/ISDFPS/EL01Additional Objects EXPO_LIS
/ISDFPS/EP01Equipment Package
/ISDFPS/ET01Equipment
/ISDFPS/FC01Funds Center
/ISDFPS/FL01Functional Locations
/ISDFPS/FO01Structure Element
/ISDFPS/KS01Cost Center
/ISDFPS/MC01Material Container
/ISDFPS/MCMCR1MC -> MPO Relationships
/ISDFPS/MD01Measurement Documents
/ISDFPS/MDMA/ISDFPS/MAT_DISPO Material MRP Area Data
/ISDFPS/MO01Material Planning Object
/ISDFPS/MOMODMPO Models
/ISDFPS/MOMOR1MPO Relationships (Plants Sections)
/ISDFPS/MP01PM – Maintenance Plans
/ISDFPS/MPL01Master Part List
/ISDFPS/MR01Measuring Points
/ISDFPS/MS01Maintenance Strategy
/ISDFPS/NO01Messages
/ISDFPS/OREL01External Dependency
/ISDFPS/PACK/ISDFPS/PACKVOR Packing Instructions
/ISDFPS/PC01Profit Center
/ISDFPS/PR01Production Resources and Tools
/ISDFPS/PS01WBS Element
/ISDFPS/RL01Reference Locations
/ISDFPS/RV01Revisions
/ISDFPS/SG01Structure Gap
/ISDFPS/TC01Return Messages
/ISDFPS/TL01PM Task Lists
/ISDFPS/VP01Material Package
/ISDFPS/V_SE_EP01Logistics Requirement (Equipment Package)
/ISDFPS/V_SE_MC01Authorized Materials (Material Container)
/ISDFPS/V_SE_MP01Authorized Materials (Material Planning Object)
/ISDFPS/V_SE_VP01Logistics Requirement (Material Package)
/ISDFPS/WC01Work Centers
/ISDFPS/WO01Maintenance Order

SAP A* and B* Process Codes

Process Code Description
ABI_AIDN_IN
AFSAAFS inbound article
ALC2Synchron. of cust. data between systems (CONDA2)
ALECControl data adjustment between systems
ALFWForward IDOCs to another system
APLIInbound IDoc: Individual Processing
APLMInbound IDoc: Mass Processing
ASMOASSMOD Assortment module
AUD1ALEAUD processing information for IDocs
AUD2ALEAUD Processing Info Data Replication
AUDIT_STATALEAUD IDoc Status Without Statistics
BAPIInbound BAPI IDoc: Individual processing
BAPI_MDMInbound BAPI IDoc: Individual processing MDM Vers.
BAPI_MDM_MATERIAL_RT
BAPI_MDM_TAInbound BAPI IDoc: Individual processing MDM Vers.
BAPPInbound BAPI IDoc: Packet processing
BLACBLAOCH Purchasing contract change
BLAOBLAORD Purchasing contracts
BLARBLAREL Release order doc. for purchasing contr.
BNRTBenefits pension schemes
BOM2MDM: Eingang Materialstückliste
BOMDBOMDOC Document structure
BOMMBOMMAT Material BOM
BOMOBOMORD sales order BOM

SAP C*, D* and E*  Process Coes

Process Code Description
CATTApplication for Automatic Tests
CHRMCHRMAS Characteristics
CLFMCLFMAS Classification
CLSMCLSMAS Classes
CMREInvitation to send TR-CM data
CMSEProcessing of sent TR-CM data
CNPMCNPMAS Configuration profile
CO01BBPCO Incoming Invoice
COA1COACTV Cost center/activity type master data
COAFCOAFET Request activity type
COAMCOAMAS Activity type master data
COCOCOCOKA CO object/cost element master data
CODCCODCMT CO document
COELCOELEM Cost elements master data
COG1COGRP1 Cost center groups
COG2COGRP2 Cost element groups
COG3COGRP3 Order Groups
COG5COGRP5 Activity type groups
COG6COGRP6 Profit center groups
COG7COGRP7 Business process groups
COG9COGRP9 Account groups (profit center)
COMM_ITEMCommitment Item
CON1CONF11 Confirmations in CC1
CON2CONF21 Confirmations in CC2 time events
CON4CONF31 Confirmations in CC3 time events
CON5CONF32 Confirmations in CC3 wage slips
CON6CONF41 Confirmations in CC4 time events
CON7CONF42 Confirmations in CC4 wage slips
CON8CONF51 confirmations in CC5 kanban
CONDConditions: Master data for price determination
CONFConfirmation of IDoc processing from application
COPCCOPCPA Costing data CO-PC -> CO-PA
COSFCOSFET Request cost center
COSMCOSMAS Cost center master data
COTOCOTOTL CO totals records
CP00CP…. Profitability Accounting (COPAGN)
CRE1CREMAS Vendor master data
CRE2MDM: Input Vendor from CRM via IS
CREAREMADV Credit Advice
CRECCREADV Credit memo display with clearing FI
CREFCREFET Get vendor data
DEB2MDM: Input Debitor from CRM via IS
DEBAREMADV Debit Advice
DEBCDEBADV Debit display with clearing FI
DEBFDEBFET Request customer master
DEBMDEBMAS Customer master data
DELIDELINS Delivery schedule/JIT delivery schedule
DELODelivery order (MAIS Pick-up Sheet)
DELSDelivery advice (DESADV with DELVRY01)
DELVDelivery (SHPCON + WHSCON with DELVRY01)
DEPNDEPNET – Dependency nets
DESADelivery advice (DESADV with DESADV01)
DOC2DOCMAS Documents for MDM
DOCMDOCMAS Documents
DOLMASDOLMAS Object Linking
DPODAcknowledgement of Receipt (POD)
ECM2Change Management: MDM Plug-In Version
ECMMChange number
ECMRECMREV : Revision level
ECM_UPSChange Management with UPS
ED00Display IDoc using work item
ED00_XMLDisplay IDoc using work item (XML)
ED01Process incoming inquiry converted 21
ED02Process incoming order converted 21
ED03Process order confirmation converted 2.1
ED04Process purch.ord.chng. converted 2.1
ED05Process shipping notification converted 21
ED06Process invoice receipt MM converted 21
ED07Process invoice receipt FI converted 21
ED08Forward IDoc
EDI1EDI_INPMAN
EDLNEDLNOT EDL delivery notes
EDX_DELSDelivery advice (DESADV with DELVRY01)
EDX_INVFINVOIC FI Invoice receipt (Financial Accounting)
EDX_INVLINVOIC MM Logistics invoice verification (MM)
EDX_ORDCORDCHG Change sales order
EDX_ORDEORDERS Create sales order
EDX_ORDRORDRSP Purchase order confirmation
EKSEEKSEKS Purchasing doc. for Purchasing Info System

SAP F*->Q*  Process Coes

Process Code Description
FI01EDI FI: Incoming invoice (<= Rel. 2.2)
FI04Process reference IDoc for payment
FICHFIDCCH Change to an FI document
FID1FIDCC1: FI entire documents (Exit 003/004)
FID2FIDCC2: FI entire documents (Exit 005/006)
FIDCFIDCMT FI single items
FINSFINSTA Account statement
FIROFIROLL G/L rollup
FMALE_FIFunds Management: Actual IDocs
FMALE_OIFunds Management: Commitment IDocs
FMEDIOCBCS Documents
FTBAFTDABA: Foreign trade basic data
FTCOFTDACO: Customs conditions
FTCUFTDACU: Foreign trade customs data
FTRCFTRCON Receipt Confirmation for Financial Trans.
FUNDSCENTERFunds Center
GLCOGLCORE G/L core master data
GLFEGLFETC Request G/L accounts
GLMAGLMAST G/L account master data
GLROGLROLL FI-SL rollup
GSVEGSVERF Credit memo procedure
HRMDHR: HR master data organizational data
HRPAHRPAY: Transfer FI/CO
HRSMExternal personnel action
HRSM_DExternal personnel action
HRTRHRTRVL: Transfer FI/CO
IMATIMATIS Unplanned material issues
IMEAIMEASR Measurement readings
INFRINFREC Purchase info records
INTUINTUPD Notification (or Task) status update
INVBBBPIV BBP Invoice Verification
INVCINVCON Inventory controlling
INVFINVOIC FI Invoice receipt (Financial Accounting)
INVLINVOIC MM Logistics invoice verification (MM)
INVMINVOIC MM Invoice Verification (Mat. Management)
IOAUIOAUPD Order assignment update
IORUIORUPD Order (or Operation) status update
IV01BBPIV Incoming Invoice
KANBKANBAN call
KNOMKNOMAS Global object dependencies
LCROLCROLL Legal consolidation
LIKOLIKOND Listing conditions
LIP0LIP… Distributed IS planning
LIS0LIS… MMX_EXTERNAL_DATA_GLOBAL_ENTRY
LOBXLOCKBX Lockbox
LPAYACLPAY Accounting invoice receipt
LRECACLREC Accounting invoice
LSTDCurrent requirements/stock list
MAT2MDM: Input Material from CRM via IS
MATFMATFET Request material
MATMMATMAS Material master data
MDMREQMDM Request
ME01Order Confirmation with ORD_ID01 (ME_ORDRSP)
ME04ME_DESADV
MR01MM_INVOIC
ORDCORDCHG Change sales order
ORDEORDERS Create sales order
ORDE_BY_WORKFLOWORDERS sales order with texts in Workflow
ORDMORDCHG VMI PO creation confirmation (customer)
ORDRORDRSP Purchase order confirmation
ORDR_SUSORDRSP
ORDSORDRSP SMI Generate/Confirm Purchase Order
ORDVORDRSP VMI generate/confirm purchase order
PALMPALMAT Plant assignment for material BOM
PCROPCROLL Profit Center Rollup
PEXCPI Incoming Payment Processing Clearing (ERP1.0)
PEXC_PIPI Incoming Payment Processing Clearing (ERP 1.0)
PEXNIHC Zahlungseingangsverarbeitung (ERP1.0)
PEXRIncoming payment processing
PINWHRINW Time tickets from Logistics
PJMMACPJMM Accounting goods movement
PPRSHRPRS Attendances from Logistics
PRACPROACT Customer stock data and sales data
PRCFPRCFET Fetch profit center master record
PRCMPRCMAS Profit center master record
PRDCPRDCAT basic and structure data product catalog
PRDPPRDPOS position data product catalog
PRICATPricing catalog
QCERT_INInbound processing for Qality01

SAP R*->W*  Process Coes

Process Code Description
RCLRRCLROL CO rollup reconcil. ledger
RCY0RCYFET Get recovery objects
RCY1RCYRSP Acknowledge recovery objects
RCY2RCYLST Confirm recovery objects
REMAREMADV Payment advice
REMCREMADV Payment advice with clearing in FI
REQOREQOTE Create customer inquiry
RSINBW: Info IDoc (Status) from Source System
RSRQRSAP_IDOC_DISPATCHER
SBAPSD credit memo procedure w. autom. posting (SBWAP)
SBIICredit memo procedure with invoice creation
SD01SD_ORDERS
SD02SD_REQOTE
SD03SD_ORDCHG
SD04SD_EDLNOT
SD05SD_DELINS
SDPASDPACK Shipping unit data confirmation
SDPISDPICK Picking data confirmation
SERDSERDAT Control message serialized distribution
SHIPSHIPPL External transport planning
SHPCInbound freight planning of carrier
SHPMInbound transport
SHPTShipment tendering
SISCSISCSO Sales info: Customer order
SISDSISDEL Sales info: Deliver
SISISISINV Sales info: Billing document
SRCLSRCLST Source list
SRVMSRVMAS : Service master (master data)
STA1Status record from IDoc
STA2Status Record from IDoc; with Function Module
STTMSTTMAT material variants
TXT1Text message from IDoc as RAW message
UPSMALE distribution unit (MASTER)
UPSRALE distribution unit (RECEIPT)
VFNMVFNMAS inbound variant function
VTAMVTAMAS Structures from variant tables
VTMMVTMMAS Contents of variant tables
WALRWALREQ Allocation: Requested quant. confirmation
WFMHCM
WMBBWMBBIN Lock storage bins
WMCAWMCATO Reversal/Reversal request transfer order
WMI1WMINVE Inventory count input
WMINWMINFO Information
WMMBWMMBXY IDOC Report goods movements in IM
WMPHWMPIHU Assign and Create Pick-HU
WMSUWMSUMO Move storage unit
WMT1WMTORD Transfer request
WMTOWMTOCO Confirm transfer request
WMTRWMTREQ Create/Cancel transfer request
WPUBWPUBON Upload sales documents (uncompressed)
WPUEWPUERR Messages FWWS/POS/SCS
WPUFWPUFIB Upload accounting documents
WPUKWPUKSR Upload cashier data
WPUPWPUPAE Price changes
WPUTWPUTAB Day-end closing POS
WPUUWPUUMS Sales data (compressed)
WPUWWPUWBW Goods movements
WP_EWP_EAN EAN assignments
WP_PWP_PLU Product master
WTYICWarranty: Incoming Applications (IC)
WTYIVWarranty: Incoming Applications (IV)
WVFBORDERS >= 3.0 or GOODS_REQUIREMENT
WVINWVINVE Upload actual inventory count dates

Sab125

Hi. I have been working as SAP Technical and functional for a decade. Through this blog, I am trying to share with you my experience. Hopefull, it makes your ways easier path ...Sab