<?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 Debug ABAP program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589586#M592808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a WebService and I followed the instructions in order to call it from the ABAP side. So now I have a proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple ABAP program to test this WS call but it seems it's not working quite well. For external debug purposes, on the WS side I write text files. Those logs indicate me that the WS is indeed being called and exited succesfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WS returns an array of Objects which I assume is translated as a table on ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have some "write" statements on the ABAP program and they indicate me that no exceptions are being thrown. However, when I set the breakpoint just after the call, the table shows it has no "rows" in it, as if the WS retuned something empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  Z_WS_EXTERNAL_TES
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
REPORT  Z_WS_EXTERNAL_TES.
DATA: MDM_PROXY TYPE REF TO ZEXTERNALCO_MDMWEB_SERVICES_VI .
TRY.
    CREATE OBJECT MDM_PROXY
      .
  CATCH CX_AI_SYSTEM_FAULT .
ENDTRY.
data: OUTPUT type ZEXTERNALGET_CANDIDATES_OUT_DO .
data: INPUT type ZEXTERNALGET_CANDIDATES_IN_DOC .
TRY.
write 'Step 1 '.
    CALL METHOD MDM_PROXY-&amp;gt;GET_CANDIDATES
      EXPORTING
        INPUT  = input
      IMPORTING
        OUTPUT = output.
write 'Step 11 '.
  CATCH CX_AI_SYSTEM_FAULT .
    write 'Step 2 '.
  CATCH CX_AI_APPLICATION_FAULT .
    write 'Step 3 '.
write 'END'.
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The outcome of the program prints:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1           Step 11          END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The breakpoint is set on the line that Prints the string "Step 11". The debug stops there, I click on GLOBALS and the OUTPUT structure doesn't have anything inside..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 15:03:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T15:03:15Z</dc:date>
    <item>
      <title>Debug ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589586#M592808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a WebService and I followed the instructions in order to call it from the ABAP side. So now I have a proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple ABAP program to test this WS call but it seems it's not working quite well. For external debug purposes, on the WS side I write text files. Those logs indicate me that the WS is indeed being called and exited succesfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WS returns an array of Objects which I assume is translated as a table on ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have some "write" statements on the ABAP program and they indicate me that no exceptions are being thrown. However, when I set the breakpoint just after the call, the table shows it has no "rows" in it, as if the WS retuned something empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  Z_WS_EXTERNAL_TES
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
REPORT  Z_WS_EXTERNAL_TES.
DATA: MDM_PROXY TYPE REF TO ZEXTERNALCO_MDMWEB_SERVICES_VI .
TRY.
    CREATE OBJECT MDM_PROXY
      .
  CATCH CX_AI_SYSTEM_FAULT .
ENDTRY.
data: OUTPUT type ZEXTERNALGET_CANDIDATES_OUT_DO .
data: INPUT type ZEXTERNALGET_CANDIDATES_IN_DOC .
TRY.
write 'Step 1 '.
    CALL METHOD MDM_PROXY-&amp;gt;GET_CANDIDATES
      EXPORTING
        INPUT  = input
      IMPORTING
        OUTPUT = output.
write 'Step 11 '.
  CATCH CX_AI_SYSTEM_FAULT .
    write 'Step 2 '.
  CATCH CX_AI_APPLICATION_FAULT .
    write 'Step 3 '.
write 'END'.
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The outcome of the program prints:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1           Step 11          END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The breakpoint is set on the line that Prints the string "Step 11". The debug stops there, I click on GLOBALS and the OUTPUT structure doesn't have anything inside..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 15:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589586#M592808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T15:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debug ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589587#M592809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No exceptions are raised because the program executed the method call successfully (even though the OUTPUT structure was not necessarily populated). Are you populating the INPUT structure with the correct values so it can populate the output structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 15:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589587#M592809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T15:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Debug ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589588#M592810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. Right now the WS returns test data even if no parameters are provided (at least that what I get on the WebServices Navigator)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it need any parameters for the WS proxy to be initialized?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 15:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589588#M592810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T15:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debug ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589589#M592811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have passed some parameters but it's the same............ maybe a matter of scope?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 15:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-abap-program/m-p/2589589#M592811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T15:47:15Z</dc:date>
    </item>
  </channel>
</rss>

