on 2017 Oct 23 5:09 PM
Dear All,
I need to repost some documents on Funds Management.
I will add a rule on FMDERIVE derivation rules.
This rule only works if the user_name is me.
When I intend to repost documents again, program also see derivation rule which maintained user specific.
Normal company processes should not be affected from my user specific derivation rule.
Could you please help on this issue?
Kind Regards,
Request clarification before answering.
Dear Resul,
I had the same requirement in the past, to use the User ID as part of the derivation rule. So I create on derivation step of Enhancement and with a simple line of ABAP code that I did by my self I added the SY-UNAME to the USERTEMP1 (Temporary field 1 (user-defined)), an existing field in the lookup fields.


I did this in the step 10 to assign the user ID in the USERTEMP1 and than I used the USERTEMP1 in the further derivation rules.
It was a really simple solution without change the structure and it's working really good, of course you have to make sure that the USERTEMP1 field is not being used by another purpose.
Best regards,
Gabriel Coleti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please, clarify your requirements... Rules introduced in FMDERIVE are not user-specific. If you want to make a sophisticated rule which would check a user of the posted document and be triggered based on this information, you would have to make an ABAP-coded rule, first incorporating user field into COBL structure, as it's not present there.
Regards,
Eli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eli,
It is about reposting some old documents with temporary derivation rule.
This rule should affect only my reposting documents, not any other documents existing at the same time.
After reposting with temporary derivation rule, I will delete rule as well.
I can infer from your answer, We need to add user field on COBL structure and then write code on derivation user exit.
I will try it.
Thank you
I don't see where USERNAME is part of the lookup fields.
You could look at doing an enhancement to the derivation tool - see SAPLFMDT
Alternatively, why not control it via authorizations, and not the derivation tool?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Powlass,
Thanks for answer.
Normal processes on company also generate FM documents.(like FI, PO, PR etc.)
But I would like to repost some old documents with new derivation rule which should work only for them not any others.
I intend to derivate "dummy" fund when I repost old FM documents.
Kind Regards,
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 6 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.