Hi experts,
I am trying to export transactional data from BPC to a flat file but I want to write the 12 month values of the account by columns and not by rows as usual. That’s an example of what I need:
Year | Center | Category | Account | Oct | Nov | Dec | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep |
2015 | C_L0M870 | 52540 | FG0000622640 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2015 | C_L0M870 | 52540 | FG0000622690 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
I tried the following structure but it fails when running the package because of the two *IF with the sum:
*OPTIONS |
FORMAT = |
HEADER = |
DELIMITER |
AMOUNTDECIMALPOINT= |
SKIP = |
SKIPIF = |
VALIDATERECORDS=YES |
CREDITPOSITIVE=YES |
MAXREJECTCOUNT= |
ROUNDAMOUNT= |
SPECIFICMAPPING=YES |
*MAPPING |
TIEMPO=*COL(8,1:4) |
CENTRO=*STR(C_)+*COL(3) |
CATEGORIA=CATEGORIA |
CUENTA=CUENTA |
OCT=*IF(*COL(8,6:7)=*STR(04) THEN SIGNEDDATA;*STR(0))+*IF(*COL(8,6:7)=*STR(05) THEN SIGNEDDATA;*STR(0)) |
|
|
Thank you
in advanced.