Skip to Content
avatar image
Former Member

HOW CAN I INSERT SINGLE FIELD INTO MY FIELD CATALOG

In my ALV report I had already combined 2 tables with for all entries concept.I need to again add T685a-KSCHL field.This field how can add into my report and field catalog list.Is it necessary again I have to make join with this field with previous.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 20, 2008 at 06:55 AM

    Firstly, try making habit of not using all CAPS in your subject.

    Whole subject/thread content in CAPS sounds like shouting and considered as indecent behaviour in SDN. Rest i guess you know what can happen.

    ~Eswar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 06:56 AM

    Hi,

    Just declare this new field in your final internal table structure.

    Now use loop at it_final into wa_final...in which use select single kschl from t685a into wa_final-kschl where <comparing fields> = wa_final<comparing fields>.

    Then declare your fieldcatalogue for this new field.

    Regards

    Debarshi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 07:19 AM

    Hello Gavani

    The general logic of ALV lists is to provide as many information as possible and let the user decide how to tailor the list (e.g. by hiding / rearranging columns, etc.).

    Thus, if the additionally required column KSCHL is already part of the structures used for the two itab's then use these structures to build automatically the fieldcatalog (fm LVC_FIELDCATALOG_MERGE ) and hide afterwards all columns that are not required:

    LS_FCAT-NO_OUT = 'X'.  " not displayed on list but can chosen from layout
    LS_FCAT-TECH   = 'X'.  " neither displayed on list nor visible in layout, i.e. completely hidden
    

    Regards

    Uwe

    Add comment
    10|10000 characters needed characters exceeded