Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to add custom fields to the sap standard program ukm_bp_display

Former Member
0 Kudos

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

could u please any one help me on this?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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...

8 REPLIES 8

Former Member
0 Kudos

Hi Kumar,

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

Regards,

Antony Thomas

0 Kudos

hi thomas,

i want to add custom fields on the final output.

0 Kudos

Hello Kumar,

You have to modify below structure, as this structure is providing the field catalog for output display (ALV).

Here you can see there are a lot of include structures, so if you want to add fields in the output display you can add those fileds as an append structure to any of the below mentioned structures (Like ukm_s_account, ukm_s_bp_cms_sgm etc as per your requiremnt and positon at which you need to dispaly your fields.)

DATA: BEGIN OF gt_grid_alv OCCURS 0.

  • partner LIKE but000-partner,

  • credit_sgmnt LIKE ukmbp_cms_sgm-credit_sgmnt.

INCLUDE STRUCTURE ukm_s_account.

INCLUDE STRUCTURE ukm_s_bp_cms_sgm.

DATA: credit_sgmnt_txt LIKE ukmcred_sgm0t-credit_sgmnt_txt.

  • Gruppe Vector

INCLUDE STRUCTURE ukm_s_bp_vector.

  • Gruppe OBL = Obligo

  • include structure UKM_S_BP_CMS_MALUSDSP_OUT.

INCLUDE STRUCTURE ukm_s_display_segment.

INCLUDE STRUCTURE ukm_s_bp_cms.

INCLUDE STRUCTURE bus000_dat.

*DATA: icon(4).

  • Gruppe RAST (Raster)

DATA:

rast01 LIKE ukm_s_display_segment-AMOUNT_GRID,

rast02 LIKE ukm_s_display_segment-AMOUNT_GRID,

rast03 LIKE ukm_s_display_segment-AMOUNT_GRID,

rast04 LIKE ukm_s_display_segment-AMOUNT_GRID,

rast05 LIKE ukm_s_display_segment-AMOUNT_GRID,

rast06 LIKE ukm_s_display_segment-AMOUNT_GRID.

DATA: rast2_6 LIKE ukm_s_display_segment-AMOUNT_GRID.

"Summe raster 2 bis 6

*

DATA: END OF gt_grid_alv.

Another way is you can go to SE38, and you can create implicit enhancements.One enhancement point is available here in this required area. so create an implementation and add your fileds with data types.This way is also simple.

Hope this will solve yiour problems.

Regards,

Antony Thomas

0 Kudos

Hi Thomas,

thanks on your valuable information, i need some more information like,

In the standard transaction UKM_BP_DISPLAY, there are lots of header fields with the same name (Example: Header Name u201CAmountu201D repeated 5 times). However the amount has a different meaning in each Column. It is very confusing for the user to understand what each header field represents if it has same name but different value in each column. The field headers have to be appropriately modified.

I need to change Header fields which have to be renamed in the custom transaction.:so how can i change the header field discriptions? please help me on this.

cheers

kumar

0 Kudos

Hi Kumar,

Go to Program - UKM_BP_DISPLAY in SE38

Go to Text Symbols by navigation to GOTO -->Text Elements ---> Text Symbols

And you can change the necessary details

0 Kudos

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

anesh_kumar
Active Participant
0 Kudos

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

Former Member
0 Kudos

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...