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.
ZCountry | ZCOM_CODE | 0Comp_code |
DE | 2000 | 1000 |
GB | 2010 | 1010 |
US | 2030 | 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