<?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: SXPG_COMMAND_EXECUTE: ADDITIONAL_PARAMETERS contains Blanks in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-additional-parameters-contains-blanks/m-p/4218215#M1007873</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;We used The following Code To Save a File on Unix Server.&lt;/P&gt;&lt;P&gt;Please check whether its useful or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_path = '/dma/livis/IRENT/'.
  CONCATENATE ls_path ls_file INTO ls_path.

  OPEN DATASET ls_path IN BINARY MODE  FOR OUTPUT.
  TRANSFER w_iox  TO ls_path.
  CLOSE DATASET ls_path.

  ls_dir = '/dma/livis/IRENT/'.

  CALL FUNCTION 'SUBST_GET_FILE_LIST'
    EXPORTING
      dirname      = ls_dir
      filenm       = '*.*'
    TABLES
      file_list    = lt_files
    EXCEPTIONS
      access_error = 1
      OTHERS       = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala.Malvatu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 12:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-16T12:52:26Z</dc:date>
    <item>
      <title>SXPG_COMMAND_EXECUTE: ADDITIONAL_PARAMETERS contains Blanks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-additional-parameters-contains-blanks/m-p/4218214#M1007872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to start a shell-script with SXPG_COMMAND_EXECUTE on Linux. Therefor I have maintained a command with SM69. &lt;/P&gt;&lt;P&gt;I have to fill ADDITIONAL_PARAMETERS with a list of parameters which are passed to the shell-script. Unfortunately some parameters contains blanks, such as a material description. &lt;/P&gt;&lt;P&gt;How do I have to call SXPG_COMMAND_EXECUTE so that a parameter "AA BB" or "CC   DD" conserves as one parameter when it is passed to the shell-script and the shell-script can recognize these as one parameter and not as two or more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe someone has a suggestion for another solution to handle this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Karl-Wilhelm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 12:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-additional-parameters-contains-blanks/m-p/4218214#M1007872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T12:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE: ADDITIONAL_PARAMETERS contains Blanks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-additional-parameters-contains-blanks/m-p/4218215#M1007873</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;We used The following Code To Save a File on Unix Server.&lt;/P&gt;&lt;P&gt;Please check whether its useful or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_path = '/dma/livis/IRENT/'.
  CONCATENATE ls_path ls_file INTO ls_path.

  OPEN DATASET ls_path IN BINARY MODE  FOR OUTPUT.
  TRANSFER w_iox  TO ls_path.
  CLOSE DATASET ls_path.

  ls_dir = '/dma/livis/IRENT/'.

  CALL FUNCTION 'SUBST_GET_FILE_LIST'
    EXPORTING
      dirname      = ls_dir
      filenm       = '*.*'
    TABLES
      file_list    = lt_files
    EXCEPTIONS
      access_error = 1
      OTHERS       = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala.Malvatu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 12:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-additional-parameters-contains-blanks/m-p/4218215#M1007873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T12:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE: ADDITIONAL_PARAMETERS contains Blanks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-additional-parameters-contains-blanks/m-p/4218216#M1007874</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;thanks for the answer. But thats doesn't match my problem. What I want is to start a shell-script with parameter whereas some parameters might include one or more blanks. Like for examples a script with only one parameter: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;shell-script 'this is a parameter'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found out while testing with SM49 is, when I put the parameter into apostrophe than the parameter is passed as a single parameter to the script. But SM49 elsewell SXPG_COMMAND_EXECUTE condense more than blank to only one blank. And the apostrophe remain in the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SM49: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;shell-script 'This   is a parameter'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The shell-script gets the parameter 'This is a parameter' , whereas the apostrophe ' and the start and at the end is part of the parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the function modules SXPG_RFCDEST_OPEN_INT, SAPXPG_START_XPG and SAPXPG_END_XPG instead of SXPG_COMMAND_EXECUTE solves the problem of condensing the blanks to one blank. But the apostrophe is still part of the parameter. And I have to consider that the apostrophe might be originally part of the parameter.&lt;/P&gt;&lt;P&gt;And I have to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karl-Wilhelm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 06:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-additional-parameters-contains-blanks/m-p/4218216#M1007874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T06:38:42Z</dc:date>
    </item>
  </channel>
</rss>

