‎2019 Jan 09 12:08 PM
Hi All
I have a Scenario as Below:
There are some dump values in the Currency Field from Source System.
Inorder to get rid of that , I have a scenario where i can lookup the Value for Currency Based on Company Code from 0COMP_CODE and Replace the Currency Value Respectively in Transformation and Load into ADSO.
Can anybody Help on this.
Thanks in Advance
‎2019 Jan 09 12:26 PM
‎2019 Jan 09 12:39 PM
‎2019 Jan 09 12:41 PM
They are being scanned from a Document and Loaded into ECC System.
‎2019 Jan 09 1:32 PM
‎2019 Jan 10 1:38 AM
So first you mapping company code and currency from source to currency of target ADSO. chose routine rule for that mapping, in this routine write code to check source currency code if its dummy one then select the currency code from company code like you said, its quite simple. something like:
If src_currency = 'dummy'. "your logic to check dummy currency
select single CURRENCY from /BI0/PCOMP_CODE
where COMP_CODE = src_companycode
and OBJVERS = 'A' "Active one
into result. "here is the replacement
endif.