<?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: Dump in data transfer to application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761032#M329420</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;  DATA l_msg(60) TYPE c.&lt;/P&gt;&lt;P&gt;OPEN DATASET v_bkpf FOR OUTPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;                                                  MESSAGE l_msg. "DEL ACC012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;     MESSAGE s000 WITH 'Error in opening file for output'.&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;....Processing here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a break point in the sy-subrc and in debug mode check the l_msg variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think any problem in fm.Anyway for debugging purpose,pass the file path directly and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3d5c358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3d5c358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2006 06:25:23 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2006-12-28T06:25:23Z</dc:date>
    <item>
      <title>Dump in data transfer to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761027#M329415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the FM AUTHORITY_CHECK_DATASET before the command OPEN Dataset to transfer a file to the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sy-subrc for the FM comes out to be 0, but the sy-subrc  for the open dataset command = 8 (on Checking in the debug mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code snippet is as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_path1 = v_bkpf.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'AUTHORITY_CHECK_DATASET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            program          = 'ZZRFFI058_GL_ACCOUNT_MAPPING'&lt;/P&gt;&lt;P&gt;            activity         = 'WRITE'&lt;/P&gt;&lt;P&gt;            filename         = v_path1&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            no_authority     = 1&lt;/P&gt;&lt;P&gt;            activity_unknown = 2&lt;/P&gt;&lt;P&gt;            OTHERS           = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e195(zzfn) WITH&lt;/P&gt;&lt;P&gt;          'No authorisation to write file on application server'&lt;/P&gt;&lt;P&gt;           v_path1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRITE:/ 'File:', v_path1, ' not created'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET v_bkpf FOR OUTPUT.                           "DEL ACC012&lt;/P&gt;&lt;P&gt;  TRANSFER i_bkpf_w TO v_bkpf LENGTH v_len. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we have a dump at the TRANSFER command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how the FM is successful and OPEN DATASET fails    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls post your ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Stock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 12:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761027#M329415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T12:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in data transfer to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761028#M329416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check with this piece of code..&lt;/P&gt;&lt;P&gt;The exceptions are Class based to handle this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You catch class-based exceptions in the statement block enclosed by the TRY and ENDTRY statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C-- Open Dataset to write the file path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      OPEN DATASET p_phy1&lt;/P&gt;&lt;P&gt;            FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE w_osmsg.&lt;/P&gt;&lt;P&gt;    CATCH cx_sy_file_authority INTO w_obj_error.&lt;/P&gt;&lt;P&gt;      PERFORM catch_error1 USING w_obj_error.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE w_osmsg TYPE c_s DISPLAY LIKE c_err.&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  catch_error1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Catch the error messages of the application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM catch_error1  USING    fp_obj_error1 TYPE REF TO cx_root.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : l_message TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR :l_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_message = fp_obj_error1-&amp;gt;if_message~get_text( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MESSAGE l_message TYPE c_s DISPLAY LIKE c_err.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " catch_error1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sivaram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 12:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761028#M329416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in data transfer to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761029#M329417</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;I dont think the sy-subrc value corresponds to transfer it corresponds to open dataset and it means The file could not be opened. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try to add mode text mode and encoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 13:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761029#M329417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in data transfer to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761030#M329418</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;The sy-subc after open dataset 8 means the file opening for write fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put a check before transferring the content, that if sy-subrc=0(file oepend successfully) only then transfer the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_bkpf FOR OUTPUT. "DEL ACC012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;TRANSFER i_bkpf_w TO v_bkpf LENGTH v_len. &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 06:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761030#M329418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T06:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in data transfer to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761031#M329419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_bkpf FOR OUTPUT IN LEGACY TEXT MODE.&lt;/P&gt;&lt;P&gt;. "DEL ACC012 check v-bkpf has correct path and file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   write:/ 'Error opening file'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    TRANSFER i_bkpf_w TO v_bkpf LENGTH v_len.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 06:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761031#M329419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T06:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in data transfer to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761032#M329420</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;  DATA l_msg(60) TYPE c.&lt;/P&gt;&lt;P&gt;OPEN DATASET v_bkpf FOR OUTPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;                                                  MESSAGE l_msg. "DEL ACC012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;     MESSAGE s000 WITH 'Error in opening file for output'.&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;....Processing here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a break point in the sy-subrc and in debug mode check the l_msg variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think any problem in fm.Anyway for debugging purpose,pass the file path directly and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3d5c358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3d5c358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 06:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761032#M329420</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-28T06:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in data transfer to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761033#M329421</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;You have mentioned that SY-SUBRC value returned is 8. This means the file for writing does not exists and hence TRANSFER to that file gives a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the file path you have given and also the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have checked for the filepath as v_path1 in FM but in OPEN DATASET you have given the path as v_bkpf .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below code and if sy-subrc NE 0. then you can get the message and find the problem as to why the file is not getting created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA MESS(255).&lt;/P&gt;&lt;P&gt;OPEN DATASET V_PATH1 FOR OUTPUT MESSAGE MESS. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  WRITE: 'SY-SUBRC:', SY-SUBRC,&lt;/P&gt;&lt;P&gt;       / 'System Message:', MESS.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 11:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-data-transfer-to-application-server/m-p/1761033#M329421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T11:15:54Z</dc:date>
    </item>
  </channel>
</rss>

