cancel
Showing results for 
Search instead for 
Did you mean: 

additional field to be added in sap standard report

Former Member
0 Kudos

hi

when we run fbl1n for vendors or fbl5n for customer we are getting only vendor or customer code, how to get vendor name and customer name in same sap standard report

please suggest

regards

yuvraj singh

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member225688
Participant
0 Kudos

Hi Yuvraj,

Do you want to add the field in report output. If so you can either create enhancement or you can copy report program to z and do all the additional changes you wanted to do.

Regards,

Dnyaneshwar Lande

Former Member
0 Kudos

hi lande

i want to do the enhancement in sap standard report, can you guide me step by step.

regards

yuvraj singh

former_member225688
Participant
0 Kudos

Hi Yuvraj,

Sure will do, Please let me know where and what fields do you want to add.

Reagrds

Dnyaneshwar Lande

SAP ABAP Consultant

Former Member
0 Kudos

hi lande

we want to add name1 field of table KNA1 in sap standard report FBL5N for customer name

and name1 field of table LFA1in sap standard report FBL1N for vendor name

regards

yuvraj

former_member225688
Participant
0 Kudos

Hi Yuvraj,

For FBL5N go to report RFITEMAR and check for FM FI_ITEMS_DISPLAY and this is where the items are getting displayed on the screen.

GT_FIELDCAT[] this is the table name which will have all the filelds to be displayed.

Please check there and add the NAME1 in that same data will be available in IT_POS Table.

Regards,

Dnyaneshwar Lande

SAP ABAP Consultant

Former Member
0 Kudos

hi lande

i opened the report RFITEMAR and checked FM FI_ITEMS_DISPLAY as below :,


   call function 'FI_ITEMS_DISPLAY'
     exporting
       caller_repid  = c_repid_ar
       acctype       = c_koart_ar
       x_change      = x_change
       i_u_save      = gd_alvsave
       is_u_variant  = gs_variant
       it_u_fieldcat = gt_fieldcat[]


then i click on gt_fieldcat[], and get the following :

data: it_t021s       like t021s occurs 1     with header line,
       it_spectab     type tpit_t_tabstat     with header line,
       it_specfld     type tpit_t_fldstat     with header line,
       it_movefld     type tpit_t_fldmove     with header line,
       it_moveref     type tpit_t_refmove     with header line,
       it_kkcurr      type tpit_t_kkcurr      with header line,
       it_selscreen   like rsparams occurs 10 with header line,
       it_dyn_trange  type rsds_trange        with header line,
       it_dyn_texpr   type rsds_texpr         with header line,
       it_callback    like ldbcb occurs 10    with header line,
       gt_selscreen   like rsparams occurs 10,
       gt_dyn_trange  type rsds_trange,
       gt_searchpattern type syldb_sp,
       gt_dyn_texpr   type rsds_texpr,
       it_central     type tpit_t_central     with header line,
       gt_fieldcat    type slis_t_fieldcat_alv with header line.


now what next, where to add name1, please suggest

regards

yuvraj

former_member225688
Participant
0 Kudos

Hi Yuvraj,

Are you this much new to ABAP??

Do you at least know about debugging ?? and this is ALV please check if you have the filed already added and just need to change layout.

Put a debug point there on the Fm and execute FBL5N so that you will understand processing.

and then let me know if you need help in that.

Thanks

Dnyaneshwar Lande

Former Member
0 Kudos

hi lande

i am not an abaper, still trying to resolve my company requirement.

that is why i requested you to let me know step by step procedure to do same.

regards

yuvraj

former_member225688
Participant
0 Kudos

Hi Yuvraj,

Understood , However that wont be this easy , You need to debug the code and check what exactly going on then we can proceed. I will check for you and will let you know .

Regards,

Dnyaneshwar Lande

SAP ABAP Consultant

former_member225688
Participant
0 Kudos

Hi,

a. Add the news fields in structure RFPOS and RFPOSX by APPEND structure

b. Run the report RFPOSXEXTEND in order to update the structure RFPOSXEXT from RFPOSX

(this report has to be run in every enviroment, dev, test and prod)

c. Active the BTE 00001650 in order to create a fm as copy of SAMPLE_INTERFACE_00001650:

d. here insert the code you need to fill your new field.

e. Use trx FIBF to active the BTE, trx SE37 to create the new fm

Just now I have incorporated a requirement of adding additional customer field in FBLN5 using BTE enhancement. It works fine.

former_member225688
Participant
0 Kudos

And Do check SCN Thread that will help you there is a step by step procedure to do so .

Let me know in case any further information is needed and hope that solves your problem even though you are not abaper