<?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 Debugging customized function module when Idoc is triggered via ALE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249618#M775814</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;Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do we get into debug mode and break the flow in the function module so that we can debug in the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 23:03:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-18T23:03:40Z</dc:date>
    <item>
      <title>Debugging customized function module when Idoc is triggered via ALE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249618#M775814</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;Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do we get into debug mode and break the flow in the function module so that we can debug in the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 23:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249618#M775814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T23:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging customized function module when Idoc is triggered via ALE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249619#M775815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick, this might be of some help 4 u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE IDOC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending System(Outbound ALE Process)&lt;/P&gt;&lt;P&gt;Tcode SALE - for &lt;/P&gt;&lt;P&gt;a) Define Logical System &lt;/P&gt;&lt;P&gt;b) Assign Client to Logical System&lt;/P&gt;&lt;P&gt;Tcode SM59-RFC Destination&lt;/P&gt;&lt;P&gt;Tcode BD64 - Create Model View&lt;/P&gt;&lt;P&gt;Tcode BD82 - Generate partner Profiles &amp;amp; Create Ports&lt;/P&gt;&lt;P&gt;Tcode BD64 - Distribute the Model view&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Type MATMAS &lt;/P&gt;&lt;P&gt;Tcode BD10 - Send Material Data&lt;/P&gt;&lt;P&gt;Tcode WE05 - Idoc List for watching any Errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving System(Inbound ALE )&lt;/P&gt;&lt;P&gt;Tcode SALE - for &lt;/P&gt;&lt;P&gt;a) Define Logical System &lt;/P&gt;&lt;P&gt;b) Assign Client to Logical System&lt;/P&gt;&lt;P&gt;Tcode SM59-RFC Destination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tcode BD64 - Check for Model view whether it has distributed or not&lt;/P&gt;&lt;P&gt;Tcode BD82 -- Generate partner Profiles &amp;amp; Create Ports&lt;/P&gt;&lt;P&gt;Tcode BD11 Getting Material Data&lt;/P&gt;&lt;P&gt;Tcode WE05 - Idoc List for inbound status codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE IDOC Steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending System(Outbound ALE Process)&lt;/P&gt;&lt;P&gt;Tcode SALE ?3 for &lt;/P&gt;&lt;P&gt;a) Define Logical System &lt;/P&gt;&lt;P&gt;b) Assign Client to Logical System&lt;/P&gt;&lt;P&gt;Tcode SM59-RFC Destination&lt;/P&gt;&lt;P&gt;Tcode BD64 - Create Model View&lt;/P&gt;&lt;P&gt;Tcode BD82 - Generate partner Profiles &amp;amp; Create Ports&lt;/P&gt;&lt;P&gt;Tcode BD64 - Distribute the Model view&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is Receiving system Settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving System(Inbound ALE )&lt;/P&gt;&lt;P&gt;Tcode SALE - for &lt;/P&gt;&lt;P&gt;a) Define Logical System &lt;/P&gt;&lt;P&gt;b) Assign Client to Logical System&lt;/P&gt;&lt;P&gt;Tcode SM59-RFC Destination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tcode BD64 - Check for Model view whether it has distributed or not&lt;/P&gt;&lt;P&gt;Tcode BD82 -- Generate partner Profiles &amp;amp; Create Ports&lt;/P&gt;&lt;P&gt;Tcode BD11 Getting Material Data&lt;/P&gt;&lt;P&gt;Tcode WE05 - Idoc List for inbound status codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Type MATMAS &lt;/P&gt;&lt;P&gt;Tcode BD10 - Send Material Data&lt;/P&gt;&lt;P&gt;Tcode WE05 - Idoc List for watching any Errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)a Goto Tcode SALE&lt;/P&gt;&lt;P&gt;Click on Sending &amp;amp; Receiving Systems--&amp;gt;Select Logical Systems&lt;/P&gt;&lt;P&gt;Here Define Logical Systems---&amp;gt; Click on Execute Button&lt;/P&gt;&lt;P&gt;go for new entries&lt;/P&gt;&lt;P&gt;1) System Name : ERP000&lt;/P&gt;&lt;P&gt;Description : Sending System&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) System Name : ERP800&lt;/P&gt;&lt;P&gt;Description : Receiving System&lt;/P&gt;&lt;P&gt;press Enter &amp;amp; Save &lt;/P&gt;&lt;P&gt;it will ask Request&lt;/P&gt;&lt;P&gt;if you want new request create new Request orpress continue for transfering the objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) goto Tcode SALE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Assign Client to Logical Systems--&amp;gt;Execute&lt;/P&gt;&lt;P&gt;000--&amp;gt; Double click on this &lt;/P&gt;&lt;P&gt;Give the following Information&lt;/P&gt;&lt;P&gt;Client : ERP 000&lt;/P&gt;&lt;P&gt;City : &lt;/P&gt;&lt;P&gt;Logical System&lt;/P&gt;&lt;P&gt;Currency&lt;/P&gt;&lt;P&gt;Client role&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save this Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2) For RFC Creation&lt;/P&gt;&lt;P&gt;Goto Tcode SM59--&amp;gt;Select R/3 Connects&lt;/P&gt;&lt;P&gt;Click on Create Button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the information for required fields&lt;/P&gt;&lt;P&gt;RFC Destination : ERP800&lt;/P&gt;&lt;P&gt;Connection type: 3&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Target Host : ERP000&lt;/P&gt;&lt;P&gt;System No:000&lt;/P&gt;&lt;P&gt;lan : EN&lt;/P&gt;&lt;P&gt;Client : 800&lt;/P&gt;&lt;P&gt;User : Login User Name&lt;/P&gt;&lt;P&gt;Password: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save this &amp;amp; Test it &amp;amp; RemortLogin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;Goto Tcode BD64 -- click on Change mode button&lt;/P&gt;&lt;P&gt;click on create moduleview&lt;/P&gt;&lt;P&gt;short text : xxxxxxxxxxxxxx&lt;/P&gt;&lt;P&gt;Technical Neme : MODEL_ALV&lt;/P&gt;&lt;P&gt;save this &amp;amp; Press ok &lt;/P&gt;&lt;P&gt;select your just created modelview Name :'MODEL_ALV'.&lt;/P&gt;&lt;P&gt;goto add message type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model Name : MODEL_ALV&lt;/P&gt;&lt;P&gt;sender : ERP000&lt;/P&gt;&lt;P&gt;Receiver : ERP800&lt;/P&gt;&lt;P&gt;Message type :MATMAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save &amp;amp; Press Enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Goto Tcode BD82&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give Model View : MODEL_ALV&lt;/P&gt;&lt;P&gt;Partner system : ERP800&lt;/P&gt;&lt;P&gt;execute this by press F8 Button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will gives you sending system port No :A000000015(Like)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) Goto Tcode BD64&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seelct the modelview&lt;/P&gt;&lt;P&gt;goto &lt;DEL&gt;&amp;gt;edit&lt;/DEL&gt;&amp;gt;modelview--&amp;gt;distribute&lt;/P&gt;&lt;P&gt;press ok &amp;amp; Press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)goto Tcode : BD10 for Material sending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material : mat_001&lt;/P&gt;&lt;P&gt;Message Type : MATMAS&lt;/P&gt;&lt;P&gt;Logical System : ERP800&lt;/P&gt;&lt;P&gt;and Execute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7)goto Tcode : BD11 for Material Receiving&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material : mat_001&lt;/P&gt;&lt;P&gt;Message Type : MATMAS&lt;/P&gt;&lt;P&gt;and Execute --&amp;gt; 1 request idoc created for message type Matmas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Master Idoc set for Messge type MATMAS--&amp;gt;press Enter&lt;/P&gt;&lt;P&gt;1 Communication Idoc generated for Message Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is your IDOC &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;Change Pointers&lt;/P&gt;&lt;P&gt;I know how to change the description of a material using ALE Change Pointers.&lt;/P&gt;&lt;P&gt;I will give the following few steps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Tcode BD61---&amp;gt; check the change pointers activated check box&lt;/P&gt;&lt;P&gt;save and goback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Tcode BD50---&amp;gt; check the MATMAS check box save and comeback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Tcode BD51---&amp;gt; goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Tcode BD52---&amp;gt; give message type : matmas press ok button.&lt;/P&gt;&lt;P&gt;select all what ever you want and delete remaining fields.&lt;/P&gt;&lt;P&gt;save &amp;amp; come back.&lt;/P&gt;&lt;P&gt;5) 5) go to Tcode MM02 select one material and try to change the description and save it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will effects the target systems material desciption will also changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute&lt;/P&gt;&lt;P&gt;give Message type : MATMAS and Executte&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE/IDOC Status Codes/Messages&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01 Error --&amp;gt; Idoc Added&lt;/P&gt;&lt;P&gt;30 Error --&amp;gt; Idoc ready for dispatch(ALE Service)&lt;/P&gt;&lt;P&gt;then goto SE38 --&amp;gt; Execute the Program RBDMIDOC&lt;/P&gt;&lt;P&gt;29 Error --&amp;gt; ALE Service Layer &lt;/P&gt;&lt;P&gt;then goto SE38 --&amp;gt; Execute the Program RSEOUT00&lt;/P&gt;&lt;P&gt;03 Error --&amp;gt; Data Passed to Port ok&lt;/P&gt;&lt;P&gt;then goto SE38 --&amp;gt; Execute the Program RBDMOIND&lt;/P&gt;&lt;P&gt;12 Error --&amp;gt; Dispatch ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inbound Status Codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;50 Error --&amp;gt; It will go for ALE Service Layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;56 Error --&amp;gt; Idoc with Errors added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;51 Error --&amp;gt; Application Document not posted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;65 Error --&amp;gt; Error in ALE Service Layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 51 or 56 Errors do the following steps&lt;/P&gt;&lt;P&gt;goto WE19 &lt;DEL&gt;&amp;gt; give the IDOC Number and Execute&lt;/DEL&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Press on Inbound function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 65 Error --&amp;gt; goto SE38 --&amp;gt; Execute the Program RBDAPP01 then your getting 51 Error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2008 04:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249619#M775815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-19T04:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging customized function module when Idoc is triggered via ALE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249620#M775816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However how do I go into debug mode and debug in the customized function module after saving the billing document?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2008 15:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249620#M775816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-19T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging customized function module when Idoc is triggered via ALE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249621#M775817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok... follow these steps to enter into debug mode...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Set break-point in function module.&lt;/P&gt;&lt;P&gt;2. Before saving i.e. before clicking on Save button enter /H in command line and   press enter.&lt;/P&gt;&lt;P&gt;3. then click on save button.&lt;/P&gt;&lt;P&gt;4. then you'll enter in debug mode (NOT into your funtion module)&lt;/P&gt;&lt;P&gt;5.Then in menu select&lt;/P&gt;&lt;P&gt;  settings----&amp;gt; Update debugging&lt;/P&gt;&lt;P&gt;you can see message 'Update debugging switched on'&lt;/P&gt;&lt;P&gt;6. then press F8.&lt;/P&gt;&lt;P&gt;7. this time control will stop at break-point in your FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically update debugging is to call background programs like print programs while generating PO output etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In normal debug mode you can't debug background processing.&lt;/P&gt;&lt;P&gt;in such cases you've to follow above procedure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2008 15:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249621#M775817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-19T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging customized function module when Idoc is triggered via ALE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249622#M775818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Perez. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points awarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2008 16:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-customized-function-module-when-idoc-is-triggered-via-ale/m-p/3249622#M775818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-19T16:24:21Z</dc:date>
    </item>
  </channel>
</rss>

