<?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: funcpart and keypart? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105492#M1509075</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;I changed but the problem still there. may i knw am i miss out anythings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_fieldcat_coo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = g_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'IT_SUM'&lt;/P&gt;&lt;P&gt;i_inclname = 'ZMMKRS001' &lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = 'X' &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = it_fieldcat&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " create_fieldcat_coo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know what u mean for this??&lt;/P&gt;&lt;P&gt;-- if you want fields of both it_sum and itab tables than call the function REUSE_ALV_FIELDCATALOG_MERGE twice&lt;/P&gt;&lt;P&gt;with parameter&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'IT_SUM' and i_internal_tabname = 'ITAB''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_fieldcat_coo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = g_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'IT_SUM' and i_internal_tabname = 'ITAB''&lt;/P&gt;&lt;P&gt;i_inclname = 'ZMMKRS001' &lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = 'X' &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = it_fieldcat&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " create_fieldcat_coo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jul 2010 10:21:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-20T10:21:04Z</dc:date>
    <item>
      <title>funcpart and keypart?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105490#M1509073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please use a meaningful subject in future.&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all..i am new in abaq programming. there are some error which i found out and i need the help/guidance from sap expert here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my question:&lt;/P&gt;&lt;P&gt;Besides of the field declare in it_sum, there are some field i need to take out fr itab for display out. when debug until create_fieldcat_coo, it_fieldcat just show out field i had declared earlier in it_sum and with  2 additional field which are keypart and funcpart. may i know what it mean for keypart and funcpart? how if i want it_fieldcat display the field from it_sum and itab? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF it_sum OCCURS 0.
DATA:  landx LIKE t005t-landx,
       mtbez LIKE t134t-mtbez,
       prdha LIKE mara-prdha,
       knttp LIKE ekpo-knttp,
       mtart LIKE mara-mtart.
       INCLUDE STRUCTURE itab.
DATA: END OF it_sum.

DATA: BEGIN OF itab OCCURS 0,
        mandt LIKE rbkp-mandt,
        lifnr  LIKE lfa1-lifnr,         " vendor no
        xblnr  LIKE rbkp-xblnr,         " inv no
        matnr  LIKE ekpo-matnr,         " part no
        ebeln  LIKE rseg-ebeln,         " order no
        land1  LIKE lfa1-land1,         " Vendor's Country SN001+
        wemng  LIKE ekbez-wemng,        " rcv-qty
        menge  LIKE mseg-menge,         " str-qty
        uprice(9) TYPE p DECIMALS 4,    " unit-price
        waers  LIKE rbkp-waers,         " cur
        wrbtr  LIKE rseg-wrbtr,         " amount
        kursf  LIKE rbkp-kursf,         " rate
        amount(9) TYPE p DECIMALS 2,    " amount (m$)
        gbudat LIKE ekbe-budat,         " rcv date
        sbudat LIKE mkpf-budat,         " str date
        belnr  LIKE rbkp-belnr,         " inv doc no
        buzei  LIKE rseg-buzei,
        budat  LIKE rbkp-budat,         " Posting date
        aedat  LIKE ekko-aedat,         " PO creation date
        ebelp  LIKE ekpo-ebelp,
        netdt  LIKE rbkp-budat,         " Payment Due Date
        fidoc  LIKE rbkp-belnr,         " FI Document No for Invoice
        kursf_c(13),
      END OF itab.
....
.....
.....

FORM create_fieldcat_coo.

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            i_program_name         = g_repid
            i_internal_tabname     = 'IT_SUM'
            i_inclname             = 'zmmkrs001'
       CHANGING
            ct_fieldcat            = it_fieldcat
       EXCEPTIONS
            inconsistent_interface = 1
            program_error          = 2
            OTHERS                 = 3.

ENDFORM.                    " create_fieldcat_coo&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jul 20, 2010 12:23 PM - added  tags&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jul 21, 2010 9:43 AM - added warning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 09:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105490#M1509073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T09:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: funcpart and keypart?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105491#M1509074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alicia &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- First use these corrections :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_fieldcat_coo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = g_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'IT_SUM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_inclname = 'zmmkrs001'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_inclname = 'ZMMKRS001'       &amp;lt;-- Always use uppercase characters &lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = 'X'    &amp;lt;-- User this parameter to by pass buffer ( to get rid of the fields you early declared )&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = it_fieldcat&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " create_fieldcat_coo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- "Key part" means that fields declared as key field in the database table of structure in se11&lt;/P&gt;&lt;P&gt;    "function part" means that they are not key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- if you want to hide some fileds , you should set the column NO_OUT = 'X' for that field&lt;/P&gt;&lt;P&gt;   in internal table it_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- if you want fields of both it_sum and itab tables than call the function REUSE_ALV_FIELDCATALOG_MERGE twice&lt;/P&gt;&lt;P&gt;   with parameter&lt;/P&gt;&lt;P&gt;   i_internal_tabname = 'IT_SUM' and i_internal_tabname = 'ITAB''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bulent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 10:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105491#M1509074</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-07-20T10:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: funcpart and keypart?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105492#M1509075</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;I changed but the problem still there. may i knw am i miss out anythings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_fieldcat_coo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = g_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'IT_SUM'&lt;/P&gt;&lt;P&gt;i_inclname = 'ZMMKRS001' &lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = 'X' &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = it_fieldcat&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " create_fieldcat_coo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know what u mean for this??&lt;/P&gt;&lt;P&gt;-- if you want fields of both it_sum and itab tables than call the function REUSE_ALV_FIELDCATALOG_MERGE twice&lt;/P&gt;&lt;P&gt;with parameter&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'IT_SUM' and i_internal_tabname = 'ITAB''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_fieldcat_coo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = g_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'IT_SUM' and i_internal_tabname = 'ITAB''&lt;/P&gt;&lt;P&gt;i_inclname = 'ZMMKRS001' &lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = 'X' &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = it_fieldcat&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " create_fieldcat_coo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 10:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105492#M1509075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T10:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: funcpart and keypart?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105493#M1509076</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;No I mean just write a subroutine that generates field catalog like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_fieldcat_coo&lt;/P&gt;&lt;P&gt;USING ip_table_name                                &amp;lt;-- with parameters  &lt;/P&gt;&lt;P&gt;CHANGING ep_t_fieldcat TYPE SLIS_T_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = g_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = ip_table_name  &amp;lt;-- your form parameter 1&lt;/P&gt;&lt;P&gt;i_inclname = 'ZMMKRS001' &lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = 'X' &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = ep_t_fieldcat  &amp;lt;-- your form parameter 2&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " create_fieldcat_coo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now call this form twice :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM create_fieldcat_coo&lt;/P&gt;&lt;P&gt;USING 'IT_SUM'&lt;/P&gt;&lt;P&gt;CHANGING  it_fieldcat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM create_fieldcat_coo&lt;/P&gt;&lt;P&gt;USING 'ITAB'&lt;/P&gt;&lt;P&gt;CHANGING  it_fieldcat2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have two field catalogs for your two table, &lt;/P&gt;&lt;P&gt;now you can do whatever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain your problem in detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 12:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105493#M1509076</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-07-20T12:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: funcpart and keypart?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105494#M1509077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please use a meaningful subject in future.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 07:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funcpart-and-keypart/m-p/7105494#M1509077</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-07-21T07:44:23Z</dc:date>
    </item>
  </channel>
</rss>

