‎2007 Jun 25 9:19 PM
I need to add Material Desc. & Vendor Desc. in the standard report FBL3N. I am not able to find the where the ALV Function Module is called in the standard program for this report so that i can add the fields to the internal table passed to this ALV Function module.
‎2007 Jun 25 9:28 PM
Hi Senthil,
This report is call LDB(Logical Data base ) - SDF ,look at SE36 Transaction
Look at below FM ,this FM calls ALV Display
call function 'FI_ITEMS_DISPLAY'
EXPORTING
caller_repid = c_repid_gl
acctype = c_koart_gl
x_opvw = x_gl_opvw
x_change = x_change
i_u_save = gd_alvsave
is_u_variant = gs_variant
it_u_fieldcat = gt_fieldcat[]
it_kontab = it_accts[]
it_slbtab = it_comps[]
it_t001 = it_h_t001[]
it_skat = it_h_skat[]
it_skb1 = it_h_skb1[]
x_grid = x_grid
x_inet = pa_inet
TABLES
it_items = it_pos.
Thanks
Seshu
‎2007 Jun 25 9:28 PM
Hi Senthil,
This report is call LDB(Logical Data base ) - SDF ,look at SE36 Transaction
Look at below FM ,this FM calls ALV Display
call function 'FI_ITEMS_DISPLAY'
EXPORTING
caller_repid = c_repid_gl
acctype = c_koart_gl
x_opvw = x_gl_opvw
x_change = x_change
i_u_save = gd_alvsave
is_u_variant = gs_variant
it_u_fieldcat = gt_fieldcat[]
it_kontab = it_accts[]
it_slbtab = it_comps[]
it_t001 = it_h_t001[]
it_skat = it_h_skat[]
it_skb1 = it_h_skb1[]
x_grid = x_grid
x_inet = pa_inet
TABLES
it_items = it_pos.
Thanks
Seshu
‎2007 Jun 25 9:46 PM
Adding vendor description. & Material Description I need to change the table structure of it_pos to include the fields in the standard Zprogram 'RFITEMGL' and write a query before ALV call to populate values or is there any other method to do in SE36 - LDB since I am not familiar with LDB.
‎2007 Jun 25 10:00 PM
Program uses 'rfposxext' - automatically generated structure for creating table it_pos. How could i include the fields material Desc. and Vendor Desc. to it. Kindly help me.
‎2007 Jun 25 10:15 PM
Nothing to worry,
Just Copy the program into zprogram and while creating mention LDB Name in attributes. Here no need to look at LDB ( Just i saw the program ).
Program using Internal table -
it_pos like rfposxext occurs 1 with header line.
include ur fields here :
data : begin of it_pos occurs 0.
include rfposxext
and also add vendor and so on .
data : end of it_pos .
before FM ,get the data on this field
Thanks
Seshu
‎2007 Jun 26 9:11 PM
Hi Seshu,
I did what u said but i am getting error 'The row type of the table "IT_POS" is not compatible with the field symbol type "<LFS_POS>" in the program ZRFITEM_INC
‎2007 Jun 26 9:36 PM
‎2007 Jun 26 10:03 PM
I did everything but I am not able to add these fields to Field Catalog for the function Module FI_ITEMS_DISPLAY. Even after appending the fields to gt_fieldcat[] using the following code before FM I am not able to see these fields in the report layout
gt_fieldcat-TABNAME = 'IT_POS1'.
gt_fieldcat-FIELDNAME = 'NAME1'.
gt_fieldcat-OUTPUTLEN = '20'.
gt_fieldcat-SELTEXT_L = 'Vendor Name'.
APPEND GT_FIELDCAT.
gt_fieldcat-TABNAME = 'IT_POS1'.
gt_fieldcat-FIELDNAME = 'MAKTX'.
gt_fieldcat-OUTPUTLEN = '20'.
gt_fieldcat-SELTEXT_L = 'Material Desc.'.
APPEND GT_FIELDCAT.
‎2007 Sep 07 7:05 AM
Hello Seshu garu,
I have a similar requirement - to add spl fields to fbl3n and the field is matnr, which is now not available in the layout. Is there no other way but to copy the program into "Z"...
Awaiting your reply,
Karthik