<?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: populating custom idoc through user exit.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-custom-idoc-through-user-exit/m-p/2201442#M470411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to do it using the predefined SAP user exits.&lt;/P&gt;&lt;P&gt;You need to find, based on the message type you are dealing with, the corresponding function module used (for outbound or inbound processing). In this function module (ex: IDOC_INPUT_ORDER) you will find the function exit calls like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL CUSTOMER-FUNCTION '011'
         EXPORTING
              dxvbak  = xvbak
              docnum  = idoc_contrl-docnum
         TABLES
              derrtab = errtab
              dxvbap  = xvbap
              dxvbep  = xvbep
              dxvbadr = xvbadr
              dxvbpa  = xvbpa
              dxvbuv  = xvbuv
              dedidc  = idoc_contrl
              dedidd  = idoc_data
              dxkomv  = xkomv
              dxvekp  = xvekp
              dyvekp  = yvekp.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a enhancement project in CMOD, using the enhancement that contains the function exit (you can search for it in SMOD dropdown and entereing the function module in the component Additional search in SMOD).&lt;/P&gt;&lt;P&gt;Activate it and enter your code in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For specific examples, you will need to provide us the name of the message type or function module  you are trying to "enhance".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo De Araujo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Apr 2007 12:48:53 GMT</pubDate>
    <dc:creator>LeonardoAraujo</dc:creator>
    <dc:date>2007-04-22T12:48:53Z</dc:date>
    <item>
      <title>populating custom idoc through user exit..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-custom-idoc-through-user-exit/m-p/2201441#M470410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends .. i have one query .. how can we populate a custom idoc through user exits..&lt;/P&gt;&lt;P&gt;i will be thankful if you can provide me information regarding this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Apr 2007 02:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-custom-idoc-through-user-exit/m-p/2201441#M470410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-22T02:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: populating custom idoc through user exit..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-custom-idoc-through-user-exit/m-p/2201442#M470411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to do it using the predefined SAP user exits.&lt;/P&gt;&lt;P&gt;You need to find, based on the message type you are dealing with, the corresponding function module used (for outbound or inbound processing). In this function module (ex: IDOC_INPUT_ORDER) you will find the function exit calls like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL CUSTOMER-FUNCTION '011'
         EXPORTING
              dxvbak  = xvbak
              docnum  = idoc_contrl-docnum
         TABLES
              derrtab = errtab
              dxvbap  = xvbap
              dxvbep  = xvbep
              dxvbadr = xvbadr
              dxvbpa  = xvbpa
              dxvbuv  = xvbuv
              dedidc  = idoc_contrl
              dedidd  = idoc_data
              dxkomv  = xkomv
              dxvekp  = xvekp
              dyvekp  = yvekp.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a enhancement project in CMOD, using the enhancement that contains the function exit (you can search for it in SMOD dropdown and entereing the function module in the component Additional search in SMOD).&lt;/P&gt;&lt;P&gt;Activate it and enter your code in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For specific examples, you will need to provide us the name of the message type or function module  you are trying to "enhance".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo De Araujo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Apr 2007 12:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-custom-idoc-through-user-exit/m-p/2201442#M470411</guid>
      <dc:creator>LeonardoAraujo</dc:creator>
      <dc:date>2007-04-22T12:48:53Z</dc:date>
    </item>
  </channel>
</rss>

