10. ORDERS iDOC configuration for Sales Orders

10. ORDERS iDOC configuration for Sales Orders

ORDERS iDOC is used to create a Sales Order. This iDOC is sent as a message to the SAP system from the E-Commerce portal.

In SAP, the configuration of ORDERS iDOC begins in transaction WE20, on the Logical Systems part as an Inbound message, as described in the screen from Figure-87.



Figure-87 Setting up the Inbound ORDERS iDOC to receive Sales Orders from the E-Commerce portal in SAP.

When this entry is added, fill in the Inbound parameters as shown in Figure-88:



Figure-88 Setting up the iDOC in WE20 for sales order message reception.


All other tabs from Figure-88 will remain empty.

The message that must be received before successfully creating this order is shown in the following example, or using WE02: 


<?xml version="1.0" encoding="UTF-8"?>

<ORDERS05> 


<IDOC BEGIN="1">

 <EDI_DC40 SEGMENT="1">

  <TABNAM>EDI_DC40</TABNAM>

  <MANDT>800</MANDT>

  <DOCNUM>0000000025103215</DOCNUM>

  <DOCREL>740</DOCREL>

  <STATUS>30</STATUS>

  <DIRECT>1</DIRECT>

  <OUTMOD>2</OUTMOD>

  <IDOCTYP>ORDERS05</IDOCTYP>

  <MESTYP>ORDERS</MESTYP>

  <SNDPOR>SAPERP</SNDPOR>

  <SNDPRT>LS</SNDPRT>

  <SNDPRN>EH7CLNT800</SNDPRN>

  <RCVPOR>ECOMMERCE</RCVPOR>

  <RCVPRT>LS</RCVPRT>

  <RCVPRN>ECOMMERCE</RCVPRN>

  <CREDAT>20160901</CREDAT>

  <CRETIM>072024</CRETIM>

  <SERIAL>20160819072024</SERIAL>

 </EDI_DC40>


 <E1EDK01 SEGMENT="1">

  <ACTION>000</ACTION>

  <BELNR>25103000</BELNR>

  <CURCY>USD</CURCY>

  <ZTERM>Z030</ZTERM>

  <BSART>OR</BSART>

  <LIFSK>90</LIFSK>

 </E1EDK01>


 <E1EDK14 SEGMENT="1">

  <QUALF>012</QUALF>

  <ORGID>TA</ORGID>

 </E1EDK14>


  <E1EDK14 SEGMENT="1">

  <QUALF>005</QUALF>

  <ORGID>3800</ORGID>

 </E1EDK14>


<E1EDK14 SEGMENT="1">

  <QUALF>006</QUALF>

  <ORGID>00</ORGID>

 </E1EDK14>

 

 <E1EDK14 SEGMENT="1">

  <QUALF>007</QUALF>

  <ORGID>10</ORGID>

 </E1EDK14>


 <E1EDK14 SEGMENT="1">

  <QUALF>008</QUALF>

  <ORGID>3000</ORGID>

 </E1EDK14>


 <E1EDK03 SEGMENT="1">

  <IDDAT>002</IDDAT>

  <DATUM>20160913</DATUM>

 </E1EDK03>

   

 <E1EDKA1 SEGMENT="1">

  <PARVW>AG</PARVW>

  <PARTN>0000100016</PARTN>

  <NAME1>Alexander Hodorozky</NAME1>

  <STRAS>20777 Bear Valley Rd</STRAS>

  <ORT01>Los Angeles</ORT01>

  <PSTLZ>92308</PSTLZ>

  <LAND1>US</LAND1>

  <REGIO>CA</REGIO>

  <PFORT>92308</PFORT>

 </E1EDKA1>

 

 <E1EDKA1 SEGMENT="1">

  <PARVW>RE</PARVW>

  <PARTN>0000100016</PARTN>

  <NAME1>Alexander Hodorozky</NAME1>

  <STRAS>20777 Bear Valley Rd</STRAS>

  <ORT01>Los Angeles</ORT01>

  <PSTLZ>02308</PSTLZ>

  <LAND1>US</LAND1>

  <REGIO>CA</REGIO>

  <PFORT>92308</PFORT>

 </E1EDKA1>

 

 <E1EDKA1 SEGMENT="1">

  <PARVW>RG</PARVW>

  <PARTN>0000100016</PARTN>

  <NAME1>Alexander Hodorozky</NAME1>

  <STRAS>20777 Bear Valley Rd</STRAS>

  <ORT01>Los Angeles</ORT01>

  <PSTLZ>773811234</PSTLZ>

  <LAND1>US</LAND1>

  <REGIO>CA</REGIO>

  <PFORT>92308</PFORT>

 </E1EDKA1>

 

 <E1EDKA1 SEGMENT="1">

  <PARVW>WE</PARVW>

  <PARTN>0000100016</PARTN>

  <NAME1>Alexander Hodorozky</NAME1>

  <STRAS>20777 Bear Valley Rd</STRAS>

  <ORT01>Los Angeles</ORT01>

  <PSTLZ>92308</PSTLZ>

  <LAND1>US</LAND1>

  <REGIO>CA</REGIO>

  <PFORT>92308</PFORT>

 </E1EDKA1>

    

  <E1EDK02 SEGMENT="1">

  <QUALF>001</QUALF>

  <BELNR>450012345</BELNR>

  <DATUM>20160813</DATUM>

 </E1EDK02>


  <E1EDP01 SEGMENT="1">

  <QUALF>001</QUALF>

  <IDTNR>021V007534937002</IDTNR>

  <POSEX>00010</POSEX>

  <PSTYP>TAN</PSTYP>

  <MENGE>2</MENGE>

  <WERKS>3800</WERKS>

  <LGORT>0001</LGORT>

  

  <E1EDP19 SEGMENT="1">

   <QUALF>001</QUALF>

   <IDTNR>021V007534937002</IDTNR>

  </E1EDP19>


  <E1EDP19 SEGMENT="1">

   <QUALF>002</QUALF>

   <IDTNR>US-01-1000</IDTNR>

  </E1EDP19>

  

   <E1EDP01 SEGMENT="1">

  <QUALF>001</QUALF>

  <IDTNR>021V007534937002</IDTNR>

  <POSEX>00020</POSEX>

  <PSTYP>TAN</PSTYP>

  <MENGE>8</MENGE>

  <WERKS>3800</WERKS>

  <LGORT>0001</LGORT>

  

  <E1EDP19 SEGMENT="1">

   <QUALF>001</QUALF>

   <IDTNR>021V007534937004</IDTNR>

  </E1EDP19>


  <E1EDP19 SEGMENT="1">

   <QUALF>002</QUALF>

   <IDTNR>US-01-2000</IDTNR>

  </E1EDP19>

  


  <E1EDP19 SEGMENT="1">

   <QUALF>003</QUALF>

   <IDTNR>753793815800</IDTNR>

  </E1EDP19>


  </E1EDP01> 

</IDOC>  

</ORDERS05>



    • Related Articles

    • 11. Setting up the ORDRSP iDOC for confirmation of the Sales Order

      To configure ORDRSP iDOC message in response to the creation of a Sales Order from the E-Commerce portal, the first step is to define a new message type in the NACE transaction: ZOEC for V1 application area. This ZOEC custom message is created in ...
    • 8. Setting up the iDoc to create SD QUOTATIONS

      As a standard, SAP does not support the creation of quote documents within the SD module, therefore, an iDOC Z must be setup based on the basic message type ORDERS05. This type of message is processed by a program (called ...
    • 4. Port definition for iDoc processing in SAP

      Along with the previous two sections of Logical Distribution Model and RFC Destination Definition, a recipient port must be configured for iDOC processing. iDOCs are standardized documents like EDI (Electronic Data Interchange) documents that SAP ...
    • 9. Setting up the iDOC to confirm zQuote creation

      For the E-Commerce portal to find out about the quote number created in SAP, a new custom message called ZQEC needs to be included. An SAP configuration for this new message type "ZQEC" to be activated and generated at the same time a QT quote is ...
    • 6. MATMAS iDoc configuration

      As mentioned in the configuration table of Figure-16, MATMAS iDoc is used for sending information from SAP Material Master to an External system, in this case, to the E-Commerce system. To start creating those messages, access the screen ...