2006 Jan 13 10:37 AM - edited 2024 Feb 04 1:53 AM
I have an item level ODS object which contains records like this:
Header
Item 1
Item 2
The header record contains the header status and the items contain the item status.
I want to add an infoobject to the ODS to hold the header status at item level too.
I am thinking that the best thing to do would be to modify the update rules to get the header status from the header record rather than modifying the datasource as I already have the data.
Problem is I am not an ABAPer, can anybody help me with how I can retrieve the header record in the update rules?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
The item number exists in all lines. Could I do something like this do you think?
SELECT SINGLE [Status] INTO result from [ODS] WHERE
[ODS.Order] = COMM_STRUCTURE-[Order] AND [ODS.Item] = 0
I think I could, but how do I identify which table the ODS data is in?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is that the header and item records are extracted and loaded at the same time. I am using the standard datasource 0CRM_COMPLAINTS_I.
So the records will not be active in the ODS at this point.
Based upon your other replies I can't get the data from the /BIC/A[ODS]00 table, but will the header be in the /BIC/A[ODS]40 table?
if not, can I get the data from the PSA table and if so what would the name of the database table be?
Cheers,
hi Stuart,
my suggestion is do this in crm side, in user exit zxrsau01
data : l_s_comp like [0crm_complaints_i extract structure],
l_tabix like sy-tabix.
case i_datasource.
when '0crm_complaints_i'
l_tabix = sy-tabix.
if item, item guid not blank
if not l_s_comp-item_guid is initial.
look from header data, from crmd_orderadm_h ?
select [headerstatus] into l_headerstatus
from crmd_orderadm_h.
if sy-subrc = 0.
l_s_comp-[header status] = l_headerstatus
endif.
endif.
modify c_t_data from l_s_comp index l_tabix.
endcase.
User | Count |
---|---|
33 | |
21 | |
16 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.