2007 Jul 09 10:33 AM
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 ........
2007 Jul 09 1:55 PM
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!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |