cancel
Showing results for 
Search instead for 
Did you mean: 

Material determination in transaction VA02

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member217082
Active Contributor
0 Kudos

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

former_member217082
Active Contributor
0 Kudos

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