How to save report in PersonalCategory  after creating it using java panel?

Hi,
Anybody knows How to save report in PersonalCategory  after creating it using java panel?
I dont want to save it in public folder. I want to save report (webi) in user's personal category.
can anybody send me source code?
It will help me a lot.
Thanks in advance
Amol Mali

Hi teda,
i'm assuming that you have seen my post that i did successfuly save report in user's personal category.
Actually the report is created in webi java panel using RE SDK and  is saved in Report Sample Folder then i'm saving it in user's personal category by following code
string query = "Select SI_PERSONAL_CATEGORIES From CI_INFOOBJECTS Where "
                     + "SI_INSTANCE=0 And SI_ID=" + reportID;
                InfoObjects infoObjects = infoStore.Query(query);
                InfoObject infoObject = infoObjects[1];
                Webi wreport = (Webi)infoObject;
                ObjectRelativeIDs personalIDs = wreport.PersonalCategories;
            /personalIDs.Add(Convert.ToInt32(categoryID));
               infoStore.Commit(infoObjects);
But the report is presents in the Folder also and in user's personal category also.
I dont want the report to be in the folder (Report Sample) if i saved it in user's personal category.
How can i do that?
any idea.
Please help me.
Thanks in advance
Amol Mali
Edited by: amol mali on Jan 9, 2009 7:55 PM

Similar Messages

  • How to save data in ztable after editing in alv report

    how to save data in ztable after editing in alv report?

    Hi,
        Please find the attachment below.This may be usefull to you.
         [http://wiki.sdn.sap.com/wiki/display/Snippets/ALV-Editingandsavingtheeditedvaluesin+Database%28OOPS%29]
    Regards,
    Ramakrishna Yella.

  • Having trouble figuring out how to save the original photo after I've cropped it - i.e. I want to create a headshot of my husband from a photo of the two of us, but I also want to keep the original. Seems very basic, but can't seem to figure it out. Any h

    Having trouble figuring out how to save the original photo after I've cropped it - i.e. I want to create a headshot of my husband from a photo of the two of us, but I also want to keep the original. Seems very basic, but can't seem to figure it out. Any help would be great!

    Use File >> Save As
    Choose a different file name so as not to overwrite the original and don't save any changes when closing the original.

  • How to get the value of bill doc after creating it using tc VF01.

    hi,
    i want to get the bill doc no after  creating it using BDC tc VF01.
    with that no i have to update the ztable.

    hi,
    i tried with the above mentioned method to get the created delivery no.but i am unable to get the created billing doc no using bdc tc VF01.any idea about this...
    REFRESH       tt_bdcdata.
      PERFORM bdc_dynpro      USING text-005 text-006.
      PERFORM bdc_field       USING text-008
                                    text-017.
      PERFORM bdc_field       USING text-009
                                    text-011.
      PERFORM bdc_field       USING text-017
                                    wa_worklist-del_no . "wa_created-document_numb.
      PERFORM bdc_dynpro      USING text-006 text-007.
      PERFORM bdc_field       USING text-008
                                    text-018.
      PERFORM bdc_field       USING text-009
                                    text-019.
      CALL TRANSACTION c_t_bill USING tt_bdcdata
                                                MODE c_m
                                                UPDATE c_u
                                                MESSAGES INTO tt_bdcmsgcoll .
      SORT tt_bdcmsgcoll BY msgtyp.
      READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_e.
      IF sy-subrc EQ 0.
        LOOP AT tt_bdcmsgcoll INTO wa_bdcmsgcoll WHERE msgtyp = c_e.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              id        = wa_bdcmsgcoll-msgid
              lang      = text-010
              no        = wa_bdcmsgcoll-msgnr
              v1        = wa_bdcmsgcoll-msgv1
              v2        = wa_bdcmsgcoll-msgv2
              v3        = wa_bdcmsgcoll-msgv3
              v4        = wa_bdcmsgcoll-msgv4
            IMPORTING
              msg       = v_msg
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          IF sy-subrc <> 0.
          ENDIF.
          WRITE :/ v_msg.
        ENDLOOP.
      ELSE.
        READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_s.
        IF sy-subrc EQ 0.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              id        = wa_bdcmsgcoll-msgid
              lang      = sy-langu
              no        = wa_bdcmsgcoll-msgnr
              v1        = wa_bdcmsgcoll-msgv1
              v2        = wa_bdcmsgcoll-msgv2
              v3        = wa_bdcmsgcoll-msgv3
              v4        = wa_bdcmsgcoll-msgv4
            IMPORTING
              msg       = v_msg
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          MOVE wa_bdcmsgcoll-msgv1 TO v_billno.
         wa_epit-bill_no =  v_billno .
         MODIFY TABLE  tt_epit FROM  wa_epit TRANSPORTING bill_no.
         UPDATE zsd_dt_epit SET bill_no = v_billno where del_no = wa_created-document_numb .
         IF sy-subrc EQ 0.
         ENDIF.
          MOVE: v_billno TO wa_worklist-bill_no .
          READ TABLE tt_epit INTO wa_epit WITH KEY epi_id = wa_worklist-epi_id epi_sr = wa_worklist-epi_sr.
          IF sy-subrc EQ  0.
            MODIFY tt_epit FROM wa_worklist TRANSPORTING bill_no WHERE epi_id = wa_worklist-epi_id AND epi_sr = wa_worklist-epi_sr.
          ELSE.
            APPEND wa_worklist TO tt_epit.
          ENDIF.
        ENDIF.
      ENDIF.
    please suggest me..its urgent

  • Can I save a Toshiba recovery after years of use?

    I saved a recovery when the computer was new, but that saved copy is not available now. Can I save a recovery again, even after years of use? I am having computer problems, so i plan to do a system restore and hope that all returns OK to an earlier good version. Before I start that system restore, however, I would like to have a recovery point saved as a backup in case the system restore does not work properly. I will start that system restore in a few hours, so any quick replies will be much appreciated. Thanks!

     
    Satellite L855-S5240
    Can I save a Toshiba recovery after years of use?.  ...   I did a system restore and it worked great, so no need for a Toshiba recovery.
    That's fine, but you still need the recovery discs for possible use when, for instance, you need to restore to a new hard disk.
    The answer is Yes you can. For instructions, see the section Creating recovery media, which begins on p. 65 of the User's Guide.
       Satellite/Satellite Pro L800/S800 Series User’s Guide

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • How to stop a while loop after certain time using Elapsed time vi

    how to stop a while loop after certain time using Elapsed time vi.

    Hi Frankie,
    Just place the Elapsed Time VI inside the WHILE loop, and wire the 'Time Has Elapsed' output to the conditional terminal in the lower right corner (which should be set to 'stop if true' by default).
    In the future, please post your LabVIEW questions to the LabVIEW Forum.  You have a much better chance of getting your questions answered sooner, and those answers can then help others who are searching the LabVIEW forums.  Thanks!
    Justin M
    National Instruments

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • Is is possible to create Socket using Java Stored Procedures/Function(Ora)?

    Hello Friends,
    Is is possible to create Socket using Java Stored Procedures/Function in Oracle?
    OR
    How I can send a message from oracle to Java Desktop Application which is working like server program?
    Please Guide !!

    J3Ganesh wrote:
    Hello Friends,
    Is is possible to create Socket using Java Stored Procedures/Function in Oracle?No, Oracle was very careful to take that feature out of the JDK provided in Oracle 10/11, but you can buy that feature back for, if I remember correctly, about 5000 dollars. (I actually raised a service request on this and then told my rep what I thought about the answer I received--some thing along the line of money grubbing so and so....)
    How I can send a message from oracle to Java Desktop Application which is working like server program?You can make a table and poll it from time to time from the Java side and write and commit what ever you want to the table. I do not know any way to send a signal from Oracle DB an external Java application--Java or PL/SQL stored procedure.

  • I can not get any updates and therefor not use Java as it only run updates for Mac 10.7. and later? How do i get the updates to install and use Java?

    I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?

    In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
    java -version
    (don't get creative and type anything else)
    The latest version is 1.6.0_65.

  • How advantages of "Call By Reference" can be implemented using Java

    As I know that java doesnot support "Call By Reference" as C++
    does.
    I want to know that how advantages of Call by Reference can be
    implemented using Java.

    There is some misunderstanding here. Method arguments in Java are passed by value. However, if you pass a reference (to an object) by value, you can still modify the object that the (copy of the) reference points to.
    public void method1() {
      StringBuffer buf = new StringBuffer();
      // Here, method2 cannot change the value of the variable buf,
      // but it can modify the object that buf points to.
      method2(buf);
    public void method2(StringBuffer sb) {
      // You can modify the StringBuffer.
      sb.append("hello");
      // But this is useless, it will not change the variable buf
      // in the calling method.
      sb = new StringBuffer();
    }Jesper

  • Error while saving report after creating it using webi java panel?

    Hi,
    Whenever i create report through java panel & RE SDK and then try to save it i got below error
    Could not save the document to the repository for the following reason: [repo_proxy 30] InfoStore::ObjectExport::commit - (Helpers::InfoStore::ObjectExport::commit) Failed to commit objects to server :
    Invalid parent id.(hr=#0x80041e0e)(Error #-2147213810 (WIS 30567)
    Actuallly i want to  save report in User's personal category.
    For that i retrive the ID of that User's personal category then pass it to variable to save
    Code while saving
    //JavaScript
    if ("<%= strSubmit.Equals("submit")%>"=="True")
              var value = new Array();
               value[0] = "<%= strName %>"; //Given value of Report
               value[1] = "<%= strComments %>"; //Value ""
              value[2] = "<%= strkeywords %>"; //Value ""
              value[3] = "<%= strFolderId  %>"; //Value ""
              value[4] = "<%= strCategories  %>"; //Value ""
              value[5] = "<%= strPersonalCategories %>"; //Here i assign the ID of User's personal category
              value[6] = "<%= strRefreshOnOpen %>"; //Value ""
              //save the document
                window.opener.saveDocumentCall(value[0],value[1],value[2],value[3],value[4],value[5],value[6]);
                window.close();
    any help?
    Thanks in Advance
    Amol Mali

    Hi Teda,
    Thanks for the reply.
    Actually i'm setting User's PersonalCategory id to Parent ID not setting Folder ID to Parent ID.
    How can i proceed?
    Please help.
    Thanks
    Amol Mali

  • How to pick additional delivery quantity after creating Transfer Order .

    Hi
    Sales order has been created for 30 pc of material ,  with reference to this  sales order , delivery  has been created .Afterwards  I  created  transfer order in lt03 and got it confirmed  in LT12. However , PGI has not been carried out .
    Afterwards ,  I went to  VL02N and manually increased the materialsu2019 quantity to 60 pc in delivery  .
    In delivery packing status is partially picked .
    I request you to help me how can  I pick another 30pc as already transfer order has been created and confirmed for this delivery .
    Either system is not allowing me to cancel transfer order in order to create   fresh  transfer order to with reference to this delivery . Otherwise , I could have done it .
    Could you please suggest me , how to go about it .

    Hi
    There is an excellent way to handle your issue
    While creating TO in t code LT03 in the initial screen control tab if you give pick quantity as 2 after the TO creation the system will simultaneouslely do PGI also in a single shot
    This means the delivery quantity cant be changed in the VL02N
    The whole VL02N will be display mode fully greyed out
    That means after TO you cant change the delivery
    If extra qty has to be added then it has to be a separate order only
    I have practised this only and for the past two hrs i was breaking my head how come you are changing delivery after TO creation and for me it was in display mode(fully greyed out) even in VL02N and i found out i am using adopt pick qty as 2 in the initial screen of LT03 which does PGI in a single shot
    This should be a good solution for you
    Even the solution suggested by Mr.Raj Malhotra you will face the same problem
    Regards
    Raja

  • How to see the table entries after creating the tansaction XD01

    I creat customer initial screen through Transaction XD01.
    After creating customer initial screen how can i see the yable entries.

    Hi,
    The customer entries are stored in table KNA1.
    Regards,
    Himanshu

  • How to save routing entries permanently after route add

    Hi guys,
    I have added routing entries through route add command. I know i can add routing entries permanently thru -p option in route add command but didin't use that option. How to save those routing entries now?
    Thanks...

    The filename you are looking for is /etc/inet/static_routes which is available only on Solaris 10 update 3 or later:
    root_sol10u3# route -p add -net 192.168.138.0/24 192.168.136.1
    root_sol10u3# cat /etc/inet/static_routes
    # File generated by route(1M) - do not edit.
    -net 192.168.128.0/22 192.168.136.1
    -net 192.168.138.0/24 192.168.136.1
    -net 172.31.68.0/24 192.168.149.253
    -net 172.31.69.0/24 192.168.149.253
    root_sol10u3#For Solaris 10 update 2 or earlier, persistent static routes are not implemented. Additionally, the old RC script method suggested above also will not work for Solaris 10 given the host isn't always guaranteed to reach the "multiuser" milestone and subsequently run the legacy /etc/rc*/S* scripts (say if a filesystem fails to mount). For those releases, you should create a new manifest file as follows:
    root_sol10u2# cat /var/svc/manifest/network/RKstatic-routes.xml
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
    <!--
            Static Route SMF Manefest
            To be replaced by official Sun mechanism in next solaris release
    -->
    <service_bundle type='manifest' name='RKstatic-routes'>
    <service
      name='network/RKstatic-routes'
      type='service'
      version='1'>
        <create_default_instance enabled='true' />
        <single_instance/>
        <dependency name='network'
            grouping='require_any'
            restart_on='error'
            type='service'>
                <service_fmri value='svc:/network/service' />
        </dependency>
      <exec_method
        type='method'
        name='start'
        exec='/lib/svc/method/RKstatic-routes start'
        timeout_seconds='60' />
      <exec_method
        type='method'
        name='stop'
        exec='/lib/svc/method/RKstatic-routes stop'
        timeout_seconds='60' />
      <property_group name='startd' type='framework'>
        <propval name='duration' type='astring' value='transient' />
      </property_group>
      <stability value='Unstable' />
    </service>
    </service_bundle>
    root_sol10u2#Then create the method script:
    root_sol10u2# cat /lib/svc/method/RKstatic-routes
    #!/bin/sh
    # RKstatic-routes
    # To be called by the network/RKstatic-route SMF service
    ACTION=${ACTION:-add}
    setup_routes () {
    #Route to networks.
    /usr/sbin/route $ACTION net 172.1.0.0 -netmask 255.255.0.0 10.1.0.0
    /usr/sbin/route $ACTION net 172.2.0.0 -netmask 255.255.0.0 10.2.0.0
    case "$1" in
        start)
            echo "${ACTION}ing static routes"
            setup_routes
        stop)
            ACTION=delete
            echo "${ACTION}ing static routes"
            setup_routes
            echo "Usage: $0 {start|stop}"
            exit 1
    esac
    root_sol10u2#Then, import and enable/start the service:
    root_sol10u2# svccfg -v import /var/svc/manifest/network/RKstatic-routes.xml
    root_sol10u2# svcadm enable network/RKstatic-routes
    root_sol10u2# To stop:
    root_sol10u2# svcadm disable network/RKstatic-routes
    root_sol10u2# For posterity, here is a pre-Solaris 10 version:
    root_sol9# cat /etc/init.d/staticRoutes.sh
    #!/bin/sh
    case "$1" in
            start)
                    test -f /etc/routes.conf || exit 0
                    while read type route gateway
                    do
                            /usr/sbin/route add $type $route $gateway
                    done < /etc/routes.conf
            stop)
                    test -f /etc/routes.conf || exit 0
                    while read type route gateway
                    do
                            /usr/sbin/route delete $type $route $gateway
                    done < /etc/routes.conf
                    echo "Usage: /etc/init.d/routes { start | stop }"
    esac
    root_sol9# cat /etc/routes.conf
    172.1.2.0/24 172.1.2.4
    172.1.3.0/24 172.1.3.4
    root_sol9# ln -s /etc/rc2.d/S70staticRoutes /etc/init.d/staticRoutes.sh
    root_sol9#Best Regards,
    Bryan Wood

Maybe you are looking for

  • Animated .gif not reloading

    Here's my problem: I'm trying to run an animation whenever a certain button is pressed. The file is an animated .gif. It works... but only the first time. I'm trying to figure out how to work more than once. The image is being loaded in a JLabel. Sug

  • Delivery document is assigned to Shipment document.

    Delivery document was assigned to the shipment document. and delivery document was deleted from SAP. Since the preceeding document delivery document was deleted from SAP. Now User want to delete the shipment document from SAP. But system encountered

  • Is it possible to add a soundtrack to a presentation in Keynote (iPad)?

    I created my presentation on my Mac (working perfectly), but when I want to view it on my iPad, the soundtrack is removed. Anybody who knows a way to work around this issue?

  • Min/max MRP and double star planned order

    Hi,     What does setting up materials for min/max mean ? Is it just some concept r does it involve some specific settings in the material master ? I know there are minimum and maximum lot sizing procedures available. Are these to be taken into accou

  • Error occuring during activation on iMessage for my ipad

    I am trying to recover my old text messages and when I am trying to log in on my iPad there's error occurring during activation.  Please help.