'Variable print' in MD05

Hello,
Is there any way to alter/add the fields displayed in the header of MRP list print version.
In MRP list -- Variable print, I did try to look for source but...
Idea is to display the blocked stock , and couple of other fields in the header...
Please suggest!
Regards,
JPS

Hi,
Unfortunatly, You can only ask ABAP consultant to change for ZSAPMM61R program.
Regards
Lukasz

Similar Messages

  • Variable printing with pictures?

    Hi all,
    I know Photoshop can handle variables in text format so for example and that you can set a variable to be an image that'll change with alternate images but can Photoshop use a mix of the two to create images with variable fields for text?
    Heres some examples:
    These have been done in Directsmile (not by me) which after playing with the demo lets you import image sets of all the letters and it then uses those to make up the variable data for each print imported as a CSV file. They're not text with filters applied, they are tiffs with masks:
    Now Directsmile obviously does all this, but seeings as Im paying for Photoshop CS6, I wondered if it could handle it?. If not Ill have to focus on Directsmile, even though it is PC only
    Thanks in advance
    Andy

    Ah I see, so could prove more time consuming than it's worth. Might aswell just invest in the software that can do it already then. Bit of a shame.
    Thanks

  • Variable printed using incorrect font - Sapscript

    Hi,
    I am using a Sapscript form to print a document. I am printing a variable using a A_SIMP font. When I try to print 2 diff documents each of this document prints the text in either Courier or Times. I want it to be repalced by either Courier or Times and not either or. I tried changing the replacement font for A_SIMP but it does not work.
    The paragraph format used does not define any font. I am using a character format which has the A_SIMP font defined. I am using frontend printer and the devide type does not include A_SIMP font in it.
    Thanks,
    Vivek

    Hi Aidan,
    I wanna know what did you mean with "You must also tell the SAP system the name of the Windows font" ?
    I have a similiar problem but mine the text in the smartforms strike by #
    I have installed the fonts in 4.7, but when I upgraded it to Ecc6.0 the font is still exist, but the text displayed is being striked with #.
    I have checked like you have said in SE73, my font family is ZCORSIVA and the RTF Text is FONT Monotype Corsiva. is there something wrong with it?
    many many thanks
    @addition :
    I have changed the RTF Text from FONT Monotype Corsiva to Monotype Corsiva (TrueType). But it didn't work. any idea?
    Edited by: AbaPJuNioR on Aug 31, 2010 6:13 AM

  • ABAP Program global variable print at runtime

    Hi,
      I have an abap program with more than 1000 global variables. I want to run the program and at a specific point show a report with names and runtime values of all the global variables in the program. Is there some system table which stores all the global variable names and source code? Kindly help.
    Satya

    Hello Satya,
    You can store all your global variables in one internal table.
    let's say your Itab contains 1000 fields. Now, if you want to retrive the name of the itab, you can use the system call.
    DATA: IT_COMP LIKE RSTRUCINFO OCCURS 0 WITH HEADER LINE.
    *-- Getting fields of internal table
      CALL 'AB_STRUC_INFO'
        ID 'PROGRAM'   FIELD SY-CPROG
        ID 'STRUCNAME' FIELD P_ITAB
        ID 'STRUCINFO' FIELD IT_COMP-SYS.
    After getting all your fields in it_comp table you can use field symbol to get the values of your fields.
    Regards,
    Reward points, if it is useful...!

  • FM to get MD05 list

    Hi,
         Could someone tell me if there is a FM used to get the latest MRP list(MD05)? Result of FM 'MD_STOCK_REQUIREMENTS_LIST_API'  seems to be the MD04 list.
         Plz tell me the further information...thx~

    Dear wenwen,
    Do you want the MRP List to be downloaded into an excel file
    or in some form of local file?.
    If the same is required in MD05 under individual access
    means,then click  on variable print ,then export that into a
    Local file.
    If the same is required under MD05collective access->then
    give the valid input selection parameters.---->after
    executing,click on print and then export into an Excel file and
    you can make use of this.
    Regards'
    Mangal

  • Using Static Variable against Context Attribute for Holding IWDView

    Dear Friends,
    I have a method which is in another DC which has a parameter of the type IWDView. In my view, I will have an action which will call the method in another component by passing the value for the view parameter. Here, I can achieve this in 2 types. One is - I declare a static variable and assign the wdDoModifyView's view as parameter value and I can pass this variable as parameter whenever calling that method or the second way - create an attribute and assign the same wdDoModifyView's view parameter as its value. Whenever I call this method, I can pass this attribute as parameter. What is the difference between these two types of holding the value since I am storing the same value i.e., wdDoModifyView's view parameter. But when I trigger the action from different user sessions, the first type of code (using static variable) prints the same value in both the sessions for view.hashCode() and View.toString(), but the same is printing the different values when I pass the attribute which holds the view parameter.
    Clarification on this is highly appreciated
    The problem I face is when I use static variable to get the view instance and export the data using the UI element's id, the data belonging to different user sessions is mixed up where as when I use Context Attribute, the same problem doesn't arise. I want to know the reason why it is so. Is there any other place or way where I can get the current view instance of each session instead of wdDoModifyView?

    Hi Sujai ,
    As you have specified the problem that we face when we use  static attributes, when end users are using the application .
    Static means i  have n number of objects but the static variable value will remain same every where.
    when it is context attribute for every object i.e nth object you have a nth context attribute i mean nth copy of the context attribute.
    so every user has a unique Iview parameter , when context is used and
    when static is used  , assume you have userA , his iview is set this intially  and u have another user B , when he is using  , since the variable is static and when you access this variable you will get the value of userA.
    Regards
    Govardan Raj

  • Problem with computing Font width while printing in Landscape mode

    I have an application which prints a table and fills it with some text. I render it on a JComponent using the drawString(theStr, xPos, yPos) and the drawLine(rigtX, topY, rigtX, botY) methods in Graphics2D object. I want to take print-out of the table and also store the image of the table in, say, jpeg format. The print can be in Landscape or Portrait format depending on the size of the JComponent, which the user sets depending on the table size and the font size.
    I have a paintTable( ) method which contains all the drawString( ) and drawLine( ) methods. This method is called from the paint( ) method of the JComponent to achieve normal rendering. The same method is called to get a BufferedImage of the Table. The same method is further called from the implementation of print( ) method from the Printable interface.
    In the paintTable( ) method, I compute the pixel coordinates of the table grid lines and the texts positions in the tables depending on the font width and height obtained as shown below:
            // Set the Font             
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize); // TableFontSize is an int of value 8,9,10 etc.
            graphics.setFont(theFont);
            // Get the Font Size      
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
           System.out.println("FONT WIDTH HEIGHT [" + width + "," + height + "] ");I am getting the following value of width and height when the above print statement is executed with a value of 9 for TableFontSize. FONT WIDTH HEIGHT [18.0,11.3203125]
    The problem I face is :
    While Printing in Landscape mode the value of the 'width' variable printed as given above is becoming negative. Kindly see the values: FONT WIDTH HEIGHT [-9.37793,11.3203125]. This is happening ONLY DURING PRINTING IN LANDSCAPE MODE. This makes my calculation of table grid line coordinates and text positions completely wrong and the table goes out of place.
    Kindly note that, there is no problem during normal rendering and BuffereredImage creation and also while printing in Portrait mode. The problem happens irrespective of Linux or Windows. The value of 'height' is always correct.
    Kindly let me know: If the method I use to get the 'width' and 'height' is correct ? Is there any better way which will work fine in all platforms under all circumstances.
    Kindly help me to sort out this issue.
    Thanks a lot in advance and best regards
    -acj123

    I have extracted the relevent code and made a stand alone program.
    The complete code is enclosed; including that for printing.
    Kindly go through the same and help me to solve this problem.
    Thanks again and regards
    -acj123
    import java.awt.*;
    import java.util.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.awt.print.PrinterJob;
    import java.awt.font.FontRenderContext;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    public class MyCanvas extends JComponent implements Printable, ActionListener
        int TableFontSize = 9;
        private Graphics2D graphics;
        public MyCanvas(JFrame frame)
            frame.getContentPane().setLayout(new BorderLayout());
            frame.getContentPane().add(this, BorderLayout.CENTER);
            frame.setJMenuBar(createMenuBar());
        public JMenuBar createMenuBar()
            JMenuBar menubar = new JMenuBar();
            JButton printButton = new JButton("Print");
            menubar.add(printButton);
            printButton.addActionListener(this);
            JButton imageButton = new JButton("Image");
            menubar.add(imageButton);
            imageButton.addActionListener(this);
            JButton drawButton = new JButton("Draw");
            menubar.add(drawButton);
            drawButton.addActionListener(this);
            JButton closeButton = new JButton("Close");
            menubar.add(closeButton);
            closeButton.addActionListener(this);
            return menubar;
        public void actionPerformed(ActionEvent evt)
            String source = evt.getActionCommand();
            if  (source.equals("Close"))
                System.exit(0);
            if  (source.equals("Image"))
                getImage();
                return;
            if  (source.equals("Print"))
                printCanvas();
                return;
            if  (source.equals("Draw"))
                repaint();
                return;
        public BufferedImage getImage()
            Dimension dim = getSize();
            BufferedImage image = (BufferedImage)createImage(dim.width, dim.height);
            this.graphics = (Graphics2D)image.createGraphics();
            System.out.print("\nImage ");
            paintCanvas();
            return image;
        public void paint(Graphics graph)
            this.graphics = (Graphics2D)graph;
            System.out.print("\nDraw  ");
            paintCanvas();
        public void paintCanvas()
            // Set the Font      
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize);
            graphics.setFont(theFont);  
            // Get the Font Size       
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height= ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
            System.out.print("FONT WIDTH HEIGHT [" + width + ", " + height + "] ");
            System.out.print(" SIZE "+ super.getWidth() +", "+ super.getHeight());
        public int print(Graphics graph, PageFormat pageFormat, int pageIndex)
            throws PrinterException
            if (pageIndex > 0) return Printable.NO_SUCH_PAGE;
            this.graphics = (Graphics2D)graph;
            graphics.translate(0,0);
            paintCanvas();
            return Printable.PAGE_EXISTS;
         *  Interface method for Printing the Canvas on Paper
        public void printCanvas()
            PrinterJob printJob =  PrinterJob.getPrinterJob();
            printJob.setPrintable(this);
            PrintRequestAttributeSet attr = new HashPrintRequestAttributeSet();
            if (super.getWidth() < super.getHeight())
                System.out.print("\nPrint PORTRAIT ");
                attr.add(OrientationRequested.PORTRAIT);
            else
                System.out.print("\nPrint LANDSCAPE ");
                attr.add(OrientationRequested.LANDSCAPE);
            Dimension dim = getSize();
            attr.add(new MediaPrintableArea(1, 1, dim.width, dim.height,
                                                  MediaPrintableArea.MM));
            attr.add(new JobName("MyCanvas", Locale.ENGLISH));
            attr.add(new RequestingUserName("acj123", Locale.ENGLISH));
            if (printJob.printDialog(attr))
                try
                    printJob.print(attr);
                catch(PrinterException ex)
                    ex.printStackTrace();
        public static void main(String[] arg)
            JFrame frame = new JFrame("MyFrame");
            MyCanvas canvas = new MyCanvas(frame);
            frame.setSize(800, 600);
            frame.setVisible(true);
    }

  • Printing the Collective Stock/Requirements List

    Hey All,
    I'm trying to print out the collective stock/requirements list via the menu path "System -> List -> Save -> Local File" but it is shaded out and i cannot do this, just like SD variants are needed to be maintained in own data for the report VA05 so that layouts can be saved, do we also need some such varient maintained in own data to access this option ?
    Best Regards.

    Dear Danish,
    After executing the Stock/Requirements List in MD04,in the top menu List -
    > variable print --->From
    here you can download into a spread sheet or as a local file or as a word processing.
    Or else you can print from here.
    Now come back with your further queries.
    Dear Vivek, MDLD is to print out the MRP list (which is a static one and stock/requirements list is a
    dynamic one).
    Regards
    Mangalraj.S

  • BI 7 Printing

    Hi Everyone,
    We are currently implementing the BI 7 print to PDF functionality and it seems to be very good. We've managed so far to print data tables via the context menu and are aware that printing graphs with the data tables can also be achieve by creating a print button.
    However, we also noticed that when compared to BW3.5, none of the variables are printed to PDF and this area is where my questions lie:
    - Is there anyway to print the variables which doesn't involve creating an info item for each variable / filter?
    - If there is no solution for the above, can we re-implement the BW3.5 print services and use those on a BI 7.0 web template in order to get the variables printed?
    - Why do we see variables etc when using the 0Template but then the print functionality on a standard BI7 report doesn't show these variables?
    Kind Regards,
    Ale

    Hi,
    what about creating one webtemplate with several webitems "webtemplate".
    So you can execute each report, but can print ~20 webtemplates via the master template to one pdf file.
    Kind regards,
    Tobias
    Edited by: Tobias Haas on Aug 30, 2008 3:48 PM

  • Dbx: Can't evaluate local variables in optimized functions

    I turned on the optimization for the whole product. Now I found that I can not print the local variables declared in side the main funciton or inside the function locals.
    eg.
    int factorial (int n)
    int factorial = 1;
    while (n > 1)
    factorial *= n--;
    return factorial;
    When I tried to print n or factorial, I would not able to do so...
    Is there any way can I get the local variables printed?
    Is there any compiler options to overcome this problem and printing the local variables...
    I know this is an difficult question becuase the locals go to Register instead of memory. By reverting it back to memory, I may loose the efficiency I gained with this optimizations.
    options : -fast -xtarget=ultra3 -xarch=v8plusa -g0
    Please let me know....
    #include <iostream>
    #include <string>
    #include <unistd.h>
    #include <stdio.h>
    using namespace std;
    int main(int argc, char **argv)
    FILE *fp=freopen("myfile.txt","w",stdout);
    int bytes_read;
    char buffer[10000];
    std::cout<<"##This should be 0 15238.0.172435 written in to the 1 file with out any HICK-UPs"<<endl;
    FILE *myfp=fopen("myfile.txt","r");
    cerr<<"This goes to std error file"<<endl;
    fseek(myfp, 0, SEEK_END);
    int len = ftell(myfp);
    fseek(myfp, 0, SEEK_SET);
    fread(buffer,len,1,myfp);
    fclose(myfp);
    fclose(fp);
    string mystring(buffer);
    std::string::size_type location=mystring.find("15238.0.172435",0);
    std::string::size_type location1=mystring.find("116530640358374636",0);
    if(location != std::string::npos )
    cerr<<"Buffer Read that is read from file inside the if condition \n<\n"<<buffer<<"\n>"<<endl;
    if(location1 != std::string::npos )
    cerr<<"Buffer Read that is read from file inside the if condition and location1 \n<\n"<<buffer<<"\n>"<<endl;
    remove("myfile.txt");
    return 0;
    stopped in main (optimized) at line 8 in file "fileex.cc"
    8 int main(int argc, char **argv)
    (dbx) cont
    This goes to std error file
    stopped in main (optimized) at line 27 in file "fileex.cc"
    27 int len = ftell(myfp);
    (dbx) print len
    dbx: Can't evaluate local variables in optimized functions

    Dbx typically cannot show auto variables in optimized code. The reason is that the variables typically do not have a stable location, or might be eliminated altogether. Similarly, source code lines don't have a stable relationship to object code. The debug data emitted by Sun compilers is not enough to keep track of these issues.
    We plan to provide better debugging of optimized code in a future release.
    Dbx can show the value returned from a function, which in your case might be enough.

  • Printing blank line

    Hi,
    I am developing one report, its having three repeating frame ie; Department, category and Item. First page its printing properly, in second page onwards after printing heading its printing two line gap ie; The space of tow group headings.
    The following are the details
    Frame properties (All the three frames)
    Vertical Elasticity - Variable
    Print object on - First Page
    Base printing on - Enclosing object
    Fields properties (All ithe items)
    Print object on - First Page
    Base printing on - Enclosing object
    Page 1
    Heading
    Group - A00001
    Category - A01
    Item1
    Page 2
    Heading
    **Blank line
    **Blank line
    Item2
    Please help me to sort out this.
    Regards,
    Jen.

    hello ,
    it might be happen that ur 2nd or 1st frame is repeat with no data
    that's why the two line will be blank
    another posibility is that u hve given two blank line in ur report section that effect on ur sencond page
    see carefully u will find
    bye

  • PPML print stream and InDesign

    I would like to do a job with variable data in InDesign and print it to our Fiery RIP using a PPML print stream. The Fiery supports PPML technology.
    I know there are programs that work with InDesign, (like XMPie), and produce a PPML print stream, but I can't find any info on PPML directly from InDesign.
    Can anyone direct me to the info I need?

    Yes, I've been doing some reading since posting earlier, and I'm currently downloading some demos of InDesign plugins that will do variable data jobs and also print using PPML(DesignMerge Pro and XMPie).
    Do you have any suggestions for VDP software? What looks like it will put PDF/VT to best use?
    I have InDesign, Illustrator, Photoshop and Acrobat, (CS4 Suite) on the Mac. I also have Printshop Mail on the Mac. We're looking into DirectSmile, but that's only available on the PC. We have one of those, too.
    We'd like to be able to generate PURLs as well as do variable print.

  • Problems with SAP Script print program

    Hi,
    I have the following scenario:
    I have a workflow which prints a sapscript with data stored in the workflow container.
    The workflow method 'executeform' populates a selection table and submits it to the print program using:
    SUBMIT ZPRINT_FORM WITH SELECTION-TABLE sel_table
    This print program then populates the form with data and calls the OPEN_FORM/WRITE_FORM/CLOSE_FORM FM's.
    My problem is that some of the variables in the workflow container are CHAR255, when these get moved to the selection table (seltab-low) they get truncated as seltab-low is a CHAR45.   Is there a way round this??
    This is the first time I have used sapscript, I notice that the variables printed on the form correspond to the parameters defined in the Print Program.  I assume therefore that this is why the
    SUBMIT ZPRINT_FORM WITH SELECTION-TABLE sel_table
    has been used and why the OPEN_FORM/WRITE_FORM/CLOSE_FORM was not coded directly in the workflow executeform method.
    Any guidance on how to proceed with this would be appreciated.
    Many Thanks,
    Paul

    Hi Paul,
       In general, in the statement
    SUBMIT ZPRINT_FORM WITH SELECTION-TABLE sel_table.
    sel_table is an internal table with the structure RSPARAMS.
    This variant allows you to set the names and contents of the parameters and selection options dynamically at runtime.
    You can use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure RSPARAMS. By using SUBMIT ... WITH SELECTION-TABLE seltab, you can then pass these values on directly.
    The work around for the variables that cannot be passed using the submit statement, can be exported to Global memory ids and the same can be retrieved in the print progra.
    The syntax for the export and import statements is something like this.
    TABLES INDX.
    TYPES: BEGIN OF ITAB3_TYPE,
              CONT(4),
           END OF ITAB3_TYPE.
    DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',
          F1(4), F2 TYPE P,
          ITAB3 TYPE STANDARD TABLE OF ITAB3_TYPE WITH NON-UNIQUE
                     DEFAULT KEY INITIAL SIZE 2,
          WA_INDX TYPE INDX.
    Fill the data fields before CLUSTR
    before the actual export
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    Export der Daten.
    EXPORT F1    FROM F1
           F2    FROM F2
           ITAB3 FROM ITAB3
           TO DATABASE INDX(ST)  FROM WA_INDX ID INDXKEY.
    *********************************************************TYPES: BEGIN OF TAB3_TYPE,
              CONT(4),
           END OF TAB3_TYPE.
    DATA: INDXKEY LIKE INDX-SRTFD,
          F1(4), F2 TYPE P,
          TAB3 TYPE STANDARD TABLE OF TAB3_TYPE WITH
                    NON-UNIQUE DEFAULT KEY,
          WA_INDX TYPE INDX.
    INDXKEY = 'INDXKEY'.
    IMPORT F1   = F1
           F2   = F2
           TAB3 = TAB3 FROM DATABASE INDX(ST) ID INDXKEY
           TO WA_INDX.
    Regards,
    Ravi

  • Send the MRP results through mail to the user.

    Dear SAP Gurus,
      My client have a requirement where in they want that the MRP results as displayed in MRP list should be sent through mail to the user after the MRP run. Is it possible through the standard functionality ?
    Regards'
    Ankush

    Dear ,
    In MD04/MD05 -Check there is an option called Sending e-mail at the header ( Envelope sysmbol ) .From here you can send e-mail to MRP Controller if your user is identified  as MRP Controller .
    In Customizing for MRP, you can maintain a mail link to inform an MRP controller by using the mail connection function you can do it.In Customizing for MRP, you have entered a mail recipient (individual recipient or recipient group) for the MRP controller in the IMG activity Define MRP controller. You can also integrate the sending of the mail into a workflow .
    If you want to send the mail directly to just one MRP controller and include the MRP list or stock/requirements list automatically, you can use the function for variable printing. When using variable printing, the data is displayed in the form of a list that can be processed and printed. A separate mail function also appears, which you can use to send this print list.
    MRP controller will get mail in that case you are planned to use Workflow to trigger mails for a given condition of MRP evaluation.
    SPROMRP- -EvalutionActivate workflow  mail to mrp controller .Also check SAP Note 426648
    Explore this above functionality with this information and try to check the same
    Regards
    JH

  • Getting error While loading data from ERP integrator to HFM

    Hello,
    We are getting the following error while loading the data from ERPI to HFM.
    2013-12-31 22:44:54,133 INFO  [AIF]: ERPI Process Start, Process ID: 300
    2013-12-31 22:44:54,137 INFO  [AIF]: ERPI Logging Level: DEBUG (5)
    2013-12-31 22:44:54,139 INFO  [AIF]: ERPI Log File: C:\Windows\TEMP\/aif_501_300.log
    2013-12-31 22:44:54,141 INFO  [AIF]: Jython Version: 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
    [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)]
    2013-12-31 22:44:54,143 INFO  [AIF]: Java Platform: java1.7.0_25
    2013-12-31 22:44:56,821 INFO  [AIF]: COMM Process Periods - Insert Periods - START
    2013-12-31 22:44:56,828 DEBUG [AIF]:
            SELECT l.SOURCE_LEDGER_ID
            ,l.SOURCE_LEDGER_NAME
            ,l.SOURCE_COA_ID
            ,l.CALENDAR_ID
            ,'0' SETID
            ,l.PERIOD_TYPE
            ,NULL LEDGER_TABLE_NAME
            FROM AIF_BALANCE_RULES br
            ,AIF_COA_LEDGERS l
            WHERE br.RULE_ID = 27
            AND l.SOURCE_SYSTEM_ID = br.SOURCE_SYSTEM_ID
            AND l.SOURCE_LEDGER_ID = br.SOURCE_LEDGER_ID
    2013-12-31 22:44:56,834 DEBUG [AIF]:
        INSERT INTO AIF_PROCESS_PERIODS (
          PROCESS_ID
          ,PERIODKEY
          ,PERIOD_ID
          ,ADJUSTMENT_PERIOD_FLAG
          ,GL_PERIOD_YEAR
          ,GL_PERIOD_NUM
          ,GL_PERIOD_NAME
          ,GL_PERIOD_CODE
          ,GL_EFFECTIVE_PERIOD_NUM
          ,YEARTARGET
          ,PERIODTARGET
          ,IMP_ENTITY_TYPE
          ,IMP_ENTITY_ID
          ,IMP_ENTITY_NAME
          ,TRANS_ENTITY_TYPE
          ,TRANS_ENTITY_ID
          ,TRANS_ENTITY_NAME
          ,PRIOR_PERIOD_FLAG
          ,SOURCE_LEDGER_ID
                SELECT DISTINCT brl.LOADID PROCESS_ID
                ,pp.PERIODKEY PERIODKEY
                ,prd.PERIOD_ID
                ,COALESCE(prd.ADJUSTMENT_PERIOD_FLAG, 'N') ADJUSTMENT_PERIOD_FLAG
                ,COALESCE(prd.YEAR,0) GL_PERIOD_YEAR
                ,COALESCE(prd.PERIOD_NUM,0) GL_PERIOD_NUM
                ,prd.PERIOD_NAME GL_PERIOD_NAME
                ,COALESCE(prd.PERIOD_CODE, CAST(COALESCE(prd.PERIOD_NUM,0) AS VARCHAR(38))) GL_PERIOD_CODE
                ,(COALESCE(prd.YEAR,0) * 10000 + COALESCE(prd.PERIOD_NUM,0)) GL_EFFECTIVE_PERIOD_NUM
                ,COALESCE(ppa.YEARTARGET, pp.YEARTARGET) YEARTARGET
                ,COALESCE(ppa.PERIODTARGET, pp.PERIODTARGET) PERIODTARGET
                ,'PROCESS_BAL_IMP' IMP_ENTITY_TYPE
                ,(COALESCE(prd.YEAR,0) * 10000 + COALESCE(prd.PERIOD_NUM,0)) IMP_ENTITY_ID
                ,prd.PERIOD_NAME IMP_ENTITY_NAME
                ,'PROCESS_BAL_TRANS' TRANS_ENTITY_TYPE
                ,(COALESCE(prd.YEAR,0) * 10000 + COALESCE(prd.PERIOD_NUM,0)) TRANS_ENTITY_ID
                ,pp.PERIODDESC TRANS_ENTITY_NAME
                ,'N' PRIOR_PERIOD_FLAG
                ,1 SOURCE_LEDGER_ID
                FROM (
                  AIF_BAL_RULE_LOADS brl
                  INNER JOIN TPOVCATEGORY pc
                    ON pc.CATKEY = brl.CATKEY
                  INNER JOIN TPOVPERIOD_FLAT_V pp
                    ON pp.PERIODFREQ = pc.CATFREQ
                    AND pp.PERIODKEY >= brl.START_PERIODKEY
                    AND pp.PERIODKEY <= brl.END_PERIODKEY
                  LEFT OUTER JOIN TPOVPERIODADAPTOR_FLAT_V ppa
                    ON ppa.PERIODKEY = pp.PERIODKEY
                    AND ppa.PERIODFREQ = pp.PERIODFREQ
                    AND ppa.INTSYSTEMKEY = 'FMTEST2'
                INNER JOIN AIF_GL_PERIODS_STG prd
                  ON prd.SOURCE_SYSTEM_ID = 3
                  AND prd.CALENDAR_ID IN ('10000')
          AND prd.SETID = '0'
          AND prd.PERIOD_TYPE = 'Month'
                  AND prd.ADJUSTMENT_PERIOD_FLAG = 'N'
                  AND prd.START_DATE > pp.PRIORPERIODKEY
                  AND prd.START_DATE <= pp.PERIODKEY
                WHERE brl.LOADID = 300
                ORDER BY pp.PERIODKEY
                ,GL_EFFECTIVE_PERIOD_NUM
    2013-12-31 22:44:56,915 INFO  [AIF]: COMM Process Periods - Insert Periods - END
    2013-12-31 22:44:56,945 INFO  [AIF]: COMM Process Periods - Insert Process Details - START
    2013-12-31 22:44:56,952 DEBUG [AIF]:
        INSERT INTO AIF_PROCESS_DETAILS (
          PROCESS_ID
          ,ENTITY_TYPE
          ,ENTITY_ID
          ,ENTITY_NAME
          ,ENTITY_NAME_ORDER
          ,TARGET_TABLE_NAME
          ,EXECUTION_START_TIME
          ,EXECUTION_END_TIME
          ,RECORDS_PROCESSED
          ,STATUS
          ,LAST_UPDATED_BY
          ,LAST_UPDATE_DATE
          SELECT PROCESS_ID
          ,ENTITY_TYPE
          ,ENTITY_ID
          ,ENTITY_NAME
          ,ENTITY_NAME_ORDER
          ,'AIF_EBS_GL_BALANCES_STG' TARGET_TABLE_NAME
          ,CURRENT_TIMESTAMP EXECUTION_START_TIME
          ,NULL EXECUTION_END_TIME
          ,0 RECORDS_PROCESSED
          ,'PENDING' STATUS
          ,'native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER' LAST_UPDATED_BY
          ,CURRENT_TIMESTAMP LAST_UPDATE_DATE
          FROM (
            SELECT DISTINCT PROCESS_ID
            ,IMP_ENTITY_TYPE ENTITY_TYPE
            ,IMP_ENTITY_ID ENTITY_ID
            ,IMP_ENTITY_NAME ENTITY_NAME
            ,(COALESCE(SOURCE_LEDGER_ID,0) * 100000000 + GL_EFFECTIVE_PERIOD_NUM) ENTITY_NAME_ORDER
            FROM AIF_PROCESS_PERIODS
            WHERE PROCESS_ID = 300
          ) q
          ORDER BY ENTITY_NAME_ORDER
    2013-12-31 22:44:56,963 DEBUG [AIF]:
        INSERT INTO AIF_PROCESS_DETAILS (
          PROCESS_ID
          ,ENTITY_TYPE
          ,ENTITY_ID
          ,ENTITY_NAME
          ,ENTITY_NAME_ORDER
          ,TARGET_TABLE_NAME
          ,EXECUTION_START_TIME
          ,EXECUTION_END_TIME
          ,RECORDS_PROCESSED
          ,STATUS
          ,LAST_UPDATED_BY
          ,LAST_UPDATE_DATE
          SELECT PROCESS_ID
          ,ENTITY_TYPE
          ,ENTITY_ID
          ,ENTITY_NAME
          ,ENTITY_NAME_ORDER
          ,'TDATASEG' TARGET_TABLE_NAME
          ,CURRENT_TIMESTAMP EXECUTION_START_TIME
          ,NULL EXECUTION_END_TIME
          ,0 RECORDS_PROCESSED
          ,'PENDING' STATUS
          ,'native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER' LAST_UPDATED_BY
          ,CURRENT_TIMESTAMP LAST_UPDATE_DATE
          FROM (
            SELECT PROCESS_ID
            ,TRANS_ENTITY_TYPE ENTITY_TYPE
            ,MIN(TRANS_ENTITY_ID) ENTITY_ID
            ,TRANS_ENTITY_NAME ENTITY_NAME
            ,MIN(COALESCE(SOURCE_LEDGER_ID,0) * 100000000 + GL_EFFECTIVE_PERIOD_NUM) ENTITY_NAME_ORDER
            FROM AIF_PROCESS_PERIODS
            WHERE PROCESS_ID = 300
            AND PRIOR_PERIOD_FLAG = 'N'
            GROUP BY PROCESS_ID
            ,TRANS_ENTITY_TYPE
            ,TRANS_ENTITY_NAME
          ) q
          ORDER BY ENTITY_NAME_ORDER
    2013-12-31 22:44:56,970 INFO  [AIF]: COMM Process Periods - Insert Process Details - END
    2013-12-31 22:44:57,407 DEBUG [AIF]: EBS/FS GL Balances Print Variables - Printing Variables - START
    2013-12-31 22:44:57,408 DEBUG [AIF]:
    p_process_id:  300
    p_sql_db_type:  ORACLE
    p_partitionkey:  12
    p_rule_id:  27
    p_source_system_id:  3
    p_application_id:  26
    p_target_application_type:  HFM
    p_is_multi_currency:  true
    p_data_load_method:  CLASSIC_VIA_EPMI
    p_bal_balance_method_code:  STANDARD
    p_bal_ledger_group_code:  SINGLE
    p_bal_amount_type:  MONETARY
    p_prd_entity_name:  JAN-13
    p_prd_period_id:  135
    p_prd_gl_period_name:  JAN-13
    p_prd_source_ledger_id:  1
    p_prd_source_coa_id:  101
    p_source_ledger_id:  1
    p_source_coa_id:  101
    p_bal_actual_flag:  A
    p_bal_seg_column_name:  SEGMENT1
    p_max_ccid_loaded_to_stg:  148137
    2013-12-31 22:44:57,408 DEBUG [AIF]: EBS/FS GL Balances Print Variables - Printing Variables - END
    2013-12-31 22:44:57,806 INFO  [AIF]: LKM EBS/FS Extract Type - Load Audit AND Full Refresh - START
    2013-12-31 22:44:57,817 DEBUG [AIF]:
        SELECT p.PROCESS_ID
        ,br.RULE_NAME
        ,l.SOURCE_LEDGER_NAME
        FROM AIF_GL_LOAD_AUDIT aud
        ,AIF_PROCESSES p
        ,AIF_BALANCE_RULES br
        ,AIF_COA_LEDGERS l
        WHERE aud.SOURCE_SYSTEM_ID = 3
        AND aud.SOURCE_LEDGER_ID = 1
        AND aud.GL_PERIOD_ID = 135
        AND aud.BALANCE_TYPE = 'A'
        AND p.PROCESS_ID = aud.LAST_LOADID
        AND p.STATUS = 'RUNNING'
        AND p.PROCESS_ID <> 300
        AND br.RULE_ID = p.RULE_ID
        AND l.SOURCE_SYSTEM_ID = aud.SOURCE_SYSTEM_ID
        AND l.SOURCE_LEDGER_ID = aud.SOURCE_LEDGER_ID
    2013-12-31 22:44:57,826 DEBUG [AIF]:
            SELECT 'Y' VALID_FLAG
            FROM GL_PERIOD_STATUSES
            WHERE APPLICATION_ID = 101
            AND SET_OF_BOOKS_ID = 1
            AND PERIOD_NAME = 'JAN-13'
            AND CLOSING_STATUS IN ( 'O','C','P' )
    2013-12-31 22:44:57,847 DEBUG [AIF]:
            SELECT 'Y' EXISTS_FLAG
            FROM GL_TRACK_DELTA_BALANCES
            WHERE SET_OF_BOOKS_ID = 1
            AND PROGRAM_CODE = 'FEM'
            AND PERIOD_NAME = 'JAN-13'
            AND ACTUAL_FLAG = 'A'
            AND EXTRACT_LEVEL_CODE = 'DTL'
            AND CURRENCY_TYPE_CODE = 'B'
            AND ENABLED_FLAG = 'Y'
    2013-12-31 22:44:57,883 DEBUG [AIF]:
          SELECT MAX(DELTA_RUN_ID) MAX_DELTA_RUN_ID
          FROM GL_BALANCES_DELTA
          WHERE SET_OF_BOOKS_ID = 1
          AND PERIOD_NAME = 'JAN-13'
          AND ACTUAL_FLAG = 'A'
    2013-12-31 22:44:57,898 DEBUG [AIF]:
        SELECT brl.EXECUTION_MODE
        ,( SELECT CASE COUNT(aud.DELTA_RUN_ID) WHEN 0 THEN 'N' ELSE 'Y' END
          FROM AIF_GL_LOAD_AUDIT aud
          WHERE aud.SOURCE_SYSTEM_ID = 3
          AND aud.SOURCE_LEDGER_ID = 1
          AND aud.GL_PERIOD_ID = 135
          AND aud.BALANCE_TYPE = 'A'
          AND aud.LAST_LOADID <> brl.LOADID
          AND COALESCE( aud.STATUS, 'SUCCESS' ) = 'SUCCESS'
         ) GL_LOAD_AUDIT_SUCCESS_FLAG
        ,( SELECT CASE COUNT(aud.DELTA_RUN_ID) WHEN 0 THEN 'N' ELSE 'Y' END
          FROM AIF_GL_LOAD_AUDIT aud
          WHERE aud.SOURCE_SYSTEM_ID = 3
          AND aud.SOURCE_LEDGER_ID = 1
          AND aud.GL_PERIOD_ID = 135
          AND aud.BALANCE_TYPE = 'A'
          AND aud.LAST_LOADID <> brl.LOADID
          AND aud.STATUS = 'RUNNING'
         ) GL_LOAD_AUDIT_RUNNING_FLAG
        FROM AIF_BAL_RULE_LOADS brl
        WHERE brl.LOADID = 300
    2013-12-31 22:44:57,904 DEBUG [AIF]: 
        INSERT INTO AIF_GL_LOAD_AUDIT ( LAST_LOADID
          ,DELTA_RUN_ID
          ,SOURCE_SYSTEM_ID
          ,SOURCE_LEDGER_ID
          ,GL_PERIOD_ID
          ,BALANCE_TYPE
          ,GL_EXTRACT_TYPE
          ,STATUS
         ) VALUES ( 300
          ,0
          ,3
          ,1
          ,135
          ,'A'
          ,'FULLREFRESH'
          ,'RUNNING'
    2013-12-31 22:44:57,907 DEBUG [AIF]:
          DELETE FROM AIF_EBS_GL_BALANCES_STG
          WHERE SOURCE_SYSTEM_ID = 3
          AND SOURCE_COA_ID = 101
          AND SOURCE_LEDGER_ID = 1
          AND ACTUAL_FLAG = 'A'
          AND PERIOD_NAME = 'JAN-13'
    2013-12-31 22:44:59,283 INFO  [AIF]: LKM EBS/FS Extract Type - Load Audit AND Full Refresh - END
    2013-12-31 22:45:06,507 INFO  [AIF]: COMM End Process Detail - Update Process Detail - START
    2013-12-31 22:45:06,514 DEBUG [AIF]:
        UPDATE AIF_PROCESS_DETAILS
        SET STATUS = 'SUCCESS'
        ,RECORDS_PROCESSED = CASE
          WHEN RECORDS_PROCESSED IS NULL THEN 0
          ELSE RECORDS_PROCESSED
        END + 57408
        ,EXECUTION_END_TIME = CURRENT_TIMESTAMP
        ,LAST_UPDATED_BY = CASE
          WHEN ('native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER' IS NULL) THEN LAST_UPDATED_BY
          ELSE 'native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER'
        END
        ,LAST_UPDATE_DATE = CURRENT_TIMESTAMP
        WHERE PROCESS_ID = 300
        AND ENTITY_TYPE = 'PROCESS_BAL_IMP'
        AND ENTITY_NAME = 'JAN-13'
    2013-12-31 22:45:06,519 INFO  [AIF]: COMM End Process Detail - Update Process Detail - END
    2013-12-31 22:45:07,106 INFO  [AIF]: EBS/FS Load Data - Load TDATASEG_T - START
    2013-12-31 22:45:07,112 INFO  [AIF]:
    Import Data from Source for Period 'January 2013'
    2013-12-31 22:45:07,115 DEBUG [AIF]: 
        SELECT brl.PARTITIONKEY
        ,brl.CATKEY
        ,brl.PLAN_TYPE
        ,CASE brl.PLAN_TYPE
          WHEN 'PLAN1' THEN 1
          WHEN 'PLAN2' THEN 2
          WHEN 'PLAN3' THEN 3
          WHEN 'PLAN4' THEN 4
          WHEN 'PLAN5' THEN 5
          ELSE 0
        END PLAN_NUMBER
        ,brl.EXECUTION_MODE
        ,br.AMOUNT_TYPE
        ,br.BALANCE_SELECTION
        ,br.CURRENCY_CODE
        ,br.INCL_ZERO_BALANCE_FLAG
        ,br.BAL_SEG_VALUE_OPTION_CODE
        ,COALESCE(br.BALANCE_AMOUNT_BS, 'YTD') BALANCE_AMOUNT_BS
        ,COALESCE(br.BALANCE_AMOUNT_IS, 'PERIODIC') BALANCE_AMOUNT_IS
        FROM AIF_BAL_RULE_LOADS brl
        ,AIF_TARGET_APPLICATIONS app
        ,AIF_BALANCE_RULES br
        WHERE brl.LOADID = 300
        AND app.APPLICATION_ID = brl.APPLICATION_ID
        AND br.RULE_ID = brl.RULE_ID
    2013-12-31 22:45:07,120 DEBUG [AIF]: 
          SELECT PERIODKEY
          FROM TPOVPERIOD
          WHERE PERIODDESC = 'January 2013'
    2013-12-31 22:45:07,122 INFO  [AIF]:
      Import Data from Source for Ledger 'JWR Books'
    2013-12-31 22:45:07,125 DEBUG [AIF]:
          SELECT COA_SEGMENT_NAME
          ,ACCOUNT_TYPE_FLAG
          ,BALANCE_TYPE_FLAG
          FROM AIF_COA_SEGMENTS
          WHERE SOURCE_SYSTEM_ID = 3
          AND SOURCE_COA_ID = '101'
          AND (
            ACCOUNT_TYPE_FLAG = 'Y'
            OR BALANCE_TYPE_FLAG = 'Y'
    2013-12-31 22:45:07,127 DEBUG [AIF]:
          SELECT adim.BALANCE_COLUMN_NAME DIMNAME
          ,adim.DIMENSION_ID
          ,dim.TARGET_DIMENSION_CLASS_NAME
          ,(SELECT COA_SEGMENT_NAME
            FROM AIF_COA_SEGMENTS cs
            WHERE cs.COA_LINE_ID = tiie.IMPSOURCECOALINEID1
          ) COA_SEGMENT_NAME1
          ,(SELECT COA_SEGMENT_NAME
            FROM AIF_COA_SEGMENTS cs
            WHERE cs.COA_LINE_ID = tiie.IMPSOURCECOALINEID2
          ) COA_SEGMENT_NAME2
          ,(SELECT COA_SEGMENT_NAME
            FROM AIF_COA_SEGMENTS cs
            WHERE cs.COA_LINE_ID = tiie.IMPSOURCECOALINEID3
          ) COA_SEGMENT_NAME3
          ,(SELECT COA_SEGMENT_NAME
            FROM AIF_COA_SEGMENTS cs
            WHERE cs.COA_LINE_ID = tiie.IMPSOURCECOALINEID4
          ) COA_SEGMENT_NAME4
          ,(SELECT COA_SEGMENT_NAME
            FROM AIF_COA_SEGMENTS cs
            WHERE cs.COA_LINE_ID = tiie.IMPSOURCECOALINEID5
          ) COA_SEGMENT_NAME5
          ,(SELECT CASE mdd.ORPHAN_OPTION_CODE
              WHEN 'CHILD' THEN 'N'
              WHEN 'ROOT' THEN 'N'
              ELSE 'Y'
            END DIMENSION_FILTER_FLAG
            FROM AIF_MAP_DIM_DETAILS_V mdd
            ,AIF_MAPPING_RULES mr
            WHERE mr.PARTITIONKEY = tpp.PARTITIONKEY
            AND mdd.RULE_ID = mr.RULE_ID
            AND mdd.DIMENSION_ID = adim.DIMENSION_ID
          ) DIMENSION_FILTER_FLAG
          ,tiie.IMPCONCATCHAR
          FROM TPOVPARTITION tpp
          INNER JOIN AIF_TARGET_APPL_DIMENSIONS adim
            ON adim.APPLICATION_ID = 26
          INNER JOIN AIF_DIMENSIONS dim
            ON dim.DIMENSION_ID = adim.DIMENSION_ID
          LEFT OUTER JOIN TBHVIMPITEMERPI tiie
            ON tiie.IMPGROUPKEY = tpp.PARTIMPGROUP
            AND tiie.IMPFLDFIELDNAME = adim.BALANCE_COLUMN_NAME
            AND tiie.IMPMAPTYPE = 'ERP'
          WHERE tpp.PARTITIONKEY = 12
          AND adim.BALANCE_COLUMN_NAME IS NOT NULL
          ORDER BY adim.BALANCE_COLUMN_NAME
    2013-12-31 22:45:07,154 DEBUG [AIF]:
            INSERT INTO TDATASEG_T (
          LOADID
          ,PARTITIONKEY
          ,CATKEY
          ,RULE_ID
          ,PERIODKEY
          ,VALID_FLAG
          ,CHANGESIGN
          ,CODE_COMBINATION_ID
          ,SOURCE_LEDGER_ID
          ,GL_PERIOD_YEAR
          ,GL_PERIOD_NUM
          ,YEAR
          ,PERIOD
          ,ATTR1
          ,ATTR2
          ,ATTR3
          ,ATTR4
          ,ATTR5
          ,ATTR6
          ,ATTR7
          ,ATTR8
          ,ATTR9
          ,ATTR10
          ,ATTR11
          ,ATTR12
          ,ATTR13
          ,ATTR14
            ,ACCOUNT
            ,ACCOUNTX
            ,ENTITY
            ,ENTITYX
            ,ICP
            ,ICPX
            ,UD1
            ,UD1X
            ,UD2
            ,UD2X
            ,UD3
            ,UD3X
            ,UD4
            ,UD4X
          ,DATAVIEW
              ,DATAKEY
              ,STAT_BALANCE_FLAG
              ,CURKEY
              ,AMOUNT_PTD
              ,AMOUNT_YTD
              ,AMOUNT
              ,AMOUNTX
          SELECT pprd.PROCESS_ID LOADID
          ,12 PARTITIONKEY
          ,4 CATKEY
          ,27 RULE_ID
          ,pprd.PERIODKEY
          ,'Y' VALID_FLAG
          ,0 CHANGESIGN
          ,ccid.CODE_COMBINATION_ID
          ,bal.SOURCE_LEDGER_ID
          ,pprd.GL_PERIOD_YEAR
          ,pprd.GL_PERIOD_NUM
          ,pprd.YEARTARGET YEAR
          ,pprd.PERIODTARGET PERIOD
          ,pprd.PROCESS_ID ATTR1
          ,bal.SOURCE_SYSTEM_ID ATTR2
          ,bal.SOURCE_LEDGER_ID ATTR3
          ,pprd.GL_PERIOD_YEAR ATTR4
          ,pprd.GL_PERIOD_NAME ATTR5
          ,bal.ACTUAL_FLAG ATTR6
          ,bal.BUDGET_VERSION_ID ATTR7
          ,bal.ENCUMBRANCE_TYPE_ID ATTR8
          ,ccid.ACCOUNT_TYPE ATTR9
          ,NULL ATTR10
          ,NULL ATTR11
          ,NULL ATTR12
          ,NULL ATTR13
          ,NULL ATTR14
            ,ccid.SEGMENT4 ACCOUNT
            ,NULL ACCOUNTX
            ,ccid.SEGMENT1 ENTITY
            ,NULL ENTITYX
            ,NULL ICP
            ,NULL ICPX
            ,ccid.SEGMENT5 UD1
            ,NULL UD1X
            ,ccid.SEGMENT3 UD2
            ,NULL UD2X
            ,ccid.SEGMENT6 UD3
            ,NULL UD3X
            ,ccid.SEGMENT2 UD4
            ,NULL UD4X
          ,( CASE WHEN ccid.ACCOUNT_TYPE IN ('R','E','D','C') THEN 'Periodic' ELSE 'YTD' END ) DATAVIEW
            ,TDATASEG_DATAKEY_S.NEXTVAL
            ,'N' STAT_BALANCE_FLAG
            ,bal.CURRENCY_CODE CURKEY
            ,( CASE WHEN ccid.ACCOUNT_TYPE IN ('A','E','D') THEN 1 ELSE -1 END ) * ( bal.PERIOD_NET_DR - bal.PERIOD_NET_CR ) AMOUNT_PTD
            ,( CASE WHEN ccid.ACCOUNT_TYPE IN ('A','E','D') THEN 1 ELSE -1 END ) * ( bal.BEGIN_BALANCE_DR - bal.BEGIN_BALANCE_CR + bal.PERIOD_NET_DR - bal.PERIOD_NET_CR ) AMOUNT_YTD
            ,( CASE WHEN ccid.ACCOUNT_TYPE IN ('A','E','D') THEN 1 ELSE -1 END ) *
            ( CASE
                WHEN ccid.ACCOUNT_TYPE IN ('R','E','D','C') THEN ( bal.PERIOD_NET_DR - bal.PERIOD_NET_CR )
                ELSE ( bal.BEGIN_BALANCE_DR - bal.BEGIN_BALANCE_CR + bal.PERIOD_NET_DR - bal.PERIOD_NET_CR )
              END
             AMOUNT
            ,( CASE WHEN ccid.ACCOUNT_TYPE IN ('A','E','D') THEN 1 ELSE -1 END ) *
            ( CASE
                WHEN ccid.ACCOUNT_TYPE IN ('R','E','D','C') THEN ( bal.PERIOD_NET_DR - bal.PERIOD_NET_CR )
                ELSE ( bal.BEGIN_BALANCE_DR - bal.BEGIN_BALANCE_CR + bal.PERIOD_NET_DR - bal.PERIOD_NET_CR )
              END
             AMOUNTX
          FROM AIF_EBS_GL_BALANCES_STG_V bal
          ,AIF_EBS_GL_CCID_STG ccid
          ,AIF_PROCESS_PERIODS pprd
          WHERE bal.SOURCE_SYSTEM_ID = 3
          AND bal.SOURCE_LEDGER_ID = 1
          AND bal.ACTUAL_FLAG = 'A'
          AND ccid.SOURCE_SYSTEM_ID = bal.SOURCE_SYSTEM_ID
          AND ccid.SOURCE_COA_ID = bal.SOURCE_COA_ID
          AND ccid.CODE_COMBINATION_ID = bal.CODE_COMBINATION_ID
          AND pprd.PROCESS_ID = 300
          AND pprd.PERIODKEY = '2013-01-01'
          AND pprd.SOURCE_LEDGER_ID = bal.SOURCE_LEDGER_ID
          AND pprd.GL_PERIOD_NAME = bal.PERIOD_NAME
            AND (
              bal.BEGIN_BALANCE_DR <> 0
              OR bal.BEGIN_BALANCE_CR <> 0
              OR bal.PERIOD_NET_DR <> 0
              OR bal.PERIOD_NET_CR <> 0
            AND bal.CURRENCY_CODE <> 'STAT'
              AND bal.TRANSLATED_FLAG IS NULL
    2013-12-31 22:45:09,269 INFO  [AIF]: Monetary Data Rows Imported from Source: 12590
    2013-12-31 22:45:09,293 DEBUG [AIF]: 
            INSERT INTO AIF_APPL_LOAD_AUDIT (
              LOADID
              ,TARGET_APPLICATION_TYPE
              ,TARGET_APPLICATION_NAME
              ,PLAN_TYPE
              ,SOURCE_LEDGER_ID
              ,EPM_YEAR
              ,EPM_PERIOD
              ,SNAPSHOT_FLAG
              ,PARTITIONKEY
              ,CATKEY
              ,RULE_ID
              ,PERIODKEY
              ,EXPORT_TO_TARGET_FLAG
            SELECT DISTINCT PROCESS_ID LOADID
            ,'HFM' TARGET_APPLICATION_TYPE
            ,'FMTEST2' TARGET_APPLICATION_NAME
            ,NULL PLAN_TYPE
            ,SOURCE_LEDGER_ID
            ,YEARTARGET EPM_YEAR
            ,PERIODTARGET EPM_PERIOD
            ,'Y' SNAPSHOT_FLAG
            ,12 PARTITIONKEY
            ,4 CATKEY
            ,27 RULE_ID
            ,PERIODKEY
            ,'N' EXPORT_TO_TARGET_FLAG
            FROM AIF_PROCESS_PERIODS
            WHERE PROCESS_ID = 300
            AND PERIODKEY = '2013-01-01'
            AND SOURCE_LEDGER_ID = 1
    2013-12-31 22:45:09,297 DEBUG [AIF]:
            INSERT INTO AIF_APPL_LOAD_PRD_AUDIT (
              LOADID
              ,SOURCE_LEDGER_ID
              ,GL_PERIOD_ID
              ,DELTA_RUN_ID
              ,PARTITIONKEY
              ,CATKEY
              ,RULE_ID
              ,PERIODKEY
            SELECT DISTINCT pprd.PROCESS_ID LOADID
            ,pprd.SOURCE_LEDGER_ID
            ,pprd.PERIOD_ID GL_PERIOD_ID
            ,(SELECT MAX(gl.DELTA_RUN_ID)
              FROM AIF_GL_LOAD_AUDIT gl
              WHERE gl.SOURCE_SYSTEM_ID = 3
              AND gl.SOURCE_LEDGER_ID = pprd.SOURCE_LEDGER_ID
              AND gl.BALANCE_TYPE = 'A'
              AND gl.GL_PERIOD_ID = pprd.PERIOD_ID
            ) DELTA_RUN_ID
            ,12 PARTITIONKEY
            ,4 CATKEY
            ,27 RULE_ID
            ,pprd.PERIODKEY
            FROM AIF_PROCESS_PERIODS pprd
            WHERE pprd.PROCESS_ID = 300
            AND pprd.PERIODKEY = '2013-01-01'
            AND pprd.SOURCE_LEDGER_ID = 1
    2013-12-31 22:45:09,302 INFO  [AIF]:
    Total Data Rows Imported from Source: 12590
    2013-12-31 22:45:09,305 INFO  [AIF]: EBS/FS Load Data - Load TDATASEG_T - END
    2013-12-31 22:45:09,381 INFO  [AIF]: COMM Update Data - Init DataLoadUtil - START
    2013-12-31 22:45:09,385 INFO  [AIF]: COMM Update Data - Init DataLoadUtil - END
    2013-12-31 22:45:09,485 INFO  [AIF]: COMM Update Data - Update TDATASEG_T/TDATASEGW - START
    2013-12-31 22:45:09,491 DEBUG [AIF]:
          DELETE FROM TDATASEG_T
          WHERE LOADID = 300
          AND PARTITIONKEY = 12
          AND CATKEY = 4
          AND PERIODKEY = '2013-01-01'
          AND AMOUNT = 0
    2013-12-31 22:45:09,559 WARN  [AIF]:
    Warning: Data rows with zero balances exist
    2013-12-31 22:45:09,636 INFO  [AIF]: Zero Balance Data Rows Deleted: 1879
    2013-12-31 22:45:09,654 DEBUG [AIF]:
          SELECT DIMNAME
          ,CASE WHEN RULE_ID IS NULL THEN 'N' ELSE 'Y' END RULE_MAP_FLAG
          ,SRCKEY
          ,TARGKEY
          ,WHERECLAUSETYPE
          ,WHERECLAUSEVALUE
          ,CHANGESIGN
          ,SEQUENCE
          ,DATAKEY
          ,MAPPING_TYPE
          FROM (
            SELECT DISTINCT tdm.DIMNAME
            ,tdm.RULE_ID
            ,NULL SRCKEY
            ,NULL TARGKEY
            ,tdm.WHERECLAUSETYPE
            ,tdm.WHERECLAUSEVALUE
            ,NULL CHANGESIGN
            ,1 SEQUENCE
            ,COALESCE(tdm.SYSTEM_GENERATED_FLAG,'N') SYSTEM_GENERATED_FLAG     
            ,NULL DATAKEY
            ,CASE
              WHEN tdm.WHERECLAUSETYPE IS NULL THEN 1
              ELSE 3
            END MAPPING_TYPE
            FROM TDATAMAP_T tdm
            WHERE tdm.LOADID = 300
            AND tdm.PARTITIONKEY = 12
            AND tdm.TDATAMAPTYPE = 'ERP'
            AND (tdm.RULE_ID IS NULL OR tdm.RULE_ID = 27)
            AND tdm.WHERECLAUSETYPE IS NULL
            UNION ALL
            SELECT tdm.DIMNAME
            ,tdm.RULE_ID
            ,tdm.SRCKEY
            ,tdm.TARGKEY
            ,tdm.WHERECLAUSETYPE
            ,tdm.WHERECLAUSEVALUE
            ,tdm.CHANGESIGN
            ,CASE tpp.PARTSEQMAP
              WHEN 0 THEN CASE
                WHEN (tdm.WHERECLAUSETYPE = 'MULTIDIM') THEN 2
                WHEN (tdm.WHERECLAUSETYPE = 'BETWEEN') THEN 3
                WHEN (tdm.WHERECLAUSETYPE = 'LIKE') THEN 4
                ELSE 0
              END     
              ELSE tdm.SEQUENCE
            END SEQUENCE
            ,COALESCE(tdm.SYSTEM_GENERATED_FLAG,'N') SYSTEM_GENERATED_FLAG
            ,tdm.DATAKEY
            ,CASE
              WHEN tdm.WHERECLAUSETYPE IS NULL THEN 1
              ELSE 3
            END MAPPING_TYPE
            FROM TDATAMAP_T tdm
            INNER JOIN TPOVPARTITION tpp
              ON tpp.PARTITIONKEY = tdm.PARTITIONKEY
            WHERE tdm.LOADID = 300
            AND tdm.PARTITIONKEY = 12
            AND tdm.TDATAMAPTYPE = 'ERP'
            AND (tdm.RULE_ID IS NULL OR tdm.RULE_ID = 27)
            AND tdm.WHERECLAUSETYPE IN ('MULTIDIM','BETWEEN','LIKE')
          ) q
          ORDER BY DIMNAME
          ,RULE_ID
          ,SEQUENCE
          ,SYSTEM_GENERATED_FLAG
          ,SRCKEY
    2013-12-31 22:45:09,672 INFO  [AIF]:
    Processing Mappings for Column 'ACCOUNT'
    2013-12-31 22:45:09,677 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET ACCOUNTX = ACCOUNT
            ,ACCOUNTR = 121
            ,ACCOUNTF = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '*' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND ACCOUNTX IS NULL
            AND (1=1)
    2013-12-31 22:45:10,044 INFO  [AIF]: Data Rows Updated by Location Mapping 'Like' (LIKE): 10711
    2013-12-31 22:45:10,053 INFO  [AIF]:
    Processing Mappings for Column 'ENTITY'
    2013-12-31 22:45:10,057 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET ENTITYX = ENTITY
            ,ENTITYR = 122
            ,ENTITYF = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '*' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND ENTITYX IS NULL
            AND (1=1)
    2013-12-31 22:45:10,426 INFO  [AIF]: Data Rows Updated by Location Mapping 'Like' (LIKE): 10711
    2013-12-31 22:45:10,435 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET ENTITYX = ENTITY
            ,ENTITYR = 132
            ,ENTITYF = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '*' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND ENTITYX IS NULL
            AND (1=1)
    2013-12-31 22:45:10,446 INFO  [AIF]: Data Rows Updated by Location Mapping 'DEFAULT' (LIKE): 0
    2013-12-31 22:45:10,448 INFO  [AIF]:
    Processing Mappings for Column 'ICP'
    2013-12-31 22:45:10,452 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET ICPX = '[ICP None]'
            ,ICPR = 130
            ,ICPF = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '[ICP None]' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND ICPX IS NULL
            AND (1=1)
    2013-12-31 22:45:10,784 INFO  [AIF]: Data Rows Updated by Location Mapping 'Like' (LIKE): 10711
    2013-12-31 22:45:10,798 INFO  [AIF]:
    Processing Mappings for Column 'UD1'
    2013-12-31 22:45:10,802 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET UD1X = '[None]'
            ,UD1R = 124
            ,UD1F = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '[None]' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND UD1X IS NULL
            AND (1=1)
    2013-12-31 22:45:11,134 INFO  [AIF]: Data Rows Updated by Location Mapping 'Like' (LIKE): 10711
    2013-12-31 22:45:11,156 INFO  [AIF]:
    Processing Mappings for Column 'UD2'
    2013-12-31 22:45:11,160 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET UD2X = '[None]'
            ,UD2R = 123
            ,UD2F = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '[None]' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND UD2X IS NULL
            AND (1=1)
    2013-12-31 22:45:11,517 INFO  [AIF]: Data Rows Updated by Location Mapping 'Like' (LIKE): 10711
    2013-12-31 22:45:11,531 INFO  [AIF]:
    Processing Mappings for Column 'UD3'
    2013-12-31 22:45:11,535 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET UD3X = '[None]'
            ,UD3R = 125
            ,UD3F = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '[None]' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND UD3X IS NULL
            AND (1=1)
    2013-12-31 22:45:11,870 INFO  [AIF]: Data Rows Updated by Location Mapping 'Like' (LIKE): 10711
    2013-12-31 22:45:11,883 INFO  [AIF]:
    Processing Mappings for Column 'UD4'
    2013-12-31 22:45:11,887 DEBUG [AIF]:
            UPDATE TDATASEG_T
            SET UD4X = '[None]'
            ,UD4R = 128
            ,UD4F = 3
            ,AMOUNTX = AMOUNTX * 1
            ,CHANGESIGN = CASE 1
              WHEN -1 THEN CASE CHANGESIGN
                WHEN 1 THEN 0
                WHEN 0 THEN 1
                ELSE CHANGESIGN
              END
              ELSE CHANGESIGN
            END
            ,VALID_FLAG = CASE '[None]' WHEN 'IGNORE' THEN 'I' ELSE VALID_FLAG END
            WHERE LOADID = 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND PERIODKEY = '2013-01-01'
            AND UD4X IS NULL
            AND (1=1)
    2013-12-31 22:45:12,192 INFO  [AIF]: Data Rows Updated by Location Mapping 'Like' (LIKE): 10711
    2013-12-31 22:45:12,204 DEBUG [AIF]:
          UPDATE TDATASEG_T
          SET ATTR14 = DATAKEY
          WHERE LOADID = 300
          AND PARTITIONKEY = 12
          AND CATKEY = 4
          AND PERIODKEY = '2013-01-01'
    2013-12-31 22:45:12,739 DEBUG [AIF]:
              UPDATE TDATASEG_T
              SET VALID_FLAG = 'N'
              WHERE 1=1
              AND (
                (1=0)
              OR TDATASEG_T.ACCOUNTX IS NULL
              OR TDATASEG_T.ENTITYX IS NULL
              OR TDATASEG_T.ICPX IS NULL
              OR TDATASEG_T.UD1X IS NULL
              OR TDATASEG_T.UD2X IS NULL
              OR TDATASEG_T.UD3X IS NULL
              OR TDATASEG_T.UD4X IS NULL
              AND LOADID = 300
              AND PARTITIONKEY = 12
              AND CATKEY = 4
              AND PERIODKEY = '2013-01-01'
              AND VALID_FLAG = 'Y'
    2013-12-31 22:45:12,754 INFO  [AIF]:
    Total Data Rows available for Export to Target: 10711
    2013-12-31 22:45:12,773 INFO  [AIF]: COMM Update Data - Update TDATASEG_T/TDATASEGW - END
    2013-12-31 22:45:12,808 INFO  [AIF]: COMM End Process Detail - Update Process Detail - START
    2013-12-31 22:45:12,823 DEBUG [AIF]:
        UPDATE AIF_PROCESS_DETAILS
        SET STATUS = 'SUCCESS'
        ,RECORDS_PROCESSED = CASE
          WHEN RECORDS_PROCESSED IS NULL THEN 0
          ELSE RECORDS_PROCESSED
        END + 10711
        ,EXECUTION_END_TIME = CURRENT_TIMESTAMP
        ,LAST_UPDATED_BY = CASE
          WHEN ('native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER' IS NULL) THEN LAST_UPDATED_BY
          ELSE 'native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER'
        END
        ,LAST_UPDATE_DATE = CURRENT_TIMESTAMP
        WHERE PROCESS_ID = 300
        AND ENTITY_TYPE = 'PROCESS_BAL_TRANS'
        AND ENTITY_NAME = 'January 2013'
    2013-12-31 22:45:12,829 INFO  [AIF]: COMM End Process Detail - Update Process Detail - END
    2013-12-31 22:45:12,987 INFO  [AIF]: COMM Update YTD Amounts - Update YTD Amounts - START
    2013-12-31 22:45:12,993 DEBUG [AIF]:
            SELECT brl.PARTITIONKEY
            ,brl.CATKEY
            ,pprd.YEARTARGET
            ,pprd.PERIODTARGET
            ,pprd.SOURCE_LEDGER_ID
            FROM AIF_BAL_RULE_LOADS brl
            ,AIF_PROCESS_PERIODS pprd
            WHERE brl.LOADID = 300
            AND pprd.PROCESS_ID = brl.LOADID
            GROUP BY brl.PARTITIONKEY
            ,brl.CATKEY
            ,pprd.YEARTARGET
            ,pprd.PERIODTARGET
            ,pprd.SOURCE_LEDGER_ID
            HAVING COUNT(*) > 1
    2013-12-31 22:45:12,995 INFO  [AIF]: COMM Update YTD Amounts - Update YTD Amounts - END
    2013-12-31 22:45:13,052 INFO  [AIF]: COMM Load TDATAMAPSEG/TDATASEG - Load TDATAMAPSEG/TDATASEG - START
    2013-12-31 22:45:13,057 DEBUG [AIF]: 
        SELECT brl.PARTITIONKEY
        ,brl.CATKEY
        ,brl.EXECUTION_MODE
        FROM AIF_BAL_RULE_LOADS brl
        WHERE brl.LOADID = 300
    2013-12-31 22:45:13,059 DEBUG [AIF]:
        SELECT PERIODKEY
        FROM AIF_APPL_LOAD_AUDIT
        WHERE LOADID = 300
        AND PARTITIONKEY = 12
        AND CATKEY = 4
        AND RULE_ID = 27
        ORDER BY PERIODKEY
    2013-12-31 22:45:13,061 INFO  [AIF]:
    Processing Data for PeriodKey '2013-01-01'
    2013-12-31 22:45:13,065 DEBUG [AIF]:
        DELETE FROM TDATAMAPSEG
        WHERE PARTITIONKEY = 12
        AND CATKEY = 4
        AND PERIODKEY = '2013-01-01'
        AND (
          TDATAMAPTYPE = 'ERP'
          OR (
            TDATAMAPTYPE = 'MULTIDIM'
            AND EXISTS (
              SELECT 1
              FROM TDATAMAPSEG parent
              WHERE parent.PARTITIONKEY = TDATAMAPSEG.PARTITIONKEY
              AND parent.DATAKEY = TDATAMAPSEG.TARGKEY
              AND parent.CATKEY = TDATAMAPSEG.CATKEY
              AND parent.PERIODKEY = TDATAMAPSEG.PERIODKEY
              AND parent.TDATAMAPTYPE = 'ERP'
    2013-12-31 22:45:13,074 INFO  [AIF]: Number of Rows deleted from TDATAMAPSEG: 8
    2013-12-31 22:45:13,077 DEBUG [AIF]:
        INSERT INTO TDATAMAPSEG (
          DATAKEY
          ,PARTITIONKEY
          ,CATKEY
          ,PERIODKEY
          ,DIMNAME
          ,SRCKEY
          ,SRCDESC
          ,TARGKEY
          ,WHERECLAUSETYPE
          ,WHERECLAUSEVALUE
          ,CHANGESIGN
          ,SEQUENCE
          ,VBSCRIPT
          ,TDATAMAPTYPE
          ,SYSTEM_GENERATED_FLAG
        SELECT DATAKEY
        ,PARTITIONKEY
        ,4
        ,'2013-01-01'
        ,DIMNAME
        ,SRCKEY
        ,SRCDESC
        ,TARGKEY
        ,WHERECLAUSETYPE
        ,WHERECLAUSEVALUE
        ,CHANGESIGN
        ,SEQUENCE
        ,VBSCRIPT
        ,TDATAMAPTYPE
        ,SYSTEM_GENERATED_FLAG
        FROM TDATAMAP_T
        WHERE LOADID = 300
    2013-12-31 22:45:13,081 INFO  [AIF]: Number of Rows inserted into TDATAMAPSEG: 8
    2013-12-31 22:45:13,083 DEBUG [AIF]:
            DELETE FROM TDATASEG
            WHERE LOADID < 300
            AND PARTITIONKEY = 12
            AND CATKEY = 4
            AND RULE_ID = 27
            AND PERIODKEY = '2013-01-01'
    2013-12-31 22:45:15,659 INFO  [AIF]: Number of Rows deleted from TDATASEG: 10711
    2013-12-31 22:45:15,728 DEBUG [AIF]:
          INSERT INTO TDATASEG (
          DATAKEY
          ,PARTITIONKEY
          ,CATKEY
          ,PERIODKEY
          ,CURKEY
          ,DATAVIEW
          ,CALCACCTTYPE
          ,CHANGESIGN
          ,JOURNALID
          ,AMOUNT
          ,AMOUNTX
          ,AMOUNT_PTD
          ,AMOUNT_YTD
          ,DESC1
          ,DESC2
          ,ACCOUNT
          ,ACCOUNTX
          ,ACCOUNTR
          ,ACCOUNTF
          ,ENTITY
          ,ENTITYX
          ,ENTITYR
          ,ENTITYF
          ,ICP
          ,ICPX
          ,ICPR
          ,ICPF
          ,UD1
          ,UD1X
          ,UD1R
          ,UD1F
          ,UD2
          ,UD2X
          ,UD2R
          ,UD2F
          ,UD3
          ,UD3X
          ,UD3R
          ,UD3F
          ,UD4
          ,UD4X
          ,UD4R
          ,UD4F
          ,UD5
          ,UD5X
          ,UD5R
          ,UD5F
          ,UD6
          ,UD6X
          ,UD6R
          ,UD6F
          ,UD7
          ,UD7X
          ,UD7R
          ,UD7F
          ,UD8
          ,UD8X
          ,UD8R
          ,UD8F
          ,UD9
          ,UD9X
          ,UD9R
          ,UD9F
          ,UD10
          ,UD10X
          ,UD10R
          ,UD10F
          ,UD11
          ,UD11X
          ,UD11R
          ,UD11F
          ,UD12
          ,UD12X
          ,UD12R
          ,UD12F
          ,UD13
          ,UD13X
          ,UD13R
          ,UD13F
          ,UD14
          ,UD14X
          ,UD14R
          ,UD14F
          ,UD15
          ,UD15X
          ,UD15R
          ,UD15F
          ,UD16
          ,UD16X
          ,UD16R
          ,UD16F
          ,UD17
          ,UD17X
          ,UD17R
          ,UD17F
          ,UD18
          ,UD18X
          ,UD18R
          ,UD18F
          ,UD19
          ,UD19X
          ,UD19R
          ,UD19F
          ,UD20
          ,UD20X
          ,UD20R
          ,UD20F
          ,ATTR1
          ,ATTR2
          ,ATTR3
          ,ATTR4
          ,ATTR5
          ,ATTR6
          ,ATTR7
          ,ATTR8
          ,ATTR9
          ,ATTR10
          ,ATTR11
          ,ATTR12
          ,ATTR13
          ,ATTR14
          ,ARCHIVEID
          ,HASMEMOITEM
          ,STATICDATAKEY
          ,LOADID
          ,RULE_ID,
          CODE_COMBINATION_ID
          ,STAT_BALANCE_FLAG
          ,VALID_FLAG
          SELECT
          DATAKEY
          ,PARTITIONKEY
          ,CATKEY
          ,PERIODKEY
          ,CURKEY
          ,DATAVIEW
          ,CALCACCTTYPE
          ,CHANGESIGN
          ,JOURNALID
          ,AMOUNT
          ,AMOUNTX
          ,AMOUNT_PTD
          ,AMOUNT_YTD
          ,DESC1
          ,DESC2
          ,ACCOUNT
          ,ACCOUNTX
          ,ACCOUNTR
          ,ACCOUNTF
          ,ENTITY
          ,ENTITYX
          ,ENTITYR
          ,ENTITYF
          ,ICP
          ,ICPX
          ,ICPR
          ,ICPF
          ,UD1
          ,UD1X
          ,UD1R
          ,UD1F
          ,UD2
          ,UD2X
          ,UD2R
          ,UD2F
          ,UD3
          ,UD3X
          ,UD3R
          ,UD3F
          ,UD4
          ,UD4X
          ,UD4R
          ,UD4F
          ,UD5
          ,UD5X
          ,UD5R
          ,UD5F
          ,UD6
          ,UD6X
          ,UD6R
          ,UD6F
          ,UD7
          ,UD7X
          ,UD7R
          ,UD7F
          ,UD8
          ,UD8X
          ,UD8R
          ,UD8F
          ,UD9
          ,UD9X
          ,UD9R
          ,UD9F
          ,UD10
          ,UD10X
          ,UD10R
          ,UD10F
          ,UD11
          ,UD11X
          ,UD11R
          ,UD11F
          ,UD12
          ,UD12X
          ,UD12R
          ,UD12F
          ,UD13
          ,UD13X
          ,UD13R
          ,UD13F
          ,UD14
          ,UD14X
          ,UD14R
          ,UD14F
          ,UD15
          ,UD15X
          ,UD15R
          ,UD15F
          ,UD16
          ,UD16X
          ,UD16R
          ,UD16F
          ,UD17
          ,UD17X
          ,UD17R
          ,UD17F
          ,UD18
          ,UD18X
          ,UD18R
          ,UD18F
          ,UD19
          ,UD19X
          ,UD19R
          ,UD19F
          ,UD20
          ,UD20X
          ,UD20R
          ,UD20F
          ,ATTR1
          ,ATTR2
          ,ATTR3
          ,ATTR4
          ,ATTR5
          ,ATTR6
          ,ATTR7
          ,ATTR8
          ,ATTR9
          ,ATTR10
          ,ATTR11
          ,ATTR12
          ,ATTR13
          ,ATTR14
          ,ARCHIVEID
          ,HASMEMOITEM
          ,STATICDATAKEY
          ,LOADID
          ,RULE_ID,
          CODE_COMBINATION_ID
          ,STAT_BALANCE_FLAG
          ,VALID_FLAG
          FROM TDATASEG_T
          WHERE LOADID = 300
          AND PARTITIONKEY = 12
          AND CATKEY = 4
          AND PERIODKEY = '2013-01-01'
    2013-12-31 22:45:16,838 INFO  [AIF]: Number of Rows inserted into TDATASEG: 10711
    2013-12-31 22:45:16,858 DEBUG [AIF]:
        DELETE FROM TDATASEG_T
        WHERE LOADID = 300
        AND PARTITIONKEY = 12
        AND CATKEY = 4
        AND PERIODKEY = '2013-01-01'
    2013-12-31 22:45:17,123 INFO  [AIF]: Number of Rows deleted from TDATASEG_T: 10711
    2013-12-31 22:45:17,153 DEBUG [AIF]:
        DELETE FROM TDATAMAP_T
        WHERE LOADID = 300
    2013-12-31 22:45:17,156 INFO  [AIF]: Number of Rows deleted from TDATAMAP_T: 8
    2013-12-31 22:45:17,161 INFO  [AIF]: COMM Load TDATAMAPSEG/TDATASEG - Load TDATAMAPSEG/TDATASEG - END
    2013-12-31 22:45:17,993 DEBUG [AIF]:
      SELECT CASE app.METADATA_LOAD_METHOD
        WHEN 'EPMA' THEN CASE dim.TARGET_DIMENSION_CLASS_NAME
          WHEN 'Generic' THEN dim.TARGET_DIMENSION_NAME
          ELSE dim.TARGET_DIMENSION_CLASS_NAME
        END
        ELSE dim.TARGET_DIMENSION_NAME
      END TARGET_DIMENSION_NAME
      ,adim.BALANCE_COLUMN_NAME
      FROM AIF_TARGET_APPLICATIONS app
      ,AIF_TARGET_APPL_DIMENSIONS adim
      ,AIF_DIMENSIONS dim
      WHERE app.APPLICATION_ID = 26
      AND adim.APPLICATION_ID = app.APPLICATION_ID
      AND dim.DIMENSION_ID = adim.DIMENSION_ID
      AND dim.TARGET_DIMENSION_CLASS_NAME IN ('Custom1','Custom2','Custom3','Custom4','Generic')
    2013-12-31 22:45:17,997 DEBUG [AIF]:
      SELECT SCENARIO "Scenario"
      ,YEAR "Year"
      ,PERIOD "Period"
      ,DATAVIEW "View"
      ,DATAVALUE "Value"
      ,ACCOUNT "Account"
      ,ENTITY "Entity"
      ,ICP "ICP"
        ,UD2 "Area"
        ,UD1 "Tail"
        ,UD3 "Special"
        ,UD4 "Facility"
      ,AMOUNT "DataValue"
      FROM AIF_HS_BALANCES
      WHERE LOADID = 300
    2013-12-31 22:45:18,000 INFO  [SimpleAsyncTaskExecutor-9]: ODI Hyperion Financial Management Adapter
    2013-12-31 22:45:18,002 INFO  [SimpleAsyncTaskExecutor-9]: Load task initialized.
    2013-12-31 22:45:18,028 INFO  [AIF]: LKM COMM Load Data into HFM - Load Data to HFM - START
    2013-12-31 22:45:18,031 DEBUG [AIF]:
        INSERT INTO AIF_PROCESS_DETAILS (
          PROCESS_ID
          ,ENTITY_TYPE
          ,ENTITY_ID
          ,ENTITY_NAME
          ,ENTITY_NAME_ORDER
          ,TARGET_TABLE_NAME
          ,EXECUTION_START_TIME
          ,EXECUTION_END_TIME
          ,RECORDS_PROCESSED
          ,STATUS
          ,LAST_UPDATED_BY
          ,LAST_UPDATE_DATE
        ) VALUES (
          300
          ,'PROCESS_BAL_EXP_HFM'
          ,NULL
          ,'FMTEST2'
          ,NULL
          ,NULL
          ,CURRENT_TIMESTAMP
          ,NULL
          ,NULL
          ,'RUNNING'
          ,'native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER'
          ,CURRENT_TIMESTAMP
    2013-12-31 22:45:18,034 INFO  [SimpleAsyncTaskExecutor-9]: Connecting to Financial Management application [FMTEST2] on [10.150.20.40] using user-name [admin].
    2013-12-31 22:45:18,155 INFO  [SimpleAsyncTaskExecutor-9]: Connected to Financial Management application.
    2013-12-31 22:45:18,157 INFO  [SimpleAsyncTaskExecutor-9]: HFM Version: 11.1.2.2.300.
    2013-12-31 22:45:18,160 INFO  [SimpleAsyncTaskExecutor-9]: Options for the Financial Management load task are:
    <Options>
         <Option name=LOG_FILE_NAME value=C:\Windows\TEMP\/aif_501_300.log/>
         <Option name=IMPORT_MODE value=Replace/>
         <Option name=CONSOLIDATE_ONLY value=false/>
         <Option name=CONSOLIDATE_PARAMETERS value=""/>
         <Option name=LOG_ENABLED value=true/>
         <Option name=ACCUMULATE_WITHIN_FILE value=false/>
         <Option name=DEBUG_ENABLED value=true/>
         <Option name=CONSOLIDATE_AFTER_LOAD value=false/>
         <Option name=FILE_CONTAINS_SHARE_DATA value=false/>
    </Options>
    2013-12-31 22:45:18,168 INFO  [SimpleAsyncTaskExecutor-9]: Load Options validated.
    2013-12-31 22:45:18,176 ERROR [SimpleAsyncTaskExecutor-9]: Error occurred during load process ORA-00904: "DATAVALUE": invalid identifier
    com.hyperion.odi.common.ODIHAppException: ORA-00904: "DATAVALUE": invalid identifier
      at com.hyperion.odi.hfm.ODIHFMAppWriter.loadData(ODIHFMAppWriter.java:216)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
      at org.python.core.PyObject.__call__(PyObject.java:355)
      at org.python.core.PyMethod.__call__(PyMethod.java:215)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
      at org.python.core.PyMethod.__call__(PyMethod.java:206)
      at org.python.core.PyObject.__call__(PyObject.java:397)
      at org.python.core.PyObject.__call__(PyObject.java:401)
      at org.python.pycode._pyx161.f$0(<string>:98)
      at org.python.pycode._pyx161.call_function(<string>)
      at org.python.core.PyTableCode.call(PyTableCode.java:165)
      at org.python.core.PyCode.call(PyCode.java:18)
      at org.python.core.Py.runCode(Py.java:1204)
      at org.python.core.Py.exec(Py.java:1248)
      at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
      at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
      at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
      at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
      at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)
      at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
      at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
      at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
      at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
      at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
      at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
      at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
      at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
      at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1889)
      at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$2.doAction(StartScenRequestProcessor.java:580)
      at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
      at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)
      at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$StartScenTask.doExecute(StartScenRequestProcessor.java:1066)
      at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
      at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
      at java.lang.Thread.run(Thread.java:724)
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "DATAVALUE": invalid identifier
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
      at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)
      at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:942)
      at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)
      at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1690)
      at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:446)
      at com.hyperion.odi.hfm.ODIHFMAppWriter.loadData(ODIHFMAppWriter.java:212)
      ... 38 more
    2013-12-31 22:45:18,208 DEBUG [AIF]:
        UPDATE AIF_PROCESS_DETAILS
        SET STATUS = 'FAILED'
        ,RECORDS_PROCESSED = CASE
          WHEN RECORDS_PROCESSED IS NULL THEN 0
          ELSE RECORDS_PROCESSED
        END + 0
        ,EXECUTION_END_TIME = CURRENT_TIMESTAMP
        ,LAST_UPDATED_BY = CASE
          WHEN ('native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER' IS NULL) THEN LAST_UPDATED_BY
          ELSE 'native://DN=cn=911,ou=People,dc=css,dc=hyperion,dc=com?USER'
        END
        ,LAST_UPDATE_DATE = CURRENT_TIMESTAMP
        WHERE PROCESS_ID = 300
        AND ENTITY_TYPE = 'PROCESS_BAL_EXP_HFM'
        AND ENTITY_NAME = 'FMTEST2'
    2013-12-31 22:45:18,210 FATAL [AIF]: Error in LKM C

    The issue is that you are mapping "Data Value" to amount in the Target Application import format:
    SELECT SCENARIO "Scenario" 
      ,YEAR "Year"
      ,PERIOD "Period"
      ,DATAVIEW "View"
      ,DATAVALUE "Value"
      ,ACCOUNT "Account"
      ,ENTITY "Entity"
      ,ICP "ICP"
        ,UD2 "Area"
        ,UD1 "Tail"
        ,UD3 "Special"
        ,UD4 "Facility"
      ,AMOUNT "DataValue"
      FROM AIF_HS_BALANCES
      WHERE LOADID = 300
    You need to map AMOUNT to "AMOUNT" in the HFM Application.  Check that the dimension mapping is correct for the class in the target application and that your import format is going to the proper target dimension(Amount).    

Maybe you are looking for

  • 10g(OLAP option) upgrade from 10.1.0.4 to 10.2.0.1.0 version

    Hi, I have the current setup up with 10g 10.1.0.4 version with OLAP option and AWM version 10.1.0.4 version. Now, I want to the latest version with 10.2.0.1.0. Please let me know what the Patch have to install to upgrade the latest version. Your help

  • Tables with referential integrity

    Hi All, I am generating scripts to insert data from one schema to another. something like this: Insert into schemaA.table1 select *from schemaB.table1;There are many tables with referential integrity in the schema. how can generate the scripts in an

  • Regarding source jdbc structure creation

    Hi, I am doing jdbc sender scenario the source structure I am getting form xsd. in jdbc sender data type root node should be created "row" and message type  . is compulsory? if i am getting xsd how can i deal that one. Thanks & Regards venkat.

  • I am wondering how to delete the recording demo on my ichat...

    I have downloaded the recording demo for ichat and my free trial is up and i don't want to buy it but i do want to delete it is this possible?

  • When Leopard won't archive and install

    I thought I'd relate my experience for those of you that have not yet upgraded. When I first attempted to install Leopard on my daughter's Macbook, the installer wanted to force me to do an erase and install and did not give an explanation as to why.