Skip to Content

BADI or User-Exit for MSEG


I'm looking for a BADI or User-Exit to modify a field in MSEG. This field is an IS-Oil component, but, I must modify this field when I make an outbound delivery.

I have tried the BADI MB_DOCUMENT_BADI but the system short-dumb when I modify the field. "The program tried to assign a new value to a field even though it is protected against changes.".

If you have any user-exit or BADI or any solution for this BADI please tell me.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 08:09 AM


    You can use exit ZXMBCU02 ( Function EXIT_SAPMM07M_001

    in SAP enhancement MBCF0002 ). Here also whtever changes you make to I_MSEG will be lost as MSEG is an importing parameter. You can do something like this.



    ASSIGN (NAME) TO <F1>.

    <F1>-KOSTL = 'XXXX'.

    ( In above example MSEG-KOSTL will be set as XXXX, you can change any of MSEG fields in above way. ).


    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.