Checking in a content programatically

Hi,
Has anyone successfully checked-in a content item programatically? If yes, can you please share the code snippet.
I tried using CHECKIN_NEW (CHECKIN_SEL for update) and CHECKIN_UNIVERSAL services to check-in the item programatically.
I am getting the below error when doing so
========================================================
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:635)
at intradoc.server.Service.doRequest(Service.java:1707)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:359)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)
Caused by: intradoc.data.DataException: !csCheckinFileKeyNotSpecified,primaryFile
at intradoc.server.DocServiceHandler.addFile(DocServiceHandler.java:3251)
at intradoc.server.DocServiceHandler.addFiles(DocServiceHandler.java:410)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
at intradoc.server.Service.doCodeEx(Service.java:490)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sitestudio.SSClassHelper.invokeRaw(Unknown Source)
... 70 more
==================================================
I have set all the required meta data for for content item in m_binder. I have give proper values for primaryFile, primaryFile:path, dDocName, dOriginalName etc
I have thoroughly checked all the meta data values but could not see any problem in the entries I am giving. Not able to figure out what could be the problem.
Regards,
Pratap

I'd recommend sticking to a single thread when discussing the same issue. You're more likely to get help if you keep your details centralized.
Re: Error when doing checkin of content item programatically
Perhaps add some more context to your issue or paste in the offending code?
Thanks,
-ryan
Ryan Sullivan | ECMconsultant
http://www.ecmconsultant.net/

Similar Messages

  • How to check if the content in txt file is empty

    hi, i need my program to check if the content in txt file is empty. can anyone demonstrate an example with if-else statement ?

    I assume you already have file object
    File file = new File("path");
    if (file.length() == 0) {
      System.out.println("File size is 0");
    else {
      System.out.println("File size is " + file.length());
    }Read API here:
    http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#length()
    Edited by: Kunkhmer on Feb 26, 2008 1:57 PM

  • Two Content Instance checked in when i check-in a file, programatically

    Hi,
    I have written the custom service for cheeck-in XML(XML is dynamically creating from the custom content input form). Then I am using the following code for calling the check-in service.
                   m_binder.putLocal("AutoNumberPrefix", location + "_" + connection_type + "_");
                   m_binder.putLocal("IdcService", "CHECKIN_NEW_SUB");
                   m_binder.putLocal("dDocTitle", plan_name);
                   m_binder.putLocal("dDocAuthor", "sysadmin");
                   m_binder.putLocal("dDocType", "Plans");
                   m_binder.putLocal("dSecurityGroup", "Public");
                   m_binder.putLocal("primaryFile", file);
                   m_binder.putLocal("primaryFile:path", dirPath + file);
                   m_binder.addTempFile(filePath);
                   m_service.executeService("CHECKIN_NEW_SUB");
    It is check-in the file. but it is creating 2 CI in the content server. PLease let me know is it because of above code. I am completely new to this UCM.
    How to check API?
    Regards & thanks,
    Nirmala Vijaya Sekhar Varre

    Sapan,
    Thanks for the patience. Here is my code.
    package Plans;
    import intradoc.common.ServiceException;
    import intradoc.data.DataException;
    import intradoc.server.ServiceHandler;
    import org.apache.axiom.om.OMElement;
    import org.apache.axiom.om.impl.builder.StAXOMBuilder;
    import javax.xml.stream.XMLInputFactory;
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Iterator;
    * @Author: Nirmala Vijaya Sekhar
    public class PlansHandler extends ServiceHandler{
         * create XML file from the input file
         public void createPlan() throws DataException, ServiceException, IOException, FileNotFoundException{
              System.out.println("************ CREATE PLAN - BEGIN ************");
              try{
                   String location = m_binder.getLocal("location");
                   String connection_type = m_binder.getLocal("connection_type");
                   String plan_name = m_binder.getLocal("plan_name");
                   String crm_id = m_binder.getLocal("crm_id");
                   String pack_charges = m_binder.getLocal("pack_charges");
                   String validity = m_binder.getLocal("validity");
                   String free_talktime = m_binder.getLocal("free_talktime");
                   String incoming_calls = m_binder.getLocal("incoming_calls");
                   String short_desc = m_binder.getLocal("short_desc");
                   String long_desc = m_binder.getLocal("long_desc");
                   String image_path = m_binder.getLocal("image_path");
                   String alt_text = m_binder.getLocal("alt_text");
                   String local_rates_eti = m_binder.getLocal("local_rates_eti");
                   String local_rates_others = m_binder.getLocal("local_rates_others");
                   String local_startup_fee = m_binder.getLocal("local_startup_fee");
                   String local_incoming_calls = m_binder.getLocal("local_incoming_calls");
                   String local_lcc_mobile = m_binder.getLocal("local_lcc_mobile");
                   String local_lcc_landline = m_binder.getLocal("local_lcc_landline");
                   String local_lsc_mobile = m_binder.getLocal("local_lsc_mobile");
                   String local_lsc_landline = m_binder.getLocal("local_lsc_landline");
                   String std_rates_eti = m_binder.getLocal("std_rates_eti");
                   String std_rates_others = m_binder.getLocal("std_rates_others");
                   String std_startup_fee = m_binder.getLocal("std_startup_fee");
                   String std_incoming_calls = m_binder.getLocal("std_incoming_calls");
                   String std_lcc_mobile = m_binder.getLocal("std_lcc_mobile");
                   String std_lcc_landline = m_binder.getLocal("std_lcc_landline");
                   String std_lsc_mobile = m_binder.getLocal("std_lsc_mobile");
                   String std_lsc_landline = m_binder.getLocal("std_lsc_landline");
                   String isd_startup_fee = m_binder.getLocal("isd_startup_fee");
                   String isd_incoming_calls = m_binder.getLocal("isd_incoming_calls");
                   String isd_lcc_mobile = m_binder.getLocal("isd_lcc_mobile");
                   String isd_lcc_landline = m_binder.getLocal("isd_lcc_landline");
                   String isd_lsc_mobile = m_binder.getLocal("isd_lsc_mobile");
                   String isd_lsc_landline = m_binder.getLocal("isd_lsc_landline");
                   String roaming_rates_eti = m_binder.getLocal("roaming_rates_eti");
                   String roaming_rates_others = m_binder.getLocal("roaming_rates_others");
                   String addonFlag = m_binder.getLocal("addonFlag");
                   String addonList = m_binder.getLocal("addonList");
                   String status = m_binder.getLocal("status");
                   String xmlFileContent = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
                   xmlFileContent += "<plan>";
                   xmlFileContent +="<location>" location "</location>";
                   xmlFileContent +="<connection_type>" connection_type "</connection_type>";
                   xmlFileContent +="<plan_name>" plan_name "</plan_name>";
                   xmlFileContent +="<crm_id>" crm_id "</crm_id>";
                   xmlFileContent +="<pack_charges>" pack_charges "</pack_charges>";
                   xmlFileContent +="<validity>" validity"</validity>";
                   xmlFileContent +="<free_talktime>" free_talktime "</free_talktime>";
                   xmlFileContent +="<incoming_calls>" incoming_calls "</incoming_calls>";
                   xmlFileContent +="<short_desc>" short_desc "</short_desc>";
                   xmlFileContent +="<long_desc>" long_desc "</long_desc>";
                   xmlFileContent +="<image_path>" image_path "</image_path>";
                   xmlFileContent +="<alt_text>" alt_text "</alt_text>";
                   xmlFileContent +="<local_rates_eti>" local_rates_eti "</local_rates_eti>";
                   xmlFileContent +="<local_rates_others>" local_rates_others "</local_rates_others>";
                   xmlFileContent +="<local_startup_fee>" local_startup_fee "</local_startup_fee>";
                   xmlFileContent +="<local_incoming_calls>" local_incoming_calls "</local_incoming_calls>";
                   xmlFileContent +="<local_lcc_mobile>" local_lcc_mobile "</local_lcc_mobile>";
                   xmlFileContent +="<local_lcc_landline>" local_lcc_landline "</local_lcc_landline>";
                   xmlFileContent +="<local_lsc_mobile>" local_lsc_mobile "</local_lsc_mobile>";
                   xmlFileContent +="<local_lsc_landline>" local_lsc_landline "</local_lsc_landline>";
                   xmlFileContent +="<std_rates_eti>" std_rates_eti "</std_rates_eti>";
                   xmlFileContent +="<std_rates_others>" std_rates_others "</std_rates_others>";
                   xmlFileContent +="<std_startup_fee>" std_startup_fee "</std_startup_fee>";
                   xmlFileContent +="<std_incoming_calls>" std_incoming_calls "</std_incoming_calls>";
                   xmlFileContent +="<std_lcc_mobile>" std_lcc_mobile "</std_lcc_mobile>";
                   xmlFileContent +="<std_lcc_landline>" std_lcc_landline "</std_lcc_landline>";
                   xmlFileContent +="<std_lsc_mobile>" std_lsc_mobile "</std_lsc_mobile>";
                   xmlFileContent +="<std_lsc_landline>" std_lsc_landline "</std_lsc_landline>";
                   xmlFileContent +="<isd_startup_fee>" isd_startup_fee "</isd_startup_fee>";
                   xmlFileContent +="<isd_incoming_calls>" isd_incoming_calls "</isd_incoming_calls>";
                   xmlFileContent +="<isd_lcc_mobile>" isd_lcc_mobile "</isd_lcc_mobile>";
                   xmlFileContent +="<isd_lcc_landline>" isd_lcc_landline "</isd_lcc_landline>";
                   xmlFileContent +="<isd_lsc_mobile>" isd_lsc_mobile "</isd_lsc_mobile>";
                   xmlFileContent +="<isd_lsc_landline>" isd_lsc_landline "</isd_lsc_landline>";
                   xmlFileContent +="<roaming_rates_eti>" roaming_rates_eti "</roaming_rates_eti>";
                   xmlFileContent +="<roaming_rates_others>" roaming_rates_others "</roaming_rates_others>";
                   xmlFileContent +="<addonFlag>" addonFlag "</addonFlag>";
                   xmlFileContent +="<addonList>" addonList "</addonList>";
                   xmlFileContent +="<status>" status "</status>";
                   xmlFileContent += "</plan>";
                   * Store the XML file in a System Location
                   //String dirPath = "/tmp/";
                   String dirPath = "C:\\tmp\\";
                   String file = "plans.xml";
                   String filePath = dirPath + file;
                   createFile(filePath, xmlFileContent);
                   //m_binder.putLocal("IsAutoNumber", "true");
                   System.out.println("#################### STATUS #############"+status);
                   m_binder.putLocal("AutoNumberPrefix", location + "_" + connection_type + "_");
                   System.out.println("---------- 1 Autonumberprefix -------------");
                   m_binder.putLocal("IdcService", "CHECKIN_NEW_SUB");
                   //m_binder.putLocal("IdcService", "CHECKIN_UNIVERSAL");
                   System.out.println("------- 2 IdcService----------");
                   m_binder.putLocal("dDocTitle", plan_name);
                   System.out.println("------------- 3 docType------------");
                   m_binder.putLocal("dDocAuthor", "sysadmin");
                   System.out.println("------- 4 dDocAuthor ---------");
                   m_binder.putLocal("dDocType", "Plans");
                   System.out.println("--------- 5 dDocType ----------");
                   m_binder.putLocal("dSecurityGroup", "Public");
                   System.out.println("-------- 6 dSecurityGroup ---------");
                   m_binder.putLocal("primaryFile", file);
                   System.out.println("------------ 7 Primary File--------");
                   m_binder.putLocal("primaryFile:path", dirPath + file);
                   System.out.println("-------- 8 primary file Path ----------");
                   m_binder.addTempFile(filePath);
                   System.out.println("------- 9 add temp file Completed--------");
                   m_service.executeService("CHECKIN_NEW_SUB");
                   //m_service.executeService("CHECKIN_UNIVERSAL");
                   System.out.println("------------ 10 CHECKIN_UNIVERSAL--------");
                   //m_service.executeService("CHECKIN_UNIVERSAL");
              catch(Exception e){
                   e.printStackTrace();
                   System.out.println("---------Exception Start --------"+e.getLocalizedMessage());
              System.out.println("************ CREATE PLAN - END ************");
         * editPlan is for editing the Plan
         public void editPlans()throws DataException, ServiceException, IOException, FileNotFoundException
              System.out.println("@@@@@@@@@@@@@@@@@@ EDIT PLAN - BEGIN @@@@@@@@@@@@@@@@@@");
              try{
                   String contentID = m_binder.getLocal("contentid");
                   //String baseDirPath = "/portal_ucm/ContentServer/weblayout/";
                   String baseDirPath = "/webcenterapp/ContentServer/weblayout/";
                   //String baseDirPath = "C:/ContentServer/weblayout/";
                   String[] temp;
                   temp = contentID.split("#");
                   String filePath = baseDirPath + "groups/public/documents/" + temp[2].toLowerCase() + "/" + temp[0].toLowerCase() + ".xml";
         try {
         //create the parser
              String binderValue="";
         XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileInputStream(filePath));
         StAXOMBuilder builder = new StAXOMBuilder(parser);
         //get the root element (in this case the envelope)
         OMElement documentElement = builder.getDocumentElement();
         //dump the out put to console with caching
         //System.out.println(documentElement.toStringWithConsume());
         Iterator iterator = documentElement.getChildElements();
         while(iterator.hasNext())
              OMElement ele = (OMElement)iterator.next();
              binderValue += ele.getText() + ",";
         m_binder.putLocal("binderValue", binderValue);
         m_binder.putLocal("contentId", temp[0]);
         m_binder.putLocal("dId", temp[1]);
         m_binder.putLocal("revLabel", temp[3]);
         } catch (XMLStreamException e) {
         e.printStackTrace();
         } catch (FileNotFoundException e) {
         e.printStackTrace();
              catch(Exception e){
                   e.printStackTrace();
              System.out.println("@@@@@@@@@@@@@@@@@@ EDIT PLAN - BEGIN @@@@@@@@@@@@@@@@@@");
         * EditPlanValue() method for editing teh Plan Values
         public void editPlanValue()throws DataException, ServiceException, IOException, FileNotFoundException
              System.out.println("#################### EDIT PLAN PVALUE - BEGIN ####################");
              try{
                   String location = m_binder.getLocal("location");
                   String connection_type = m_binder.getLocal("connection_type");
                   String plan_name = m_binder.getLocal("plan_name");
                   String crm_id = m_binder.getLocal("crm_id");
                   String pack_charges = m_binder.getLocal("pack_charges");
                   String validity = m_binder.getLocal("validity");
                   String free_talktime = m_binder.getLocal("free_talktime");
                   String incoming_calls = m_binder.getLocal("incoming_calls");
                   String short_desc = m_binder.getLocal("short_desc");
                   String long_desc = m_binder.getLocal("long_desc");
                   String image_path = m_binder.getLocal("image_path");
                   String alt_text = m_binder.getLocal("alt_text");
                   String local_rates_eti = m_binder.getLocal("local_rates_eti");
                   String local_rates_others = m_binder.getLocal("local_rates_others");
                   String local_startup_fee = m_binder.getLocal("local_startup_fee");
                   String local_incoming_calls = m_binder.getLocal("local_incoming_calls");
                   String local_lcc_mobile = m_binder.getLocal("local_lcc_mobile");
                   String local_lcc_landline = m_binder.getLocal("local_lcc_landline");
                   String local_lsc_mobile = m_binder.getLocal("local_lsc_mobile");
                   String local_lsc_landline = m_binder.getLocal("local_lsc_landline");
                   String std_rates_eti = m_binder.getLocal("std_rates_eti");
                   String std_rates_others = m_binder.getLocal("std_rates_others");
                   String std_startup_fee = m_binder.getLocal("std_startup_fee");
                   String std_incoming_calls = m_binder.getLocal("std_incoming_calls");
                   String std_lcc_mobile = m_binder.getLocal("std_lcc_mobile");
                   String std_lcc_landline = m_binder.getLocal("std_lcc_landline");
                   String std_lsc_mobile = m_binder.getLocal("std_lsc_mobile");
                   String std_lsc_landline = m_binder.getLocal("std_lsc_landline");
                   String isd_startup_fee = m_binder.getLocal("isd_startup_fee");
                   String isd_incoming_calls = m_binder.getLocal("isd_incoming_calls");
                   String isd_lcc_mobile = m_binder.getLocal("isd_lcc_mobile");
                   String isd_lcc_landline = m_binder.getLocal("isd_lcc_landline");
                   String isd_lsc_mobile = m_binder.getLocal("isd_lsc_mobile");
                   String isd_lsc_landline = m_binder.getLocal("isd_lsc_landline");
                   String roaming_rates_eti = m_binder.getLocal("roaming_rates_eti");
                   String roaming_rates_others = m_binder.getLocal("roaming_rates_others");
                   String addonFlag = m_binder.getLocal("addonFlag");
                   String addonList = m_binder.getLocal("addonList");
                   String status = m_binder.getLocal("status");
                   String contentId = m_binder.getLocal("contentId");
                   String dId = m_binder.getLocal("dId");
                   String revLabel = m_binder.getLocal("revLabel");
                   int temp = Integer.parseInt(revLabel);
                   temp++;
                   revLabel = temp + "";
                   m_binder.putLocal("IdcService", "INTERNAL_CHECKOUT_SUB");
                   m_binder.putLocal("dDocName", contentId);
                   m_binder.putLocal("dID",dId);
                   m_binder.putLocal("dDocAuthor", "sysadmin");
                   m_service.executeService("INTERNAL_CHECKOUT_SUB");
                   String xmlFileContent = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
                   xmlFileContent += "<plan>";
                   xmlFileContent +="<location>" location "</location>";
                   xmlFileContent +="<connection_type>" connection_type "</connection_type>";
                   xmlFileContent +="<plan_name>" plan_name "</plan_name>";
                   xmlFileContent +="<crm_id>" crm_id "</crm_id>";
                   xmlFileContent +="<pack_charges>" pack_charges "</pack_charges>";
                   xmlFileContent +="<validity>" validity"</validity>";
                   xmlFileContent +="<free_talktime>" free_talktime "</free_talktime>";
                   xmlFileContent +="<incoming_calls>" incoming_calls "</incoming_calls>";
                   xmlFileContent +="<short_desc>" short_desc "</short_desc>";
                   xmlFileContent +="<long_desc>" long_desc "</long_desc>";
                   xmlFileContent +="<image_path>" image_path "</image_path>";
                   xmlFileContent +="<alt_text>" alt_text "</alt_text>";
                   xmlFileContent +="<local_rates_eti>" local_rates_eti "</local_rates_eti>";
                   xmlFileContent +="<local_rates_others>" local_rates_others "</local_rates_others>";
                   xmlFileContent +="<local_startup_fee>" local_startup_fee "</local_startup_fee>";
                   xmlFileContent +="<local_incoming_calls>" local_incoming_calls "</local_incoming_calls>";
                   xmlFileContent +="<local_lcc_mobile>" local_lcc_mobile "</local_lcc_mobile>";
                   xmlFileContent +="<local_lcc_landline>" local_lcc_landline "</local_lcc_landline>";
                   xmlFileContent +="<local_lsc_mobile>" local_lsc_mobile "</local_lsc_mobile>";
                   xmlFileContent +="<local_lsc_landline>" local_lsc_landline "</local_lsc_landline>";
                   xmlFileContent +="<std_rates_eti>" std_rates_eti "</std_rates_eti>";
                   xmlFileContent +="<std_rates_others>" std_rates_others "</std_rates_others>";
                   xmlFileContent +="<std_startup_fee>" std_startup_fee "</std_startup_fee>";
                   xmlFileContent +="<std_incoming_calls>" std_incoming_calls "</std_incoming_calls>";
                   xmlFileContent +="<std_lcc_mobile>" std_lcc_mobile "</std_lcc_mobile>";
                   xmlFileContent +="<std_lcc_landline>" std_lcc_landline "</std_lcc_landline>";
                   xmlFileContent +="<std_lsc_mobile>" std_lsc_mobile "</std_lsc_mobile>";
                   xmlFileContent +="<std_lsc_landline>" std_lsc_landline "</std_lsc_landline>";
                   xmlFileContent +="<isd_startup_fee>" isd_startup_fee "</isd_startup_fee>";
                   xmlFileContent +="<isd_incoming_calls>" isd_incoming_calls "</isd_incoming_calls>";
                   xmlFileContent +="<isd_lcc_mobile>" isd_lcc_mobile "</isd_lcc_mobile>";
                   xmlFileContent +="<isd_lcc_landline>" isd_lcc_landline "</isd_lcc_landline>";
                   xmlFileContent +="<isd_lsc_mobile>" isd_lsc_mobile "</isd_lsc_mobile>";
                   xmlFileContent +="<isd_lsc_landline>" isd_lsc_landline "</isd_lsc_landline>";
                   xmlFileContent +="<roaming_rates_eti>" roaming_rates_eti "</roaming_rates_eti>";
                   xmlFileContent +="<roaming_rates_others>" roaming_rates_others "</roaming_rates_others>";
                   //xmlFileContent +="<roaming_rates_others>" roaming_rates_others "</roaming_rates_others>";
                   xmlFileContent +="<addonFlag>" addonFlag "</addonFlag>";
                   xmlFileContent +="<addonList>" addonList "</addonList>";
                   xmlFileContent +="<status>" status "</status>";
                   xmlFileContent += "</plan>";
                   String dirPath = "/tmp/";
                   String file = "plans.xml";
                   String filePath = dirPath + file;
                   //createFile(filePath, xmlFileContent);
                   createFile(file, xmlFileContent);
                   m_binder.putLocal("IdcService", "CHECKIN_SEL_SUB");
                   m_binder.putLocal("dID", dId);
                   m_binder.putLocal("dDocName", contentId);
                   m_binder.putLocal("dRevLabel", revLabel);
                   m_binder.putLocal("primaryFile", file);
                   m_binder.putLocal("primaryFile:path", dirPath + file);
                   m_binder.addTempFile(filePath);
                   m_service.executeService("CHECKIN_SEL_SUB");
              catch(Exception e){
                   e.printStackTrace();
              System.out.println("#################### EDIT PLAN VALUE - END ####################");
         * createFile() method is util method for creating the XML file
         private void createFile(String fileName , String xmlString) throws DataException,
         ServiceException, IOException, FileNotFoundException{
              //System.out.println("*********** CREATE FILE ************");
              File fileMain = new File(fileName);
              FileOutputStream rdFileW = new FileOutputStream(fileMain);
              rdFileW.write(xmlString.getBytes());
              rdFileW.close();
              //System.out.println("********** File Close --- CREATE FILE ********** ");
    I have sent the server output in my previos mail. We have just created custome component in the custom folder in the content server using component wiz and we are trying to customize it.
    Where I need to check for the error logs in the content server.
    Regards & thanks,
    Nirmala Vijaya Sekhar Varre

  • How do i check in Business Content

    Hi,
        In implementation we usally use the BC datasr'c but how do we check the particular datasrc or query or for tht matter any content delivered by BC matches our requrement,do we get into them and check the objects init or do we have a particular methodology for ths.
    Thanks
    Akhilesh

    Hi,
    There is no tool or short cut method for this . Only the hardwork and experience makes us perfect here.
    So you need to understand the R/3 fileds,tables and logic for your requirement.
    And then you have to know the standard Objects in BIW on that set of tables.
    And you have to compare the standard one with your requirement and decide the enhanceents to  be done ,the logic to be implemented at different palces (like UR,TR,or in the query desiner).
    With rgds,
    Anil Kumar Sharma .P

  • Checking the file content in application server

    Hi,
    I am writing an XML file from the raw XSF data from a smartform auto generated function module through OPEN DATASET command in BINARY MODE. When I go to tcode AL11 to check the content of the XML file, I can see only the first few bytes of it as it looks like one single line in AL11. Is there any way so that I can read the whole content of the file in the application server itself without downloading it into my local machine.
    Thanks in advance
    Nilay Ghosh

    You may try eigther transaction AL11 with allows you to browse files and display their content(as long they are textfiles).
    If you need specific conversion an own report may help:
    first read the file via dataset commands
    if content is non readable convert it to chars
    split the string into a char or string table
    use the command 'editor-call' (check online help) to display this table.
    Kind Regards
    Klaus

  • Check .txt file content

    How can I check the content of a .txt file?
    I need to verify if the file is empty or not.

    magaupe wrote:How can I check the content of a .txt file?
    I need to verify if the file is empty or not.Try this,
    new File("d:/YourFile.txt").size();* If the file size is zero , then there is no content
    * Other something is there in the file....
    Can...Can...If We Try.....!

  • Check for All Content Areas privilege

    Hi,
    Does anyone know hoe to check for the All Content Areas (or All
    Pages) privilege, which can be set in the Privileges tab of the
    Edit Group portlet?
    I know how to check for explicit folder access:
    IF wwsec_api.is_privilege_at_least
    ( p_object_type_name => wwsec_api.FOLDER_OBJ
    , p_name => pin_siteid || '/' || pin_folderid
    , p_privilege_code => wwsec_api.FOLDER_VIEW
    THEN
    htp.p(piv_foldername);
    END IF;
    This function does not consider, however, that administrators
    can see everything.
    How can I check if a user or his/her group has the All Content
    Areas privilege?
    Herman

    This resolved itself over time.

  • How to change font size of tree control content programati​cally

    Hi,
    Can I programtically change the font size of  parent item and child item in the tree control.
    In my application the parent and child items are changing  programatically. ie the content of tree control is not constant it is  dynamic.
    I am using labview 8.6
    Thank You
    Assumptha.
    Solved!
    Go to Solution.

    That does work...  
    To keep this line of instruction under the same title, how do you change ALL the text?  not just the active cell?  i've tried double clicking, then editing text properties using the font dialog (ctrl + 0) on a non-running vi, then saved it, and hit run.  but it always reverts to some preset font properties values, and i don't know where they're being set....???
    Any help would be greatly apprec! 

  • I think javascript is not working. At least that is what it says on youtube. I cannot get any dropdown menu's in gmail either. I made sure the "enable javascript" is checked in the content tab. Just stopped working.

    I cannot do anything in my gmail account, such as reply, forward or get any drop down menu to work.
    When I go to youtube it says that either I do not have javascript or it is not enabled. I checked and the box says it is enabled.
    I use a mac 10.6.4

    https://support.mozilla.com/en-US/questions/762865#answer-115088

  • In design 5.5 pop up and mouseover activities cannot be checked in 'Adobe Content Viewer'

    Click n mouseover popups created in in design5.5 can be viewed in preview window but cannot be viewed in Adobe content viewer.
    For such small interactivities also, do we need to convert it into flash and then with wallaby to HTML5 and then import back in In design5.5 working file.

    Hi Andy,
    The way to add in that missing information is via the Folio Properties window. If you build your cover art, in horizontal and vertical orientations, and upload it via the folio properties it should show up in the Content Viewer index page. You can also add a Publication Name in the same window.
    1. Highlight a folio and select "Properties"
    2. This will open the Folio Properties window
    3. Click on the folders next to each Cover Preview window and select your files.
    4. Add the name of your Folio into the "Publication Name" field.
    Tony

  • OSB: Check if node contents is dateTime

    How can i determine if the contents of a node is a dateTime using XQuery in OSB

    Probably the simplest way is not to use XQuery but use a defined XML schema for the message which specified a field should be a dateTime and validate the inbound message against the schema.
    I suspect there's more behind the question than just "how can I do this?" though - what is it you're actually doing?
    Paddy

  • Want to check the fields content

    Hello Experts,
       I  am having a requirement where in particular code has to get executed only if the value of the field is a number.
            LOOP AT lt_line.
              TRANSLATE lt_line-tdline USING ',.'.
              MOVE lt_line-tdline TO l_aux_tare.
              ADD l_aux_tare TO lv_sum_tare.
            ENDLOOP.
    Here the code inside the loop has to get executed only if the value of the field lt_line-tdline is a number.
    Thanks & Regards,
    Uday....

    if lt_line-tdline CO '0123456789'.
    then process your code here.
    endif.

  • Checking queue for content

    Hi all,
    I have a question concerning the mapping tool of PI. I want to know, if a queue has a real entry. When I use the function "exists", I got a "true" even when the queue has supresser. But I'd like to get a true only when the queue has a real entry (String). Could anybody help me here?
    Thank You.

    Hi Lukas
    From your screenshot, I think you are using PI 7.0 or 7.1. I'm not sure if it behaves differently from PI 7.11 which I'm running on.
    Instead of casting, you can also just declare the found variable as a String. Refer to the changes in red below.
    String found = "false";
    for (int i = 0; i < input.length; i++ ) {
      if (!input[i].equals(ResultList.SUPPRESS)) {
        found = "true";
        break;
    result.addValue(found);
    You mentioned that you received an error - can you give a screenshot of the error?
    Also, can you give a screenshot of the logic and "display queue" entries of the function before the input of the UDF? I would like to the SUPPRESS and other queue values are generated.
    Another thing, can you make sure that the execution type is "All Values of a Context". I can't remember how it looks like on the older XI/PI version.
    Rgds
    Eng Swee

  • SAP LSO : Error Checking in Content

    Hi All,
    I am trying to check in the content from Authoring Tool to Content Management Repository of Portal.And I am getting the following error.
    Address already in use: connect
    java.net.BindException: Address already in use: connect     at java.net.PlainSocketImpl.socketConnect(Native Method)     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)     at java.net.Socket.connect(Socket.java:461)     at java.net.Socket.connect(Socket.java:411)     at java.net.Socket.<init>(Socket.java:310)     at java.net.Socket.<init>(Socket.java:125)     at com.sap.hcm.ls.shared.repository.access.wdslide.implext.SocketConnection.<init>(SocketConnection.java:37)     at com.sap.hcm.ls.shared.repository.access.wdslide.implext.SocketConnectionManager.getSocketConnection(SocketConnectionManager.java:62)     at com.sap.hcm.ls.shared.repository.access.wdslide.implext.HttpClient2.openConnection(HttpClient2.java:660)     at com.sap.hcm.ls.shared.repository.access.wdslide.implext.HttpClient2.executeMethod(HttpClient2.java:257)     at com.sap.hcm.ls.shared.repository.access.wdslide.implext.WebdavResource2.putMethod(WebdavResource2.java:2271)     at com.sap.hcm.ls.shared.repository.access.wdslide.WDRepository.writeFile(WDRepository.java:697)     at com.sap.hcm.ls.shared.repository.exchange.CopyMan$DeepCopyTask.doJob(CopyMan.java:645)     at com.sap.hcm.ls.shared.util.MultiThreadWorker.run(MultiThreadWorker.java:399)     at java.lang.Thread.run(Thread.java:534)
    Does any one have an idea of what this error is about??Any help is greatly appreciated
    Regards,
    Santhosh

    Hello Anirudh,
    i assume that you get this error only after you click on the save button.Before clicking on the save button i assume you had checked in the original.
    Suggest you to put start the debugger using "/h" and then click on the the Save button. Once the debugger opens, put a break point on the "Message" using the debugger. And start debugging using F8 key. When the control stops at any message statement , just have a look at the content of the internal table filled before the Message stmt. It would help you to figure out the exact cause of the error message.
    Seeing the error message , i think that in your case it might be that signature are not sent from your system to the content server.
    You can see the details about the signature associated to he content repository from the "csadmin" transaction. if you have any problem with regarding to signatures, just check if you have any active signature. I think there is not active signature, just select one signature and activate the signature.
    If the problem still exists and it maps to the content server, contact your content server admin.
    Hope this helps you out, Best of luck.
    Regards,
    Om

  • Duplicate checking based on the content of the incoming file

    Hi,
    We have a requirement where in we have to check whether a file has been duplicated or not based on the contents of an incoming file.The threads which I have seen in SDN deal with the duplicate checking based on the filename of the incoming file.
    The incoming file has the following structure :
    Recordset                                     Occurance-1
           |....... Idoc                              Occurance 1...unbounded
                       |...... segment             Occurance 1
    We are required to make a check based on certain fields which occur in the segment.There are about 4 fields which we will have to take from the incoming file and carry out the check.These 4 fields exist in different segments.We will have to update a ztable with these 4 fields and then perform an rfc lookup to check for the contents of the incoming files with this table,and reject or process the file based on whether the entries exist in the table or not.
    Please let me know if there is any way this can be achieved.
    Appreciate if anyone could help me on this.
    Thanks and Regards,
    Induja

    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    Use this crazy piece for any RFC Mapping Lookups!
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5877---- [original link is broken] [original link is broken] [original link is broken]
    Imp
    SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series
    SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the  Lookup API
    The specified item was not found.
    The specified item was not found.
    Making CSV File Lookup Possible In SAP XI !!!
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1888-----Imp [original link is broken] [original link is broken] [original link is broken]
    Triggering XI Alerts from a User Defined Function
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part II

Maybe you are looking for