Application Development 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: 

How to Create user-specific selection variable in variants?

Former Member
0 Kudos

hi,

With the help of this link http://help.sap.com/SAPHELP_NW04s/helpdata/EN/c0/980398e58611d194cc00a0c94260a5/frameset.htm 

I am trying to create user specific selection variable for variants, after specifying selection variable as type B, i am not getting any variable name in the Name of Variable column(input only using F4).

Where i have to maintain variable names for user specific?

Thanks in advance,

naresh

6 REPLIES 6

Former Member
0 Kudos

Hi,

You should maintain this in the User Master record.

http://help.sap.com/saphelp_nw04/helpdata/en/c0/98039ee58611d194cc00a0c94260a5/frameset.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/c0/98039ee58611d194cc00a0c94260a5/frameset.htm

User-specific variables                                         

Prerequisite: The selection field must have been defined in the

program using the MEMORY ID pid addition. User-specific values,

which can be created either from the selection screen or from the

user maintenance transaction, are placed in the corresponding

selection fields when the user runs the program.

You can also use these FM's to read and set values.

Function module

Function

VARI_USER_VARS_GET

Reads existing variable values

VARI_USER_VARS_SET

Changes existing variable values

VARI_USER_VARS_COPY

Copies variable values

VARI_USER_VARS_DELETE

Deletes variable values

VARI_USER_VARS_RENAME

Renames variable values

VARI_USER_VARS_DIALOG

Dialog for entering variable values




Former Member
0 Kudos

Also, you can maintain new parameter id in TUVID table.

0 Kudos

hi shambu,

i have maintained that in User Master Record and in table tuvid.... Even though i am not getting value for name of the variable.. i followed below steps to create user specific variable

Procedure

...

  1. In the Variant field on the initial screen for maintaining variants, enter the name of the variant.
  2. In the Subobjects group box, select the Attributes radio button.
  3. Choose  Change.

The attributes screen for the selected variant appears.

  1. In the Selection variable column, press F4.

A dialog box with the possible types for the selected field appears.

**********Choose type B for user-specific variables.

->You return to the attributes screen.

->The system automatically fills the Name of Variable column.

-> Choose  with the quick info text Save.

its given as choose type B... then system automatically fills the name of variable column.. but i am not getting this i am unable to save the variant because i have to maintain name of variable column.

0 Kudos

Hi Naresh,

check this link.

<Link to blocked site removed by moderator>

Thanks,

Shambu

Message was edited by: Vinod Kumar

Former Member
0 Kudos

hi shambu,

Problem Solved... thank u.

we need to create user variable in selection screen..  Goto->user variables..

0 Kudos

Hi

I am interesting to know what you are doing. I am trying to figure out how to add new variant dynamic date calculation myself.