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: 

Derivation Rule - Sales Order Type and Material Group as Source Fields

zainm_bashir
Participant
0 Kudos

Hi Experts,

I want to create a combination of Sales Order Type and Material Group for one Commitment Item in order to Budget at Customer Credit Memo Request Level but i am not able to find any Source Field under FMDERIVE.

Can anyone kindly guide me any User Exit or Function Module which can fulfill our business requirement?

Regards,

Zain Bashir

1 ACCEPTED SOLUTION

sjajodia
Contributor
0 Kudos

Hello Zain

You can only add fields that are available in the Coding Block (structure COBL). If the field is available in COBL you can use the enhancement SAPLFMDT to read it and do the derivation using a rule of the type enhancement. You can also use BADI_FMDERIVE to code your own derivation.

You can use the temporary field USERTEMP1 to store the values you read. You can also extend the structure FMDERIVE with a customer include.

Thanks

Shyam

View solution in original post

8 REPLIES 8

sjajodia
Contributor
0 Kudos

Hello Zain

You can only add fields that are available in the Coding Block (structure COBL). If the field is available in COBL you can use the enhancement SAPLFMDT to read it and do the derivation using a rule of the type enhancement. You can also use BADI_FMDERIVE to code your own derivation.

You can use the temporary field USERTEMP1 to store the values you read. You can also extend the structure FMDERIVE with a customer include.

Thanks

Shyam

0 Kudos

Thank you Shyamal for your feedback. Let me rephrase my question:

What would be the best way to derive commitment item and fund center at T-Code VA01 ( Order Type: Credit Memo Request) after maintaining object type 04 in FM Config?

We are using only one GL and cost center while raising Credit Memo Request for all kind of materials.

The possible combinations in my mind to derive the same is (Order Type + Material Group = Fund/Commitment Item/Fund Center)which is not supported by system in standard.


Can any one please guide me on the same?


Regards,

Zain Bashir

0 Kudos

Hi Zain,

You can derive the commitment item based on the GL account and the fund center based on the cost center. Please let me know if that will work.

Thanks

Shyam

0 Kudos

Hi Shyamal,

Thanks again for your reply.

I think this will cause issues if user will use the same combination for making any direct postings. We should use one more object like business transaction (i don't know which one) or any thing to cover up this combination for sales order only.

Regards,

Zain Bashir

0 Kudos

Zain,

Can you use the field ORDER_NUMBER_SD? You can create a condition using the number range for the SD Order Type.

Thanks

Shyam

0 Kudos

Sounds Good but there is no FROM & TO option to give range of order numbers.

0 Kudos

Zain,

You can create two lines using >= and <=. and link them with an AND.

Thanks

Shyam

0 Kudos

Thanks.