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

Regarding ALV

Former Member
0 Likes
357

hi ,

i have a report and i need to give the output same as vl31n transcation .

can any one help me out doing this with alv function modules not with oops

pls send me a sample code ....for referance....

the alv table control output.

point will be given ........

hi ,

i have a report and i need to give the output same as vl31n transcation .

can any one help me out doing this with alv function modules not with oops

pls send me a sample code ....for referance....

the alv table control output.

point will be given ........

1 REPLY 1
Read only

Former Member
0 Likes
335

Hi Siva ,

I will give brief idea,get the data from diffrent tables similiar to VL31n and populate the data inot you final internal table say <b>gt_itab</b>.

You can create a structure of your own via trasaction SE11 with the report output field say <b>zst_out</b> be the structure.

Now just refer the code below.

  • Type-Pools

TYPE-POOLS: slis.

Write the select statements

populate gt_final.

Now

DATA: lt_fieldcat TYPE slis_t_fieldcat_alv.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = 'ZST_OUT'

i_client_never_display = 'X'

CHANGING

ct_fieldcat = lt_fieldcat.

IF lt_fieldcat IS NOT INITIAL.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

it_fieldcat = lt_fieldcat

TABLES

t_outtab =gt_itab .

ENDIF.

If you have any doubt regarding this, you can send a mail to me [email protected]

Regards,

Antony Thomas

Reward points if find useful!