on 09-05-2008 10:06 AM
Hi all,
I want to write from two DSO's to an InfoCube. One DSO contains Sales data and the other Customer data. In case of a matching key in mentioned DSO's customer data must be written to the InfoCube. So therefor i need to do a customer lookup. This key contains ZRBDOCNR and ZRBPOSNR. Customer InfoObject = ZRBCUS. My question is: "how do i realize this in ABAP code?"
Thanks in advance!
Ruud,
You will have to have a transformation from the sales Data DSO to cube and in there have a routine either a routine in a rule or a start / end routine to get the necessary information.
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The code can be on foll lines in start routine:
data: itab_cust type standard table of /bic/acustomer_ods00.
select * from customer_ods into table itab_cust.
loop at datapak into wa_datapak.
read table itab_cust into wa_cust with key ZRBDOCNR = wa_datapak-ZRBDOCNR
and ZRBPOSNR = wa_datapak-ZRBPOSNR.
if sy-subrc eq 0.
wa_datapak-ZRBCUS = wa_cust-ZRBCUS.
modify datapak from wa_datapak.
endif.
endloop.
Regds,
Shashank
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.