2013 Apr 30 6:25 PM
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
2013 May 01 2:01 AM
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
2013 May 01 2:01 AM
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.
2013 May 02 12:10 PM
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.
2013 May 03 5:20 AM
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.
2013 May 02 12:28 PM
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
2013 May 02 12:32 PM
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
2013 May 02 3:45 PM
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
2013 May 03 5:59 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |