cancel
Showing results for 
Search instead for 
Did you mean: 

Disable header and item fields in VA02

Former Member
0 Kudos

Hello, good day

Could you please help me with next issue?

I need to define how to inactivate some header and item fields in a sales order when VA02 is used, a logic to decide if the field must be desable will be applied, because of that I can't use standar customizing solution.

I read a lot of threads, but many of them are not answered, and as far as I can see many recommended solutions are refered to similar code that I have now.

I tried with next user exits:

To block gray out header and item fields:

User exit form USER_EXIT_FIELD_MODIFICATION Program: MV45AFZZ

To gray out pricing grid

User exit form: USEREXIT_FIELD_MODIFICATION Program: LV69AFZZ

To gray out partner screens (item, header): No user exit identified, please advise

to gray out new items in sales order: No user exit identified, please advise, I mean not allow new items.

fields to block:

XVBAK-LIFSK

XVBAK-FAKSK

XVBAK-KUNNR

XVBKD-VSART

XVBKD-INCO1

XVBAP-UNTTO

XVBAP-UEBTO

XVBPA-KUNNR

XVBPA-PARW

XVBAP-ROUTE

XVBAP-ABGRU

The code is something like this in MV45AFZZ - USER_EXIT_FIELD_MODIFICATION

CASE screen-name.

WHEN 'XVBAK-KUNNR'

OR '*XVBAK-KUNNR'. "Sold To

screen-input = 0.

...

END CASE

but is not working. please advise.

Disable Pricing grid: after apply this code, is possible to add new manual conditions, how can I disable input new item conditions?

The code is something like this in LV69AFZZ - USEREXIT_FIELD_MODIFICATION Program:

  • Modify screen fields

IF SCREEN-NAME = 'RV61A-KOEIN'

OR SCREEN-NAME = 'KOMV-KBETR'

OR SCREEN-NAME = 'KOMV-KPEIN'

OR SCREEN-NAME = 'KOMV-KMEIN'

OR SCREEN-NAME = 'KOMV-KWERT'

OR SCREEN-NAME = 'KOMV-KSCHL'

OR SCREEN-NAME = 'KOMV-KUMZA'

OR SCREEN-NAME = 'KOMV-KUMNE'

OR SCREEN-NAME = '*RV61A-KOEIN'

OR SCREEN-NAME = '*KOMV-KBETR'

OR SCREEN-NAME = '*KOMV-KPEIN'

OR SCREEN-NAME = '*KOMV-KMEIN'

OR SCREEN-NAME = '*KOMV-KWERT'

OR SCREEN-NAME = '*KOMV-KSCHL'

OR SCREEN-NAME = '*KOMV-KUMZA'

OR SCREEN-NAME = '*KOMV-KUMNE'.

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

  • Modify buttons

IF SCREEN-NAME = 'BT_KOAN' "Add

OR SCREEN-NAME = 'BT_KOLO'. "Delete

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'BT_KONY'. "Update

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

Thanks in advace.

Regards!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I Found that in order to gray pricing grid we just put the code in user exit form: userexit_field_modific_leer include LV69AFZZ

and to block the other fields and to block partner functions:

Include Program: MV45AF0P_PARTNER_PREPARE User Exit Form: partner_prepare

Former Member
0 Kudos

Instead of doing all this you can define a transaction variant - disable all the specified fields you want to and then assign it to the tarnsaction code VA02. Then according to the set of user profiles u cvan assign this tarnsaction variangt to thier profiles. or else if you want every one to use the same functionality you can have this Transaction variant assigned for all the user profiles.

Transaction code to create Transaction Variant is SHD0 - and give for VA02 and it willshow what all screens you want to gray out or what all fields you want to gray out. then save it and Activate it.

Rgds

Sai

Former Member
0 Kudos

Thanks Sai, for your prompt answer, as far as understand variants, I can't add any logic, to allow change or only display, I do no't include the logic in the sample code, but that's my case, I need the user exit due a logic must be applied and standar solution like variant or customizing are not the better option.

I Found that in order to gray pricing grid we just put the code in user exit form: userexit_field_modific_leer include LV69AFZZ

and to block the other fields and to block partner functions:

Include Program: MV45AF0P_PARTNER_PREPARE User Exit Form: partner_prepare

Edited by: Jose Carrillo on Mar 30, 2008 4:21 AM