on ‎2009 Feb 02 3:05 PM
Dear all,
My aggregation level is as follows:
city1 - city2 - price - km - planned price
also i have created a characteristic as distance id., which has attributes
Distance id: city1 - city2 - km.
so in my planing template, when i enter city1 and city2 i need to get km from master data.
How can i do that with planning functions? Is there any other suitable way to configure that?
Thanks
Request clarification before answering.
Did you try to use ATRV function? That will read attribute values of a characteristic.
Raga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, my client does not want to have distance anymore, it is sorted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now it works without error, however does not return any value.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Shafi,
i have defined my function module as follows:
DATA L_BAS_IST TYPE STRING .
DATA L_BIT_IST TYPE STRING .
DATA L_KM TYPE F .
CALL FUNCTION ZHVL_YBS_KM
EXPORTING
IV_BAS_IST = L_BAS_IST
IV_BIT_IST = L_BIT_IST
IMPORTING
IV_KM = L_KM .
My problem is to pass my variable L_KM to key figure ZKM. how can i pass these value to that kf?
Is there any way to debug that process?
Thanks..
jmq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI John,
DATA L_BAS_IST TYPE CITY1 .
DATA L_BIT_IST TYPE CITY2 .
DATA L_KM TYPE F .
L_BAS_IST = OBJV().
L_BIT_IST = OBJV().
CALL FUNCTION ZHVL_YBS_KM
EXPORTING
IV_BAS_IST = L_BAS_IST
IV_BIT_IST = L_BIT_IST
IMPORTING
IV_KM = L_KM .
{L_BAS_IST,L_BIT_IST,KF} = {L_BAS_IST,L_BIT_IST,L_KM}.
this will solve your issue i guess.
Also make sure the customer exit works fine by debugging it seperately.
Regards.
Shafi.
Thanks shafi,
that sounds ok to me, how can i call function module from planning function? Is it from fox formula part?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Function Module can be called inside fox formulas:
http://help.sap.com/saphelp_nw70/helpdata/EN/47/94eb78b6394befe10000000a42189d/content.htm
or in abap exit class of custom planning function types:
http://help.sap.com/saphelp_nw70/helpdata/En/43/332530c1b64866e10000000a1553f6/content.htm
Hi John,
You can call a Function Module from Fox as follows :
First make an entry for the function module in RSPLF_FDIR table.
then use the following snippet in the fox code.
CALL FUNCTION MYFUNMODULE
EXPORTING
parameter 1 = local variable 1
parameter 2 = local variable 2
......
IMPORTING
E_T_RANGE = local variable 3.
In the code the parameter 1, 2 .. are the parameters that u define in the function module, so that you can pass to and from the function module using import and export statements.
Regards.
Shafi.
Hi ,
create a customer exit variable based on km.
write a customer exit that has city 1 and 2 as its import paramenters and km as export parameter.
inside the customer exit read distance id master data table with city 1 and city 2 and get km.
pass it to the export table.
in the planning function call this function module and pass the city values to it. using a local variable retrieve the km.
regards.
Shafi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
and please tell me what is atrv function?
is it one of the planning function type?
such as copy, revaluation etc?
Thanks,
jmq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
just to let you know,
distance id is not in my aggregation level, therefore i cannot use that as a planning function. can i use that in my function module?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.