SAP for Public Sector Discussions
Foster conversations about citizen engagement, resource optimization, and service delivery improvements in the public sector using SAP.
cancel
Showing results for 
Search instead for 
Did you mean: 

Purchasing group wise derivation issue in MM

atif_farooq
Active Contributor
0 Kudos

Hi:

On our project we have GM-GTE and FM-BCS . From MM perspective there are 9 material types , for each of them budgeted amount exist. I am facing a derivation issue. I wan to derive fund center based on Purchasing group. E.g there is one purchasing group P01 and we have fund center XYZ. Now on fund center XYZ budget for all material type has been posted with respect to their commitment items. Now through BADI we enable system to derive fund center and commitment item against a purchasing group, but these is an issue how will system derive fund center and commitment item material type wise when we have a single source field "purchasing group" . We do not have field material type in ME51N , had it been there , i would have used combination of Purchasing group and Material type to derive fund center & commitment item. Please guide.

Regards

8 REPLIES 8

iklovski
Active Contributor
0 Kudos

Hi Atif,

You do have material, don't you? With this info, you can derive material type from MARA.

Regards,


Eli

0 Kudos

Hi Eli:

Material type is not available in any screen so you mean to say as soon as a user select purchasing group and enter material in PR/PO screen, system will fetch material type from them through BADI and hence derive FC/CI and fund ? Sorry i am not strong on technical side .

Regards

iklovski
Active Contributor
0 Kudos

Hi Atif,

Material is feeding FMDERIVE structure. So, when deriving FM objects you will have material filled there. What you need, though, is material type. So, to obtain it you'll have to define an interim rule in FMDERIVE fetching material type based on material from MARA table (if there are no standard funcitons, which I believe there are, you can develop your own). Then, material type could flow to a user-field in FMDERIVE and the next rule will base FM objects on the value of this field.

Regards,


Eli

0 Kudos

Hi :

I will test it and will revert back in case of any confusion.

Regards

0 Kudos

Hi Eli:

My ABAPER is facing the issue stated in http://scn.sap.com/thread/3280136 while deriving FM Account assignments from a combination of Purchasing group and Material type in MM. Can you please comment.

Regards

iklovski
Active Contributor
0 Kudos

Hi Atif,

Well, purchasing group should be brought to COBL. It's not my habit, but here is an example of a thread where it has been discussed: http://scn.sap.com/thread/1961634

Regards,


Eli

Former Member
0 Kudos

Hi Atif,

I would create a rule to transfer purchase group to usertemp1 (1-2). Then, create a table look-up to transfer mara-mtart to usertemp1(3 - 6). Then create a derivation rule to derive fc/ci based on usertemp1 (1 - 6).

0 Kudos

Hi:

ABAPER facing problem while deriving FC/CI in ME51N , he saying "Is there any exit or badi through which i access purchasing group during
creation of PR. I used EXIT_SAPLMEREQ_010 in which my desired field exist
but it is called at end while i need any exit or badi which is called before
SAPLFMDT exit EXIT_SAPLFMDT_002."

For ME21N its working good.


Regards