Update Rule Routine not deleted properly
Hi all
I have deleted a routine from an update rule, removed the key figure from the infoprovider and reactivated both the ODS and the update rule.
The update rule therefore no longer contains the datafield.
Unfortunately the the code for the routine still exists in the system (RSAABAP and other tables) and references in this routine to other fields are preventing me carrying out other actions, so I need to properly remove the routine from the system.
I cannot go back to the old generated code for the update rules as there is no version management. I have tried putting the field back on the ODS and recreating the routine, but the system generates a new key for the routine so it looks as though I have lost the link completely.
Any suggestions? Is there a way of deleting an object type R3TR ROUT consistently without doing it through the Update rules change screen?
Regards
Hayley
Hi,
Let me give the solution, we are also having the same issues..
thanks in advance
sree
Similar Messages
-
Hi
i have wriiten a update rule routine.
in that routine i am fetching comp code ,GL Acct. from SKB1 table and match those records wth Data Package records.
Data Package has both Open and Closed items. so i need to match the Comp Code and GL Account which i have fetched from SKB1 with Data Package Comp Code and GL account which records will be matched they will go to Target ODS otherwise Delete from Data Package.
But data is not coming properly in Target ODS.
i have debug the routine and found , there are 10 records(Comp Code + GL Acct.) has been fetched from SKB1
and Data Package has Total 416 Records. Only 20 Records has been gone to Target ODS while I have seen the 216 Comp Code and GL Account combination has been successfully matched with 10 Records of SKB1
Below is the code in Start routine.
Note: Data Package has Multiple Records for a Combination of Company Code and GL Account which is present in SKB1.
How can i resolve this problem.
********Logic to Fetch Open items GL Account**************
*Fetch data from SKB1*********
SELECT /BIC/ZMCFBUKRS
/BIC/ZMCFSAKNR
FROM /BIC/AZOCFSKB100
INTO TABLE TB_ZOCFSKB1
FOR ALL ENTRIES IN DATA_PACKAGE
WHERE /BIC/ZMCFBUKRS = DATA_PACKAGE-COMP_CODE
AND /BIC/ZMCFSAKNR = DATA_PACKAGE-GL_ACCOUNT
AND /BIC/ZMCFXOPVW = 'X'.
***Fetch records from FI GL Data Package which match with
***internal table TB_ZOCFSKB1
LOOP AT DATA_PACKAGE INTO WA_DATA_PACKAGE.
READ TABLE TB_ZOCFSKB1 INTO WA_TB_ZOCFSKB1 WITH KEY
/BIC/ZMCFBUKRS = WA_DATA_PACKAGE-COMP_CODE
/BIC/ZMCFSAKNR = WA_DATA_PACKAGE-GL_ACCOUNT
binary search.
IF sy-subrc ne 0.
DELETE TABLE DATA_PACKAGE FROM WA_DATA_PACKAGE.
ENDIF.
***Clear Work Area****************
CLEAR WA_TB_ZOCFSKB1.
CLEAR WA_DATA_PACKAGE.
ENDLOOP.
***Refresh internal table*********
REFRESH TB_ZOCFSKB1.
ENDIF.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
Edited by: AtulMohan Mishra on Feb 9, 2011 11:22 AMHi,
It is very important that you SORT the internal table before you do a READ with Binary Search.
SORT TB_ZOCFSKB1 BY /BIC/ZMCFBUKRS /BIC/ZMCFSAKNR.
You are sure to miss results unless you do. -
0PS_C02 update rules are not getting activated when i install 4rm BI conten
Hi All,
In BI Dev. sys for PS module- Project System - Dates 0PS_C02 cube- update rules are not getting activated when i install from the business content and its giving the error " IC=0PS_C02 IS=0PS_DAT_PRJ error when checking the update rules Message no. RSAU461" .
I deleted the inactive update rules(6 nos) and installed again from BI Content, then the same issue raising.
Can anyone help me out as i stuck up with this to move to go-live.
Thanks,
SakaliHi Vassu,
here are some of the reasons for getting error in update rules activation.
1. Check the formula or routines that are used in Update rules and check is there any syntax errors.
2. check whether the mappings are correct or not.
3. check the info objects which ur used for mapping are in active or not..
(or) if the info object may be deleted which ur using for mappings.
Thanks
Sai Chand. -
Update rule/routine for 0PUR_C04
hi experts,
can someone give the update rule/routine for uploading 0ORDER_VAL(effective order value) into the cube 0PUR_C04 and the calculations for it?
and also some explantion on how this effective purchase order value 0ORDER_VAL is calculated*??
thanksHi Surya,
If you are using standard content for 0PUR_C04, you can get the update rule in standard update rules, which you can see in Business content on Metadata repository. For standard content four data source used to fill cube. Purchasing Group (2LIS_02_S011 ), Purchasing Data (2LIS_02_HDR), Pur.Data (2LIS_02_SCL) and Purchasing Data (2LIS_02_ITM). The mapping for different update rules are done as:
2LIS_02_S011: Direct Mapping
2LIS_02_HDR: No Update
2LIS_02_SCL: Routine (mm_convert_effwr)
fill the internal table "MONITOR", to make monitor ent *ries
IF ( COMM_STRUCTURE-PROCESSKEY = '001' or "Bestellu *ng
COMM_STRUCTURE-PROCESSKEY = '011' or
COMM_STRUCTURE-PROCESSKEY = '021' or
COMM_STRUCTURE-PROCESSKEY = '004' or "LP
COMM_STRUCTURE-PROCESSKEY = '014' or
COMM_STRUCTURE-PROCESSKEY = '024' )
AND COMM_STRUCTURE-BWAPPLNM EQ 'MM'
AND COMM_STRUCTURE-ORDER_VAL <> 0.
perFORM LOC_CURR_CONVERT
USING COMM_STRUCTURE-ORDER_VAL
COMM_STRUCTURE-DOC_DATE
COMM_STRUCTURE-ORDER_CURR
COMM_STRUCTURE-LOC_CURRCY
COMM_STRUCTURE-EXCHG_RATE
CHANGING RESULT.
if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
else.
RETURNCODE = 4.
endif.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
2LIS_02_ITM: No Update
Hope this will give you some lead.
Regards,
Kams -
Why data in PSA doesn't change when update rule routine is modified?
Hello guys,
why data in PSA is not changed after I modifiied the update rule routine. I created a infopackage which is only to PSA, but it shows me any change. If I changed this infopackage to the one which is assigned to "PSA firstly, and then to Infoobject", then I saw the changes in infoobject, but in PSA, still nothing changed.
I can't figure out the reason. Any hint is welcome!
Thanks in advance.
Regards,
LiyingHI..
1) PSA data is like of source system data
2)Update rules are how you update your keyfigures to Data Tragets.
Since you have put upto PSA that is the first data staging in BW so there wont be any change of the data even if you write routines at update rules.
Hope it is clear
Reg
Ram -
update rules are not active when transported to quality.
what can possibly be the error. where to check and correct this issue ?
thanks,
AmitAmit,
In your update rules ,i hope there some start routine of update routines couls be there and those rotines didn't transported successfully .Check your update rules in DEV
Regards
Prasad -
3.x Update rules does not appear in std 0IC_C03 business content
Hi,
We are using BI 7.0.
When trying to install business content update rules for the cube 0IC_C03 (DATA FLOW BEFORE), the three update rules are not appearing in the screen for installation.
Instead , I'm getting three Transformations !! But I need 3.x Update rules only.
Note : The data source used are of type 3.x ONLY.Hi,
When you Create the update rules manually by default Keyfigures will be set to no-update. You have to propose the rules as you want and it depends on the requirement. And for 0IC_C03 Inventory Cube, almost all the Kfigs are updated based on Routines.
So it is better to Install from BI Content.
Replicate your Datasources. Then Install Transfer rules,and then Install update rules.
Hope this Helps,
Regards
Karthik -
Request does not contain any saved update rules; rollback not possible
Hi,
In BW on hana, there's a 3.x flow DSO where it loaded a request from PSA.
It failed due to activation error SID Generation. But unfortunately, due to PSA Deletion process chain, it's PSA Request got deleted.
Now, we couldn't delete the red request(failed request) from the 3.x flow DSO.
If we try to delete, it shows job has been completed successfully with the following message:
Job started
Step 001 started (program RSDELPART1, variant &0000000004233, user ID )
Delete running: DataStore object ZREBATE, from 630,138 to 630,138
Delete is scheduled; Selection conditions were substituted
Request REQU_6412GVIEWBJ0TZZIMZE2TZIOR does not contain any saved update rules; rollback not possible
Deletion of request REQU_6412GVIEWBJ0TZZIMZE2TZIOR from data target ZREBATE failed
Deletion of request REQU_6412GVIEWBJ0TZZIMZE2TZIOR from data target ZREBATE failed
Request REQU_6412GVIEWBJ0TZZIMZE2TZIOR does not contain any saved update rules; rollback not possible
Job finished
I went to the table RSICCONT and checked the mentioned request. But I couldn't find delete option enabled. Even our basis team doesn't have authorization to delete the mentioned request from the standard table RSICCONT.
Request you to please help me how to handle this.
Regards,
Antony Jerald.Hi Antony,
Once you have deleted the data in PSA there is no way to reconstruct the request hence you can do below things to correct it
1) Identify the No of Records which having error , because if you have more records it will take more time as in debug mode we have option to edit only one record at one.
2) Display only one record in Active table and change it using the Debug option ( not recommended ), but as you are in corner we need to use this
3) change the records with respective values and active the request again
Regards
Jagan -
Update Rule routine to get Totals of the key figure
Hey BW folks....
i have a requiremnt in the report wherein I have to get the total salary of all the employees in the cost center. As cost center has many employees I want to calculate total salary of the those employees in tht cost center only.So basically total salary will be depending the no.of employees in tht cost center.I tried doing it in query not working. So Wht abap code I will have to write in the update rules to achieve this
eg:
| salary(kf) | total salary
cc1 |e1 | $5000 |
|e2 | $3000 |
|e3 | $2000 |
|-- |--$10,000(for tht cost center only)
cc2 so on and so forth
Suggestions will be reciprocated with lots of points
NickYou should try doing it in query; update rule will not guarantee you correct results.
What is this other KF that you are using to multiply, is it a KF in the cube?
Try defining a CKF with 'constant selection' on Cost-center, this should give you the total value per cost center for each row (I think). You can then use this in your formula
sal_kf * other_KF / CKF -
0SD_C03 transfer rule and update rules do not exist in BI Content
I am working on SAP BI 7.0 support level 16 and BI Content 703 support level 9.
I am not finding these objects in BI Content for the Sales Overview Infocube 0SD_C03:
Update Rules do not exist for 2LIS_11_VAKON,
2LIS_11_VASCL, 2LIS_11_VASTH, 2LIS_11_VASTI, 2LIS_11_V_SCL,
2LIS_11_V_SSL, 2LIS_12_VCSCL, 2LIS_13_VDKON.
Transfer rule does not exist for
2LIS_13_VDITM, but exists for all other DS.
7 Transformations exist only for:
2LIS_13_VDITM
Can somone help me out with why this is so? Which datasources are to be used for 0SD_C03, 3.x or 7?
This is an urgent requirement.
Regards,
SonyMost of the problem has gotten solved by our upgrading to BI Content level 17.
The others, i made a direct mapping of some of the transfer rules manually.
It is working fine now.
Thanks for the replies.
Sony -
After doing last Mavericks update, Messages is not working properly
Since yesterday, after doing last Mavericks update, Messages is not working properly - the Dock icon is not bouncing nor showing any number for new messages. Very annoying, since I usually have Messages on background while working and I now i don't realize if people is chatting me unless I open the messages wondows.
Hi,
Check System Preferences > Notification is set for Messages
In Messages > Preferences > General Section change the Sound option for Message Received.
Restart the app and test this sound is (still) playing.
Place app in background an iMessages "yourself" form your iPhone.
Does the sound Play ?
10:18 pm Wednesday; November 13, 2013
iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
hi all
i need to write a routine at the update rule level for currency type....
currency type has data of type 00,01,02 loaded to psa and then to infocube
i need only 00 data to be loaded into cube, so want to write a routine
can you please provide the coding for the same so that i can write at the update rule level for curr type field
RegardsPROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
Declaration of transfer structure (selected fields only)
TYPES: BEGIN OF TRANSFER_STRUCTURE ,
InfoObject 0COMP_CODE: CHAR - 000004
HEADER_COMP_CO(000004) TYPE C,
InfoObject 0PLANT: CHAR - 000004
HEADER_PLANT(000004) TYPE C,
InfoObject 0MATERIAL: CHAR - 000018
HEADER_MATERIAL(000018) TYPE C,
InfoObject 0MATL_TYPE: CHAR - 000004
HEADER_MAT_TYPE(000004) TYPE C,
InfoObject 0MATL_GROUP: CHAR - 000009
HEADER_P_GROUP(000009) TYPE C,
InfoObject 0LOTSIZE_IT: QUAN - 000013
LOTSIZE(000007) TYPE P,
InfoObject 0UNIT: UNIT - 000003
LOTSIZE_QTY_UNIT(000003) TYPE C,
InfoObject 0FISCPER: NUMC - 000007
PERIODE(000007) TYPE N,
InfoObject 0FISCVARNT: CHAR - 000002
FISCAL_Y_VARIANT(000002) TYPE C,
InfoObject 0PCPITEMCAT: CHAR - 000001
ITEM_CATEGORY(000001) TYPE C,
InfoObject 0PCP_RES: CHAR - 000035
COST_ITEM(000035) TYPE C,
InfoObject 0COMPONENT: CHAR - 000018
MATERIAL(000018) TYPE C,
InfoObject 0VAL_CLASS: CHAR - 000004
VALUATION_CLASS(000004) TYPE C,
InfoObject 0PLANT_COMP: CHAR - 000004
PLANT(000004) TYPE C,
InfoObject 0SEND_CMPC: CHAR - 000004
COMPANY_CODE(000004) TYPE C,
InfoObject 0CO_AREA: CHAR - 000004
CONTROLLING_AREA(000004) TYPE C,
InfoObject 0COSTCENTER: CHAR - 000010
COST_CENTER(000010) TYPE C,
InfoObject 0ACTTYPE: CHAR - 000006
ACTIVITY_TYPE(000006) TYPE C,
InfoObject 0WORKCENTER: CHAR - 000008
WORK_CENTER(000008) TYPE C,
InfoObject 0VENDOR: CHAR - 000010
VENDOR(000010) TYPE C,
InfoObject 0INFO_REC: CHAR - 000010
INFO_RECORD(000010) TYPE C,
InfoObject 0ABCPROCESS: CHAR - 000012
PROCESS(000012) TYPE C,
InfoObject 0AMOUNT: CURR - 000015
VALUE(000008) TYPE P,
InfoObject 0AMOUNTFX: CURR - 000015
VALUE_FIXED(000008) TYPE P,
InfoObject 0AMOUNTVR: CURR - 000015
VALUE_VARIABLE(000008) TYPE P,
InfoObject 0OI_MENGE: QUAN - 000015
QUANTITY(000008) TYPE P,
InfoObject 0BASE_UOM: UNIT - 000003
QUANTITY_UNIT(000003) TYPE C,
InfoObject 0PRICEUNIT: DEC - 000005
PRICE_UNIT(000003) TYPE P,
InfoObject 0CURRENCY: CUKY - 000005
CURRENCY(000005) TYPE C,
InfoObject 0CURTYPE: CHAR - 000002
CURRENCY_TYPE(000002) TYPE C,
InfoObject 0COSTELMNT: CHAR - 000010
COST_ELEMENT(000010) TYPE C,
InfoObject 0COSTCOMP: NUMC - 000003
COST_COMPONENT(000003) TYPE N,
InfoObject 0CCOMPSTRUC: CHAR - 000002
COST_COMP_STR(000002) TYPE C,
InfoObject 0SCRAPQTY: QUAN - 000015
SCRAP_QTY(000008) TYPE P,
InfoObject 0COMP_SCRAP: QUAN - 000015
COMP_SCRAP_QTY(000008) TYPE P,
InfoObject 0COSTVAR: CHAR - 000004
COSTING_VARIANT(000004) TYPE C,
InfoObject 0COSTVERS: NUMC - 000002
COSTING_VERSION(000002) TYPE N,
END OF TRANSFER_STRUCTURE .
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
FORM COMPUTE_CURTYPE
Compute value of InfoObject 0CURTYPE
in communication structure /BIC/CS0CO_PC_PCP_10
Technical properties:
field name = CURTYPE
data element = /BI0/OICURTYPE
data type = CHAR
length = 000002
decimals = 000000
ABAP type = C
ABAP length = 000002
reference field =
Parameters:
--> RECORD_NO Record number
--> TRAN_STRUCTURE Transfer structure
<-- RESULT Return value of InfoObject
<-> G_T_ERRORLOG Error log
<-- RETURNCODE Return code (to skip one record)
<-- ABORT Abort code (to skip whole data package)
FORM COMPUTE_CURTYPE
USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BI0/OICURTYPE
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
$$ begin of routine - insert your code only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
If <SOURCE_FIELDS>-CURTYPE NE '00'
Delete DATA_PACKAGE.
RESULT = .
returncode <> 0 means skip this record
RETURNCODE = 0.
abort <> 0 means skip whole data package !!!
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
FORM INVERT_CURTYPE
Inversion of selection criteria for InfoObject 0CURTYPE
This subroutine needs to be implemented only for SAP RemoteCubes
(for better performance) and for the Report/Report Interface
(drill through).
--> I_RT_CHAVL_CS Ranges table for current InfoObject
--> I_THX_SELECTION_CS Selection criteria for all other InfoObjects
<-- C_T_SELECTION Selection criteria for fields of
transfer structure
<-- E_EXACT Flag: Inversion was exact
FORM INVERT_CURTYPE
USING I_RT_CHAVL_CS TYPE RSARC_RT_CHAVL
I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
CHANGING C_T_SELECTION TYPE SBIWA_T_SELECT
E_EXACT TYPE RS_BOOL.
$$ begin of inverse routine - insert your code only below this line-
DATA:
L_S_SELECTION LIKE LINE OF C_T_SELECTION.
An empty selection means all values
CLEAR C_T_SELECTION.
L_S_SELECTION-FIELDNM = 'CURRENCY_TYPE'.
Selection of all values may be not exact
E_EXACT = RS_C_FALSE.
$$ end of inverse routine - insert your code only before this line -
ENDFORM. -
Data is coming from one cube to another cube.
How to restrict the data in update rule by using routine , which is not require in to another Cube.
Thanks,
AsitHi Asit,
You are on which system BW 3.5 or BW 7.0?
If you are on BW 7.0, there are various way of doing this.
1> Using DTP: If you have definite filter criteria while loading data from Infocube 1 and Infocube 2, you can use it in DTP.
for eg. while doing data loads, exclude records where material group is blank. While creating DTP, you can specify required filter criteria.
2> using start routine: You can use start routine as well to exclude all those records which you don't want to load to target infocube.
For eg. Delete all records from source package where case ids are blank.
use below statement to code it:
Delete source_package where <fieldname> = <some values>.
Regards,
Nilima -
BW 3.5 Update rule routine and start routine convert to BI 7.0 Endroutine.
I have bw 3.5 update routine and update rules start routine( r/3 to ODS). i need to replicate that routine into BI 7.0 endroutine with the same logic with some minor changes(DSO to DSO).
IN BW 3.5 the data is getting from r/3 where as in BI7.0 the data fetching from DSO itself but the logic is same as bw 3.5.
following is the start routine:
DATA: G_FISCPER_TO TYPE /BI0/OIFISCPER,
G_CALMONTH LIKE /BI0/PCALMONTH-CALMONTH,
G_MONAT TYPE /BIC/OIYRDFMONAT.
ABORT = 0.
------ Globale Variable füllen --------------------------------------*
CALL FUNCTION 'Y_RDF_FISCPER_FOR_INFOPACKAGE'
EXPORTING
I_ISOURCE = '0FI_AA_001' (*** this is infosurce getting from r/3, in 7.0 this one is DSO 'B")
IMPORTING
E_FISCPER_TO = G_FISCPER_TO
E_MONAT = G_MONAT
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC = 0.
CALL FUNCTION 'Y_RDE_FISCPER_TO_CALMONTH'
EXPORTING
I_PERIV = 'K4'
I_BDATJ = G_FISCPER_TO(4)
I_POPER = G_FISCPER_TO+4(3)
IMPORTING
E_CALMONTH = G_CALMONTH
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC NE 0 OR G_CALMONTH IS INITIAL.
CALL FUNCTION 'Y_RDN_MONITOR_SET'
EXPORTING
I_MSGID = 'YRDFBW'
I_MSGNO = '027'
I_MSGV1 = '0FI_AA_001'
I_MSGV2 = 'YRDF_FIAA_PERIOD'
TABLES
T_MONITOR = MONITOR.
ABORT = 1.
ENDIF.
ELSE.
CALL FUNCTION 'Y_RDN_MONITOR_SET'
EXPORTING
I_MSGID = 'YRDFBW'
I_MSGNO = '027'
I_MSGV1 = '0FI_AA_001'
I_MSGV2 = 'YRDF_FIAA_PERIOD'
TABLES
T_MONITOR = MONITOR.
ABORT = 1.
ENDIF.
Update routine:
RETURNCODE = 0.
ABORT = 0.
CLEAR RESULT.
IF NOT COMM_STRUCTURE-ASSET_MAIN BETWEEN '000000200000' AND
'000000299999'.
CALL FUNCTION 'Y_RDF_GET_CCTR_0ASSET'
EXPORTING
I_COMP_CODE = COMM_STRUCTURE-COMP_CODE
I_ASSET = COMM_STRUCTURE-ASSET
I_ASSET_MAIN = COMM_STRUCTURE-ASSET_MAIN
IMPORTING
E_COSTCENTER = RESULT
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC NE 0 OR RESULT IS INITIAL.
CALL FUNCTION 'Y_RDN_MONITOR_SET'
EXPORTING
I_MSGID = 'YRDFBW'
I_MSGTY = 'E'
I_MSGNO = '061'
I_MSGV1 = COMM_STRUCTURE-COMP_CODE
I_MSGV2 = COMM_STRUCTURE-ASSET
I_MSGV3 = COMM_STRUCTURE-ASSET_MAIN
TABLES
T_MONITOR = MONITOR.
RETURNCODE = 1.
ENDIF.
ENDIF.
How can i write this in BI7.0?
ThanksHi ,
solved on my own. Thankyou very much..
thanks & regards,
M.S
Edited by: M.S on Oct 27, 2009 6:57 AM
Edited by: M.S on Oct 27, 2009 6:59 AM -
Calculation in update rule/routine in order to modify DATA_PACKAGE
Hello all,
I want to load some finance data from two ODS objects into an InfoCube. In the update rule I have build a start routine in order to compare two values of two internal tables (itab1 and itab2) which gets loaded with data from the both ODS.
When the value of the itab1 is higher of itab2 then I want to subtract the value from itab2 from itab1.
After that I want to MODIFY the DATA_PACKAGE in order to update later the cube with an new lower value.
The DATA_PACKAGE is defined as standard table as well as itab1 and itab 2 but I get the error message that the line type is not compatible.
How I have to build the MODIFY statement in order to calculate and update values in the DATA_PACKAGE?
Any helps would be great.
Best regards from Munich/Germany,
Stefan LeontiadisHi Stefanos,
My thought is probably not the best in terms of performance, but it should work. The problem you'll hit is not having the entire data set from both ODS Object loads in memory at the same time.
To cover this, you can declare a table in the global section of the start routine, let's call it GT_REF_DATA. Next, perform a SELECT ffrom <other ODS Object> FOR ALL ENTRIES IN DATA_PACKAGE WHERE <selection> into GT_REF_DATA in the local section of the start routine.
In the individual update routine, you can do a READ TABLE GT_REF_DATA INTO LS_REF_DATA WITH KEY <selection> to get the record you want to compare.
Here's where you have to be careful. If I understand your logic right, you can do:
IF LS_REF_DATA-field < COMM_STRUCTURE-field.
RESULT = COMM_STRUCTURE-field - LS_REF_DATA-field.
ELSE.
RESULT = COMM_STRUCTURE-field.
ENDIF.
That avoids processing everything in the start routine and your MODIFY problem. If you prefer the start routine, you can work with the DATA_PACKAGE directly. Just remember that DATA_PACKAGE has a header line, so you can simply LOOP AT DATA_PACKAGE, change the value in DATA_PACKAGE, then MODIFY DATA_PACKAGE.
The way I prefer to do things is to create a separate internal table that is the same type as DATA_PACKAGE. I fill the internal table with all values to store to the InfoCube (even those you don't change from DATA_PACKAGE). At the end of the routine, CLEAR DATA_PACKAGE then APPEND LINES OF itab TO DATA_PACKAGE.
I know there's lots of options above. Let me know if I got your logic wrong or you have questions.
Cheers,
Adam
Maybe you are looking for
-
Hotkey (Ctrl+B) is not working after migration from Forms 6i to 10g
Dear Gurus, Need your help regarding the following problem: After migrating from Forms 6i to 10g (Rel 2), Ctrl+B (used to list the blocks in a form) hotkey is not working anymore (all other hotkeys are working fine). I've checked my FMRWEB.RES and it
-
Free Trial InDesign Print Out Problems
Hey, I created several designs with the free month trial of inDesign. Today I signed up for the monthly plan. When I go to print out my latest design it prints out on older one (similar but different). Does InDesign not allow you to print out designs
-
Can any body brief me about this syntax given below
I have doubt of using this command on Production server... How best is this.. Can anybody brief me about this syntax.. what exactly this command do... $ tar -cvfX - /tmp/exclude *. |* compress -c - > ../archive/file name Here i know about "tar -cvfX"
-
How to reset the mac if i have forgotten the password?
how do i reset my mac book without an administrator password?
-
What kind of audio file does IDVD create?
I accidentally forgot to set the correct scratch disk in system settings on a project for a client. The files went to the incorrect disk and folder. How would I go about correcting this without it being a long drawn out process on messing up my files