cancel
Showing results for 
Search instead for 
Did you mean: 

BADI for VA01/Va02 while entering line item data and pressing ENTER

0 Kudos

Requirement is to determine CMIR no. When user enters Material code and to find Material code when user enters CMIR while creating sales order.

As SAP standard, CMIR and material code both get determined based on Sold-out party. But our requirement is to determine CMIR and material code based on shipping party.

Can anyone please provide any BADI for this implementation.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

vinita_kasliwal
Active Contributor

Hi Piyush

Did you try Badi BADI_SD_SALES it has a lot of methods as to what you are looking for and some sample implementations .

Check the method SAVE_DOCUMENT_PREPARE maybe that one will be triggered

Ideally you may need to do some hit and trial to find the right method.

I also found another one BADI_SD_SALES_ITEM for item specific checks

Check this link it also talks about a user exit

https://archive.sap.com/discussions/thread/1332718

let me know if that helps.

Regards

Vinita

jangold
Explorer
0 Kudos

BADI_SD_SALES and BADI_SD_SALES_ITEM can only be implemented SAP-internally = Creating BAdI implementations is therefore not permitted for customers.

Answers (2)

Answers (2)

vinita_kasliwal
Active Contributor

hey Piyush
I think those are the only badis I know of try using below user exit

PROGRAM-SAPMV45A

Go to Include - MV45AFZZ

As far as I know you can use user exit as well if BADI does not exist

Hope that helps !

regards

Vinita

0 Kudos

Hi Vinita,

Thanks for your reply.

As suggested I checked BADI - BADI_SD_SALES, this is getting triggered while saving the Sales Order. But my requirement is to change the item level values while hitting enter after user finish entering the material data. So i suppose, this is not helpful for me.

Also I checked BADI_SD_SALES_ITEM, this BADI is not implementable as it is for SAP internal use only.

Please suggest if there is any enhancement spot that can be used, or BADI which gets triggered before or after user exit "USEREXIT_MOVE_FIELD_TO_VBAP" or "USEREXIT_CUST_MATERIAL_READ", as these userexits are helpful but we are looking for some optimized ways of enhancement like BADIs or enhancement spots.

Again thanks for your answer. 🙂