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

Startroutine in SAP BW: SOURCE_SYSTEM

Hi ABAP experts

We have migrated an update rule from 3.x to 7.0 dataflow.

Syntax check of the next transformation and the generated startroutine is okay.

The datasource, an DSO table, has been filled up with a valid source system value with charateristic 0LOGSYS.

While debugging, SOURCE_SYSTEM at the beginning of the coding is not filled which is incorrect.

Are there any ideas how to fix this issue?

Thanks

SOURCE_SYSTEM = p_r_request->get_logsys( ).

* Migrated update rule call
BREAK-POINT.
Perform routine_9998

.........


FORM routine_9998
TABLES
P_MONITOR structure rsmonitor
P_MONITOR_RECNO structure rsmonitors
DATA_PACKAGE TYPE _ty_t_SC_1_full


CHANGING
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.

* init variables

* fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
* to make monitor entries

data: l_isource(30) type c.
data: l_date type d.
data: l_abort type sy-subrc value 0.

*Der Bestandsinit für den Cube 0CML_C01 erfolgt über die INFOSOURCE
*0CML_INIT_BUDAT


l_isource = '0CML_INIT_BUDAT'.

*Aufruf des Bausteins im OLTP
*DESTINATION muss geplegt sein (SM59)


CALL FUNCTION 'BWFS_TIMESTAMPS_READ_ALL_RFC' DESTINATION SOURCE_SYSTEM
EXPORTING
I_INFOSOURCE = l_isource
IMPORTING
E_DATUM_INIT = l_date.

if l_date is not initial.
*Schleife über alle Datensätze, die aus dem OLTP geladeb worden sind.
*Alle Datensätze, deren Buchungsdatum kleiner(gleich) dem*
*Bestandsinit-Datum ist, werden gelöscht.


loop at DATA_PACKAGE.
if DATA_PACKAGE-PSTNG_DATE <= l_date.
delete DATA_PACKAGE index sy-tabix.
endif.
endloop.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 14, 2014 at 04:09 AM

    Hello Thomas,

    It seems you are missing some attributes while defining a Datasource.

    I guess the people in the tagged community can help you with it.

    SAP Business Warehouse

    Regards,

    TP

    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.