User specific variant (how to )
Hi gurus,
i have made one report. in this report we need different layout.
i have user reuse_alv_grid_display .
our requirement is we want to create one default layout and other user specific layout.
so if user doen't have his ownlayout then we want to display default layout otherwise display that user specific layout.
i am not able to figure it out how it works in this function module.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_structure_name = 'ZSDMATATP'
it_fieldcat = zfield
it_sort = sortcat[]
I_DEFAULT = 'X'
i_save = 'U'
is_variant = g_variant
IMPORTING
e_exit_caused_by_caller = exit_caused_by_caller
es_exit_caused_by_user = exit_caused_by_user
tables
t_outtab = display
exceptions
program_error = 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.
endif.
please tell me where i made mistake.
Thanks,
Jignesh.
1. Put one parameter on the screen like:
PARAMETERS : P_VAR LIKE DISVARIANT-VARIANT obligatory.
2. Assign the F4 help for that parameter
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VAR.
DATA: W_VARIANT LIKE DISVARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = W_VARIANT
I_SAVE = e_save "Was 'A'
IMPORTING
ES_VARIANT = W_VARIANT
EXCEPTIONS
NOT_FOUND = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC EQ 0.
P_VAR = W_VARIANT-VARIANT.
ELSE.
W_VARIANT-REPORT = SY-REPID.
ENDIF.
3. Pass this W_VARIANT to FM
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IS_VARIANT = W_VARIANT
By this way, user has to select at least one variant. He can pull down the F4 help for avaliable variants. He can see the default one alongwith his own variants if he has any.
Regards,
Naimesh Patel
Similar Messages
-
Protect Non user specific variant
HI all,
I want to save a variant available for all users, the problem is that I don't want none apart of me to modify it. I could create a User-Specific variant, but this way I am the only one who will have access to it. I want to create a variant for all users which can oply be modify by me. Do you know if there is a way to do this??
Thanks a lot in advance.Hi Jürgen,
This is a very helpful answer, but I am looking for a way without having to use authorizations. The problem is that the other users should also be able to create variants, so this solution is not useful in this case. I need something similar to what we have in the selection variants in which you can protect the variant.
Best Regards. -
Diffrent user specific variant for same standard t-code
I have to create the variant for some particular users on standard t-code, I have try the variant group but it is getting activated on all the user, I need it only on some user which I will specify , please suggest
Edited by: ashwinv22 on Jul 6, 2011 3:29 PMDid you respect the procedure as it is defined in [Creating Variant Groups and Assigning Users|http://help.sap.com/saphelp_nw04s/helpdata/en/46/8ad21834a801dce10000000a1553f7/frameset.htm]
- Creating a Variant Group - SHD0, Standard Variants, Variant Groups, Create
- Creating a Transaction Variant with Screen Variants - SHD0, Transaction Variants, Create
- Assigning Users - SHD0, Standard Variants, Variant Groups, Assign
Else try with [Maintaining Variant Groups and Associated Transaction Variants|http://help.sap.com/saphelp_nw04s/helpdata/en/46/8b5c5a332600fde10000000a11466f/frameset.htm]
Regards,
Raymond -
Can "Variants" also become User Specific like "Layouts"?
Hi Friends,
As you know we can create user specific or non-user specific (Global) layouts for our reports (Standard or Z Reports).
My question is that is it possible to create user specific Variants also or variants are by default global and can be used by every user id?
If we can create user specific variants, how can we do that?
Regards,
CKHello CK,
When you create variants, it will be automatically listed in the list of variants available and yes, as you say, any user can see that in SAP screen, however, user can opt to use or not these variants and it will not automatically be the default value of all SAP users.
Thanks, hope this helps. -
User specific default variant setting
Hi gurus,
My requirement is Report should get executed with default user specific Variant.
For example while running MB51 system should pick the corresponding variant based on the user who is executing the report.
Based on threads i created variants with U_userid like U_RAM & U_LAX.
I checked with user ids of RAM and LAX, But system is not picking automatically.
can u help mehi,
see this.
https://forums.sdn.sap.com/click.jspa?searchID=14929390&messageID=5872211 -
Copy User Specific ALV Display Variants
Does anyone know if it is possible to copy one user's ALV display variant (that has been saved as a user-specific variant) for a particular program (in this case VA05) to another user?
Hi Eric,
I'm a bit busy now and I cannot give you a complete solution, but sure can give you some c(l)ue. Just see if you have some success. If you do not, then i wuill get back to you later.
Refer to the follwoing SAP Tables and see if you have some luck.
==========================================================
LTDX --> Generic storage of display variants
LTDXD --> Default display variants
LTDXS --> SAP Default Display Variants
LTDXT --> Display variant texts
==========================================================
The idea is to try and manipulate the table entries for various users.
Regards,
Anand Mandalika. -
Hi Gurus,
User has created a variant for KSB1 report and its saved as user specific variant automatically. Now he want to change this as global in order to access for other users but user specific check box not able to deactivate as its greyed out(not modifialbe). Attached screen shot for clarity on the issue. Please share your inputs on from where this tab is controlling?
Thanks in AdvanceHi Jyothi,
You can create a new standard layout with name starting with /. If user specific check box is grayed out and selected by default, then that user may not have proper authorization to create standard ALV layouts. Please ask your BASIS team to give required authorization.
Thanks,
V V -
User-specific Selection Variables in Variants
Hi,
I am triing to follow the tutorial in the help.sap.com concerning the variants.
http://help.sap.com/saphelp_47x200/helpdata/en/c0/980386e58611d194cc00a0c94260a5/frameset.htm
I would like to create a User-specific Variables for a variant.
I created set/get param for my report, I also created entries in the user master record. But: In the variants maintenance tool (SE38). First I edit the attributes of my variables and choose the selection variable option for some fields. Second I highlight in green the user specific column stoplight. But clicking F4 doesnt propose any value. Then saving doesnt work neither.
Thank you,
YounesUmar,
When I click on the button save a modal popup it says "Variables not supplied with values. Save anyway?". I dont know how to supply the variables with values.
With the Function module VARI_USER_VARS_GET I am not able to Read existing variable values. Also in the selection screen of my report the menu Goto -> User variables is not enabled. Maybe I am missing something? Could you help me.
Thanks,
Younes -
How to set user specific Layout for executing IW38/IW39 report.
Dear Experts,
We have 10 users seperatly, For executing IW38/39 transaction they have maintained seperate layouts for executing the reports. While saving layout they have saved the layout as 'user specific' Now some body has chage the settings.
After changing the setting all are getting same layout.
Please suggest how to set user specific layout. When user enter the IW38/39 report by default he should get his layout.
Thanks in advance.Create Variant using SHD0 and with Group and assign to particular user's
Here is the steps
Creating a Variant Group
1. Open transaction SHD0, enter the transaction code, and press enter.
2. Choose the Standard Variants tab page, and then the sub tab page Variant Groups, and enter a group name, such as GROUP_GEN
3. Choose Create. Enter a short text on the Maintain Variant Group window that appears and save the variant group.
Assigning Users
Once you have created the variant group and the relevant transaction variants with screen variants, you now need to assign users to the variant group as follows
1. Return to the Standard Variants tab page, Variant Groups sub tab page.
2. Enter the name of a user that you want to assign to this variant group, and choose Assign. A message that this user was successfully assigned to the variant group appears in the status bar. If you choose a where-used list for users, this user is displayed in the user list.
3. However, for the screen variants of the variant group that you created above to be displayed for the user, you first need to select Set Proposal. The user is assigned to the group and the associated transactions are started with the corresponding variants only once you choose the Set Proposal function.
You can use this procedure of user assignment for all other users that you want to add to the variant group
Hope this helps.
Thanks
S.N -
Default Variant at user specific in FB50,FB60 & FB70
Hi,
I have a created variant in T.Codes: FB50, FB60 & FB70, user wants invisible some of the fileds. This Vairant I have created in configuration(middle in the left side small box) and I used administration selected few of the fileds as invisible and activated. but still all fields are appearing, when I check those fields it is selected as invisible. How can I restrict those fields and I want to use this variant as default at user specific level. Please advise me how can I set as default variant.
Thanks
VS RaoHI,
First you suppress the fields in Field status group and then create variant for those fields.
Regards,
Azeem -
Hi All,
Can anyone tell me, how can i create user specific Screen Variants for the Customer Mater (XD02) ??As I have tried the same but its not working for the specific user. Can you suggenst me any other process how can i create the same ???
Edited by: siddharth patel on Apr 14, 2010 7:46 AM
Edited by: siddharth patel on Apr 14, 2010 7:47 AM -
How to restrict users to not default layout while creating a user specific?
Hi all,
I have a problem with frequent changes in report layout setting. When users trying to create a user specific layout in the window "Default" is set, out of "User specific" & "default" checkbox defaultly, so users saving the layouts. so it's overwritting on existing layout. we are ossing the old data. how to restrict end users to create new one with out changing the existing one.How to change that default check in "Default" check box to user specific defaultly. where i have to do settings for this. Thanks in advance.
PradeeshHi ,
My problem is still not resolved. I tried applying the people picker property and set a specific field(an email id field) to be available to only admins. Now the field is not visible to the normal users but only admins which is good but that email field
should be able to take normal users as wel as admin's email ID. currently due to the people picker property it only takes admin's ID and not normal user's ID - which is not as per expectation.
What this email ID field does is - when a normal user is logged in he/she wont see this field in that view. But when an admin logs in he/she can switch to admin view and see this field . The admin can put any user's ID in this field and pull out the required
resource's Time Report for modification.
Please let me know how do i overcome my problem. Detailed step description will be very helpfull .
As per Cameron's suggestion (add a rule on the "additional admin section") , i am not sure how exactly that is done. Would help a lot if i got to know how this works.
Regards,
Guru -
User specific default variant in a selectio screen
Is it possible to provide an option to create user specific default variant in a selection screen?
I have developed a custom report program. Now I want to allow users to choose one of their variants as default variant ? Please help.Hi very Simple and easy solution:
In SE93 when u are creating the transaction for the program use the option 'Start with variant' and give your own vaiant name for the program start. This will help you in starting your proam always with your default variant.
Hope That Helps
Anirban M. -
User specific default variant for FBL1n FbL5n
Friends,
I am trying to create a variant for FBL1n report layout for specific user. Now the issue is the user has to go and select his specific variant every time he executes FBL1n. Is there any way by which we can default the specific variant for specific user.
Any help is much appreciated.Hello,
Go and change the variant selection settings in FB00. You select the relevant variant.
Regards,
Ravi -
User Specific VA01 Screen variant (item overview tab first then sales tab)
Hi,
One of my user wants to see more number of line items on the sales order creation screen. Is it possible to create user specific screen variant? Like bringing item over view tab first and then sales tab at VA01 screen for one particular user.
Thanks in anticipation.
Regards
Suman Jhahi,
you have two solutions for your issue.
1. please check the resolution of your desk top which you are working.
2. SAP has fixed the screens like that onlly so please write to SAP if there is any solution on this they will provide because no enhancements or developments or no programs i think we can do that.
regards,
balajia
Maybe you are looking for
-
Have I lost the account I had with my 3GS? I have not synced the 4g to iTunes. After unlocking my disabled 3GS; when I hit the restore opp. and everything opened up. There was nothing in the account. Can I and how do I get back my info. or the accoun
-
What are the pro/cons of reformatting a 32GB SD card from FAT32 to Mac OS Extended?
Advantages/Disadvantages? I am using the card to store large media files (video, etc) Thank You!
-
I d'like to create an image. I want for doing it to paste several images in rows and columns to compose only one bigger. If someone has got an idea can you help me please or if you don't understand me do you want more informations? thank you for your
-
Hello everyone My hosting company have just told me they do not host cms for security reasons. Can you tell me what kind of server specifications / hosting company I need to find. Thanks in advance.
-
Saving drafts from outlook to my device
Hello all, does anyone know how i can view a saved draft created in outlook on my devices? Essentially I want to be able to create a draft at my desk, then update it on the road if need be, then send it out after the update on my device. Any clues?