<?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 Concatenate the 2 fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689459#M888397</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;   My doubt is i wrote the concatenate statement to 2 fields like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : V_AWKEY TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT  T_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE T_COBK-KOKRS T_COBK-BELNR  INTO V_AWKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_OUT-AWKEY = V_AWKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after concatenate how to inser the concatenate field in select statements plz any one give me idea about this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;soni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 18:10:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T18:10:10Z</dc:date>
    <item>
      <title>Concatenate the 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689459#M888397</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;   My doubt is i wrote the concatenate statement to 2 fields like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : V_AWKEY TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT  T_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE T_COBK-KOKRS T_COBK-BELNR  INTO V_AWKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_OUT-AWKEY = V_AWKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after concatenate how to inser the concatenate field in select statements plz any one give me idea about this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;soni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 18:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689459#M888397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T18:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate the 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689460#M888398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can you clarify more on the requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Are you looking for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate '%'  V_AWKEY into V_AWKEY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;  .....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;WHERE  AWKY LIKE V_AWKEY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 18:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689460#M888398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T18:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate the 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689461#M888399</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; actually this is my requirement ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: cobk, bkpf, coep, bseg, bsik, aufk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_out OCCURS 0,&lt;/P&gt;&lt;P&gt;       aufnr     LIKE  bseg-aufnr,         "Order Number&lt;/P&gt;&lt;P&gt;       bukrs     LIKE  bkpf-bukrs,         "Company Code&lt;/P&gt;&lt;P&gt;       ferc_ind  LIKE  aufk-user0,         "FERC Indicator&lt;/P&gt;&lt;P&gt;       prctr     LIKE  bseg-prctr,         "Profit Center&lt;/P&gt;&lt;P&gt;       cbelnr    LIKE  cobk-belnr,         "Controlling Document&lt;/P&gt;&lt;P&gt;       gjahr     LIKE  cobk-gjahr,         "Fiscal Year&lt;/P&gt;&lt;P&gt;       vbund     LIKE  coep-vbund,         "Trading Partner&lt;/P&gt;&lt;P&gt;       hkont     LIKE  bseg-hkont,         "G/L Account&lt;/P&gt;&lt;P&gt;       belnr     LIKE  bkpf-belnr,         "Accounting Docuemnt&lt;/P&gt;&lt;P&gt;       blart     LIKE  bkpf-blart,         "Document Type&lt;/P&gt;&lt;P&gt;       xblnr     LIKE  bkpf-xblnr,         "Reference Document&lt;/P&gt;&lt;P&gt;       bktxt     LIKE  bkpf-bktxt,         "Document Header Text&lt;/P&gt;&lt;P&gt;       bschl     LIKE  bseg-bschl,         "Posting Key&lt;/P&gt;&lt;P&gt;       dmbtr     LIKE  bseg-dmbtr,         "Amount in local Currency&lt;/P&gt;&lt;P&gt;       wrbtr     LIKE  bseg-wrbtr,         "Amount in Document Currency&lt;/P&gt;&lt;P&gt;       budat     LIKE  bkpf-budat,         "Posting Date&lt;/P&gt;&lt;P&gt;       kstar     LIKE  coep-kstar,         "Cost Element&lt;/P&gt;&lt;P&gt;       pfkber    LIKE  coep-pfkber,        "Partner Functional Area&lt;/P&gt;&lt;P&gt;       parob     LIKE  coep-parob,         "Partner Object&lt;/P&gt;&lt;P&gt;       pbukrs    LIKE  coep-pbukrs,        "Company code of partner&lt;/P&gt;&lt;P&gt;       uspob     LIKE  coep-uspob,         "Source Object (Cost Center / Activity Type)&lt;/P&gt;&lt;P&gt;       fkber     LIKE  coep-fkber,         "Functional Area&lt;/P&gt;&lt;P&gt;       wtgbtr    LIKE  coep-wtgbtr,        "Total Value in Transaction Currency&lt;/P&gt;&lt;P&gt;       wogbtr    LIKE  coep-wogbtr,        "Total Value in Object Currency&lt;/P&gt;&lt;P&gt;       wkgbtr    LIKE  coep-wkgbtr,        "Total Value in Controlling Area Currency&lt;/P&gt;&lt;P&gt;       bldat     LIKE  bkpf-bldat,         "Document Date in Document&lt;/P&gt;&lt;P&gt;       vrgng     LIKE  cobk-vrgng,         "CO Business Transaction&lt;/P&gt;&lt;P&gt;       bvorg     LIKE  bkpf-bvorg,         "Number of Cross-Company Code Posting &lt;/P&gt;&lt;P&gt;Transaction&lt;/P&gt;&lt;P&gt;       kokrs     LIKE  cobk-kokrs,         "Controlling Area&lt;/P&gt;&lt;P&gt;      END OF t_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_bukrs FOR bkpf-bukrs OBLIGATORY NO-EXTENSION NO INTERVALS,&lt;/P&gt;&lt;P&gt;                s_gjahr FOR bkpf-gjahr,&lt;/P&gt;&lt;P&gt;                s_belnr FOR bkpf-belnr NO-DISPLAY,&lt;/P&gt;&lt;P&gt;                s_cbelnr FOR cobk-belnr,&lt;/P&gt;&lt;P&gt;                s_bldat FOR cobk-bldat,&lt;/P&gt;&lt;P&gt;                s_budat FOR cobk-budat,&lt;/P&gt;&lt;P&gt;                s_vrgng FOR cobk-vrgng,&lt;/P&gt;&lt;P&gt;                s_kstar FOR coep-kstar,&lt;/P&gt;&lt;P&gt;                s_bvorg FOR bkpf-bvorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; From COBK, get the KOKRS and BELNR fields. Concatenate them and&lt;/P&gt;&lt;P&gt;*&amp;amp; reference the value back to BKPF-AWKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;soni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 18:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689461#M888399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T18:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate the 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689462#M888400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: v_awkey LIKE t_out-awkey.

LOOP AT t_out.
  CONCATENATE t_cobk-kokrs t_cobk-belnr INTO v_awkey.

  t_out-awkey = v_awkey.

  MODIFY t_out.
ENDLOOP.

SELECT * FROM &amp;lt;TABLE&amp;gt; INTO TABLE &amp;lt;itab&amp;gt; WHERE &amp;lt;field&amp;gt; = t_out-awkey FOR ALL ENTRIES IN t_out.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 18:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689462#M888400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T18:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate the 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689463#M888401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_awkey LIKE t_out-awkey.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT t_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE t_cobk-kokrs t_cobk-belnr INTO v_awkey.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  t_out-awkey = v_awkey.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  MODIFY t_out transporting awkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT * FROM BKPF INTO TABLE ITAB WHERE awkey = t_out-awkey FOR ALL ENTRIES IN t_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont use loop at t_out for select statement that cause lot of performance issue again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the concatenate statement cos u r using same values of kokrs and belnr in awkey and filling t_out records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Syed A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 18:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-the-2-fields/m-p/3689463#M888401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T18:56:17Z</dc:date>
    </item>
  </channel>
</rss>

