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: 

ALV heading required using ALV opps-urgent

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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 Kudos

Hi Anji reddy,

exactly my putput is should come as follows...

Celestica IDOC Details on Inbound Message

Program ID : XXXX PAGENO:

DATE/TIME: USERID

This is my header. can u plz send me the code how to keep the position values in oops concept.

thanks,

maheedhar