Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Routines

Former Member
0 Likes
618

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
587

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

4 REPLIES 4
Read only

Former Member
0 Likes
588

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

Read only

Former Member
0 Likes
587

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321...

Regards,

Madan.

Read only

Former Member
0 Likes
587

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