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

Submit Statement with layout details

Former Member
0 Likes
1,720

HI Experts,

I am using a Sumbit statement to the Standard report 'ME2L'. Also i have created a Layout for this standard report in the output.

Please let me know how to trnasfer this layout name in the Sumbit statement.

Thanks,

Kothai

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
880

Hi kothai,

I am not able to create a layout for standard transaction 'ME2L' in our system.

If you can do so in your system, you can set it as default layout. See ALV documentation.

Regards

Clemens

Read only

Former Member
0 Likes
880

HI Clemens,

Thanks for the reply.

I can do that, in future if any other user change the default setting to the other ayouts then my report will fail to list the correct data.

Hence i want to pass the layout name to the sumbit statement itself so that it picks the correct layout.

Please help.

Thanks,

Kothai

Read only

Clemenss
Active Contributor
0 Likes
880

Hi Kothai,

if you save the default layout user-specific (only layouts with / as fist character are used for all users), at least only if someone else uses your user ID will run into the trouble described.

If you want to pass it with SUBMIT, you will have to implement some enhancements: An additional parameter for the layout variant and a code line to pass the variant to the disvariant-variant field used by ALV function.

BTW: I did not know ME2L too much. I tried in our Retail system: It showed an ALV with some special buttons on top but I could not find a way to set/save/load a layout variant. You know why or howto?

Regards

Clemens