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: 

How to add new field storage location of MM in FMDERIVE

Former Member
0 Kudos

Dear All

I want to add new field storage location in FMDERIVE as need to consume budget on the basis of storage location

Thanks in advance

5 REPLIES 5

iklovski
Active Contributor
0 Kudos

Hi,

You can use BADI_FMDERIVE for this. Enhance COBL structure with the relevant field, use the BADI to fill FMDERIVE structure (FILL_CUSTOMER_FIELDS method) and define a strategy in FMDERIVE based on your temporary field (USERTEMP1). Also, you have to define FM objects, e.g. fund centres, for your storage locations, first.

Regards,

Eli

Former Member
0 Kudos

Hi, you need to add this field to FMDERIVE and COBL(caution the field name has to be the same as in abap dictionary, if it has some names then add two fields) structures

Now in for project SAPLFMDT , EXIT_SAPLFMDT_002, include ZXFMDTU02 to fill this field (with abap write an assignment), after that you can use it in fmderive, but it works not for all fields(only if this field will be updated during posting in COBL)

Former Member
0 Kudos

Hi SAPCOFI,

With Eli and Aleksey on this thread, you dont need to worry anymore

Just to add on to the inputs....

Ensure that the USERTEMP1 buffer is cleared before a value is entered. We faced this issue wherein the previous S.Loc value was left as it is in the USERTEMP1, resulting in an incorrect assignment.

I also suspect that you might need to run the process of identifying the enhancement point and populating the S.Loc value into the memory and then to USERTEMP1 for different transactions separately. Not sure if this is the standard process, but atleast we did it that way.

For eg, we faced issues during Goods Issue from MIGO, as also during 301, 309 and 311 movement types. So execute these transactions too once the development is done and if the USERTEMP1 field isnt getting populated..

FMDERIVE TRACE was the most important tool during our tryst with S.Loc mapping into USERTEMP1....Ensure that you set it everytime during testing for this S.Loc, post development

@Experts - Please correct me wherever I've gone wrong.

Regards,

Wy.

0 Kudos

With your attitude you are becoming an expert as well What you've mentioned is completely correct.

0 Kudos

Thanks Eli !!!

That was easily my biggest compliment yet, in my stint with SAP !!

Regards,

Wy