<?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: Assignment statement not working properly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324575#M1395102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Suitable answers found!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 04:51:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-09T04:51:23Z</dc:date>
    <item>
      <title>Assignment statement not working properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324570#M1395097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am gettting an error, when executing the following code in my program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_bapiret TYPE TABLE OF bapiret2.&lt;/P&gt;&lt;P&gt;DATA: wa_bapiret TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Logic for filling the internal table IT_BAPIRET&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_bapiret INTO wa_bapiret.&lt;/P&gt;&lt;P&gt;   write: / wa_bapiret.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i check this, i am gettting the error WA_BAPIRET cannot be converted to a character type field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need all the possible solutions to resolve this error: like using FILL_CONTAINER_C, ASSIGN statement, or declaring equivalent structure of character type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please justify which solution will be best suited/more feasible, if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 14:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324570#M1395097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T14:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment statement not working properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324571#M1395098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_bapiret INTO wa_bapiret.&lt;/P&gt;&lt;P&gt;write: / wa_bapiret-type,wa_bapiret-message.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me also know how do you fill you internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether you have used this type of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa1 =  wa2"  This may not result as error in Non-Unicode system but an error in Unicode system&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;"To handle these cases, we need to explicitly move the fields like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa1-field1 = wa2-field1.&lt;/P&gt;&lt;P&gt;wa1-field2 = wa2-field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshu Thekkillam on Nov 6, 2009 7:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 14:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324571#M1395098</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-06T14:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment statement not working properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324572#M1395099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Internal table is filled via BAPI call. (Return message (errors) of BAPI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the solution what you are proposing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the justification of where we need to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) ASSIGN Statements (when i used assign only output length of 255 is visible. Not the entire workarea)&lt;/P&gt;&lt;P&gt;2.) FILL_CONTAINER_C and READ_CONTAINER_C methods&lt;/P&gt;&lt;P&gt;3.) Declaring a structure similar to WA_BAPIRET (defining each and every field but of character type)&lt;/P&gt;&lt;P&gt;4.) Writing each and every field seperately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please justify the difference between these solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 14:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324572#M1395099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment statement not working properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324573#M1395100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know what you are asking.&lt;/P&gt;&lt;P&gt;Your Question was how to solve the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(when i used assign only output length of 255 is visible. Not the entire workarea)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could more easy if you provide your code.&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILL_CONTAINER_C and READ_CONTAINER_C methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have a answer to this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 14:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324573#M1395100</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-06T14:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment statement not working properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324574#M1395101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continue like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
*   I_INTERFACE_CHECK                     = ' '
*   I_BYPASSING_BUFFER                    = ' '
*   I_BUFFER_ACTIVE                       = ' '
*   I_CALLBACK_PROGRAM                    = ' '
*   I_CALLBACK_PF_STATUS_SET              = ' '
*   I_CALLBACK_USER_COMMAND               = ' '
*   I_CALLBACK_TOP_OF_PAGE                = ' '
*   I_CALLBACK_HTML_TOP_OF_PAGE           = ' '
*   I_CALLBACK_HTML_END_OF_LIST           = ' '
     I_STRUCTURE_NAME                      = 'BAPIRET2'
*   I_BACKGROUND_ID                       = ' '
*   I_GRID_TITLE                          =
*   I_GRID_SETTINGS                       =
*      is_layout                           = l_alv_layout
*      it_fieldcat                         = pt_fieldcat
*   IT_EXCLUDING                          =
*   IT_SPECIAL_GROUPS                     =
*   IT_SORT                               =
*   IT_FILTER                             =
*   IS_SEL_HIDE                           =
*   I_DEFAULT                             = 'X'
*   I_SAVE                                = ' '
*   IS_VARIANT                            =
*   IT_EVENTS                             =
*   IT_EVENT_EXIT                         =
*   IS_PRINT                              =
*   IS_REPREP_ID                          =
      i_screen_start_column               = 10
      i_screen_start_line                 = 5
      i_screen_end_column                 = 100
      i_screen_end_line                   = 15
*   I_HTML_HEIGHT_TOP                     = 0
*   I_HTML_HEIGHT_END                     = 0
*   IT_ALV_GRAPHICS                       =
*   IT_HYPERLINK                          =
*   IT_ADD_FIELDCAT                       =
*   IT_EXCEPT_QINFO                       =
*   IR_SALV_FULLSCREEN_ADAPTER            =
* IMPORTING
*   E_EXIT_CAUSED_BY_CALLER               =
*   ES_EXIT_CAUSED_BY_USER                =
    TABLES
      t_outtab                            = it_bapiret
    EXCEPTIONS
      program_error                       = 1
      OTHERS                              = 2
            .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This displays the table in an ALV grid as a popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. And please post code as&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;code&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 15:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324574#M1395101</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-11-06T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment statement not working properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324575#M1395102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Suitable answers found!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 04:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324575#M1395102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T04:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assignment statement not working properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324576#M1395103</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;PRE&gt;&lt;CODE&gt;LOOP AT it_bapiret INTO wa_bapiret.
write: / wa_bapiret.  "  Try to use its Component in the Write Statement
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code you are trying to write wa_bapiret which is clearly a structure. Instead you need to use&lt;/P&gt;&lt;P&gt; wa_bapiret-COMPENT_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you closed this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still i felt it will be useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 04:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assignment-statement-not-working-properly/m-p/6324576#M1395103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T04:59:31Z</dc:date>
    </item>
  </channel>
</rss>

