Skip to Content
0
Former Member
Jul 20, 2010 at 09:51 AM

funcpart and keypart?

42 Views

Please use a meaningful subject in future.

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.

Here my question:

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?

thanks in advance!!

Here my code:

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

Edited by: Matt on Jul 20, 2010 12:23 PM - added tags

Edited by: Matt on Jul 21, 2010 9:43 AM - added warning