Application Development and Automation 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: 
Read only

Make 1 field non-editable while using transaction VA02.

Former Member
0 Likes
3,815

Hi,

I want make a field non-editable under tab 'shipping' for transaction VA02. I know one way of doing it by adding code to MV45AFZZ -> USEREXIT_FIELD_MODIFICATION. is there any other way ( other user-exit / BADI) to achieve the same.

9 REPLIES 9
Read only

Former Member
0 Likes
2,435

Hi,

Goto transaction 'SHD0' .. Give the transaction name as 'VA02' and create a variant with your specifications. i.e. specify the field you want to disable.. You can configure/use that variant in the transaction 'VOV8' to your document type.

Read only

0 Likes
2,435

Hi Sneha,

as per your suggestion, I have created a transaction variant and tried to assign it for the required order type using transaction VOV8. But there i'm getting error 'Variant ZVA02123 has not been defined for transaction VA01' while assigning the variant. actually i have created the variant for VA02 but it is promting me error regarding transaction VA01. Can you please help me?

Read only

Former Member
0 Likes
2,435

>

> Hi,

>

> I want make a field non-editable under tab 'shipping' for transaction VA02. I know one way of doing it by adding code to MV45AFZZ -> USEREXIT_FIELD_MODIFICATION. is there any other way ( other user-exit / BADI) to achieve the same.

Hi nikhil ,

you can also use transaction variant for making the feild non editable .

Read only

Former Member
0 Likes
2,435

Hi,

If you are using ECC version then you have another option of Enahncement to achive the same.

Simply find out the screen no and field name then find any implicit or explicit enhancement point in the PBO module and using the loop at screen logic hide it or disable for input.

Hope this helps.

Regards

Bikas

Read only

Former Member
0 Likes
2,435

Hi Nikhil,

Writing the code in MV45AFZZ is more preferable for me as, MV45AFZZ not only for this enhancement but

for many other enhancements & restrictions in teh sales uses the same MV45AFZZ inclue(user-exit.)

Thanks & regards,

Dileep .C

Read only

Former Member
0 Likes
2,435

Hi,

If you are using vershion eec 6.0 and above, you can go for Enhancement Frame Work, you can use an implicit enhancement where you can can write the code.

loop at screen.

if screen-name eq '-----'.

screen-input = 0.

endif.

modify screen.

endloop.

Regards,

Murthy.

Read only

Former Member
2,435

Hi,

Try creating a variant for transaction 'VA01' also so the same non-editable field for the same document type... I think it will solve your problem..

Read only

0 Likes
2,435

Hi I want that field editable in VA01. Once the value us added it should not be editable in va02.

Read only

0 Likes
2,435

Hi,

Please go through this link... It tells you the step to follow....

http://www.sap-basis-abap.com/sapbs010.htm

Also please refer these posts..