ALV report - copy layout to another user

Hello,
I have a question about ALV reports.
In ALV we have option to select layout and save it by user-specific.
How to copy this layout to another user?
Is there some function/Bapi?
Thanks in advance,
Michal

Hi Michael,
Here are the steps I documented for managing this procedure:
First Step is to READ the Layout into the Program
     The parameters for the layout can be found in table LTDX
Goto SE37 and enter: LT_DBDATA_READ_FROM_LTDX
When (READ) you will input information for the following parameters:
Report Name
Handle
Log Group
User
Variant
Type
An example is shown below:
<screen shots didn't load in my response> email if you'd like the document with screen shots>
Execute.
Now our next step is to WRITE the information from the program into table: LTDX
While at the Function Builder Screen enter the new function module: LT_DBDATA_WRITE_TO_LTDX
When you (WRITE) you will input information for the following parameters:
Report Name
Handle
Log Group
User
Variant
Type
When completed, your input screen for (WRITE) should look like the screen below:
  <screen shots didn't load in my response> email if you'd like the document with screen shots>
IMPORTANT     When entering information for IS_VARKEY, remember to use the u201Cnew useru201D ID
When entering information for IS_VARIANT, remember to enter information exactly as found in table LTDX and remember that the parameter:  DEPENDVARS may be needed to complete your entry
Now Execute the Function Module.  When completed go to table: LTDX and confirm that your new entry has been added.
Pre Checklist:
1.)     Capture entries (users) you want to copy from table: LTDX
2.)     Make sure you have access to execute function modules/eCATT scripts
3.)     Make sure you have table display access (needed to find and validate updates)
If you'd like the documentation with screen shots please reply with your email address.
Cheers,
Robert

Similar Messages

  • Download alv report using layout variant in background

    Hi All,
    I want to download an Alv report using layout varaint in background job.
    can any one please help me.
    i.e...
    I am facing a problem in downloading a text file to the Application server.
    My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant.
    Will rewards to helpfull ans
    regards
    Chetan

    hey seshu,
    I am facing a problem in downloading a text file to the Application server.
    My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant.

  • How to export user specific layouts to another user ID's

    Dear Experts,
    We saved some ALV layouts as a User Specific, now I want to export those layout to another user ID,
    for example in User ID “X” I saved some ALV layouts as user specific now I want to move those ALV layouts to another user ID “Y” , but my “X” user Id is blocked how to export those layouts to another user ID, Kindly Help me out.
    Thanks & regards,
    AIM

    Hi
    You have to create a NOT User specific layout. This will be available for all the users depending on your security authorization. You cannot move a user specific layout from one id to another
    Regards
    Sanil Bhandari

  • Help with adding a user copying permissions from another user $RoleDefinition.Name SharePoint 2010 Powershell

    Hello,
    I need to basically find everyplace 'ADUser1' exists and then add a new 'ADUser2' with the same permissions as the first group.
    I have created a script that runs through an entire web app and finds everyplace the AD account is directly given access to and access via a group.  I then need to add the new user and assign the permissions from the first ADUser, copy them. Below
    is not the entire script, just where I'm trying to add the new user.  The rest of the script works fine to find the first user.  I'm stuck with this part:  $role = $_.RoleDefinitions[$newRoleDef].  I get an error that I can call a method
    on a null valued experssion.. I guess I don't know how to specify to copy the role from the first user, and use it to set the new user?
              #Get the Permissions assigned to user
               $WebUserPermissions=@()
                 foreach ($RoleDefinition  in $WebRoleAssignment.RoleDefinitionBindings)
                                 $WebUserPermissions += $RoleDefinition.Name +";"
            $newRoleDef = $RoleDefinition.Name
              #write-host "with these permissions: " $WebUserPermissions
              #Send the Data to Log file
              "$($Web.Url) `t Site `t $($Web.Title)`t Direct Permission `t $($WebUserPermissions)" | Out-File C:\Apps\Scripts\Logs\UserAccessReport.csv -Append
        $assignment = New-Object Microsoft.SharePoint.SPRoleAssignment($account)
                    $role = $_.RoleDefinitions[$newRoleDef]
                    $assignment.RoleDefinitionBindings.Add($role)
                    $_.RoleAssignments.Add($assignment)

    Hi,
    According to your post, my understanding is that you want to copy user permission to another user via PowerShell.
    Instead of copy permission to another user, we can get the user permission, assign the permission to a group, then add the other user to the group. Now the user would get the same permssion as this user.
    http://get-spscripts.com/2010/07/adding-groups-with-permission-levels-to.html
    http://blog.thefullcircle.com/2013/02/create-a-sharepoint-group-with-permissions-and-add-an-ad-group-to-it/
    We can also use the third-party tool to achieve the same scenario.
    http://permissionsmanager.codeplex.com/
    http://www.boostsolutions.com/blog/how-to-copy-permissions-to-other-users-in-sharepoint/
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • ALV  Report Changed  Layout Cannot be saved .

    IN an ALV report if i changed the layout with selected fields .i cannot save it
    the save button on standard toll bar is disiabled
    as well as menu items to save the laout ...
    i can only chane the layout..
    ..please guide me in how to allow the end user to save the layout .....

    hi Vijay,
    when you call the ALV FM, beware of importing paramter i_save:
      CALL FUNCTION 'REUSE_ALV_...
       i_save                            = 'A'
    hope this helps
    ec

  • Download ALV report with layout to application server

    Hi Gurus,
    I have a problem as follows:
    I have one ALV Grid report. This report is very time consuming.
    That is why, user wants this to be run in background every night and in the morning when user comes to the office that ALV report should be on user's drive in excel format.
    However, it should run with one specific variant and that variant should be dynamically populated. (I have handled this part)
    It should also apply specific layout that has many filtering conditions.
    As I can not download ALV to excel in background, I decided to download it to the Application server.
    My problem is that when run in background, in spool ALV report shows o/p with proper filter conditions that is 5 out of 20 records.
    But, when I write this report o/p to Application server, it writes all the records in there, i.e., all 20 records. It does not take into account all the filters. [:(]
    I also tried downloading spool to excel, but o/p is not neatly formatted. All columns are fying here and there.
    Any suggestion, how can I write ALV o/p to Application server with layout into consideration?
    P.S. I have searched forum for this type of query, but no apt responses.
    Thanks

    did u downloaded the report with standard option provided in the alv and checked the data? that is populating all 20 records?. if so then use coding for achieving the standard one
    at the end of selection do like this ..
    SET USER-COMMAND ' %PC' .
    and in the user-command use like this..
    case sy-ucomm.
    when '  %PC'.
    give the file name ..
    do processing ..
    endcase.

  • ALV report - SAving layout

    Hi,
    I have created an ALV report using the class CL_GUI_ALV_GRID. The report has a toolbar which allows the layout of the report to be changed. But, it doesn't have any provision to save layouts. How do I enable this functionality?
    Any help would be appreciated.
    Thanks,
    Divyaman

    Hi,
    while calling method grid1->set_table_for_first_display
    pass parameter i_save = 'A'.
    CALL METHOD grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'ZCA0FCSTFTOP'
          is_layout        = grid_layout
          is_variant       = s_variant
          i_save           = 'A'
        CHANGING
          it_outtab        = t_zca0fcstftop
          it_fieldcatalog  = fieldcat.
    regards,
    vikas.
    plz reward if helpful...

  • Problems copying files from another user that originated from Time Machine

    I bought my wife a new MacBook Pro to replace a 6 or 7 year old iMac, and in the course of setting it up tonight, we've run into a little snag.
    She didn't need or want the vast majority of the stuff on the old drive. So I reinstalled the applications she wanted, and copied a few of her documents. MOST of what she wanted was the iTunes and iPhoto databases.
    I attempted to copy these over via the time machine drive that used to be plugged into the iMac. I was told there are insufficient permissions to do so. No problem. I used Migration Assistant to copy from the external drive, and selected just the items that we wanted copied -- Music and Photos.
    This worked great, except it copied over a new user account that matched the old one (she's using a different/married name now, so the user accounts didn't match up). In and of itself, I couldn't care less if it creates another user as I figured I could always go in, copy what I need from the restored user folder to the new user, and then delete the user account we don't need.
    Unfortunately, that's where I've hit the final snaffu. All the files I need are in a user account for "Heather A" (restored from the Time Machine drive via Migration Assistant). I need to copy those files (Music, Photos in particular) to the user account "Heather T" (the new account we setup when we first booted up the new MBP). However, in Finder, there's a little red circle with a line through it over the icon for those folders within "Heather A", and attempting to even open them (much less copy anything), generates the error "The folder 'Music' can't be opened because you don't have permission to see its contents."
    How do I get around this and/or change the permissions?
    I should note that both the "Heather A" and "Heather T" accounts are administrator accounts, so I'm at a loss as to why this is happening and how to fix it.
    Any help would be greatly appreciated.
    Dan

    Sssuming there still in the transferred account, delete the files you copied over to the new account. Log into the old account, drop all those files and iTunes into her new accounts /Public/Drop Box/, log into the new account, and drag to where you want them. That should resolve the permissions issues.

  • Copy user-specific layout to another user ID

    Does anybody know how to copy "user layout" information
    from current user ID to new user ID?
    At the end of every year, my company needs to give new user ID to all users
    due to security reason. For example, User ID for Y2008 is "user2008",
    and provide new user ID which is "user2009" for Y2009.
    The user is the same employee.
    Since he is the same person, of course he wish to keep using
    his user-specific layout for Y2009 continuously.
    So, I copied current user ID and create new user ID from SU01.
    Then, I found out that "user layout(user-specific layout)" information on FB03
    was NOT copied to new user ID.

    Hello,
    There is no need need to create a new user year.
    You can extend the validity of the same user id year by year. For example, you have created a user "TRAINEE01", initially when you have created you give the validity period from 01.01.2008 to 31.12.2008. Once the year is being closed, extend the validity from 01.01.2009 to 31.12.2009. This way you can avoid lot of maintenance cost as there are no redundancy of user IDs.
    There are many settings are user specific. In case if you create a new ID, the problem is that again he has to change all his / her settings. It would really cumbersome and they may not be knowing what changes made in the previous ID, as the system administrator might has stopped access to the old ID.
    Regards,
    Ravi

  • Downloading ALV Report using Layout Variant

    I want to download an Alv grid report output using layout varaint to Presentation server and also wants to mail to user .
    i.e...
    I am facing a problem in downloading and in sending mail.
    My requirement is, user  will choose  layout variant
    As per Variant chosen, i have to download that alv grid output to presentation server and also to mail.
    These download and mail sending options is in selction screen
    Will rewards to helpfull ans

    Hello,
    Do like this.
    FORM DOWNLOAD_FILE TABLES P_T_LISTE STRUCTURE G_T_LISTE.
      G_R_DISP_VARIANT-REPORT = SY-REPID.
      G_R_DISP_VARIANT-VARIANT = PA_VAR.
      CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT'
           EXPORTING
                I_DIALOG            = 'N'
                I_USER_SPECIFIC     = 'A'
                I_DEFAULT           = 'X'
                IT_DEFAULT_FIELDCAT = G_T_FIELDCAT
                I_LAYOUT            = G_R_LAYOUT
           IMPORTING
                ET_FIELDCAT         = G_T_FIELDCAT
                ES_LAYOUT           = G_R_LAYOUT
           CHANGING
                CS_VARIANT          = G_R_DISP_VARIANT
           EXCEPTIONS
                ERROR_MESSAGE       = 4
                OTHERS              = 4.
      LOOP AT G_T_FIELDCAT INTO G_R_FIELDCAT WHERE NO_OUT NE 'X'
                                               AND TECH IS INITIAL
                                               AND FIELDNAME NE 'ICON'.
        MOVE-CORRESPONDING G_R_FIELDCAT TO IS_FIELDCAT.
        IS_FIELDCAT-FIELDNAME = G_R_FIELDCAT-FIELDNAME.
        IS_FIELDCAT-INTTYPE   = G_R_FIELDCAT-INTTYPE.
        IS_FIELDCAT-OUTPUTLEN = G_R_FIELDCAT-OUTPUTLEN.
        IS_FIELDCAT-REF_FIELD = G_R_FIELDCAT-FIELDNAME.
        IS_FIELDCAT-REF_TABLE = G_R_FIELDCAT-REF_TABNAME.
        APPEND IS_FIELDCAT TO IT_FIELDCAT.
      ENDLOOP.
      DATA: WA_LISTE LIKE P_T_LISTE.
      CLEAR:IT_OUTTAB.
      REFRESH: IT_OUTTAB.
      LOOP AT P_T_LISTE INTO WA_LISTE.
        WA_OUTTAB-PSPID = WA_LISTE-PSPID .
        WA_OUTTAB-POSID = WA_LISTE-POSID.
        WA_OUTTAB-POST1 = WA_LISTE-POST1.
        WA_OUTTAB-STTXT_INT = WA_LISTE-STTXT_INT.
        WA_OUTTAB-STTXT_EXT = WA_LISTE-STTXT_EXT.
        APPEND WA_OUTTAB TO IT_OUTTAB.
      ENDLOOP.
    **dynamic table creation for data
      ASSIGN LT_DATA TO <FS_DATA>.
    * Create a new Table
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
      EXPORTING
            IT_FIELDCATALOG = IT_FIELDCAT
      IMPORTING
            EP_TABLE = <FS_DATA>
      EXCEPTIONS
          GENERATE_SUBPOOL_DIR_FULL = 1
          OTHERS                    = 2.
      IF SY-SUBRC = 0.
        ASSIGN <FS_DATA>->* TO <FS_1>.
        CREATE DATA NEW_LINE LIKE LINE OF <FS_1>.
    *** A field-symbol to access that work area
        ASSIGN NEW_LINE->*  TO <FS_2>.
    **MOVE DATA
        LOOP AT IT_OUTTAB INTO WA_OUTTAB.
          CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT'
               EXPORTING
                    INPUT  = WA_OUTTAB-PSPID
               IMPORTING
                    OUTPUT = WA_OUTTAB-PSPID.
          CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT'
               EXPORTING
                    INPUT  = WA_OUTTAB-POSID
               IMPORTING
                    OUTPUT = WA_OUTTAB-POSID.
          LOOP AT G_T_FIELDCAT INTO G_R_FIELDCAT
                              WHERE NO_OUT IS INITIAL
                                AND TECH IS INITIAL.
            ASSIGN COMPONENT G_R_FIELDCAT-FIELDNAME OF STRUCTURE
                                                    WA_OUTTAB TO <FS_5>.
            ASSIGN COMPONENT G_R_FIELDCAT-FIELDNAME OF STRUCTURE
                                                    <FS_2> TO <FS_3>.
            <FS_3> = <FS_5>.
          ENDLOOP.
          INSERT <FS_2> INTO TABLE <FS_1>.
        ENDLOOP.
      ELSE.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE.
      IF SY-SUBRC EQ 0.
        LOOP AT <FS_1> ASSIGNING <FS_2>.
          TRANSFER  <FS_2> TO P_FILE.
        ENDLOOP.
      ELSE.
        MESSAGE E041(S9) WITH P_FILE.
      ENDIF.
      CLOSE DATASET P_FILE.
    ENDFORM.                    " download_file
    * 002 vsm1kor 13.06.06 - en
    Regards,
    Vasanth

  • IN ALV Report 'SAVE LAYOUT' option missing

    Dear All,
                 I have created one report in ALV GRID using ABAP OBJECTS(Using class CL_GUI_CUSTOM_CONTAINER and
    CL_GUI_ALV_GRID).But in output when i click on change layout option i am not getting SAVE layout option.
    I have already passed I_SAVE parameter = 'A' while calling metod SET_TABLE_FOR_FIRST_DISPLAY. But i didnt worked.
               Please do needful.
    Regards,
    Mayank

    Hi,
    You can manage display variants by using parameters, “is_variant” and “i_save” of “set_table_for_first_display”. Here are options for variant handling. <structure_name> is the variant-defining structure of type “DISVARIANT”. The field “report” in this structure should contain the value of “sy-repid.”
    Hope this helps. Reward points if helpful.
    Thanks,
    Balaji

  • [SOLVED] Copying settings to another user.

    Hey guys I'm new to the forum so please be gentle
    So i setup arch and installed openbox and have everything running perfectly except that i forgot to make a new user at the beginning so all my xserver settings are stuck on root. I just need a way to copy everything from my root to my other account. Sorry if this is a noobish question
    Last edited by pojo87 (2010-04-29 09:59:14)

    Thank you for the quick reply!
    I'm going to try this now

  • Copying files from another user

    I migrated my files successfully, but not into to my user.  I need these files on my main user and I have no idea how to do this. 

    Have a read here:
    http://pondini.org/OSX/MigrationProblems.html
    http://pondini.org/OSX/Transfer.html
    Might be better/best to start the thing all over and using the Setup Assistant instead of the MIgration Assistant this time:
    Using Setup Assistant on Lion
    Stefan

  • ALV report output to be send to the respective users through email

    Hi Gurus,
    My requirement is to send the ALV report output to the respective users Email ID (Lotus notes) when the report runs in background.
    Could any one suggest me with sample coding, How to send a ALV report output to the respective email ID's ( Suggest me the FM that used to send a internal table)
    Regards
    Paul

    Hi Paul,
      Here for u the sample code:
    <b>call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_receivers
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.</b>
    Hope this helps you.Reply for queries
    Regards,
    Kumar.

  • How to copy information from a user account's Security tab of Active Directory User and Computer Security tab to another user account?

    Hi, I'm using vs2012
    Grammatically, by C# code, I need to copy a user account's Security (from ADUC Security tab) and apply it to a new user account I created by code.  My application creates new AD accounts when needed.  I need to duplicate/copy attribute from another
    user account that we use as a base template.  I can copy most other attributes through property["xxxxx"] but how do I copy all that permission access information under the ADUC Security tab?
    How can I do that?  Thank you.
    Thank you

    I would recommend asking them in C# forums: https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral&filter=alltypes&sort=lastpostdesc
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

Maybe you are looking for