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

Issue with SHD0

Former Member
0 Likes
1,748

Hello Gurus,
need your help in following scenario.

My Requirement is like

"When User is going to change the SO (using VA02) he should not able to change the “Delivery block” field."

I want Delivery Block field ( Sales TAB - beside Item Overview) should be not editable mode.

How to achieve this ?

I tried with SHD0 but except first screen I am not able to change attributes of any other screen field from second screen.


I have done following changes and included this screen variant to Transaction Variant ZBBB.

Screen values    4440 Program  SAPMV45A                       Subscreen   HEADER_FRAME

Field                               Contents             W. content  Output only   Invisible  Required

Delivery block                                                                      X 


Saved this Transaction Variant in Package

Created another Z transaction ZVA02( Variant transaction) using this Transaction Variant ZBBB.

Transaction - VA02
Transaction variant - ZBBB

Check mark Cross Client and inherit GUI attributes

but still it is not working ..
Can someone please help me understanding where I am doing wrong?

Thank in advance...

Regards,

Mayur

1 ACCEPTED SOLUTION
Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,421

Hi Mayur,

Did you tried checking for User Exits and BADI for VA02.

Take the help of this document and find a BADI for your Scenario.

http://scn.sap.com/docs/DOC-33611

Hope this solves your problem.

Hello Gurus,
need your help in following scenario.

My Requirement is like

"When User is going to change the SO (using VA02) he should not able to change the “Delivery block” field."

I want Delivery Block field ( Sales TAB - beside Item Overview) should be not editable mode.

How to achieve this ?

I tried with SHD0 but except first screen I am not able to change attributes of any other screen field from second screen.


I have done following changes and included this screen variant to Transaction Variant ZBBB.

Screen values    4440 Program  SAPMV45A                       Subscreen   HEADER_FRAME

Field                               Contents             W. content  Output only   Invisible  Required

Delivery block                                                                      X 


Saved this Transaction Variant in Package

Created another Z transaction ZVA02( Variant transaction) using this Transaction Variant ZBBB.

Transaction - VA02
Transaction variant - ZBBB

Check mark Cross Client and inherit GUI attributes

but still it is not working ..
Can someone please help me understanding where I am doing wrong?

Thank in advance...

Regards,

Mayur

7 REPLIES 7
Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,422

Hi Mayur,

Did you tried checking for User Exits and BADI for VA02.

Take the help of this document and find a BADI for your Scenario.

http://scn.sap.com/docs/DOC-33611

Hope this solves your problem.

Read only

0 Likes
1,421

Hi Venkat.

Document is superb. Easiest way to find BADI...

But still problem continuous ... I am still not able to find Exact BADI.

Could you please help me in finding BADI?

Thanks in advance.

Regards,

Mayur.

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,421

Thanks Mayur. We have a Like option Available in the SCN for the Document

1. First find the Screen where the Develery Block field exists.

2. Go to SE51 and enter the program SAPMV45A and enter the Screen number you found.

3. Now take the Technical details of that field.

4. Now as the suggested document put a break point the SXV_... Function Module.

5. Execute the VA02 Transaction.

6. For each and every click or screen you will find a BADI.

7. Implement the BADI in Test scenario and break the code with this Technical details of the field.

Sure you would be able to acheive.

Other way around, we have User Exits and Customer Exits also. Check in those Includes whether you could find the delivery block field anywhere.

Hope this helps.

Read only

Former Member
0 Likes
1,421

Hello,

You can use USEREXIT_FIELD_MODIFICATION, in report MV45AFZZ. Just add this piece of code:

CASE SCREEN-NAME.

WHEN 'VBAK-LIFSK'.

SCREEN-ACTIVE = 0.


ENDCASE.

Regards,

João

Read only

bastinvinoth
Contributor
0 Likes
1,421

use USEREXIT_FIELD_MODIFICATION, in program  MV45AFZZ.

Sample code for your reference.

CASE SCREEN-NAME.

  WHEN 'VBAK-FAKSK'.

    IF SY-UNAME NE 'BULLFI'.  " give user name

      SCREEN-INPUT = 0.

    ENDIF.

ENDCASE.

Regards,

Bastin.G

Read only

Former Member
0 Likes
1,421

Hi Joao and Bastin,

  Thanks for your input.

  Your solution will work , but I am more interested in finding why SHD0 is not working properly in my case.

Regards,

Mayur

Read only

Sijin_Chandran
Active Contributor
0 Likes
1,421

Hi Mayur ,

Instead of creating another Z transaction you can assign that transaction variant to User Group.

Check this below document posted by me :

http://scn.sap.com/docs/DOC-39667

And I appreciate your idea for sticking with SHD0.