2008 Oct 14 8:00 AM
Hi All,
i am using ALV display :
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_grid_title = 'Inventory BOM Report'
is_layout = wa_flayout
it_fieldcat = i_fcat[]
i_default = 'X'
i_save = 'A'
is_variant = o_disvariant
TABLES
t_outtab = i_bom_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "DISPLAY
we have used layout specification i.e. o_disvariant,,
if i don enter anything in this field how is it going to work??
will it take abything by default?
2008 Oct 14 8:03 AM
if there is a Default Variant then it will automatically consider the Default variant for display, if you don't specify one. Check you have any Default variant . If there is no Default variant and you are using the variant addition, then it will display the output the way you populated the fieldcatalog.
Hi All,
i am using ALV display :
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_grid_title = 'Inventory BOM Report'
is_layout = wa_flayout
it_fieldcat = i_fcat[]
i_default = 'X'
i_save = 'A'
is_variant = o_disvariant
TABLES
t_outtab = i_bom_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "DISPLAY
we have used layout specification i.e. o_disvariant,,
if i don enter anything in this field how is it going to work??
will it take abything by default?
2008 Oct 14 8:03 AM
if there is a Default Variant then it will automatically consider the Default variant for display, if you don't specify one. Check you have any Default variant . If there is no Default variant and you are using the variant addition, then it will display the output the way you populated the fieldcatalog.
2008 Oct 14 8:06 AM
i am not finding any default variant but in the code,,
i debugged the code,
2008 Oct 14 8:10 AM
hi,
atfer you execute the report ,in application toolbar you have a button change layout(cntrl + f8) there you can check whether there is ant default variant defined and is used.
2008 Oct 14 8:11 AM
you can find the Variants using the Select Layout option (Short cut is CTRL+F9 )
2008 Oct 14 8:23 AM
2008 Oct 14 8:28 AM
First Change the Layout (Ctrl+F8), include or exclude columns which you want to display or supress . then press the save layout Button (f5). now it triggers a popup, there you need to mention the layout and name and continue. here you can specify the User specific or Default layout option also.
There are three options for you
CtrlF8, CtrlF9, Ctrl+F10 (for change, select, save) Try adding the variant using them
2008 Oct 14 11:22 AM
hey i have a doubt in this user specific,
im getting the userspecific as greyed out
2008 Oct 14 8:04 AM
Hi Poonam,
It will display all the fields of the ALV in the Output.
Thanks,
Chidanand
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |