I have a flat file of the below structure with about 50 rows .Each row has a different Code(this is the main field). There are flat files for differrent years like one flat file for year 2011, one for 2012, and so on..
Source System | Calendar Year | breakup | code | charges |
XX | 2013 | 2 | XX1 | 7.3294 |
YY | 2013 | 1 | YY1 | 5.7899 |
The above flat file content that I have pasted is for year 2013 Whcih means the calender year field is 2013 for all rows in this file. I am loading flat files to a DSO
There is a field called New date in my DSO. It s is a blank field now . I need to populate this field During the load from flat file to DSO in either my start routine/field routine .
For eg., for Code C1 there will be only 1 entry in the flat file. I need to populate 365 entries in the DSO .i.e., the new date should have entries from 01.01.2013 until 31.12.2013 (full year dates).. For every code , the new dates should be populated in my DSO . the final entry in my DSo would look like
Source System | Calendar Year | New date | breakup | Code | charges |
XX | 2013 | 20130101 | 1 | XX2 | 7.3294 |
XX | 2013 | 20130102 | 1 | XX2 | 7.3294 |
. | |||||
. | |||||
. | |||||
until | |||||
XX | 2013 | 20131228 | 1 | XX2 | 7.3294 |
XX | 2013 | 20131229 | 1 | XX2 | 7.3294 |
XX | 2013 | 20131230 | 1 | XX2 | 7.3294 |
XX | 2013 | 20131231 | 1 | XX2 | 7.3294 |
Similarly the next code should have 365 entries in DSO and so on until the last code in my flat file.
BAsicallly every code in my DSO should have 365 entries which came from one entry in flat file..
Help with ABAP code please?