2007 Oct 16 5:57 AM
HI I CRETED A Layout in fb3ln and when ever i called the transaction fb3ln default layout should be zint_dis so how to set the defalult layout can anybody pls help me
we can't set default layout in TR but we have to assign defalut layout dynamical throgh program when we call tranasaction how???
2007 Oct 16 6:00 AM
Hi,
Save it as default layout the name should start with /.......
eg /zint_dis... and that's get defaulted whenever u run that t-code.
regards,
Santosh
2007 Oct 16 6:05 AM
we can't set default layout in TR but we have to assign defalut layout dynamical throgh program when we call tranasaction how???
2007 Oct 16 6:05 AM
Hi
When you created the Layout for the report output , Have you saved it
because Variants are displayed based on user specific,
if you saved a particular variant on your user name, next time when you log in it will display the same layout what you saved.
Regards
Anji
2007 Oct 16 6:07 AM
i am creating the layout for predefined tranaciton not for my report so i have to pass that default layout information when we call that transaction??
2007 Oct 16 6:29 AM
Hi,
You can set the default layout in the program as follows
PARAMETERS: p_layout TYPE slis_vari. " Layout
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_layout.
DATA: lv_save(1) TYPE c, "Variants Can be Saved
lv_exit(1) TYPE c, "Dialog cancelled by user
ls_layout TYPE disvariant, "Variant information
ls_layout_out TYPE disvariant. "Variant information
Popup F4 help to select a layout
CLEAR ls_layout.
ls_layout-report = sy-repid.
CALL FUNCTION 'LVC_VARIANT_F4'
EXPORTING
is_variant = ls_layout
i_save = lv_save
IMPORTING
e_exit = lv_exit
es_variant = ls_layout_out
EXCEPTIONS
not_found = 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.
ELSEIF lv_exit <> abap_true.
Set name of layout on selection screen
p_p_layout = ls_layout_out-variant.
ENDIF.
Reward points if useful.............
2007 Oct 16 6:42 AM
Hi Geeta,
i dont want layout for output ,
but i need to set layout when i move to FB3LN after displaying initial output.
for that i want to set default layout .
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |