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

Start Routine and Variables

Hii All

A couple of questions for you gurus.

a) Am I right in thinking that the start routine is called once for each data package (BI 7).

b) Is it also truethat all variables including globals and internal tables are re-initialised for each data package ?

Thanx

Asif

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2009 at 02:22 PM

    Yes. Your observation is wright. Start routine is called for each data package. The variables declared globally gets re-initialized for every package.

    regards,

    Venkat.S

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Asif,

      I tried to save the contents to the ABAP memory and retreived in the routine. . But as you say, the packages are running parallely, it is not givine the correct no of records in all the pacakges at the end . But serially debugging produces the correct output. Do you have any idea to get it ?

  • author's profile photo Former Member
    Former Member
    Posted on Sep 03, 2009 at 08:20 AM

    Hi Guys,

    It is right that start routine is called once for each data package.

    But variables and interal tables are not re-initialized for each data package.

    Value in variable is retained and can be used for further data packages.

    For that you can use a counter. Usage will be like this

    IF counter is INITIAL.

    Put your logic.

    Counter = 1.

    ENDIF.

    In this way, you can do the calculation common for all data packages.

    The only problem with this is when packages are loaded in parallel.

    To avoid this, do the serial processing. To achieve that, In DTP

    Goto > Settings for Batch Manager > Number of Processes 1

    I hope the given information is helpful.

    Regards,

    Gaurav

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Gaurav,

      I had already posted my thread in SDN.

      .

      Please reply to my thread above for the requirement.. and help me to solve the issue if you have any idea.

      I already suggested your solution approach, since i will affect the loading time (serialization )... i m still working on the issue to resolve it

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.