Skip to Content
author's profile photo Former Member
Former Member

Fixing layout for an end user default in reports

Hi,

I have a request of fixing a layout for an end user.

(When a user executes the report with a variant the output layout should be fixed for that user id)

Can do it in programming level using his user id.

Please help me out in this issue.

Awaiting for valuable suggestions...

Regds

Satya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 06:17 AM

    Hi,

    If the report displays by ALV layout. you can define a parameter of ALV LAYOUT variant. Then fetch the variant from table LTDX passing as report id and creator.

    Regards,

    Yawa


    LTDX.png (73.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 06:14 AM

    Yes you can do it!

    see the structure of varinat and you can pass in the ALV*DISPLAY function modules

    see the username


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Satya,

      I hope it will solve your issue with correct help 😊

      step 1:

      Maintain the entries in LTDX table, it is a control table, even you can maintain in in production!

      This table will have the report name, user name and variant..etc.

      You assign the correct layout variant for the user in this table

      Step 2;

      in your program!

      Select the LTDX where program name = sy-repid and user name = sy-uname.

      if sy-subrc = 0.

      modify the variant structure with the user varinat

      endif.

      step 3: pass the modified variant to your FM

      CALL FUCNTION \; ALV*DISPLAY*

      pass the variant parameter

      rg, kiran

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 08:45 AM

    The value of the variant parameter should be passed to the PARAMETER IS_VARIANT (field variant with in the structure of IS_VARIANT) in Reuse_alv_grid_display.

    IS_VARIANT-VARIANT = VARIANT.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.