Remodelling with customer exit
Hello Colleagues,
I have gone thru the threads but couldnt find correct thread to address my issue.
could you please help me on fulfilling this requirement.
requirement is :
1) Add a charectesristic Infoobject to existing infocube by remodelling option.
2) in remodelling we have to use customer exit option.
3)the new infobject should be populated with comparing data from another DSO.
Ex: in the datapackge loading to Infocube I have prodcut type infoobject. in DSO I have product type and status Infoobjects.
so it has to lookup the DSO for corrsponding product type values in Datapackage and populate the newly added charecteristic infoobject with DSO's status Infobject values.
please help me in how to write code for this!!
regards,
Lacoche
Hi,
Please refer to this article.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/008f9fef-22e4-2a10-d994-a17c55ca06f0
It talks about remodeling of info cube using customer exit.
even sample code is also given.
Hope it helps.
Thanks,
Rashmi.
Similar Messages
-
Error while trying to Execute the Query with Customer Exit
Hi Experts,
I am having a Query with Customer Exit, it is working fine for all the Employess, except for one. When i try to remove the Customer Exit it is working for her too. Below is the error i am getting.
system error in program SAPLLRK0 and form RSRDR; CHECK_NAV_INIT_BACK
Thanks,
Kris.Hello Kris,
Are you working with multiprovider? Please check if OSS notes 813454,840080 or 578948 are applicable in your case.
Regards,
Praveen -
Prob in text variable with customer exit
Hi to all
I am working in PA module in HR ,In my Report i have to count total number of trainee and lateral in given Date range that From date to To Date , Before that i have to calculate a Total Employee Strength before one day of From date , suppose user enter a 1st of April 2007 to 1st of jun 2007 , so Employee strength should be calculated on the 31march 2007, for that i have written custome exit , now i am getting a value also , for Display that date have a created a text variable with customer exit , but i am not able to get that date , it should be display strength as on 31march2007 , instead of it is displaying Strength as on 00.00.0000.I am giving a cod also
ls_range-sign ='I'.
ls_range-opt = 'EQ'.
ls_range-low = 'EB1A'.
append LS_Range to e_t_range.
WHEN 'ZPA_DATE'.
if i_step = 3.
READ TABLE I_T_VAR_RANGE INTO L_S_VAR_RANGE WITH KEY VNAM = 'ZPA_DATE'.
IF SY-SUBRC = 0.
ZTEST = L_S_VAR_RANGE-LOW.
ztest1 = ZTEST - 1.
export p = ztest1 to MEMORY ID 'VALUE'.
ENDIF.
endif.
WHEN 'ZFRMDAT'.
if i_step = 3.
ls_range-sign ='I'.
ls_range-opt = 'EQ'.
ls_range-low = ztest.
append LS_Range to e_t_range.
endif.
when 'ZPA_CDAT'.
if i_step = 3.
ztest1 = ztest - 1.
ls_range-sign ='I'.
ls_range-opt = 'EQ'.
ls_range-low = ztest1.
append LS_Range to e_t_range.
endif.
when 'ZPA_VAR3'.
if i_step = 3.
ztest1 = ztest - 1.
import p = ztest1 from memory id 'VALUE'.
concatenate ztest16(2) ztest14(2) ztest1+0(4) into date separated by '.'.
move date to temp.
move 'Hello' to temp.
ls_range-sign ='I'.
ls_range-opt = 'EQ'.
ls_range-low = temp.
append LS_Range to e_t_range.
endif.
Please help me to come out
ThanksHi Stefania,
to me it looks like your local variable num_mese is not defined with the correct data type.
Try to change
if num_mese = 09 to if num_mese = <b>'</b>09<b>'</b>,
same for 10 -> '10', 11 -> '11'.
If that does not help please let me know your coding where you define the type of num_mese (DATA statement).
Regards
Stephan -
Variable creation in bw with customer exit
hi experts,
how to create a variable in bw with customer exit?Hi
Create a variable with Processing type as customer exit.
Then Go to Se38 and ZXRSRU01 program in change mode and there you write the necessary coding how your customer exit variable should process.
else you can access the include function via CMOD also with selecting the enhancement for reports.
Regards
RaM -
Formula Variable with customer exit
Hi,
can we use Formula variables with customer exit based on characteristics(ex Bill date)? if yes, can you guys help me on this.
Thanks
kriYes , you can use a formula variable with customer exit based on characteristics .
Depends on the requirement what you want to show in the formula variable ,
Eg : if you want to show the max fiscal year period , in that case :
create a new formula in the keyfigure section of your query , go to edit , you can see formula variable below the keyfigures ,
right click on the same and create new formula variable :
Write the code for the formula varible in the backend as we do for normal customer exit varaible :
for this e.g the code will be :
FORM get_variable_value
tables E_T_RANGE type RSR_T_RANGESID
using I_VNAM type RSZGLOBV-VNAM
I_VARTYP type RSZGLOBV-VARTYP
I_IOBJNM type RSZGLOBV-IOBJNM
I_S_COB_PRO type RSD_S_COB_PRO
I_S_RKB1D type RSR_S_RKB1D
I_PERIV type RRO01_S_RKB1F-PERIV
I_T_VAR_RANGE type RRS0_T_VAR_RANGE
I_STEP type I.
DATA L_S_RANGE LIKE LINE OF E_T_RANGE.
DATA loc_var_range LIKE rrrangeexit.
Data : l_inPer TYPE string.
IF i_step = 1.
Select min( distinct FISCPER )
from /BIC/A(DSO name)
into l_minper .
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = l_minper .
APPEND l_s_range TO e_t_range.
endif.
drag the formula variable in the new formula created and exexcute the query , you will be able to see the output .
This is just an example , your code will differ as per your requirement . -
Hello,
I have created a query with customer exit variable.this variable calculates cumulative month from the beginning of the year. this variable depends on another regular variable 0PCALMON (single value, mandatory). i also use this variable in the query to show the month itself.
<b>the problem is as follow:</b>
until yesterday the 0PCALMON variable pop up normally, but now the variable doesn't pop up at all!
Does anyone have an idea?
Thanks,
MayaHi,
The variable may be personalized with some value.
<b>To remove the personalization for a user:</b>
Step 1: RSA1 -> Search for ODS 0PERS_VAR
Step 2: Manage -> Contents ->selective deletion
Step 3: Put the user to remove the personalization
http://help.sap.com/saphelp_nw04/helpdata/en/01/42c73c13b0ce5be10000000a114084/content.htm
Regards
Happy Tony -
Hierchies and hierchies node with customer exit?
hi friends,
what scenerio we use hierchies and hierchies node variable with customer exit ?
Thanking u
suneel.Hierarchy variables represent hierarchies. You can use them wherever
hierarchies can be selected.
Hierarchy node variables represent a node in a hierarchy. You can use them as
an alternative to hierarchy nodes as fixed values for restricting a characteristic.
If you use a hierarchy node variable, you can make selections by hierarchy
node when you use the query.
The Customer Exit processing type for variables enables you to determine
values for variables by means of a function module exit. The function
module used is EXIT_SAPLRRS0_001.
You create a project in transaction CMOD by selecting the SAP
enhancement RSR00001 and assigning this to the enhancement project.
Activate the project.
WHEN 'HIERARCHY'. " Hierarchy variable
CLEAR L_S_RANGE.
L_S_RANGE-LOW = 'MY HIERARCHY'. " hierarchy name
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
-> Only dependents of hierarchy 'MY HIERARCHY'
WHEN 'HNODE'. " Hierarchy node variable
CLEAR L_S_RANGE.
L_S_RANGE-LOW = 'DEPT1'. " Node name
L_S_RANGE-HIGH = '0HIER_NODE'. " InfoObject
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
-> Node 'DEPT1', that cannot be posted to
WHEN 'HNODEVAL'. " Hierarchy node variable
CLEAR L_S_RANGE.
L_S_RANGE-LOW = 'LEAVE1'. " node name (node is a leaf)
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
-> Node 'LEAVE1' (leaf)
Regards
Naga -
Characterstic variable with customer exit
Can u some bady help me.
How to express about Characterstic variable with customer exit
Edited by: chenna reddy on Aug 7, 2008 9:48 PMHi,
The variable may be personalized with some value.
<b>To remove the personalization for a user:</b>
Step 1: RSA1 -> Search for ODS 0PERS_VAR
Step 2: Manage -> Contents ->selective deletion
Step 3: Put the user to remove the personalization
http://help.sap.com/saphelp_nw04/helpdata/en/01/42c73c13b0ce5be10000000a114084/content.htm
Regards
Happy Tony -
Formel Variable - how to fill with Customer Exit from control table
Hello Experts,
I have create in BEx-Analyser a formel Variable ZEXRATE1 filled through Customer Exit. In BW I had a "control tabel" with keyfigures.
In the query definition I have include 0FISCPER, 0FISCVARNT and 0VTYPE. This
are the keys which should give the values for the selectstatement to select my keyfigure from the "control table" to fill ZEXRATE1.
If it possible to do with Customer Exit (CMOD -> RSR00001 -> ZXRSRU01) or do I have to implement a Bapi. Perhaps someone can give me a code example.
Regards DieterHi,
Code may look like this
WHEN 'ZEXRATE1'.
check i_step = 2.
LOOP AT I_T_VAR_RANGE INTO L_S_RANGE.
CASE L_S_RANGE-IOBJNM.
WHEN 'ZFISCPER'. GV_ZFISCPER = L_S_RANGE-LOW.
WHEN 'ZFISCVARNT'. GV_ZFISCVARNT = L_S_RANGE-LOW.
WHEN 'ZVTYPE'. GV_ZVTYPE = L_S_RANGE-LOW.
ENDCASE.
ENDLOOP.
SELECT SINGLE RATE into INTO GV_RATE
FROM ZTABLE
WHERE 0FISCPER = GV_ZFISCPER
AND 0FISCVARNT = GV_ZFISCVARNT
AND 0VTYPE = GV_ZVTYPE .
Assumptions : ZTABLE name of control table
ZFISCPER name of variable represents fiscal period
'ZFISCVARNT' name of variable representing fiscal year variant
'ZVTYPE'. name of variable representing value type
Hope that helps.
Regards
Mr Kapadia
Assigning points is the way to say thanks in SDN. -
Error With Customer Exit Variable
Hi,
I need To Create Customer Exit For Text Variable based on Two Input Variable values.
can any one correct my code Code is written below based on quarter and Fiscalyearvarient.
I have to get calmonth Text value.
I am getting the error as : "I_T_VAR_RANGE" is a table without a header line and therefore has no
Component Called "0PERIV".
DATA : l_s_range TYPE rsr_s_rangesid,
loc_var_range LIKE rrrangeexit.
IF i_step = 2.
CASE i_vnam.
WHEN 'ZTXT_CML' .
CLEAR: l_s_range.
LOOP AT i_t_var_range INTO L_S_VNAM WHERE vnam = 'ZQUAR' AND vnam = '0periv'.
IF i_t_Var_range-0PERIV = 'IE'.
IF i_t_var_range-ZQUAR = '1'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '2'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '3'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '4'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ELSEIF i_t_var_range-0PERIV = 'K4'.
IF i_t_var_range-ZQUAR = '1'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '2'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '3'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '4'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ENDIF.
APPEND l_s_range TO e_t_range.
ENDLOOP.
ENDCASE.
ENDIF.Hi Supraja,
You would have to declare I_T_VAR_RANGE internal table as the table with an header line.
This you will find in data declaration segment.
ie
DATA : I_T_VAR_RANGE type <table name> WITH HEADER LINE.
or
Create a work area like l_s_var_range.
Use work area while performing operations in your code and later append the record to the table i_t_var_range.
DATA : L_S_VAR_RANGE type i_t_var_range.
Also, i_step = 3 is the right one, because you are processing the customer exit based on the values of the user input of two variables.
Modified code below.
DATA : l_s_range TYPE rsr_s_rangesid.
DATA : L_S_VAR_RANGE type i_t_var_range,
loc_var_range LIKE rrrangeexit.
IF i_step = 3.
CASE i_vnam.
WHEN 'ZTXT_CML' .
CLEAR: l_s_range.
LOOP AT i_t_var_range INTO l_s_var_range WHERE vnam = 'ZQUAR' AND vnam = '0periv'.
IF l svar_range -0PERIV = 'IE'.
IF l_s_var_range -ZQUAR = '1'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '2'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '3'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIFl_s_var_range -ZQUAR = '4'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ELSEIFl_s_var_range -0PERIV = 'K4'.
IF i_t_var_range-ZQUAR = '1'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '2'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '3'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '4'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ENDIF.
APPEND l_s_range TO e_t_range.
ENDLOOP.
ENDCASE.
ENDIF.
Hope it helps,
Best regards,
Sunmit. -
Problem with customer exit variable in BeX Query
Hi All,
We have created a customer exit variable in a query and populated with few patterns in customer exit.
My query has to bring all the records where the address line is containg the patterns passed through customer exit. Here the query is not working as expected.
It is bringing the values where the address line is exactly same as the pattern and not bringing the records where the pattern is part of the address line.
For example: Pattern passed in customer exit = 'HOSPITAL'
The record where address line = 'HOSPITAL' is shown in the rpeort, where the record with address line = 'HOSPITAL ROAD' is not shown in the report.
I would appreciate your help on this.
Regards,
RakeshHi Diogo,
Below is the code I am using in the customer exit.
SELECT * FROM zae_tt_pbuild INTO TABLE gt_pbuild.
IF sy-subrc = 0.
LOOP AT gt_pbuild INTO gs_pbuild.
CONCATENATE '*' gs_pbuild-pbuild '*' into lv_pattern.
ls_range-low = lv_pattern.
ls_range-sign = lc_sign_i.
ls_range-opt = 'CP'.
APPEND ls_range TO e_t_range.
CLEAR: ls_range,
lv_pattern.
ENDLOOP.
ENDIF.
ENDIF.
I have tried using '%' instead of '*' aswell but the result is same.
Thanks,
Rakesh -
Issue with customer exit for copying one variable value to another
Hello Gurus,
I need to copy the value of a single value variable into another single customer exit variable.
I coded as below.
WHEN 'customer_exit_var'.
IF I_STEP = 2. "after the popup
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'user_input_Variable'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
L_S_RANGE-HIGH = ''.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
I used the condition <= for the customer exit variable in the report. But, it is considering only single value, but not all the values <= to the give value.
Please help me in this regard,
Thanks,
Aarthi.Thanks for your immediate response Govind.
My report is restricted based on two dates. Date1 and Date2. Need to consider all records whose dates are <= Date1 and <= Date2.
Date1 and Date2 should have same values. But user inputs only Date1.
So, I created Date1 as Single, User Input Variable restricted the query with <=Date1.
Next I created Date2 as Single, Customer Exit Variable and restrcited the Query with <=Date2.
In CMOD I used the above code to assigne Date1 Value to Date2.
When I execute the report, say I give todays date in the report (Dec, 12, 2007). Date2 has to consider all the values <= Dec 12, 2007. But, in my case it is considering only Dec 12, 2007, but not the before dates.
So, Please help me in solving this problem.
Thanks,
Aarthi. -
Problem with customer exit variable that is input ready as well
Hello all,
I'm facing an issue with a customer exit variable that again has been defined as input ready. I'm not sure why it is working incorrectly and I#m wondering if this is a bug or if I do s.th. stupid.
The problem is that in the exit program ZXRSRU01 this varibale does not go into the program code I have prepared for this variable. I have added entry points for all three i_step values 1,2,3, but the code will never be touched and in debugging I can see that it simply pypasses the code for this variable.
I have tried to enter a value or to leave it blank, no difference.
When I run another test by just using a customer exit variable w/o input ready capability, then I have no issue, the exit does exactly what I have coded.
Does this mean, that a customer exit variable along with input readiness dows not work ?????
You may ask why I need this variable. Well, my intention is to use the input value of this variable A to derive other values for a complete different variable B. Afterwards I want to erase the input given into variable A to have it blank.
Any comments are appreciated
ThanksHi Heiko,
I assume A & B variables are defined on different Characteristics. If you wish to derive B based on A, you can create the Query Characteristic Restriction on B & have a dummy RKF restricted on A whose processing is by Manual Input; where processing of B is by Customer Exit. In istep 2 you can check for B, read A & derive B. There would not be a need to blank out A since the Query would not be restricted on A - you can hide the dummy RKF from showing in the output. Just a thought.
--Priya -
Formula Variable with customer Exit (ABAP Code)
Hi Experts,
Please advise me wether i am going in the right way to achieve my requirment else please advise me any alternate approach and update me with the abap code for my customer exit as i am not familiar with ABAP.
My Requirment:
Data :
Emp_ID----Start_Date(DATS)---End_Date(DATS)
I had a user entry (intreval) VARIABLE created on Start_Date
User will enter the date intreval he want to analyze...
Ex: 01.01.2008 to 01.02.2008
Now i want to use the No of Days between user entered date intreval in my calculaction of a keyfigure
In the above example it is 31 days
So i created a Formula Variable of Customer Exit now i need a code that will
pass the user entered dates to
FM: FIMA_DAYS_AND_MONTHS_AND_YEARSImport parameters Value
I_DATE_FROM 01.01.2008
I_DATE_TO 01.02.2008
I_FLG_SEPARATE ' '
Export parameters Value
E_DAYS 31
E_MONTHS 1
E_YEARS 1
and need to pass the E_DAYS (31) to the result of formula
User Entry Variable (Intreval) : ZST_VAR
Formula Variable (Customer Exit) : ZND_EXIT
Code
WHEN 'ZND_EXIT'.
DATA: low_date2 TYPE d,
high_date2 TYPE d,
num_days TYPE N,
new_low_date2 TYPE d.
IF i_step = 2.
LOOP AT i_t_var_range INTO ls_varrange WHERE vnam = 'ZST_VAR'.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ls_varrange-low = low_date2.
ls_varrange-high = high_date2.
CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
EXPORTING
I_DATE_FROM = low_date2
I_DATE_TO = high_date2
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = NUM_DAYS
l_s_range = NUM_DAYS.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
endif.Hello,
Before the WHEN statement it shoud have a CASE statement. In the user exit coding place your WHEN statement anywhere between CASE...ENDCASE statement.
your code should look like
DATA: low_date2 TYPE d,
high_date2 TYPE d,
num_days TYPE N,
new_low_date2 TYPE d.
Case i_vnam.
WHEN 'ZND_EXIT'.
IF i_step = 2.
LOOP AT i_t_var_range INTO ls_varrange WHERE vnam = 'ZST_VAR'.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
low_date2 = ls_varrange-low.
high_date2 = ls_varrange-high.
CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
EXPORTING
I_DATE_FROM = low_date2
I_DATE_TO = high_date2
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = NUM_DAYS
l_s_range-low = NUM_DAYS.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
endcase.
Thanks
Chandran -
Text Variable replace with Customer Exit Variable
Dear Experts,
I created a text variable based on replacementh path (instead of customer exit). The reference characteristic is same that as my customer exit Variable and replace it by Key.
I want to replace it with already Existing Customer Exit Variable but it is not displaying in the List Box even though existing variable option is mandatory.
Can any one Suggest me the answer for this.
Regards
Supraja.KI do not think you can select Customer Exit variable, if you see the type is selected to Char Value Variables and it is not editable.
It would be suggested to go for Customer Exit procesing type for your text variable.
Cheers,
Neel.
Maybe you are looking for
-
I need to digital sign a document using Acrobat Reader. Is it possibile?
I am an IT Manager for a little city in northern italy. I have almost 50 clients with smart cards enabled for what concerns digital signage. I use flawlessy the software of the firm who provides the smart card. (infocamere.it). This uses sha256 crypt
-
WWifi network up and running all other areas on iPad. Access to Internet ok. Get message when trying to access FaceTime. ...Unable to sign onto FaceTime. Check network connection.
-
Solution Manager 7.1 SP4: Session Timeout during SOLMAN_SETUP
Hello Experts, We recently installed Solution Manager 7.1 SP4 on Linux/Oracle. We also completed the System Preparation and Basic Configuration part of the SOLMAN_SETUP wizard as well (which includes applying the Central Correction Note and other ste
-
Dear All How can i find the actual cost in subcontrating cycle for my consumed materials Regards
-
When I use the inthernet with ipad it return home. What should I do?
When I use the inthernet with ipad it return home. What should I do?