Financial statement version INT does not exist

Hello Friends,
I hope someone can help me figure this out and I've read discussions similar, just not exactly what I'm looking for.  When I run the following reports:
S_ALR_87012271
S_ALR_87012272
S_ALR_87012273
I receive the following error message:
Financial statement version INT does not exist
When I first received this message, I went to T-Code OB58 and entered the "INT" Financial Statement Version here.  I've also created a chart of accounts with INT values as well.  Can someone help me out on how to eliminate this error and set up cash flow?  If you have done this already, please do reply.  If not, then please allow those with more experience to help.
Thanks so much!
John

John,
You can define FSVs for a specific chart of accounts, for a group chart of accounts, or without any specific assignment.
In your case, double-check whether you are running the report for the same CoA assignment that you have defined your FSV for in the first place.
As somebody's mentioned earlier, these reports are made using Report Painter (GRR1 / 2 / 3, etc.). Seems FSV = INT has been fixed in these reports for your system. You'll have to edit these reports (using GRR2) and the correct FSV.
Regards
Gulshan

Similar Messages

  • Hierarchy INT does not exist for Financial Statement item 0glaccext

    Hi,
          I am facing a problem while executing the Standard Business content "Cash Flow statement" query. I am getting the message "Hierarchy INT does not exist for Financial Statement item 0glaccext".
    I am not able to find this Hierarchy in the "avaialble Hierarchies from OLTP". I think this is a standard SAP Hierarchy.
    Any thoughts on how to resolve this issue

    John,
    You can define FSVs for a specific chart of accounts, for a group chart of accounts, or without any specific assignment.
    In your case, double-check whether you are running the report for the same CoA assignment that you have defined your FSV for in the first place.
    As somebody's mentioned earlier, these reports are made using Report Painter (GRR1 / 2 / 3, etc.). Seems FSV = INT has been fixed in these reports for your system. You'll have to edit these reports (using GRR2) and the correct FSV.
    Regards
    Gulshan

  • Component 0DAT (version A) does not exist in the database

    Dear experts
    i got this error.
    Component 0DAT (version A) does not exist in the database
    http://static.flickr.com/20/71394172_655d295b7f_o.jpg
    A SAP expert recommended
    "Use BC to activate the variable 0DAT from InfoObject 0CALDAY."
    but i can't find 0DAT.
    http://static.flickr.com/35/71390830_1049df5c3a_o.jpg
    my system is
    http://static.flickr.com/35/71390831_c837af0b47_o.jpg
    Thanks in advance
    David.kang
    Message was edited by: David Kang
    Message was edited by: David Kang

    Mentor Eugene,
    I guess the issues are related to "Sneak Preview version".
    well, instead of creating new 0DAT,
    i edited  the RSZGLOBV table with 0DAT that i created before.
    http://static.flickr.com/20/71437761_de16ddee16_o.jpg
    http://static.flickr.com/34/71437760_5236824cc2_o.jpg
    so two rows were changed. (from 6 to 4 ). 
    http://static.flickr.com/34/71437762_ed172b5577_o.jpg
    <b> What do you think it is okay ? </b>
    Finally, i can get rid of " Component 0DAT (version A) does not exist in the database " message.
    therefore i expect everything goes well.
    but ..
    "Information No texts were maintained in language E for variable 0DAT " comes up.
    Refer to the screenshot ( http://static.flickr.com/35/71439173_5c996d2111_o.jpg )
    [Query Designer screenshot ]
    http://static.flickr.com/34/71440191_b2a96a2ac4_o.jpg
    [Material Number Master Data ]
    http://static.flickr.com/34/71440190_a827c571ae_o.jpg
    [Original Data file ]
    http://safariexamples.informit.com/0201703661/IO_MAT_TEXT.csv
    http://safariexamples.informit.com/0201703661/IO_MAT_ATTR.csv
    mentor Eugene! thanks a lot.
    with kind regards
    David

  • Import statement reports 'package does not exist'

    I am seeing another odd error. I'm working on learning how to read and write to text files, and I have 2 errors reported, but one is obviously caused by the other. My package is labeled as such (copy>paste of package line):
    package michaelchristopherp4db;
    and the import line is this (copy>paste again):
    import michaelchristopherp4db.ProductRecord;
    However, Netbeans looks at the import and flags it red, saying package michaelchristopherp4db does not exist. this caused my line:
    ProductRecord product = new ProductRecord();
    to also be flagged in red as it cannot find the ProductRecord class. However, it has no problems with any of the product.get* method calls. Thank you in advance for any ideas or input.
    here is the full code of the file reporting the errors.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package michaelchristopherp4db2;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.lang.IllegalStateException;
    import java.lang.SecurityException;
    import java.util.NoSuchElementException;
    import java.util.Formatter;
    import java.util.FormatterClosedException;
    import java.util.Scanner;
    import michaelchristopherp4db.ProductRecord;
    /*  @author info
    public class readTxt
        private Scanner txtfile;
        private Formatter wishList;
        private Formatter giftIdeas;
        private Formatter priceError;
        //let user open file
        public void openFile()
        {//open method openFile
            try
            {//open try block
                priceError = new Formatter("priceerror.txt");//open object for items with invalid prices
                giftIdeas = new Formatter("giftideas.txt");//open object for gift ideas
                wishList = new Formatter("wishlist.txt");//open object for wish list
                txtfile = new Scanner(new File("products.txt"));//tell the compiler which file to use for input
            }//close try block
            catch (FileNotFoundException fileNotFoundException)
            {//open file not found catch block
                System.err.println("Error opening or creating file.");
                System.exit(1);
            }//close file not found catch block
            catch ( SecurityException securityException )
            {//start catch for SecurityException
                System.err.println("File Write access is denied.");
                System.exit(1);//END PROGRAM
            }//end catch
        }//close openFile method
        public void readProducts()
        {//open readProducts method
            ProductRecord product = new ProductRecord();//create object to hold read data
            //print headers for for output columns
            System.out.printf("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
            try //read records from the file
            {//open try block
                while (txtfile.hasNext())
                {//open while
                    product.setproductID(txtfile.nextInt());//get productID
                    product.setproductName(txtfile.next());//get product name
                    product.setproductPrice(txtfile.nextDouble());//get product price
                    //print collected product details
                    System.out.printf("%-10d%-12s%10.2f\n", product.getproductID(),
                            product.getproductName(), product.getproductPrice());
                    if (product.getproductPrice()>50.0)
                    {//open if to store items $50 or more to wishlist.txt
                        wishList.format("%-10d%-12s%10.2f\n", product.getproductID(),
                                product.getproductName(), product.getproductPrice());
                    }//close if $50 or greater
                    else if (product.getproductPrice()<0.0)
                    {//open if less than zero
                        priceError.format("%-10d%-12s%10.2f\n", product.getproductID(),
                                product.getproductName(), product.getproductPrice());
                    }//close if less than zero
                    else
                    {//open else for gift ideas from $0 to $50
                        giftIdeas.format("%-10d%-12s%10.2f\n", product.getproductID(),
                                product.getproductName(), product.getproductPrice());
                    }//close else for gift ideas
                }//close while
            }//close try block
            catch (NoSuchElementException elementException)
            {//open no such element exception catch
                System.err.println("File improperly formed.");
                txtfile.close();//close text file
                System.exit(1);
            }//close no such element exception catch
            catch (IllegalStateException stateException)
            {//open illegal state exception catch
                System.err.println("Error reading from file.");
                System.exit(1);
            }//close illegal state exception catch
        }//close readProducts method
        //close file and end application
        public void closeFile()
        {//open closeFile method
            if (txtfile != null)
                txtfile.close();//close file
        }//close closeFile method
    }//end application readTxtAnd the code at the top of the class I am trying to import (so you can see the package I am trying to import)
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package michaelchristopherp4db;
    *  @author
    public class ProductRecord {

    I am embarrassed to admit this, but I am completely lost on the last question.. I have no clue wether it is a convenience for development or a dependancy, as I have not learned those terms or distinctions yet. For now I copied the ProductRecord file into my new project folder and renamed it's project line to match the new project name. However, while that eliminated the package does not exist error, and netbeans reports no errors now, when I run the program it does not write the new files. I have made some modifications to the code tryiing to get it to write properly but so far no luck in makingit work. Here is the current version of the file not running right.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package michaelchristopherp4db2;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.lang.IllegalStateException;
    import java.lang.SecurityException;
    import java.util.NoSuchElementException;
    import java.util.Formatter;
    import java.util.FormatterClosedException;
    import java.util.Scanner;
    /*  @author
    *   Michael Christopher
    *   IT215-1004D-03
    *   December 30, 2010
    *   Phase 4 DB 2
    public class readTxt
        private Scanner txtfile;
        private Formatter wishList;
        private Formatter giftIdeas;
        private Formatter priceError;
        //let user open file
        public void openFile()
        {//open method openFile
            try
            {//open try block
                priceError = new Formatter("priceerror.txt");//open object for items with invalid prices
                giftIdeas = new Formatter("giftideas.txt");//open object for gift ideas
                wishList = new Formatter("wishlist.txt");//open object for wish list
                txtfile = new Scanner(new File("products.txt"));//tell the compiler which file to use for input
            }//close try block
            catch (FileNotFoundException fileNotFoundException)
            {//open file not found catch block
                System.err.println("Error opening or creating file.");
                System.exit(1);
            }//close file not found catch block
            catch ( SecurityException securityException )
            {//start catch for SecurityException
                System.err.println("File Write access is denied.");
                System.exit(1);//END PROGRAM
            }//end catch
        }//close openFile method
        public void readProducts()
        {//open readProducts method
            ProductRecord product = new ProductRecord();//create object to hold read data
            //print headers for for output columns
            wishList.format("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
            giftIdeas.format("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
            priceError.format("%-10s%-12s%10s\n", "Product ID", "Product Name", "Price");
            try //read records from the file
            {//open try block
                while (txtfile.hasNext())
                {//open while
                    product.setproductID(txtfile.nextInt());//get productID
                    product.setproductName(txtfile.next());//get product name
                    product.setproductPrice(txtfile.nextDouble());//get product price
                    if (product.getproductPrice()>50.0)
                    {//open if to store items $50 or more to wishlist.txt
                        wishList.format("%-10d%-12s%10.2f\n", product.getproductID(),
                                product.getproductName(), product.getproductPrice());
                    }//close if $50 or greater
                    else if (product.getproductPrice()<0.0)
                    {//open if less than zero
                        priceError.format("%-10d%-12s%10.2f\n", product.getproductID(),
                                product.getproductName(), product.getproductPrice());
                    }//close if less than zero
                    else
                    {//open else for gift ideas from $0 to $50
                        giftIdeas.format("%-10d%-12s%10.2f\n", product.getproductID(),
                                product.getproductName(), product.getproductPrice());
                    }//close else for gift ideas
                }//close while
            }//close try block
            catch (NoSuchElementException elementException)
            {//open no such element exception catch
                System.err.println("File improperly formed.");
                txtfile.close();//close text file
                System.exit(1);
            }//close no such element exception catch
            catch (IllegalStateException stateException)
            {//open illegal state exception catch
                System.err.println("Error reading from file.");
                System.exit(1);
            }//close illegal state exception catch
        }//close readProducts method
        //close file and end application
        public void closeFile()
        {//open closeFile method
            if (txtfile != null)
                txtfile.close();//close file
        }//close closeFile method
    }//end application readTxtwith the System.out.printf lines in the ReadProducts method it would properly print to screen all of the elements in the products.txt file, it is not outputting to the other .txt files at all. I will be exploring the closeFile method in case the error is due to not closing all of the files in that method, but does anyone else see what might cause it not to output the data to the appropriate .txt files?

  • Extraction error "Target cost version in controlling area does not exists"

    Hi Gurus,
    I am trying to pull some data from a SAP OLTP system into SAP BW 710 system, using extractor "0CO_PC_02". The data load is failing with the below error message:
    Target cost version in controlling area does not exist     KN     147
    Target cost version 2 not defined. Check your entry     KV     35
    Internal program error ( Order 000010510554 Version 002 )     RM     11
    Errors in source system     RSM     340
    The same error is thrown when I am trying to execute the extractor in RSA3 in the source system.
    Please help me with the resolution of the same. It's a high priority job we are handling as of now in this.
    Thanks & Regards,
    Vikas Kr.

    You are attempting to display data on a target cost version that does not exist in controlling area.
    see this http://forums.sdn.sap.com/thread.jspa?threadID=1609418
    http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YV-KN147

  • Financial statement version in fs00 how do i change the lanugage to english

    Hi Experts
    I am currently asked to train a beginners course AC010 for FI. Below is one of the tasks i have to take the students through.Please look at F is where my question is??
    Enter the new G/L account 700## in the financial statement version INT so that it
    appears as the correct balance sheet item when the balance sheet is run.
    1. The new account has to be entered in financial statement version INT. Enter
    it in the same financial statement item as reference account 70 000.
    a) If you have exited the previous screen, choose Accountingu2192Financial
    Accounting u2192 General Ledger u2192 Master Records u2192 G/L Accounts u2192
    Individual Processing u2192 In Company Code.
    Fill in the following data.
    Field Name Value
    G/L account 700##
    Company Code 1000
    b) Choose Change.
    Continued on next page
    68 © 2006 SAP AG. All rights reserved. 2006/Q2
    AC010 Lesson: G/L Master Records
    c) Choose Edit Financial Statement Version.
    d) Enter the following in the Select Financial Statement Version dialog
    box.
    Field Name Value
    Financial statement version INT
    e) Click Choose.
    If you did remain in the screen from the previous exercise, the financial
    statement should be automatically expanded to show you where the
    reference account, 70 000, is located in the financial statement version.
    If you have to call up the screen again, the financial statement version
    does not automatically open at account 70 000. In this case, execute
    the following step.
    f) Drill down to the Liabilities u2192 Equity Capital u2192 Subscribed Capital
    balance sheet item by clicking the folder icon in front of the balance
    sheet item.(ALL these are displayed in another language how do i change to english??????????????????????????????????????????)
    g) Select Subscribed Capital and choose Assign Accounts at the top of the
    screen. Insert in the line From acct. To acct. the interval 700## to
    700##. Select D & C (for debit and credit balance). If you do not see a
    free row where you can enter your account, use the Next Page icon at
    the bottom right of the dialogue box to insert an empty row. Do not type
    over an existing account, as you will replace it with your account!
    h) Choose Continue (Enter).
    i) Choose Save.

    Hello,
    If you want to change the GL account language, then FS00 check last tabs.
    If you want to change FSV language, then copy the FSV to another language in OB58
    Regards,
    Ravi

  • DBIF_RSQL_TABLE_UNKNOWN Table AUSPN_V1 does not exist in the database with ID R/3

    Hi All,
    We are encountering numerous short dumps in our system caused by Table AUSPN_V1 does not exist in the database with ID R/3.
    Can anyone advise how to solve the issue? Please find below portion of the short dumps.
    Category               ABAP Programming Error
    Runtime Errors         DBIF_RSQL_TABLE_UNKNOWN
    ABAP Program           SAPLCLVF
    Application Component  CA-CL-CL
    Date and Time          11.06.2014 12:08:28
    Short text
         A table is unknown or does not exist.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLCLVF" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         A table is referred to in an SAP Open SQL statement that either does not
          exist or is unknown to the ABAP Data Dictionary.
         The table involved is "AUSPN_V1" or another table accessed in the statement.
    Source Code Extract
    Line  SourceCde
      104     if dupl = kreuz.
      105       insert auspc_v2 client specified from table auspcv2
      106                              accepting duplicate keys.
      107     else.
      108       insert auspc_v2 client specified from table auspcv2.
      109       if syst-subrc ne 0.
      110         message a585 with tabausp.
      111       endif.
      112     endif.
      113     refresh auspcv2.
      114   endif.
      115   read table auspcv3 index 1.
      116   if syst-subrc = 0.
      117     if dupl = kreuz.
      118       insert auspc_v3 client specified from table auspcv3
      119                              accepting duplicate keys.
      120     else.
      121       insert auspc_v3 client specified from table auspcv3.
      122       if syst-subrc ne 0.
      123         message a585 with tabausp.
      124       endif.
      125     endif.
      126     refresh auspcv3.
      127   endif.
      128   read table auspnv1 index 1.
      129   if syst-subrc = 0.
      130     if dupl = kreuz.
      131       insert auspn_v1 client specified from table auspnv1
      132                              accepting duplicate keys.
      133     else.
    >>>>>       insert auspn_v1 client specified from table auspnv1.
      135       if syst-subrc ne 0.
      136         message a585 with tabausp.
      137       endif.
      138     endif.
      139     refresh auspnv1.
      140   endif.
      141   read table auspnv2 index 1.
      142   if syst-subrc = 0.
      143     if dupl = kreuz.
      144       insert auspn_v2 client specified from table auspnv2
      145                              accepting duplicate keys.
      146     else.
      147       insert auspn_v2 client specified from table auspnv2.
      148       if syst-subrc ne 0.
      149         message a585 with tabausp.
      150       endif.
      151     endif.
      152     refresh auspnv2.
      153   endif.

    Hello
    Please check on transaction SE11 if this table exists and if it is active.
    Also, it may be a database issue. What is your database?
    BR
    Caetano

  • Creating Financial Statement Version

    In configuration document "102 External Financial Accounting Basics" says I should copy from the standard version BAUS the new FSV.
    My problem is that in my system somebody deleted the BAUS financial statement version.
    Does anyone knows where can I find it or other I can use with Chart of Accounts: CANA
    Thank you,
    Carlos

    Hi,
    Go to SE38 transaction > Program RSCICO02 and execute.
    And install the country version for US from here. The standard Customizing settings required for the country versions are supplied in client 000. which will then get copied to your client.
    Regards,
    Gaurav

  • Problem in merge statement -ORA-27432 Step does not exist for chain

    Hi
    I m getting ORA-27432 Step does not exist for chain error in merge statement.Please explain the same.
    MERGE INTO fos.pe_td_hdr_sd B
    USING (
             SELECT ACTIVE, ADDUID, ADDUIDTIME,TDKEY         FROM pe.pe_td_hdr
              WHERE  (adduidtime like '20070104%' or edituidtime like '20070104%')
              AND NVL(legacy_td,'N')<>'Y'
              AND SUBSTR(adduidtime,1,4)='2007'
              AND AMENDMENT_NO=0)A ON ( B.TDKEY = A.TDKEY)
      WHEN MATCHED THEN
        UPDATE SET B.ACTIVE=A.ACTIVE,
    B.ADDUID=A.ADDUID,
            B.ADDUIDTIME=A.ADDUIDTIME
      WHEN NOT MATCHED THEN
                      INSERT
                              B.ACTIVE,
                              B.ADDUID,
                              B.ADDUIDTIME)
                        VALUES(
                              A.ACTIVE,
                              A.ADDUID,
                              A.ADDUIDTIME)This query is a short version of the main query.It is same but having 180 columns in original table.

    What version of Oracle are you using? This message does not appear in my 10.1 Error Messages document, but the other messages in that range seem to be about DBMS_SCHEDULER.
    Are you using scheduler somewhere around where you are getting the error message?
    John

  • "A supported version of Microsoft Word does not exist. Please install Microsoft Word 2000 or newer."

    I am a new RoboHelp user und I want to import content written with Word 2013 into RoboHelp.
    I'm using RH HTML 9.0.2 and MS Word 2013 (Office 2013) on a Windows 7 professional computer.
    When I try to import a Word-Document (I downloaded and used the example document from Peter Grainge and also tried other Word-documents) I get the following message:
    "A supported version of Microsoft Word does not exist. Please install Microsoft Word 2000 or newer."
    What can I do?

    The error message is wrong as regards the version you need to install. It should state that you need a compatible version and the latest is Office 2010. Even Rh10 does not support Office 2013.
    There is a workaround when generating printed documentation but not when importing. You need to install Word 2010 which can co-exist with Word 2013 if you want to retain that for other purposes. Before using Rh to import, run Word 2010 first.
    To generate printed documentation using Word 2013, right click Properties in the layout, it works from there.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Error in TLB background job"Version does not exist"

    Hi Gurus,
    We are getting error of "Version does not exist " in TLB background run..The T-lane is between 2 DCs .we have checked everything but unfortunately
    we are not able to detect the root cause for the error.
    Your help will be appreciated.
    Thanks in advance
    Suyash

    Hi Suyash,
    I hope than your planning version is active!
    I also suppose than you have maintained mean of transport and products at Tr.Lanes level. 
    I think that you have some master data inconsistency in the version.
    Please run the reports; /SAPAPO/OM17, /SAPAPO/TSCONS, /SAPAPO/TSLCREORGSNP
    You can also run Model Consistency check (t.code /SAPAPO/CONSCHK). First you have to define the Model (t.code /SAPAPO/SCC07) and the Profile (t.code /SAPAPO/CONSPRF).
    Thanks, Marius

  • Error: 28005, Severity: 16, State: 2...An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impe

    I've seen some similar questions, but want to make sure I can get an answer quickly and how to fix.
    Thanks,
    Paul
    spid24s     Error: 28005, Severity: 16, State: 2
    spid24s     An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated,
    or you do not have permission.

    Hi Paul,
    I also had the same error on one of my servers, and it was because the user that created the database no longer worked for the company.
    So when his AD account got deleted, the database had NULL as owner
    Using the following query I asked for the owners of the databases:
    select name, suser_sname(sid) from master.dbo.sysdatabases
    So changing the owner of the databases that had a NULL owner solved the issue for me.
    use <databasesname>
    go
    exec sp_changedbowner 'sa'
    Thanks for triggering the solution.
    Peter

  • G/L account 1212 does not exist in chart of accounts INT

    Dear Seniors,
          While i do stock upload in MB1C using movement type 561, it is giving an error that
    G/L account 1212 does not exist in chart of accounts INT
    Message no. M7054
    Diagnosis
    The G/L account entered is not included in the chart of accounts for your company code.
    Procedure
    If the system has determined the G/L account, the system setting is faulty. Contact your systems administrator.
    If you have entered the G/L account yourself, correct the input. Copied from M8043
    I have changed the G/L account in OBYC but still this error is coming. what would be the cause and how to solve it ???
    Regards,
    Jana

    Hi ,
    To create the account for chart of account INT use tcode FSP0 .
    And if you are trying to replace the account with another account check two entries in OBYC
    one is in GBB --- give correct combination of valuation modifier , valuation class , use general modifier BSA and your new account
    another is in BSX --give correct combination of valuation modifier , valuation class .
    If still you are getting error revert back .
    Regards,
    Anupam

  • "SAP_PAYSLIP_US does not exist" error in Salary statement iView of ESS

    Hi all,
    We have SAP EP7.0 (NW 2004s) with the ESS business package for MySAPERP 2005.Most of our iViews of the business package are working fine,but some are givig problems.
    When we try to launch the Salary Statement iView under BEnefits and Payments Workset we get the "SAP_PAYSLIP_US does not exist" error.
    The form name SAP_PAYSLIP_US is active and also we have specified the form name in the SPRO settings.
    If we change the form name (for e.g.UF01) then the error displayed is "UF01 does not exist".
    Can anyone point out as to what the problem is.
    Is there any settings we are missing?
    Thanks,
    Pradeep Shetty

    Hi To all!
    The Form SAP_TIMESLIP doesn't exist. The correct form to use in the feature HRFOR is SAP_TIM_99_0001 or SAP_TIM_99_0002.
    Activate the form in transaction HRFORMS.
    SAP didn't release the form SAP_TIMESLIP.
    Hope this information is usefull.
    Sónia

  • Service to checkin file if it does not exist, else version the file

    Hi All,
    From java layer I use WEBDAV and use PUT command and this command creates a new file if it does not exist, and if the file exists it versions the existing file.
    I have developed a java component to unzip a folder and checkin all individual files and folders into UCM whenever a zip file is checked in.I would like similar feature in my UCM component.i.e whenever files are unzipped they should always be versioned if they exist.I use the below code,but it always creates a new file(even if file with same name exists in the same folder)
    m_binder.setEnvironment(SharedObjects.getEnvironment());
    m_binder.putLocal("dDocName","");
    m_binder.putLocal("IsAutoNumber", "true");
    m_binder.putLocal("AutoNumberPrefix", "olm_");
    m_binder.putLocal("IdcService","CHECKIN_NEW");
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    So, I would like to know, if there is a service to achieve the same or is there a parameter I can add in m_binder.putLocal to achieve the same? OR am I suppose to query the UCM Database to check for existence of the file and if it exists I need to manually check out and check it in?
    Thanks,
    Shwetha

    Thanks Fabian and Ryan for your feedback.
    So I queried db to retrieve the ddocName and if no rows are returned my code checks in new file. But if rows are returned I checkout the file using CHECKOUT_BY_NAME and then checkin using CHECKIN_UNIVERSAL using same ddocName.
    Creating/checking in new file is successful.
    For existing files the checkout is successful.I also confirmed the file is checked out by querying documenthistory and ensuring a new row is created with dction = 'Check out'
    But post checkout when i try to re-check using CHECKIN_UNIVERSAL command, I receive the below exception
    intradoc.common.ServiceException: !csUnableToCheckIn,OLM_002103!csCheckinItemExists
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2326)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
    at intradoc.server.Service.createServiceException(Service.java:2315)
    What am I missing here?
    Code snippet:
    m_binder.setEnvironment(SharedObjects.getEnvironment());
    m_binder.putLocal("IsAutoNumber", "true");
    m_binder.putLocal("AutoNumberPrefix", "olm_");
    String docName = getDocname(ws, parentId, entityName);
    if(docName != null && docName.equals("FILENOTFOUND")) {
    System.out.println("Creating new file");
    System.out.println("parentId is "+ parentId);
    m_binder.putLocal("IdcService","CHECKIN_UNIVERSAL");
    m_binder.putLocal("dDocName","");
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal ("doFileCopy", "1");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("Created file successfully");
    }else{
    System.out.println("Check out file");
    System.out.println("parentId is "+ parentId);
    m_binder.putLocal("IdcService","CHECKOUT_BY_NAME");
    m_binder.putLocal("dDocName",docName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("File checked out successfully");
    System.out.println("Check in file");
    m_binder.putLocal("IdcService","CHECKIN_UNIVERSAL");
    m_binder.putLocal("dDocName",docName);
    m_binder.putLocal("dDocTitle",entityName);
    m_binder.putLocal("xCollectionID",parentId);
    m_binder.putLocal("dDocType", "Document");
    m_binder.putLocal("dSecurityGroup","Public");
    m_binder.putLocal("dDocAuthor","sysadmin");
    m_binder.putLocal ("doFileCopy", "1");
    m_binder.putLocal("dCreateDate","");
    m_binder.putLocal("primaryFile", entryName);
    executeService(ws, m_binder,"sysadmin",true);
    System.out.println("Checked in file successfully");
    public String getDocname(Workspace ws, String folderId, String originalName)
    throws DataException,ServiceException
    System.out.println("Entered getDocname");
    String val = new String("FILENOTFOUND");
    String sql = "select a.ddocname from documenthistory a, docmeta b, documents d " +
    "where a.did = b.did and a.did = d.did and d.DORIGINALNAME = '" + originalName +
    "' and b.xcollectionid = '" + folderId + "'";
    System.out.println("sql query is : " + sql);
    ResultSet rs = ws.createResultSetSQL(sql);
    if(rs == null) {
    System.out.println("Resultset for getDocname is empty");
    throw new ServiceException("Resultset for getDocname is empty");
    DataResultSet result = new DataResultSet();
    result.copy(rs);
    if(result.getNumRows() >= 1) {
    result.first();
    val = result.getStringValue(0);
    System.out.println("ddocname is :" + val);
    return val;
    else {
    System.out.println("FILENOTFOUND");
    return val;
    Thanks,
    Shwetha

Maybe you are looking for

  • Shuts down unexpectedly

    Anyone have a MacPro shutting down unexpectedly- Poof! Swapped Ram and zapped PRam and disconnected non Apple perriferals - ie No more Wacom Intuos4, old Clear USB Apple keyboard removed (now new aluminum), fixed permissions. Was only in photoshop bu

  • Authorization Objects that allowed/disallowed FI Postings

    Hi All, May I know what are the Authorization Objects that allowed/disallowed FI Postings? Thanks, Teo

  • Performance tuning from Basis point of View ?

    Hi, Can anybody help me in doing the performance tuning from Basis point of view. What all parameters are involved in it and what are the values need to be initially assigned and what all factors need to be kept in mind.? Thanks in advance.

  • Transaction COWBHUWE

    Hi, Is there any function module, BAPI for transaction COWBHUWE to post goods reciept for Process Order? I have tried below function modules - 1) HU_CREATE_GOODS_MOVEMENT: The FM is get out at line no 56 as the Object Type for all the HUs i have foun

  • The "option" button doesn't show up on Mac OS X install

    My hardrive died in original Macbook Pro. Got a SSD 840 pro 256gb and 8gb of ram. i installed the disk that came originally with Pro and procced to install. whe i reach the " select destinaion " screen nothing shows up in the main box area. And the O