Skip to Content
author's profile photo Former Member
Former Member

can any one explain on routines

what is the major diff between start routine,conversion routine

where we exactly write them

can any one explain one scenario where we use them in real time i mean with code

hope i get response

bye

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2007 at 03:58 PM

    Start routine:

    When you have a requirement of applying a logic to the entire data package rather than to a single record , you use start routine either in the update rulesor in the transfer rules. For example, you want to delete records from the data package that met does not meet a criteria, for example you want to delete all records that has a type say 100.

    We do that with this code.

    Delete Data_Package where type = '100.

    Ravi Thothadri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2007 at 04:02 PM

    Hi Shakira,

    Start / Update Routines:
    You use routines to define complex update rules for a key figure or characteristic. 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

    http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
    Eg:
    In my update rules I am pulling data for InfoObject Division. But the data is as shown as ABDC/XYZ123. I have to display only ABCD. So I write a routine which will delete all the data from /. i.e., /XYZ123 and before loading Division. Hence my result data will be ABCD. This is a very simple example, but there are many complex transformations also.

    Conversion Routines:

    Conversion routines are used so that the characteristic values of an InfoObject can be displayed or used in a different format to how they are stored in the database. They can also be stored in the database in a different format to how they are in their original form, and supposedly different values can be consolidated into one.

    http://help.sap.com/saphelp_nw04/helpdata/en/2b/e9a20d3347b340946c32331c96a64e/frameset.htm

    Eg:

    I am loading data from a different source system other that R/3. I am loading costcenter data and it is being displayed as 50002. But SAP system only recognises only 8 digits so I use ALPHA conversion in the transfer rules and convert 50002 to 00050002. I can convert the date format to internal date and many more.

    Hope this helps.

    Kumar

    Message was edited by:

    Kumar Bhargava

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.