on 05-22-2011 8:38 AM
Hi,
I'm using current date (sy-datum) as selection parameter in a DTP routine. I need to store this date in a Z table so that next data load can refrence this date. I have already created the Z table. Where should I write the code to update the sy-datum date into the Z table. SHould I write the code in DTP itself in the end? or after the process chain completion (run a different ABAP program at end of process chain?). I want to use this date in subsequent loads.
Thanks,
Nancy
Hi,
I wrote the following code in end routine:
DATA: wa_value TYPE Z_DB_TABLE.
CLEAR wa_value.
wa_value-mandt = sy-mandt.
wa_value-zdate = sy-datum.
insert into Z_DB_TABLE values wa_value.
I debugged teh routine. The INSERT statement is running fine but still, I'm not able to see my record in Z table. The content button is disabled. What's wrong with my code?
Thanks,
Nancy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can write in the DTP Selection - this will give it consistency. Suppose load starts one day and ends next day.
Can you not load this date in the target DSO as 'Load Date'?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
Write the code in end routine.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.