cancel
Showing results for 
Search instead for 
Did you mean: 

How to set default value for order type in VA01?

Former Member
0 Kudos

Hello everybody,

is it possible to set a default value for order type in VA01? If yes, how does it work?

Already used the search engine, but didn't find anything useful.

Best regard and thanks!

Patrick

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Patrick,

you can create a transaction with parameters (in your case the parameter will be sales order type).

Execute SE80 and in the tool bar select "workbench", "treat object". In the following screen, in folder "program", select transaction and type in, for example, ZV01 and press on icon create. In the following screen, enter a description and select option "parameter transaction". In following new screen, at the botton, type in the dynpro field name of sales order type and the value you want for this user. When saving, you'll get a transport order. Use this transaction, ZV01, for this customer.

Please give feedback.

Regards,

Joan

Former Member
0 Kudos

Hello everyone,

thanks a lot for your answers. You already helped a lot!

But I still need to know, how to change the field "order type" to "not editable". Is there any user-exit?

Best regards!

Lakshmipathi
Active Contributor
0 Kudos
field "order type" to "not editable". Is there any user-exit?

You can try with User exit in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT or include this logic in your existing routine itself.

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi Patrick,

if i do remember well, using "transaction with parameters", the parameters (in your case sales oder) are not modifiable.

Regards,

Joan

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

If this issue is for a group of users and not just one user then I would advice you to create a specific role for this user where the user should be authorized for that sales document type only. You can consult with your security team. The authorization object is V_VBAK_AAT.

This is a standard and simple solution.

Regards,

Vishesh

Former Member
0 Kudos

Hi Patric,

Could you please explain what is the default value you want to assign for a order type?

Regards,

SK

Former Member
0 Kudos

Hey,

the background of this question is, that a certain user who loggs in, is only allowed to use that special order type. So the field order type has to be filled automatically, when using transaction VA01 and the textfield's entry can't be changed then.

I think this should be possible with an user-exit, but I don't know how to find out which one to use.

Best regards!

Former Member
0 Kudos

You need simply update your user profile (system>user profile>own data) and enter a value (order type) in parameter ID AAT.

Former Member
0 Kudos

Thanks and is it possible to set this field to not editable?

Former Member
0 Kudos

Hi Patric,

I think you can use the Screen variant to control the user specific to default as specific order type. Kindly follow the below steps.

If you need further assistance kindly go through the link below:

A. 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 GROUP1.

3. Choose Create. Enter a short text on the Maintain Variant Group window that appears and save the variant group.

B. Create the Transaction Variant as you already done, and activate it.

C. 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.

Note: When you choose Execute on the selection screen, a list appears on which you can further restrict your selection of users by selection. To save the assignments for all selected users, choose Save.

Hope this will help you out.

kalyan_muthyala
Explorer
0 Kudos

If you want to set it for selected users. Please follow the steps:

1. Go to the field where you want to set values e.g VA01 screen Document Type field . Press F4.

2. Highlight the field you want to default. And select Insert to personal list. Repeat for selecting other options.

3. Next time when user see the screen only the selected values will be displayed for selection in F4 option. So noway the user will make wrong selection.

OR SHD0 is the best way to set it using variants and assigning it to multiple users.