<?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: Remove space non character ### in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794662#M2024539</link>
    <description>&lt;P&gt;iam trying to add some code to get from table so i put in the initialization from global definition&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205724-image.png" /&gt;&lt;/P&gt;&lt;P&gt;wa_rmark1-tdline is value from table '1.RC still stopped.###########2.Oppurtunity jobs (ME) :###########'&lt;/P&gt;&lt;P&gt;so i also put operation_text of TYPE TSFTEXT in the global and create dynamic text&lt;/P&gt;&lt;P&gt;but the value still look like this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205726-image.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 06:35:24 GMT</pubDate>
    <dc:creator>acetedi</dc:creator>
    <dc:date>2023-09-04T06:35:24Z</dc:date>
    <item>
      <title>Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794656#M2024533</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
  &lt;P&gt;i need to remove space character from input free text in program displayed #### in table&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205719-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;so in smartforms display look like this&lt;/P&gt;
  &lt;P&gt;1. text exampel here&lt;/P&gt;
  &lt;P&gt;2. text exampel 2 here&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 02:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794656#M2024533</guid>
      <dc:creator>acetedi</dc:creator>
      <dc:date>2023-09-04T02:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794657#M2024534</link>
      <description>&lt;P&gt;The origin of the issue starts where the input is stored, not in the Smart Form. Please clarify what's in table OR show debug of Smart Form parameter value, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 03:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794657#M2024534</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-04T03:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794658#M2024535</link>
      <description>&lt;P&gt;in the program input like this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205721-image.png" /&gt;&lt;/P&gt;&lt;P&gt;thats is possible using cl_abap_char_utilities=&amp;gt;cr_lf replace # with space in smartforms.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 04:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794658#M2024535</guid>
      <dc:creator>acetedi</dc:creator>
      <dc:date>2023-09-04T04:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794659#M2024536</link>
      <description>&lt;P&gt;What about debug value?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 04:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794659#M2024536</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-04T04:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794660#M2024537</link>
      <description>&lt;P&gt;Sorry, not needed, I can answer already.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 04:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794660#M2024537</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-04T04:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794661#M2024538</link>
      <description>&lt;P&gt;Line feeds must not be achieved using CRLF characters, they must be achieved by using SAPscript text format e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TDFORMAT  TDLINE
*         1.RC still
          stopped.
*         2.Opportunity jobs&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;will show on separate lines in the Smart Form &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1.RC still stopped.
2.Opportunity jobs&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What is important is the meaning of TDFORMAT, i.e. "*" is new paragraph of type default.&lt;/P&gt;&lt;P&gt;Other values are explained in &lt;A href="https://help.sap.com/docs/search?q=Structure%20TLINE%20of%20the%20Lines%20Table"&gt;SAP Library - Structure TLINE of the Lines Table&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;In parameters of Smart Form, define input parameter OPERATION_TEXT of type TSFTEXT (components TDFORMAT and TDLINE).&lt;/P&gt;&lt;P&gt;In the text field, choose "Dynamic text" and indicate &amp;amp;OPERATION_TEXT&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2207664-image.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2207662-image.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2207663-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 04:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794661#M2024538</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-04T04:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794662#M2024539</link>
      <description>&lt;P&gt;iam trying to add some code to get from table so i put in the initialization from global definition&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205724-image.png" /&gt;&lt;/P&gt;&lt;P&gt;wa_rmark1-tdline is value from table '1.RC still stopped.###########2.Oppurtunity jobs (ME) :###########'&lt;/P&gt;&lt;P&gt;so i also put operation_text of TYPE TSFTEXT in the global and create dynamic text&lt;/P&gt;&lt;P&gt;but the value still look like this&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205726-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 06:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794662#M2024539</guid>
      <dc:creator>acetedi</dc:creator>
      <dc:date>2023-09-04T06:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794663#M2024540</link>
      <description>&lt;P&gt;1) Do you call this Smart Form from an ABAP program? &lt;/P&gt;&lt;P&gt;If yes, I strongly recommend to add the code in the ABAP program, right before calling the Smart Form, and then do as I said in the Smart Form, because it's very difficult to maintain ABAP code in Smart Form (high technical debt).&lt;/P&gt;&lt;P&gt;2) It seems that your text comes from a long text already (due to TDLINE in WA_RMARK1-&lt;STRONG&gt;TDLINE&lt;/STRONG&gt;), you could then simplify. Could you explain more about the origin of the text?&lt;/P&gt;&lt;P&gt;3) It seems that you are STILL NOT translating line feeds into '*' (or you forget to remove them).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 13:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794663#M2024540</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-04T13:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794664#M2024541</link>
      <description>&lt;P&gt;Thank your for your advice, i will change my code into abap program.&lt;/P&gt;&lt;P&gt;the text is from other program so its already in wa_rmark1-tdline.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205784-remarks.png" /&gt;&lt;/P&gt;&lt;P&gt;The tdline field is char132, so if inputing text and enter newline after saving the text in databased cannot read the enter space so the databased look like this #####&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205785-image.png" /&gt;&lt;/P&gt;&lt;P&gt;so in abap program i have the value store in work area (WA_RMARK1-TDLINE) &lt;/P&gt;&lt;P&gt;I dont know how to passing wa_rmark1-tdline to operation_text type of TSFTEXT and how to translating line feed '*' or remove them.&lt;/P&gt;&lt;P&gt;Thank you for your feedback.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 04:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794664#M2024541</guid>
      <dc:creator>acetedi</dc:creator>
      <dc:date>2023-09-05T04:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794665#M2024542</link>
      <description>&lt;P&gt;The other program which stores in WA_RMARK1-TDLINE is then functionally buggy and you or your colleagues should fix it: it's storing line feed characters in TDLINE = it stores non-long text format (line feeds) in long text container (TLINE structured type = TDFORMAT/TDLINE). Either store string with line feeds in STRING type, or convert string into long text format and store in TLINE format.&lt;/P&gt;&lt;P&gt;Note that I just see # in your screenshots which may represent any kind of "control characters", and you should analyze which control characters they are by debug + display the hexadecimal value of the string, because it may not be only line feed characters.&lt;/P&gt;&lt;P&gt;Concerning the transformation of string with line feeds into TLINE format (officially known as ITF), you may use CONVERT_STREAM_TO_ITF_TEXT (search the Web for examples and questions).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 06:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794665#M2024542</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-05T06:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794666#M2024543</link>
      <description>&lt;P&gt;its work using this FM "CONVERT_STREAM_TO_ITF_TEXT"&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2205843-image.png" /&gt;&lt;/P&gt;&lt;P&gt;but iam confusing how to convert all table ztable-tdline&lt;/P&gt;&lt;P&gt;iam only testing using 1 work area&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;DATA: lt_stram_lines TYPE STANDARD TABLE OF string,
          ls_string      TYPE string,
          operation_text TYPE tsftext.  
  
LOOP AT lt_remarks INTO DATA(ls_remarks).

      IF ls_remarks-trows = '1'.
        MOVE-CORRESPONDING ls_remarks TO wa_rmark1.

        ls_string = wa_rmark1-tdline.
        APPEND ls_string TO lt_stram_lines.

        CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
          EXPORTING
            stream_lines = lt_stram_lines
            lf           = 'X'
          TABLES
            itf_text     = operation_text.
      ENDIF.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;how do i convert ztable-tdline using that FM CONVERT_STREAM_TO_ITF_TEXT?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 04:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794666#M2024543</guid>
      <dc:creator>acetedi</dc:creator>
      <dc:date>2023-09-06T04:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove space non character ### in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794667#M2024544</link>
      <description>&lt;P&gt;I don't really understand why you get the text in a TDLINE component which should be reserved to ITF text, but what you did is the right way.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 17:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-non-character-in-smartforms/m-p/12794667#M2024544</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-06T17:02:53Z</dc:date>
    </item>
  </channel>
</rss>

