Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MB1B / Change profit center in Exit, Badi or Enhancement

Former Member
0 Kudos

Hi guys,

we're doing transfer postings in MB1B with reference to existing returns. In the return item a profit center different from the material master is entered. MB1B is creating the material document with the profit center from the materal master.

The requirement is to get the profit center from the return into the material document.

I have tried various ways to meet the requirement:

- Badi MB_DOCUMENT_BADI

- Badi MB_MIGO_ITEM_BADI

- Exit EXIT_SAPLIE01_007

- Enhancement ENHANCEMENT-POINT SEGMENTDATEN_MAT_SETZEN_03

- Enhancement ENHANCEMENT-POINT MM07MFM0_M_SEGMENTE_GENERIE_04

In MB_DOCUMENT_BADI and EXIT_SAPLIE01_007 the profit center can't be changed, MB_MIGO_ITEM is not run through.

In the 2 enhancements the value can be changed, but the profit center in the material document and the follow up documents is still taken from the material master.

Does anybody know where I can change the profit center in this case? (Badi / Exit / Enhancement).

It's a requirement that MB1B has to be used, so using MIGO for this is not a solution.

Thank you very much!

Best regards, Andreas

1 REPLY 1

Former Member
0 Kudos

Hi,

Enhancement - MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc. is called in the update task.

This could be useful.

Thanks

Sujay