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: 

MB52 REPORT

Former Member
0 Kudos

hi ,

I want to modify standard report mb52 i need some help regarding the modification.

how to do it.

9 REPLIES 9

hymavathi_oruganti
Active Contributor
0 Kudos

IF U WANT TO MODIFY THE STANDARD REPORT , U NEED AN ACCESS KEY.

Former Member
0 Kudos

Hi James

To modify a standard you have to copy the standard report and then try to modify it.

<b>just add a fiekd and append the field catalog table.

v_fieldcat-col_pos = 1.

v_fieldcat-fieldname = 'CHECK'.

v_fieldcat-seltext_m = 'chek'.

v_fieldcat-checkbox = 'X'.

v_fieldcat-input = 'X'.

v_fieldcat-edit = 'X'.

append v_fieldcat to gt_fieldcat.

or if you want to change the existing fieldcatalog then loop through the field catalog table and modify the table

FORM change_catalog .

LOOP AT ct_fieldcat INTO temp_cat.

temp_cat-key = ' '.

CASE temp_cat-fieldname.

WHEN 'MATNR'.

temp_cat-seltext_m = 'Material #'.

temp_cat-ddictxt = 'M'.

temp_cat-outputlen = 10.

WHEN 'MAKTX'.

temp_cat-seltext_m = 'Material Desc'.

temp_cat-ddictxt = 'M'.

temp_cat-outputlen = 40.

WHEN OTHERS.

CONTINUE.

ENDCASE.

MODIFY ct_fieldcat FROM temp_cat.

ENDLOOP.

gs_layout-zebra = 'X'.

ENDFORM. " change_catalog</b>

regards

kishore

Message was edited by: Harikishore Sreenivasulu

vinod_gunaware2
Active Contributor
0 Kudos

Hi

Before that please check whether any user exit or badi exists or not?

regards

vinod

0 Kudos

I WILL COPY THE PROGRAM INTO ZPROGRAM AND THEN WILL DO ALL THE MODIFICATIONS.

HOW TO ADD THE DATA INTO FIELD CATALOG THAT I WANT TO KNOW

0 Kudos

LS_FIELDCAT-FIELDNAME = (FIELDNAME)

LS_FIELDCAT-SELTEXT_L = (SOME TEXT).

APPEND LS_FIELDCAT TO LT_FIELDCAT.

0 Kudos

Hi,

you can add your own fields to fieldcat.

x_fieldcat-fieldname = 'ABCDE'.

x_fieldcat-col_pos = pos.

....

append x_fieldcat to it_fieldcat.

Regards

vijay

0 Kudos

hi james,

to add data in the fieldcat...

just add some attributs to the

<b>fieldcat TYPE slis_t_fieldcat_alv</b>

data : tempcat type slis_fieldcat_alv

tempcat-fieldname = '<fname>'.

tempcat-slistxt_l = 'Heading'.

.....

append tempcat to fieldcat.

regards

satesh

0 Kudos

hi james...

u can get help from bardhan sir...

regards...

Former Member
0 Kudos

Hi,

you will need an access key to modify a standard report.

however, if you apply the access key and change some code, SAP will not support for any dicrepancies.

If you still want some enhanced functionality, you can always copy that report and create a Z report. In this report, you can add your functionalities.

Regards,

Shashank