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

DEFAULT LAYOUT

Former Member
0 Likes
834

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

6 REPLIES 6
Read only

Former Member
0 Likes
790

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

Read only

0 Likes
790

we can't set default layout in TR but we have to assign defalut layout dynamical throgh program when we call tranasaction how???

Read only

Former Member
0 Likes
790

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

Read only

0 Likes
790

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??

Read only

Former Member
0 Likes
790

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.............

Read only

0 Likes
790

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 .