Application Development and Automation 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: 
Read only

LX03 - Add material description in output

Former Member
0 Likes
4,879

Hi Experts,

I would like to add a column in the report LX03. Can anyone please suggest if it is possible.

Warm Regards,

Abdullah

Hi Experts,

I would like to add a column in the report LX03. Can anyone please suggest if it is possible.

Warm Regards,

Abdullah

7 REPLIES 7
Read only

Former Member
0 Likes
2,939

ya its possible, but its not suggestible to modify the standard programs. If you want to enhance this program then copy the same program and modify where ever required.

While copying u can use below:

Transaction: LX03

Program Name: RLS10030

Logical database: S1L

Satyasuresh Donepudi

Read only

Former Member
0 Likes
2,939

hi,

try BADI: SCM_TRM_COORD_ADD_D (+add append structure to RL030)

or in easier method:

copy LX03 transaction to new one (ZLX03)...

regards, darek

Read only

0 Likes
2,939

@Satyasuresh

I want to enhance the report and add one column using some exit/badi.

@ Darek

Can you please elaborate how can I use the badi you specified as it is directly taking me to the type pool slis.

regards,

Abdullah

Read only

0 Likes
2,939

structure RL030 does not have a customer append available. Is it advisable creating my own append here? Or should I create a copy of this report and the structure as well?

Read only

0 Likes
2,939

hi

about append structure method look at:

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm

to implement extra column in lx03 you must:

1. add zzfield to RL030 via append structure

2. create implementation of BADI SCM_TRM_COORD_ADD_D with

code which:

2.1. modify field catalog by adding your zzfield

2.2. change via assign technique content of internal table

(RLS10030)itab[]

regards, darek

Read only

2,939

Hi.

This BADI, SCM_TRM_COORD_ADD_D, is only provided for SAP internal use.

You must implement an enhancement for rerpot RLS10030. This enhancement could be for 3 operations:

1. Add field for the internal table 'itab'. Something like:


data: begin of itab occurs 0.
        include structure rl030.       " LAGP- u. LQUA-Felder
data: dauer like dauer,
      virgo like lqua-virgo,
      lsonr like rl01s-lsonr.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(1 ) Struct. ITAB, End                                                                                S
*$*$-Start: (1 )--------------------------------------------------------------------------------$*$*
enhancement 1  zenh_des_mate_repo_wm_lx03.    "active version
* JAS 31.07.2009 - Incluir la descripción del producto
data: maktx like makt-maktx.
* FIN JAS 31.07.2009 - Incluir la descripción del producto
endenhancement.
*$*$-End:   (1 )--------------------------------------------------------------------------------$*$*
data: end of itab.

2. Add filed to the ALV catalog. Something like:


  append afield to xfield.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(2 ) Form FELDKATALOG_AUFBAUEN, End                                                                                D
*$*$-Start: (2 )--------------------------------------------------------------------------------$*$*
enhancement 2  zenh_des_mate_repo_wm_lx03.    "active version
* JAS 31.07.2009 - Incluir la descripción del producto
* Se va a colocar en el catalogo la descripcion del producto
data: idx like sy-index.
  idx = 4.
  clear afield.
  afield-fieldname = 'MAKTX'.
  afield-ref_tabname = 'MAKT'.
  insert afield into xfield index idx.
* FIN JAS 31.07.2009 - Incluir la descripción del producto
endenhancement.
*$*$-End:   (2 )--------------------------------------------------------------------------------$*$*
endform.                               " FELDKATALOG_AUFBAUEN

3. Add the information refers to the material description for each registry in the internal table 'itab' before call function 'REUSE_ALV_LIST_DISPLAY'.

Regards, Julian.

Read only

Former Member
0 Likes
2,939

created a z report.