‎2008 May 14 5:11 AM
hi sap guru's,
i m very new for routines, can anyone please tell me that what are routines? is it different from subroutine? please give me some link from where i can get it better.
regards saurabh.
‎2008 May 14 5:13 AM
Hi Saurabh,
Routines are ABAP programs that consist of a predefined global data declaration part and an ABAP form routine. The form routine contains all the ABAP programming functions.
You can use the following types of routines in the update:
· The start routine - this routine is run exactly once for a data package at the beginning of the update program
· Routines for updating key figures with and without a return table
· Routines for updating key figures and their unit
· Routines for updating characteristics
For more information, please check this link.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/370d40312b1e07e10000000a1550b0/content.htm
Reward points if useful
Regards,
Abhishek
‎2008 May 14 5:13 AM
Hi Saurabh,
Routines are ABAP programs that consist of a predefined global data declaration part and an ABAP form routine. The form routine contains all the ABAP programming functions.
You can use the following types of routines in the update:
· The start routine - this routine is run exactly once for a data package at the beginning of the update program
· Routines for updating key figures with and without a return table
· Routines for updating key figures and their unit
· Routines for updating characteristics
For more information, please check this link.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/370d40312b1e07e10000000a1550b0/content.htm
Reward points if useful
Regards,
Abhishek
‎2008 May 14 5:14 AM
‎2008 May 14 5:14 AM
Hi,
Start Routine
Start routines are executed prior to applying the other transfer rules. They have access
to all the records in the data package (not the extracted data set!). The most practical
use of start routines is to preload tables into memory for efficient nontrivial table
lookups or to apply complex record filters to the data package. However, you must
take care not break the memory limits of the application server, especially having in
mind that multiple data packages executed at the same time will each require the same
amount of memory.
InfoObject Transfer Routines
InfoObject transfer routines are transfer routines directly tied to an InfoObject. In whatever set of transfer rules this InfoObject is used, the specified routine will be executed.
InfoObject transfer routines are used to warrant consistent systemwide transformations
for a specific InfoObject. They are maintained in the InfoObject maintenance
transaction .
Page 287/288
Source: Mastering the SAP Business InformationWarehouse
Update Rules
Having applied the transformation rules, SAP BW is now ready to apply applicationspecific
transformations in the update rules that are independent of the source system.
The logic behind the update rules is more complex than the one behind the transfer
rules: Data integration transformations are still supported, but the main focus is on
application logic transformations such as normalization, denormalization, and aggregation.
Analogous to the transfer rules, we present a highly simplified update rules
algorithm at the end of this section. To understand the following discussion you just
need to know that the update rules handle key figures (data fields) and characteristics
(key fields) differently when updating InfoCubes (ODS objects, master data tables):
Every characteristic (key field) update rule is executed for each of the key figures (data
fields) of the InfoCube (ODS object, master data table). Each of the key figure (data
field) update rules generates an in-memory result record with all characteristics (key
fields) values and the key figure (data field) value filled.
Start Routine
Start routines, in update rules are essentially the same as in transfer rules.
Page 300
Source: Mastering the SAP Business InformationWarehouse
Refer.
How To Routines within Transformations
Regards,
Madan.
‎2008 May 14 5:47 AM
Hi,
Routines can referr to a couple thing. First a routine could referr to a subroutine, which is actually a FORM in ABAP, and you fire this using the PERFORM statement. Routine could also referr to LSMW routine. I think there also may be a Routine in SAP HR development.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db978335c111d1829f0000e829fbfe/frameset.htm
check
Regards
Kiran Sure