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

Material determination in transaction VA02

Hello experts,

I think we have a problem error in program for material determination.

The problem is that when i create a sales order, the information isn´t

enough to determine the material, i will only have the information i

need later, after saving the order, but when i fill the field for

determine de material, the system doesn´t calculate. I think the

program isn´t prepare to determine material after saving, only if i

change the material. But, i can´t do that because the field which

depends the determination of material is the PLANT and i only have this

information after saving the order. How can i obligate the system to

determine the material after saving the order only if the filds which

are changed are those who the determination of material depends.

Thanks in advance

Regards

Lina

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 22, 2008 at 05:47 PM

    Hi lina

    I think you should go for user-exits, check the following user exits which may help you

    USEREXIT_FILL_VBAP_FROM_VBAP

    You can use this user exit to fill additional fields in the sub-item with data from the main item.

    User-Exits for product allocation:

    The following user exits all apply to structure COBL, in which the data for account determination is copied to item level.

    USEREXIT_MOVE_FIELD_TO_COBL

    Option to include new fields in structure COBL.

    USEREXIT_COBL_RECEIVE_VBAK

    Option to assign values from the document header to the new fields.

    USEREXIT_COBL_RECEIVE_VBAP

    Option to supply values from the item to the new fields.

    USEREXIT_COBL_SEND_ITEM

    A changed field can be copied from the structure into the item. You could use the user exit to display a certain field in the account assignment block (see also MV45AFZB).

    USEREXIT_COBL_SEND_HEADER

    A changed field can be copied from the structure to the header (see source text MV45AFZB)

    Regards

    Srinath

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 06:44 PM

    Hello Srinath,

    But can you tell me how can i force the system do determine de material in one of this user exit? Which is the function to material determination? Because i really need to make the order determine material after saving.

    Thank you very much

    Lina

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi lina

      You need to give your inputs to the ABAP'er telling that after saving the sales order material determination should happen .So give this user exit USEREXIT_FILL_VBAP_FROM_VBAP apart form this user exit give the other user exits which i have already given in my previous thread .The ABAP'er will check and he will include the program as per your requirement and then your problem will be solved.

      Regards

      Srinath

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 07:10 PM

    I can do that in USEREXIT_SAVE_DOCUMENT_PREPARE?

    Do you really understood my problem?

    I will try with example, because i don´t know if i understand well what you told me:

    I have this rule to determine the materia:

    Client/plant/material

    When in first instance i create the sales order i dont´t have the plant, so the system didn´t determine de material which is OK. Then in VA02 i put the plan in the item which was already create and the system ignore the material determination and i need to force the material determination because the rule is there.

    Regards and thanks

    Lina

    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.