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

start routine in BI 7.0

Hi,

I´want to create a start routine in the BI 7.0 same that I write in the BW 3.5 but some thing change and now I don´t know How I can do it.

In the BW 3.5 I have the following code in the start routine:

PROGRAM UPDATE_ROUTINE.

$$ begin of global - insert your declaration only below this line -

TABLES:/BI0/PMAT_SALES.

...

  • DATA: ...

$$ end of global - insert your declaration only before this line -

  • The follow definition is new in the BW3.x

TYPES:

BEGIN OF DATA_PACKAGE_STRUCTURE.

INCLUDE STRUCTURE /BIC/CSZPP_C01.

TYPES:

RECNO LIKE sy-tabix,

END OF DATA_PACKAGE_STRUCTURE.

DATA:

DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE

WITH HEADER LINE

WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.

FORM startup

TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring

MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n

DATA_PACKAGE STRUCTURE DATA_PACKAGE

USING RECORD_ALL LIKE SY-TABIX

SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS

CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update

*

$$ begin of routine - insert your code only below this line -

  • fill the internal tables "MONITOR" and/or "MONITOR_RECNO",

  • to make monitor entries

loop AT DATA_PACKAGE.

select single * from /BI0/PMAT_SALES

where MAT_SALES = DATA_PACKAGE-MAT_SALES and

SALESORG = DATA_PACKAGE-MAT-SALESORG.

if sy-subrc = 0.

DATA_PACKAGE-/BIC/MATL_GRP_1 = /BI0/PMAT_SALES-MATL_GRP_1.

ENDIF.

MODIFY DATA_PACKAGE.

endloop.

  • if abort is not equal zero, the update process will be canceled

ABORT = 0.

$$ end of routine - insert your code only before this line -

*

ENDFORM.

How can I change this routine in the BI 7.0 ??

Thank you. I really apreciate your comments..

Ingrid Salazar

Message was edited by:

Ingrid Salazar

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 06:04 AM

    a few points:

    Use SOURCE_PACKAGE in place of DATA_PACKAGE.

    The line ABORT = 0 is not needed.

    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.