<?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: Help with OBJECTS_NOT_CHARLIKE dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767098#M2022819</link>
    <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;walkerist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;STRLEN works for strings or character-like fields. Your code tries to apply STRLEN to all the fields of BSAK. Some of them are not character-like, hence the dump. For instance BSAK-MWSTS is the amount field - you can apply STRLEN to it.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 10:50:31 GMT</pubDate>
    <dc:creator>Dominik_Tylczynski</dc:creator>
    <dc:date>2023-10-23T10:50:31Z</dc:date>
    <item>
      <title>Help with OBJECTS_NOT_CHARLIKE dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767097#M2022818</link>
      <description>&lt;P&gt;Hi, I'm having an issue reading the string length of the value of a BSAK field.&lt;BR /&gt;I'm having issue specifically on the field MWSTS.&lt;/P&gt;
  &lt;P&gt;My code is :&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: &amp;lt;ls_field&amp;gt; TYPE ANY.&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM BSAK INTO TABLE @DATA(it_bsak).&lt;BR /&gt;DATA(v_lines) = lines( it_bsak )&lt;BR /&gt;DATA(ls_bsak) = it_bsak[ v_lines ]&lt;BR /&gt;ASSIGN COMPONENT sy-tabix OF STRUCTURE ls_bsak to &amp;lt;ls_fields&amp;gt;.&lt;BR /&gt;IF &amp;lt;ls_field&amp;gt; IS ASSIGNED.&lt;BR /&gt;  DATA(v_length) = strlen( &amp;lt;ls_field&amp;gt; ).&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Oct 2023 10:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767097#M2022818</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2023-10-23T10:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with OBJECTS_NOT_CHARLIKE dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767098#M2022819</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;walkerist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;STRLEN works for strings or character-like fields. Your code tries to apply STRLEN to all the fields of BSAK. Some of them are not character-like, hence the dump. For instance BSAK-MWSTS is the amount field - you can apply STRLEN to it.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 10:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767098#M2022819</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-10-23T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with OBJECTS_NOT_CHARLIKE dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767099#M2022820</link>
      <description>&lt;P&gt;Thanks everyone, I have declared a field to pass the LS_FIELD.&lt;BR /&gt;Here's the modified code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_field(100) TYPE C.&lt;BR /&gt;FIELD-SYMBOLS: &amp;lt;ls_field&amp;gt; TYPE ANY.&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM BSAK INTO TABLE @DATA(it_bsak).&lt;BR /&gt;DATA(v_lines) = lines( it_bsak )&lt;BR /&gt;DATA(ls_bsak) = it_bsak[ v_lines ]&lt;BR /&gt;ASSIGN COMPONENT sy-tabix OF STRUCTURE ls_bsak to &amp;lt;ls_fields&amp;gt;.&lt;BR /&gt;IF &amp;lt;ls_field&amp;gt; IS ASSIGNED.&lt;BR /&gt;  v_field = &amp;lt;ls_field&amp;gt;.&lt;BR /&gt;  DATA(v_length) = strlen( v_field ).&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Oct 2023 11:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767099#M2022820</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2023-10-23T11:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with OBJECTS_NOT_CHARLIKE dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767100#M2022821</link>
      <description>&lt;P&gt;Your code is very confusing: &amp;lt;LS_FIELD&amp;gt; is not initialized, &amp;lt;LS_FIELDS&amp;gt; is not declared, SY-TABIX is not initialized...&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 12:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-objects-not-charlike-dump/m-p/12767100#M2022821</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-10-23T12:11:34Z</dc:date>
    </item>
  </channel>
</rss>

