<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Outbound process code for MBGMCR02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-process-code-for-mbgmcr02/m-p/6835387#M1472261</link>
    <description>&lt;P&gt;This is exactly what I needed.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 16:18:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-08-07T16:18:38Z</dc:date>
    <item>
      <title>Outbound process code for MBGMCR02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-process-code-for-mbgmcr02/m-p/6835385#M1472259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I need to send out material movement (document) information using IDOC. I found MBGMCR02 is a suitable one but the process code is inbound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I read some thread, it said you can create a new outbound process code. But I don't know exactly how to do it.&lt;/P&gt;&lt;P&gt;    Can anyone share some advice?&lt;/P&gt;&lt;P&gt;    Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dennis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 15:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-process-code-for-mbgmcr02/m-p/6835385#M1472259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T15:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound process code for MBGMCR02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-process-code-for-mbgmcr02/m-p/6835386#M1472260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this problem create the outbound process code using the following method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto txn WE41 : Create a new outbound process code say ZMMGRO and assign your message type MBGMCR to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also maintain a FM say ZMBGMCR_IDOC_OUPUT which process the IDOC in the outbound side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM signature should typically look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(OBJECT) LIKE  NAST STRUCTURE  NAST&lt;/P&gt;&lt;P&gt;*"     VALUE(CONTROL_RECORD_IN) LIKE  EDIDC STRUCTURE  EDIDC&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(OBJECT_TYPE) LIKE  WFAS1-ASGTP&lt;/P&gt;&lt;P&gt;*"     VALUE(CONTROL_RECORD_OUT) LIKE  EDIDC STRUCTURE  EDIDC&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      INT_EDIDD STRUCTURE  EDIDD&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      ERROR_MESSAGE_RECEIVED&lt;/P&gt;&lt;P&gt;*"      DATA_NOT_RELEVANT_FOR_SENDING&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MKPF, MSEG.&lt;/P&gt;&lt;P&gt;data wa_mkpf type MKPF.&lt;/P&gt;&lt;P&gt;data it_mseg type TABLE OF MSEG.&lt;/P&gt;&lt;P&gt;data wa_mseg like LINE OF it_mseg.&lt;/P&gt;&lt;P&gt;data wa_E1BP2017_GM_HEAD_01 type E1BP2017_GM_HEAD_01.&lt;/P&gt;&lt;P&gt;data wa_E1MBGMCR type E1MBGMCR .&lt;/P&gt;&lt;P&gt;data wa_E1BP2017_GM_ITEM_CREATE type E1BP2017_GM_ITEM_CREATE.&lt;/P&gt;&lt;P&gt;data wa_E1BP2017_GM_CODE type E1BP2017_GM_CODE.&lt;/P&gt;&lt;P&gt;data wa_E1BP2017_GM_ITEM_CREATE1 type E1BP2017_GM_ITEM_CREATE1.&lt;/P&gt;&lt;P&gt;data wa_E1BP2017_GM_SERIALNUMBER type E1BP2017_GM_SERIALNUMBER.&lt;/P&gt;&lt;P&gt;data wa_edidd type edidd.&lt;/P&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;Create Control Record **********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;move CONTROL_RECORD_IN to CONTROL_RECORD_OUT.&lt;/P&gt;&lt;P&gt;control_record_out-direct = '1'.&lt;/P&gt;&lt;P&gt;control_record_out-serial = sy-datum.&lt;/P&gt;&lt;P&gt;control_record_out-serial+8 = sy-uzeit.&lt;/P&gt;&lt;P&gt;*******************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Fill Segment data from MKPF &amp;amp; MSEG ******&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_edidd.&lt;/P&gt;&lt;P&gt;clear wa_E1MBGMCR.&lt;/P&gt;&lt;P&gt;move wa_E1MBGMCR to wa_edidd-sdata.&lt;/P&gt;&lt;P&gt;wa_edidd-segnam = 'E1MBGMCR'.&lt;/P&gt;&lt;P&gt;append wa_edidd to int_edidd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single * from MKPF into wa_mkpf where&lt;/P&gt;&lt;P&gt;mblnr eq OBJECT-OBJKY+0(10)&lt;/P&gt;&lt;P&gt;and mjahr eq OBJECT-OBJKY+10(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_edidd.&lt;/P&gt;&lt;P&gt;clear wa_E1BP2017_GM_HEAD_01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_HEAD_01-PSTNG_DATE = wa_mkpf-BUDAT.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_HEAD_01-DOC_DATE = wa_mkpf-BLDAT.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_HEAD_01-BILL_OF_LADING = wa_mkpf-FRBNR.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_HEAD_01-PR_UNAME = wa_mkpf-USNAM.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_HEAD_01-HEADER_TXT = wa_mkpf-BKTXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_E1BP2017_GM_HEAD_01 to wa_edidd-sdata.&lt;/P&gt;&lt;P&gt;wa_edidd-segnam = 'E1BP2017_GM_HEAD_01'.&lt;/P&gt;&lt;P&gt;append wa_edidd to int_edidd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from mseg INTO TABLE it_mseg where&lt;/P&gt;&lt;P&gt;mblnr eq OBJECT-OBJKY+0(10)&lt;/P&gt;&lt;P&gt;and mjahr eq OBJECT-OBJKY+10(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mseg into wa_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR wa_edidd.&lt;/P&gt;&lt;P&gt;CLEAR wa_E1BP2017_GM_ITEM_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-MATERIAL = wa_mseg-MATNR.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-PLANT = wa_mseg-WERKS.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-STGE_LOC = wa_mseg-LGORT.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-BATCH = wa_mseg-CHARG.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-MOVE_TYPE = wa_mseg-BWART.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-STCK_TYPE = wa_mseg-INSMK.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-SPEC_STOCK = wa_mseg-SOBKZ.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-VENDOR = wa_mseg-LIFNR.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-ENTRY_QNT  = wa_mseg-MENGE.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-ENTRY_UOM = wa_mseg-ERFME.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-PO_NUMBER = wa_mseg-EBELN.&lt;/P&gt;&lt;P&gt;wa_E1BP2017_GM_ITEM_CREATE-PO_ITEM = wa_mseg-EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_E1BP2017_GM_ITEM_CREATE to wa_edidd-sdata.&lt;/P&gt;&lt;P&gt;wa_edidd-segnam = 'E1BP2017_GM_ITEM_CREATE'.&lt;/P&gt;&lt;P&gt;append wa_edidd to int_edidd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;Do remember to maintain the message control in WE20 where you maintain this outbound code against your output type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 18:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-process-code-for-mbgmcr02/m-p/6835386#M1472260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T18:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound process code for MBGMCR02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-process-code-for-mbgmcr02/m-p/6835387#M1472261</link>
      <description>&lt;P&gt;This is exactly what I needed.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 16:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outbound-process-code-for-mbgmcr02/m-p/6835387#M1472261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-08-07T16:18:38Z</dc:date>
    </item>
  </channel>
</rss>

