<?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: Strange Problem ABAP Prog. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931004#M60840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you wanna fill a container or call a method from a business object. Its better to use the macro's defined in the include &amp;lt;CNTN01&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_CREATE_OBJECT object_name 'Refering object' key to create an object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCW_CALL_METHOD object_name 'MethodName' method_container to call a method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you tell what the problem is and what you wanna achieve then i can help you with setting up the correct coding using the macro's above for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2005 12:12:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-28T12:12:50Z</dc:date>
    <item>
      <title>Strange Problem ABAP Prog.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931000#M60836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Very strange problem. I have the program below;&lt;/P&gt;&lt;P&gt;When I run it , I would expect ls_business_object-Value&lt;/P&gt;&lt;P&gt;to have the contents of header , but it does not, when I look at it in the debugger. It adds the element, but there is nothing in value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't really understand why. I've done this with many other programs without any problem. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT test.            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_business_object     TYPE swcont,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      lt_business_object     TYPE TABLE OF swcont,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      HEADER  type BAPISDHD1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER-REFOBJTYPE     = ''.&lt;/P&gt;&lt;P&gt;HEADER-DOC_TYPE       = 'TA'.&lt;/P&gt;&lt;P&gt;HEADER-SALES_ORG      = '1000'.&lt;/P&gt;&lt;P&gt;HEADER-DISTR_CHAN     = '10'.&lt;/P&gt;&lt;P&gt;*l_ORDER_HEADER_IN-DIVISION       = '00'.&lt;/P&gt;&lt;P&gt;HEADER-PURCH_NO_C     = '1234567'.&lt;/P&gt;&lt;P&gt;HEADER-PURCH_DATE     = '20050531'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pack into  swcont&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_business_object-element       = 'HEADER'.&lt;/P&gt;&lt;P&gt;ls_business_object-Value = HEADER.&lt;/P&gt;&lt;P&gt;APPEND ls_business_object TO lt_business_object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 10:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931000#M60836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T10:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem ABAP Prog.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931001#M60837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is appending the value correctly...just write header &amp;amp; see...since initial few bytes are space ..u r getting like null..when u move ur cursor to the right side u can see the vales in debugger also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeevi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 10:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931001#M60837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem ABAP Prog.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931002#M60838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I don't think so.&lt;/P&gt;&lt;P&gt;Try to type 'LT_BUSINESS_OBJECT[1]-VALUE+80' in your debugger Field Name,  you will find the value you set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 10:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931002#M60838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T10:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem ABAP Prog.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931003#M60839</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;In that lt_business_object,it is having 255 char for value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I suggest you to do&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;HEADER-REFOBJTYPE &lt;/P&gt;&lt;P&gt;HEADER-DOC_TYPE &lt;/P&gt;&lt;P&gt;HEADER-SALES_ORG &lt;/P&gt;&lt;P&gt;HEADER-DISTR_CHAN &lt;/P&gt;&lt;P&gt;HEADER-PURCH_NO_C &lt;/P&gt;&lt;P&gt;HEADER-PURCH_DATE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;P&gt;ls_business_object-Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;ls_business_object-Value = HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;/P&gt;&lt;P&gt;APPEND ls_business_object TO lt_business_object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 10:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931003#M60839</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-28T10:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem ABAP Prog.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931004#M60840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you wanna fill a container or call a method from a business object. Its better to use the macro's defined in the include &amp;lt;CNTN01&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWC_CREATE_OBJECT object_name 'Refering object' key to create an object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCW_CALL_METHOD object_name 'MethodName' method_container to call a method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you tell what the problem is and what you wanna achieve then i can help you with setting up the correct coding using the macro's above for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 12:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-abap-prog/m-p/931004#M60840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T12:12:50Z</dc:date>
    </item>
  </channel>
</rss>

