Hi All,
While loading the data to an ADSO i want to identify the date and time and update this information to all records across data package. In effect all the records will have the date and time when the process had started.
I created Global variables in the start routine.
*$*$ begin of global - insert your declaration only below this line *-* ...
DATA: GV_DATE LIKE SY-DATUM.
DATA: GV_TIMESTAMP LIKE SY-UZEIT.
*$*$ end of global - insert your declaration only before this line *-*
Then i implemented the logic in the start routine to check and update the Global variable in case these are empty.
IF GV_DATE IS INITIAL.
GV_DATE = SY-DATUM.
GV_TIMESTAMP = SY-UZEIT.
ENDIF.
The solution works fine in case the data packages are executed in sequence.
But in case the data packages are executed in parallel then the Date and Time is updated for each every package, resulting in different timestamps.
I have referred other posts in SDN, like the one mentioned below but didnt find any answer.
https://answers.sap.com/questions/9636756/global-variable-across-data-packages-.html
Request clarification before answering.
I do not recollect the details but this should be possible. Perhaps review the areas of the codes of your routine, as there are several "global" ares where you can define global variables. See this blog as well:
Difference between 1st and 2nd global declarations in BW routines
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 5 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.