cancel
Showing results for 
Search instead for 
Did you mean: 

Auto fill the goods' storage location in sales order item

Former Member
0 Kudos

Hi,

I have a issue,When I use VA01 to create a sales order,I want to let the system auto fill the material storage location when I enter the material no. for the sales ITEM.

How to do?I want use the userexit to do,the program 'MV45ATZZ' but I couldn't find where I can add my code,Whether have other better way to do?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Assign Plants and Storage Location

Path: SPRO --> IMG --> Materials Management --> General Settings for Materials Management --> Requirement Priorities --> Assign Plants and Storage Location

Hope this may resolve the query.

Best Regards,

Amit

Answers (1)

Answers (1)

Former Member
0 Kudos

You will have to use the exit USEREXIT_SOURCE_DETERMINATION in program MV45AFZB.

Regards,

GSL.

Former Member
0 Kudos

Thanks,I had fixed this issue by use 'MV45ATZZ' ,FORM USEREXIT_MOVE_FIELD_TO_VBAP.,Thanks

Edited by: Bean Dou on Oct 20, 2008 8:56 AM

Former Member
0 Kudos

Dear Friend,

IF possible, can you explain how you did automatic storage location determination by using this exist.

Please let me know what key fields and table you used for this and if possible please forword me the coding part to my understanding.

Thanks

Raju.

Former Member
0 Kudos

Sorry,I use this user exit program 'MV45AFZZ'.

source code like below,

FORM USEREXIT_MOVE_FIELD_TO_VBAP.

  • VBAP-zzfield = xxxx-zzfield2.

*{ INSERT KHDK900234 1

If SVBAP-TABIX = 0.

SELECT SINGLE LGORT FROM MARD INTO VBAP-LGORT

WHERE MATNR = VBAP-MATNR .

endif.

*} INSERT

ENDFORM.