Skip to Content
author's profile photo Former Member
Former Member

How to grey out BSARK(PO Type) in header while changing Sales Order VA02

HI All,

I have a requirement like this.

Need to default a value in PO type BSARK field in the header while creating sales order VA01.

After defaulting, If user trying to change the PO type in VA02, I need to make the field as non-editable/Grey out. system should not allow the user to change the PO type.

Please help if some one worked on the same kind of requirement.

Thanks,

Mahesh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 22, 2016 at 09:53 AM

    Hi,

    with help of ABAP you can use userexit_field_modification. MV45AFZZ.

    Here you can Change the Screen attributes of field bsark.

    In the include are also Exits to move Default values to fields.


    Exits are nicley documented http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm

    BR

    Robert

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2016 at 09:53 AM

    Mahesh,

    If you want to default this field in sales order header level, you need to make an enhancement. Do you want this value to be editable in VA01 screen? If so, make the enhancement in program MV45AFZZ, form USEREXIT_MOVE_FIELD_TO_VBAK. If not, make the enhancement in program MV45AFZB, form USEREXIT_CHECK_VBAK.

    In VA02, make an enhancement in in program MV45AFZZ, form USEREXIT_FIELD_MODIFICATION to make the field act as display only.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.