<?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 IDOC_INPUT_ORDERS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-input-orders/m-p/6550417#M1429472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already i have posted the issue, but it is not yet solved, i am facing the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually , my requirement is i have added one field in VA01 transaction, and when the inbound idoc triggers for sales order, the exit EXIT_SAPLVEDA_002 inside the function module IDOC_INPUT_ORDERS triggers our custom code written for the custom field updation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one custom field for additional data in VA01, and i have written this code inside the exit :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_vbak_added type c.&lt;/P&gt;&lt;P&gt;data: ls_vbap type vbap,&lt;/P&gt;&lt;P&gt;      ls_vbak type vbak.&lt;/P&gt;&lt;P&gt;IF dlast_dynpro = '4001'." Here u have to use screen number for ship-to party&lt;/P&gt;&lt;P&gt;CHECK l_vbak_added IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Ok code for addition B Screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_vbak = dxvbak.&lt;/P&gt;&lt;P&gt;ls_vbap = dxvbap.&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = '=KZKU'.&lt;/P&gt;&lt;P&gt;APPEND dxbdcdata.&lt;/P&gt;&lt;P&gt;CLEAR: dxbdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dxbdcdata-program = 'SAPMV45A'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynpro = '4003'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = '/00'.&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;dxbdcdata-program = 'SAPMV45A'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynpro = '4003'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'VBAP-YY_MHD_GEPREFT'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = ls_vbap-YY_MHD_GEPREFT.&lt;/P&gt;&lt;P&gt;APPEND dxbdcdata.&lt;/P&gt;&lt;P&gt;CLEAR: dxbdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = '/EBACK'.&lt;/P&gt;&lt;P&gt;APPEND dxbdcdata.&lt;/P&gt;&lt;P&gt;CLEAR: dxbdcdata.&lt;/P&gt;&lt;P&gt;l_vbak_added = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code written by me inside the exit. But it is not working properly. When i am testing my IDOC, having the data for my custom field, what happening is , from the first screen 4001 , when we press enter or click on the tick button the control will jump directly to the Additonal field Tab but it is not showing the custom screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also without filling the line item data first , why the control jumps directly to the Additional Field Tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also tell me why this check is used 'CHECK l_vbak_added IS INITIAL' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz give me some coding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 07:52:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-02T07:52:47Z</dc:date>
    <item>
      <title>IDOC_INPUT_ORDERS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-input-orders/m-p/6550417#M1429472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already i have posted the issue, but it is not yet solved, i am facing the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually , my requirement is i have added one field in VA01 transaction, and when the inbound idoc triggers for sales order, the exit EXIT_SAPLVEDA_002 inside the function module IDOC_INPUT_ORDERS triggers our custom code written for the custom field updation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one custom field for additional data in VA01, and i have written this code inside the exit :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_vbak_added type c.&lt;/P&gt;&lt;P&gt;data: ls_vbap type vbap,&lt;/P&gt;&lt;P&gt;      ls_vbak type vbak.&lt;/P&gt;&lt;P&gt;IF dlast_dynpro = '4001'." Here u have to use screen number for ship-to party&lt;/P&gt;&lt;P&gt;CHECK l_vbak_added IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Ok code for addition B Screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_vbak = dxvbak.&lt;/P&gt;&lt;P&gt;ls_vbap = dxvbap.&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = '=KZKU'.&lt;/P&gt;&lt;P&gt;APPEND dxbdcdata.&lt;/P&gt;&lt;P&gt;CLEAR: dxbdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dxbdcdata-program = 'SAPMV45A'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynpro = '4003'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = '/00'.&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;dxbdcdata-program = 'SAPMV45A'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynpro = '4003'.&lt;/P&gt;&lt;P&gt;dxbdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'VBAP-YY_MHD_GEPREFT'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = ls_vbap-YY_MHD_GEPREFT.&lt;/P&gt;&lt;P&gt;APPEND dxbdcdata.&lt;/P&gt;&lt;P&gt;CLEAR: dxbdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dxbdcdata-fnam = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;dxbdcdata-fval = '/EBACK'.&lt;/P&gt;&lt;P&gt;APPEND dxbdcdata.&lt;/P&gt;&lt;P&gt;CLEAR: dxbdcdata.&lt;/P&gt;&lt;P&gt;l_vbak_added = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code written by me inside the exit. But it is not working properly. When i am testing my IDOC, having the data for my custom field, what happening is , from the first screen 4001 , when we press enter or click on the tick button the control will jump directly to the Additonal field Tab but it is not showing the custom screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also without filling the line item data first , why the control jumps directly to the Additional Field Tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also tell me why this check is used 'CHECK l_vbak_added IS INITIAL' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz give me some coding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 07:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-input-orders/m-p/6550417#M1429472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T07:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC_INPUT_ORDERS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-input-orders/m-p/6550418#M1429473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you comment the following code and check your IDOC with break point...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'CHECK l_vbak_added IS INITIAL' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it works fine, then no problem otherwise check the field 'l_vbak_added ' where you would be used this field and assigned any value to this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to above condition if above field dont have value then it will go to next statement otherwise it will skip from that&lt;/P&gt;&lt;P&gt;cursor position.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 08:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-input-orders/m-p/6550418#M1429473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T08:06:53Z</dc:date>
    </item>
  </channel>
</rss>

