on 07-23-2013 6:23 AM
Hi All
How we can user formula parameter D0 which uses function module QEFC_FORMULA_CALC_EXAMPLE.
Main concern is that how to pass char no to above mentioned function module. As when try to pass char no. 10 as D00010 then i get an error.
Message no. RN011
So how can we pass char no. to function module.
regards
Manish
When are you getting this error? Can you send a screen shot? Note that you should only pass a characteristic number that is using a sampling procedure into the D0 parameter.
D0 and the FM you specified is only to provide an example. You should copy the FM and modify it as you need to and then assign it to a Z0 parameter in config.
FF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Manish,
What I would do first is change your formula as a test. For instance, Try the formula C00010 + C00020. That should add the values of characteristic 10 and 20. That should work if everything is set up right. If it works, the issue must be with the FM being used for D0. Not your basic data setup.
D0 should work as is however. You don't have to config it to Z0. I was only suggesting that because you want your custom objects to be in the Y or Z namespace. SAP could someday decide to change D0 and wipe out your customization via a hotpatch or upgrade.
If the test above works using C0 than you'll need to get a ABAP'er to troubleshoot the FM you are using. Something is not right with it.
FF
Hi
I did what you have suggested and i didn't get any error. It's fine with C00010+C00020.
I used D0 without any characteristic number with standard function module attached with it. It returns 1 as a result. But my question is that whatever function module is attach with formula parameter D0 or Z0, how will i do the calculation as for calculation i have to pass char number what i am not able to do that.
regards
Manish
The structures provided give you all the information you need.
In the FM, if you want to use the PH value, you look up the PH value via the structures. If you want to use the ASSAY value, you look up the assay value.
If you want to do something unique say like doing a complicated calculation using ten different characteristics, then you sup your plan so you know exactly where those characteristics are in the plan. I.e. you always put them in the plan as characteristics 800 - 809 and in the FM you call up the values for characteristic 0800 through 0809.
FF
From what I can see you have a number of structures imported including QALS, QAMKR, and QAPO which should provide enough info to look up anything you're missing.
I'm not a programmer. So I can't give you all the details. But I have had programmers work with this to develop custom calculations. They never seemed to have many questions around it.
FF
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.