Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: Need help with lookup BW routine ABAP code

$
0
0

Hi Zalmay,

 

 

Scenario: I need a Transf. Rountine ABAP code Between DSO1 and DSO2 where we take e.g. Country DE from DSO1 with Company code "2000", and give result Company code "1000" for Country DE in DSO2.



Declaration part in Start Routine.


Steps


1) Create internal table for DSO3 to hold below infomation.


ZCountryZCOM_CODE0Comp_code
DE20001000
GB20101010
US2030

1030



2) Write select statement to pull zcountry zcom_code 0comp_code all records where DSO3-country = source_package country and

dso3 zcom_code = source_package-zcom_code.

 

3) and update in internal table of DSO3 which is created in step 1

 

4) goto individual routine and read internal table dso3 based on source_package-country and source-package-zcom_code with READ TABLE statement.,

 

if sy-subrc eq 0

 

result = dso3- 0comp_code.

 

endif.

 

 

Please try this,.

 

Regards,

Nanda


Viewing all articles
Browse latest Browse all 8451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>