Skip to Content
0
Former Member
Jul 25, 2005 at 08:17 PM

data package no. through (start) routine into an attribute

42 Views

Hi all,

does anyone have an idea of reading the no. of the processed data package into a variable in a start routine and hand over to routine?

my code:

<b>start routine:</b>

[code]PROGRAM UPDATE_ROUTINE.

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

  • TABLES: ...

<b> DATA: DP(10) TYPE N,

RN(10) TYPE N.

</b>

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

...

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

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

  • to make monitor entries

<b>DP = DATA_PACKAGE-RECNO.

</b>

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

ABORT = 0.

...

[/code]

<b> routine:</b>

[code]PROGRAM UPDATE_ROUTINE.

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

  • TABLES: ...

<b>DATA: DP(10) TYPE N,

RN(10) TYPE N.</b>

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

...

  • fill the internal table "MONITOR", to make monitor entries

<b>RN = RECORD_NO.

CONCATENATE RN RN INTO RESULT.

</b>

  • if the returncode is not equal zero, the result will not be updated

RETURNCODE = 0.

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

ABORT = 0.

...[/code]

Somehow there is no data in my global variable (DP), so nothing is transfered.

The Record_No works, but not the Datapack-No.

Any idea?

Thanks in advance.

Cu, stefan