Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV heading required using ALV opps-urgent

Hi All,

I developed one report which is displaying ouput in grid using ALV OOPS concept.

i need heading as foloows.

Header :

Program ID : EDI report program name

Date/Time : date/time where the report is generated

Page No :

User id : logon ID

anybody can send me the code how to display this header in my logic using oops concept only.

thanks,

maheedhar

Tags:
Former Member
Former Member replied

Hi

Use the std class

cl_salv_form_layout_grid to displayn this

use the methods

create_Label and create_text for creating this

see the sample

DATA: ln_grid TYPE REF TO cl_salv_form_layout_grid,

ln_flow TYPE REF TO cl_salv_form_layout_flow,

ln_label TYPE REF TO cl_salv_form_label,

ln_text TYPE REF TO cl_salv_form_text.

  • Program name

ln_label = lcn_grid->create_label( row = 2 column = 1 text = 'Program:'(t02) tooltip = 'Program technical name'(t20) ).

ln_text = lcn_grid->create_text( row = 2 column = 2 text = sy-cprog tooltip = sy-cprog ).

  • System

ln_label = lcn_grid->create_label( row = 3 column = 1 text = 'System:'(t03) tooltip = 'System:'(t03) ).

ln_text = lcn_grid->create_text( row = 3 column = 2 text = sy-sysid tooltip = sy-sysid ).

  • Client

ln_label = lcn_grid->create_label( row = 3 column = 3 text = 'Client:'(t04) tooltip = 'Client:'(t04) ).

ln_text = lcn_grid->create_text( row = 3 column = 4 text = sy-mandt tooltip = sy-mandt ).

Regards

Anji

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question