Skip to Content
avatar image
Former Member

how to add custom fields to the sap standard program ukm_bp_display

How to add new custom fields to the sap standard program ukm_bp_display .

could u please any one help me on this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 22, 2010 at 11:26 AM

    hi kumar,

    find out the structure in used. and in that structure append ur required field at the end and then activate the structure.

    and then after execution of the program click on change layout button and then drag your field from there.

    Regards,

    Mukesh...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2010 at 02:01 PM

    Hi Kumar,

    Please specify , where you want to add more fields. In the selection screen or in the out put list?

    Regards,

    Antony Thomas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Kumar,

      As you know, the out put display of an ALV report is coming with the help of field catalogue.

      In this program UKM_BP_DISPLAY, the field catalogue is generated with the help of standard FM REUSE_ALV_FIELDCATALOG_MERGE . After the excecution of this FM,internal table gt_fieldcat(in this program) contains the header name and all such characeteristics.

      Here your issue is to change column header for certain fields(Say amount fields). So you have to modufy this field catalogue within the program. Here also SAP is providing enhancement points. This point is within the loop at gt_fiedcatalogue statement.

      So you just check (say)

      if ls_fieldcat-fieldname = 'AMOUNT_DYN'

      ls_fieldcat-seltext_l = 'User specific text'

      ls_fieldcat-seltext_m = 'User specific text'

      ls_fieldcat-seltext_s = 'User specific text'

      endif.

      Even modify statement is also there

      ENHANCEMENT-SECTION EHP_ALV_SET_FIELDCAT SPOTS ES_UKM_BP_DISPLAY_01.

      END-ENHANCEMENT-SECTION.

      $$-Start: EHP_ALV_SET_FIELDCAT----


      $$

      ENHANCEMENT 1 UKM_SFWS_UI1_UKM_BP_DISPLAY. "active version

      clear ls_fieldcat-tech.

      ENDENHANCEMENT.

      $$-End: EHP_ALV_SET_FIELDCAT----


      $$

      I am sure this will solve your problem

      Regards,

      Antony Thomas

  • Jul 21, 2010 at 02:19 PM

    Hi

    Use enhancement frame work if you want to add fields in the standard program

    select the enhance button beside the copy button

    go to edit->enhancement oper -> implicit enh

    here you can see the enhancement points

    just right click enhancement imp -> create enhancement

    Add comment
    10|10000 characters needed characters exceeded