<?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: 2 things in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558339#M252666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the 2 structures ay have same fields as they are header and ite and they may have some common fields that relate them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case,&lt;/P&gt;&lt;P&gt;it will give syntax error,&lt;/P&gt;&lt;P&gt;bcos the field names in internal table will get duplicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. in such cases, we can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB,&lt;/P&gt;&lt;P&gt;EKKO AS EKKO,&lt;/P&gt;&lt;P&gt;EKPO AS EKPO,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we can access using&lt;/P&gt;&lt;P&gt;ITAB-EKKO-EBELN&lt;/P&gt;&lt;P&gt;ITAB-EKPO-EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2006 12:38:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-28T12:38:20Z</dc:date>
    <item>
      <title>2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558330#M252657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wizards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 things to clarify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) can an internal table have 2 include structures (for header and item) and can the fields be directly accessed for population&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: begin of it1 occurs xx,&lt;/P&gt;&lt;P&gt;    include structure 1,&lt;/P&gt;&lt;P&gt;    include structure 2,&lt;/P&gt;&lt;P&gt;    end of it1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now can the fields be directly populated by saying:&lt;/P&gt;&lt;P&gt; it1-field1 = xxx&lt;/P&gt;&lt;P&gt; it1-field2 = yyy&lt;/P&gt;&lt;P&gt; it1-field3 = zzz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) can 2 bdcs be performed from 1 program? now these are not normal bdcs from a flat file or so. these must fill transaction data from an internal table within the program. if yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;helpful answers will be gratefully rewarded &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558330#M252657</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2006-09-28T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558331#M252658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) can an internal table have 2 include structures (for header and item) and can the fields be directly accessed for population&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; yes u can do like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; chk this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT YCHATEST.

TABLES : MARA , MAKT.

DATA :BEGIN  OF IT1 OCCURS 0.
        INCLUDE STRUCTURE MARA.
        INCLUDE STRUCTURE MAKT AS NAME1 RENAMING WITH SUFFIX NAME2.
DATA:END OF IT1.


loop at it1.
    write : it1-matnr , IT1-NAME1-MAKTX.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558331#M252658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558332#M252659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. can an internal table have 2 include structures (for header and item) and can the fields be directly accessed for population&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, u are absolutely right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;can 2 bdcs be performed from 1 program? now these are not normal bdcs from a flat file or so. these must fill transaction data from an internal table within the program. if yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are using CALL TRANSACTION concept,&lt;/P&gt;&lt;P&gt;then we need to call it twice,&lt;/P&gt;&lt;P&gt;for 2 different tcodes. thats all..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(whatever we do one transction/tcode,&lt;/P&gt;&lt;P&gt;the same has to be done for the other)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558332#M252659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558333#M252660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the answer to your 2nd question is also an yes.. you would do the 2nd BDC similar to how do your 1st one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558333#M252660</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-09-28T12:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558334#M252661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the data has to be taken from internal tables then yes 2 bdcs can be performed in one program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you can have 2 include structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Plz mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558334#M252661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558335#M252662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u can have to structure inside the internal table. But check there is no common fields in both the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes u can directly populate like this&lt;/P&gt;&lt;P&gt;it1-field1 = 'xxx'.&lt;/P&gt;&lt;P&gt;it1-field2 = 'yyy'.&lt;/P&gt;&lt;P&gt;it1-field3 = 'zzz'.&lt;/P&gt;&lt;P&gt;Or another option, u can declare a workarea of type itab. then &lt;/P&gt;&lt;P&gt;wa_it1-field1 = 'xxx'.&lt;/P&gt;&lt;P&gt;wa_it1-field2 = 'yyy'.&lt;/P&gt;&lt;P&gt;wa_it1-field3 = 'zzz'.&lt;/P&gt;&lt;P&gt;append wa_it1 to it1. clear wa_it1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two BDC can be performed from a single program. &lt;/P&gt;&lt;P&gt;For getting the data from FLAT file use the FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;Then loop at that internal table and do the BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558335#M252662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558336#M252663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) the 2 structures ay have same fields as they are header and ite and they may have some common fields that relate them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) 2 BDCs from 1 pgm: I am not uploading from a flat file but from an internal table... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558336#M252663</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2006-09-28T12:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558337#M252664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when there are some common fields better idea is to create a structure in your report which will be union of the two structures and then use that for ur internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you are using data from internal table then it is possible to use two BDCs in single program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Plz mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558337#M252664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558338#M252665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   1) you can define two includes inside &lt;/P&gt;&lt;P&gt;        internal table and access &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF BDC_TAB OCCURS 10.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BDCDATA.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: END OF BDC_TAB.&lt;/P&gt;&lt;P&gt;    populate fields using &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;    bdc_tab-program = 'test'.    &lt;/P&gt;&lt;P&gt;   append bdc_tab.              &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) yes you can perform 2BDC  from same program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   but you have to refresh bdcdata for each record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   popultae bdc data for mm03   &lt;/P&gt;&lt;P&gt; call transaction mm02 using bdcdata messages into    &lt;/P&gt;&lt;P&gt;    messtab mode 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      refresh bdcdata&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  populate bdcdata for va01&lt;/P&gt;&lt;P&gt;       refresh bdcdata&lt;/P&gt;&lt;P&gt;    call transaction va01 using bdcdata messages into    &lt;/P&gt;&lt;P&gt;    messtab mode 'A'.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558338#M252665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558339#M252666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the 2 structures ay have same fields as they are header and ite and they may have some common fields that relate them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case,&lt;/P&gt;&lt;P&gt;it will give syntax error,&lt;/P&gt;&lt;P&gt;bcos the field names in internal table will get duplicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. in such cases, we can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB,&lt;/P&gt;&lt;P&gt;EKKO AS EKKO,&lt;/P&gt;&lt;P&gt;EKPO AS EKPO,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we can access using&lt;/P&gt;&lt;P&gt;ITAB-EKKO-EBELN&lt;/P&gt;&lt;P&gt;ITAB-EKPO-EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558339#M252666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: 2 things</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558340#M252667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u r rite amit. it is showing an error. the scenario is: i need to populate a structure and pass it to a class method. that structure(1) contains 2 structures(a&amp;amp;b) for hrader &amp;amp; item. the method accepts only the main structure(1) and not a&amp;amp;b. can u suggest something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-things/m-p/1558340#M252667</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2006-09-28T12:57:36Z</dc:date>
    </item>
  </channel>
</rss>

