Reading/Writing the "wpproperty" from portal LDAP

Hi,
We want to read/write the "wpproperty" from portal LDAP. I found the code for EP60.
IUser user = request.getUser();
String itar[] = user.getAttribute("com.sap.security.core.usermanagement","wpproperty");
newUser.setAttribute("com.sap.security.core.usermanagement",
"wpproperty", value);
Does anybody have an example for <b>EP50</b> code?
Kind regards,
Onno

I think the answers you got over [url http://forum.java.sun.com/thread.jsp?thread=524137&forum=54]here were excellent. You should now know that Java is a terrible language for this kind of thing. You would be much better off with some kind of a native language like C++. Even then, you are going to have to get heavily into the internal Windows system to get what you want from another application and I can't even imagine what you would have to go through to get it out of IE.
Anyway, I doubt you are going to find what you are looking for in the 'New To Java Technology' forum. You might be able to find something like this if you found a 'Hacker Forum' with people on it who had spent the time to find out how to steal information from other programs (probably at least a couple of years) and didn't mind if they got invovled with someone who might be talking to the FBI shortly.
Your only other option would be to spend the year or two it would take you to learn enough to do it yourself.
Good Luck.

Similar Messages

  • Problem in downlaod the certificate from portal

    Hi,
    I am new to iphone Please help me it's very urgent.
    I have create a new developer certificate and download it
    it works fine after that i have applied for distribution.
    when I have download this certificate but this certificate is invalid.
    I have revoked this certificate from portal and development also.
    when I have created the developer certificate again.
    downloaded it it is giving that it is not valid.
    when i have revoked the certificate from portal then in team section it is showing that it is revoked.but in certificate section it is showing issued
    and when i click on download or revoke it gives an error
    failed to download or revoked

    I'm having the same problem... A google search turned up another thread about it, but it appears too late to call anyone today, as support goes home at 5PM PST on Friday and doesn't come back until Monday.

  • User cannot receive the mail from portal

    Hi team
    One of the user is not receving mail in portal, when i check the status of the user is active and mail id is correct.
    Now my question is how to find the log from portal or we have to check from the R/3 end,
    since i am new to this portal administation please guide me. Your replies are very helpful.
    Regards
    Bhaskar.T

    Hi
    you can get the logs from /usr/sap/<SID>/j2ee/logs/defautltrace.trc, the file with the less size will be the latest one, alternatively you can monitor the the logs fron NWA,
    http://server.domain.name:50xx00/nwa ->monitoring ->Logs and traces.
    jo

  • Stax reading /writing need help from xml guru plz

    hi, i have been told that stax reading /writing should involve no overhead and that is why i use it and i am now able to write my large data to file, but using my reader i seem to run out of memory, using netbeans profiler i ahve found that char[] seems to be the problem,
    by backtracing i ahve found that javax.xml.parser.SAXParser.parse calls the xerces packages which eventually leads to the char[ ], now my code for my reader is attatched here...
    package utilities;
    import Categorise.Collection;
    import Categorise.Comparison;
    import Categorise.TestCollection;
    import java.io.IOException;
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.Attributes;
    import java.io.File;
    import java.util.ArrayList;
    import java.util.List;
    import measures.Protocol;
    * @author dthomas
    public class XMLParser extends DefaultHandler
        static Collection collection = new Collection();
        List<Short> cList;
        List<Comparison> comparisonList;
        File trainFileName;
        File testFileName;
        TestCollection tc;
        List<TestCollection> testCollectionList;
        List<File> testFileNameList = new ArrayList<File>();
        List<File> trainFileNameList = new ArrayList<File>();
        boolean allTrainsAdded = false;
        Protocol protocol;
        List<File> trainingDirList;
        File testingDir;
        int counter = 0;
        File[ ] trainingDirs;
        File[ ] trainingFileNames;
        File[ ] testFileNames;
        TestCollection[ ] testCollections;
        Comparison[ ] comparisons;
        Comparison c;
        short[ ] cCounts;
        String order;
        String value;
        File trainDir;
        /** Creates a new instance of XMLParser */
        public XMLParser() {
        public static Collection read( File aFile )
            long startTime = System.currentTimeMillis();
            System.out.println( "Reading XML..." );
            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser sp;
            try {
                sp = spf.newSAXParser();
                sp.parse( aFile, new XMLParser() );
            } catch (IOException ex) {
                ex.printStackTrace();
            } catch (SAXException ex) {
                ex.printStackTrace();
            } catch (ParserConfigurationException ex) {
                ex.printStackTrace();
            long endTime = System.currentTimeMillis();
            long totalTime = ( endTime - startTime ) / 1000;
            System.out.println( "Done..."  + totalTime + " seconds" );
            return collection;
        public void startElement(String uri,String localName,String qName, Attributes attributes)
            if( qName.equals( "RE" ) )
                testCollectionList = new ArrayList<TestCollection>();
            else if( qName.equals( "p") )
                boolean isConcatenated = new Boolean( attributes.getValue( "c" ) );
                boolean isStatic = new Boolean( attributes.getValue( "s" ) );
                protocol = new Protocol( isConcatenated, isStatic );
            else if( qName.equals( "trdl" ) )
                trainingDirList = new ArrayList<File>();
            else if( qName.equals( "trd" ) )
                trainDir = new File( attributes.getValue( "fn" ) );
                trainingDirList.add( trainDir );
            else if( qName.equals( "td" ) )
                testingDir = new File( attributes.getValue( "fn" ) );
            else if( qName.equals( "TC" ) )
                counter++;
                System.out.println( counter );
                comparisonList = new ArrayList<Comparison>();
                testFileName = new File( attributes.getValue( "tfn" ) );
                testFileNameList.add( testFileName );
                tc = new TestCollection( );
                tc.setTestFileName( testFileName );
            else if ( qName.equals( "r" ) )
             order = attributes.getValue( "o" );
                value = attributes.getValue( "v" );
                cList.add( Short.parseShort( order ), new Short( value ) );
            else if( qName.equals( "c" ) )
                cList = new ArrayList<Short>();
                trainFileName = new File( attributes.getValue( "trfn" ) );
                if( !allTrainsAdded )
                    trainFileNameList.add( trainFileName );
        public void characters(char []ch,int start,int length)
            //String str=new String(ch,start,length);
            //System.out.print(str);
        public void endElement(String uri,String localName,String qName)
            if (qName.equals( "c") )
                allTrainsAdded = true;
                cCounts = new short[ cList.size() ];      
                for( int i = 0; i < cCounts.length; i++ )
                    cCounts[ i ] = cList.get( i );
                c = new Comparison( trainFileName, tc );
                c.setcCounts( cCounts );
                this.comparisonList.add( c );
            else if( qName.equals( "TC" ) )
                comparisons = new Comparison[ comparisonList.size() ];
                comparisonList.toArray( comparisons );           
                tc.setComparisons( comparisons );
                testCollectionList.add( tc );
            else if( qName.equals( "RE" ) )
                testCollections = new TestCollection[ testCollectionList.size() ];
                testCollectionList.toArray( testCollections );
                collection.setTestCollections( testCollections );
                testFileNames = new File[ testFileNameList.size() ];
                testFileNameList.toArray( testFileNames );
                collection.setTestingFiles( testFileNames );
                //String[ ] testCategories = new String[ testCategoryList.size() ];
                //testCategoryList.toArray( testCategories );
                //collection.setTestCategories( testCategories );
                trainingFileNames = new File[ trainFileNameList.size() ];
                trainFileNameList.toArray( trainingFileNames );
                collection.setTrainingFiles( trainingFileNames );
                //String[ ] trainingCategories = new String[ trainCategoryList.size() ];
                //trainCategoryList.toArray( trainingCategories );
                //collection.setTrainingCategories( trainingCategories );
                collection.setProtocol( protocol );
                trainingDirs = new File[ trainingDirList.size() ];
                trainingDirList.toArray( trainingDirs );           
                collection.setTrainingDirs( trainingDirs );
                collection.setTestingDir( testingDir );
         //else
             //System.out.println("End element:   {" + uri + "}" + localName);
    }i thought it may have been a recursive problme, hence having so many instance variables instead of local ones but that hasn't helped.
    all i need at the end of this is a Collection which holds an array of testCollections, which holds an array of cCounts and i was able to hold all of this in memory as all i am loading is what was in memory before it was written.
    can someone plz help
    ps when i use tail in unix to read the end of the xml file it doesnt work correctly as i cannot specify the number of lines to show, it shows all of the file as thought it is not split into lines or contains new line chars or anything, it is stored as one long stream, is this correct??
    here is a snippet of the xml file:
    <TC tfn="
    /homedir/dthomas/Desktop/4News2/output/split3/alt.atheism/53458"><c trfn="/homed
    ir/dthomas/Desktop/4News2/output/split0/alt.atheism/53586"><r o="0" v="0"></r><r
    o="1" v="724"></r><r o="2" v="640"></r><r o="3" v="413"></r><r o="4" v="245"></
    r><r o="5" v="148"></r><r o="6" v="82"></r><r o="7" v="52"></r><r o="8" v="40"><
    /r><r o="9" v="30"></r><r o="10" v="22"></r><r o="11" v="16"></r><r o="12" v="11
    "></r><r o="13" v="8"></r><r o="14" v="5"></r><r o="15" v="2"></r></c><c trfn="/
    homedir/dthomas/Desktop/4News2/output/split0/alt.atheism/53495"><r o="0" v="0"><
    /r><r o="1" v="720"></r><r o="2" v="589"></r><r o="3" v="349"></r><r o="
    please if anyone has any ideas from this code why a char[] would use 50% of the memory taken, and that the average age seems to show that the same one continues to grow..
    thanks in advance
    danny =)

    hi, i am still having lo luck with reading the xml data back into memory, as i have said before, the netbeans profiler is telling me it is a char[] that is using 50% of the memory but i cannot see how a char[] is created, my code doesn't so it must be the xml code...plz help

  • Change the name from Portal Favorites to Portal Favourites

    Hi,
    There is a requirement that where ever in Portal, the name of Portal Favorites should be changed to Portal Favourites.
    So when I add something to Portal Favorites in Portal, then there we get Organize Entries in the context menu and opening this it will open a pop-up having name as Favorites.
    I searched and come to know that this is coming from a folder under KM Content /userhome/<portal-userid>/Favorites.
    If I changes the name Favorites to Favourites then it reflects to that corresponding id, but changing from here for every portal-userid will be very difficult.
    Can someone tell how we can change on global basis for every portal user.
    Regards,
    Deep Nain Kundra

    Hi there,
    The iView called "Favorites" in Content Provided by SAP > End User Content > Standard Portal Users > iViews > com.sap.km.iviews points to a KM folder which you can find in Content Administration > KM Content > root > Entry Points > Favorites. You can change the name of this folder: with Entry Points > Favorites selected choose Folder > Details and then Settings > Properties, set the name to whatever you like and click Save.
    Now this isn't 100% effective but if a user accesses the Organize Entries command from the Favorites context menu, they will now see your custom folder name. A preview of the iView will show the same.
    What this doesn't do is change the name of the Entry Point, so a user looking under Documents will still see the heading "Favorites". According to SAP Help this can be changed by creating a custom bundle file, but despite following the steps detailed in [Changing Labels and Symbols for Entry Points|http://help.sap.com/saphelp_nw70/helpdata/en/36/8b6b4066d9bf49e10000000a1550b0/content.htm] I have not had success with this.
    Tom

  • Voice over reading only the message from notices

    I want voice over to read recieved sms and emails. the thing is I want it done automaticly (wich works) but I dont want it to read any info like headlines, sender, wich app the notice is from etc, I want it to read ONLY the message. is this possible? the purpose is an art installation.

    I want voice over to read recieved sms and emails. the thing is I want it done automaticly (wich works) but I dont want it to read any info like headlines, sender, wich app the notice is from etc, I want it to read ONLY the message. is this possible? the purpose is an art installation.

  • Reading all the files from Application Server in a specific folder

    Hi,
    I want to read all the files present in a folder on Application Server ( AL11 ). My problem is that I do not know the name of the file but I know the folder path where files are present.
    I need to go to this folder and pick up all the files present in this folder and then process these files in my program.
    Can any one help me in this!
    Regards,
    Lalit

    You can use a call to
    C_DIR_READ_START'
    and
    CALL 'C_DIR_READ_NEXT'
    Regards,
    John.

  • How to retrieve the imges from Portal

    Hi
    How to retrieve an image file in Portal application (using AbstractComponent) from any location and store it into the KM.

    Hi Kasturi,
    please specify your question much more in detail:
    From where do you want to retrieve the image? From the client? From within you PAR strucure? Do you have technical problems retrieving it?
    ... Or do you have technical problems storing it within KM?
    Best regards
    Detlev
    PS: The correct forum would have been EP Dev or EP KM, depending on the question details...

  • How can i read all the lines from a text file in specific places and use the data ?

    string[] lines = File.ReadAllLines(@"c:\wmiclasses\wmiclasses1.txt");
    for (int i = 0; i < lines.Length; i++)
    if (lines[i].StartsWith("ComboBox"))
    And this is how the text file content look like:
    ComboBox Name cmbxOption
    Classes Win32_1394Controller
    Classes Win32_1394ControllerDevice
    ComboBox Name cmbxStorage
    Classes Win32_LogicalFileSecuritySetting
    Classes Win32_TapeDrive
    What i need to do is some things:
    1. Each time the line start with ComboBox then to get only the ComboBox name from the line for example cmbxOption.
       Since i have already this ComboBoxes in my form1 designer i need to identify where the cmbxOption start and end and when the next ComboBox start cmbxStorage.
    2. To get all the lines of the current ComboBox for example this lines belong to cmbxOption:
    Classes Win32_1394Controller
    Classes Win32_1394ControllerDevice
    3. To create from each line a Key and Value for example from the line:
    Classes Win32_1394Controller
    Then the key will be Win32_1394Controller and the value will be only 1394Controller
    Then the second line key Win32_1394ControllerDevice and value only 1394ControllerDevice
    4. To add to the correct belonging ComboBox only the value 1394Controller.
    5. To make that when i select in the ComboBox for example in cmbxOption the item 1394Controller it will act like i selected Win32_1394Controller.
    For example in this event:
    private void cmbxOption_SelectedIndexChanged(object sender, EventArgs e)
    InsertInfo(cmbxOption.SelectedItem.ToString(), ref lstDisplayHardware, chkHardware.Checked);
    In need that the SelectedItem will be Win32_1394Controller but the user will see in the cmbxOption only 1394Controller without the Win32_
    This is the start of the method InsertInfo
    private void InsertInfo(string Key, ref ListView lst, bool DontInsertNull)
    That's why i need that the Key will be Win32_1394Controller but i want that the user will see in the ComboBox only 1394Controller without the Win32_

    Hello,
    Here is a running start on getting specific lines in the case lines starting with ComboBox. I took your data and placed it into a text file named TextFile1.txt in the bin\debug folder. Code below was done in
    a console app.
    using System;
    using System.IO;
    using System.Linq;
    namespace ConsoleApplication1
    internal class Program
    private static void Main(string[] args)
    var result =
    from T in File.ReadAllLines(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TextFile1.txt"))
    .Select((line, index) => new { Line = line, Index = index })
    .Where((s) => s.Line.StartsWith("ComboBox"))
    select T
    ).ToList();
    if (result.Count > 0)
    foreach (var item in result)
    Console.WriteLine("Line: {0} Data: {1}", item.Index, item.Line);
    Console.ReadLine();
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile but do not reply to forum questions.

  • Assertion Failed - Dump when clicking on the links from Portal for WD Comp

    Hi,
    We have a WD Component which is integrated to the Portal . When we click on the link in the Portal for the first 2 times, the selection screen is shown correctly ( when debugged, the program stops in WDDOINIT method before the sel.screen is shown).
    When we click on the link for the third or fourth time with no time gap, it shows a dump. This is the dump I am getting.
    Runtime Errors         ASSERTION_FAILED
    Date and Time          01/06/2011 10:13:58
    Short text
    The ASSERT condition was violated.
    What happened?
    In the running application program, the ASSERT statement recognized a
    situation that should not have occurred.
    The runtime error was triggered for one of these reasons:
    - For the checkpoint group specified with the ASSERT statement, the
    activation mode is set to "abort".
    - Via a system variant, the activation mode is globally set to "abort"
    for checkpoint groups in this system.
    - The activation mode is set to "abort" on program level.
    - The ASSERT statement is not assigned to any checkpoint group.
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "ASSERTION_FAILED" " "
    "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" or "CL_NW7_VIEW_ELEMENT_ADAPTER===CM004"
    "DISPATCH_NW7_EVENT"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    User and Transaction
    Client.............. 010
    User................ "STECURRY"
    Language Key........ "E"
    Transaction......... " "
    Transactions ID..... "4D250E9ADDFB00BDE10080000A041004"
    Program............. "CL_NW7_VIEW_ELEMENT_ADAPTER===CP"
    Screen.............. "SAPMHTTP 0010"
    Screen Line......... 2
    Information on Caller ofr "HTTPS" Connection:
    Plug-in Type.......... "HTTPS"
    Caller IP............. "10.6.4.220"
    Caller Port........... 443
    Universal Resource Id. "/sap/bc/webdynpro/sap/ZEM_INV_APP_ASSIGNMENTS/"
    Information on where terminated
    Termination occurred in the ABAP program "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" -
    in "DISPATCH_NW7_EVENT".
    The main program was "SAPMHTTP ".
    In the source code you have the termination point in line 5
    of the (Include) program "CL_NW7_VIEW_ELEMENT_ADAPTER===CM004".
    Source Code Extract
    Line
    SourceCde
    1
    METHOD dispatch_nw7_event.
    2
    DATA: l_event_handler TYPE REF TO if_wdr_nw7_event_handler.
    3
    4
    l_event_handler = get_nw7_event_handler( i_event_handler_id ).
    >>>>>
    assert l_event_handler is not initial.
    6
    7
    " View-based Delta Rendering: tracking of client events
    8
    raise event on_nw7_handle_event
    9
    exporting
    10
    event_handler = l_event_handler
    11
    event_name    = i_event_name.
    12
    13
    14
    l_event_handler->handle_event(
    15
    i_event_name       = i_event_name
    16
    i_event_parameters = i_event_parameters
    17
    i_update_data      = i_update_data
    18
    i_event_queue      = i_event_queue ).
    19
    ENDMETHOD.
    -  I have cut the dump to make it short and clear.
    One of my colleague ran a HTTP watch trace and I am attaching it as well.
    <body> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td> <h1> Error when processing your request </h1> <br> <h2> What has happened? </h2> <p> The URL https://uswasspq.deloitte.com:/sap/bc/webdynpro/sap/ZEM_INV_APPROVER_MAIN//ucfLOADING was not called due to an error. </p> </td> </tr> <tr> <td>   </td> </tr> <tr> <td class="emphasize"> <strong> Note </strong> <br> <ul> <li> The following error text was processed in the system SPQ : <b> User session (HTTP/SMTP/..) closed after timeout </b> </li> </ul> <ul> <li> The error occurred on the application server usuxc204_SPQ_01 and in the work process 1 . </li> </ul> <ul> <li> The termination type was: ERROR_MESSAGE_STATE </li> </ul> <ul> <li> The ABAP call stack was: <br> Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP<BR>Method: IF_HTTP_EXTENSIONHANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP<BR>Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP<BR>Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME<BR>Module: %_HTTP_START of program SAPMHTTP<BR> </li> </ul> </td> </tr> <tr> <td>   </td> </tr> <tr> <td> <p>   </p> <h2> What can I do? </h2> <ul> <li> If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system SPQ in transaction ST22. </li> </ul> <ul> <li> If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server usuxc204_SPQ_01 in transaction SM21. </li> </ul> <ul> <li> If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 1 in transaction ST11 on the application server usuxc204_SPQ_01 . In some situations, you may also need to analyze the trace files of other work processes. </li> </ul> <ul> <li> If you do not yet have a user ID, contact your system administrator. </li> </ul> <br/> <p class="note"> Error code: ICF-IE-https -c: 010 -u: STHUGHES -l: E -s: SPQ -i: usuxc204_SPQ_01 -w: 1 -d: 20110208 -t: 131808 -v: ERROR_MESSAGE_STATE -e: User session (HTTP/SMTP/..) closed after timeout </p> <br/> <p> HTTP 500 - Internal Server Error <br/> <p> Your SAP Internet Communication Framework Team </p> </td> </tr> </table> </body> </html>
    After this error a URL is called form the WebDynpro to the following html page.
    https://uswasspq.deloitte.com/sap/bc/webdynpro/sap/zem_inv_approver_main/dps_Error_Page.html ( this is the friendly message we have put so that the user does not see the dump on his screen.
    I tried invalidating the nodes in the WDDOEXIT at the view level but it did not help. This is a show stopper for the project to go live.
    Thanks,
    Guru.

    Hi Guru,
    It is not readable the way you posted and that might be the reason that you do not get reactions.
    Can you please confirm the following.
    1. Is this problem occurs  with out portal when you run the application standalone in SAP GUI.
    2. What is going on wddoinit method or wddomodify method, any  resource handling there ?

  • How to read a file content from portal

    Hi experts,
    I have a file (xml or xlsx), which i have kept in D drive.
    then using GUI_UPLOAD, i have read file content into internal table. then i am proceeding furthur.
    but in real, my file will be in portal (means https:\\in.xyz.com\........\TEST.XML
    in this case i can not use GUI_UPLOAD.
    can any one suggest how can i achieve above. Thanks.
    Regards,
    Venkata Prasad

    Hi venkata
    try this code below
    tables: znks_exceldb.
    types: begin of wa_input,
           emp_id type string,
           name type string,
           middle type string,
           last_name type string,
           address type string,
           acc_num type string,
           mobile type string,
    end of wa_input.
    data: gt_intern type kcde_intern.
    data:gwa_intern type kcde_intern_struc.
    data gt_input type table of wa_input.
    data gwa_input like line of gt_input.
    data it_tab type table of znks_exceldb.
    data it_wa like line of it_tab.
    constants c_seprator type c value ','.
    parameters ex_file type localfile obligatory.
    at selection-screen on value-request for ex_file.
      call function 'F4_FILENAME'
    * EXPORTING
    *   PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
       importing
         file_name           = ex_file.
    start-of-selection.
      perform readfile using ex_file.
      perform insert.
      perform display.
    form readfile using ex_file type localfile.
      data:lv_filename type rlgrap-filename.
      data: lv_index type i.
      field-symbols: <> type any.
      lv_filename = ex_file.
      call function 'KCD_CSV_FILE_TO_INTERN_CONVERT'
        exporting
          i_filename      = lv_filename
          i_separator     = c_seprator
        tables
          e_intern        = gt_intern
        exceptions
          upload_csv      = 1
          upload_filetype = 2
          others          = 3.
      if sy-subrc <> 0.
    * Implement suitable error handling here
      endif.
      loop at gt_intern into gwa_intern.
        move gwa_intern-col to lv_index.
        assign component lv_index of structure gwa_input to <>.
        move:gwa_intern-value to <>.
        at end of row.
          append gwa_input  to gt_input.
          clear gwa_input.
        endat.
      endloop.
    endform.
    form insert.
      loop at gt_input into gwa_input.
        it_wa-emp_id = gwa_input-emp_id.
        it_wa-name = gwa_input-name.
        it_wa-middle = gwa_input-middle.
        it_wa-last_name = gwa_input-last_name.
        it_wa-address = gwa_input-address.
        it_wa-mobile = gwa_input-mobile.
        it_wa-acc_num = gwa_input-acc_num.
        append it_wa to it_tab.
      endloop.
      insert znks_exceldb from table it_tab accepting duplicate keys.
    endform.
    form display.
      loop at gt_input into gwa_input.
        write :/ gwa_input-emp_id,
                 gwa_input-name,
                 gwa_input-middle,
                 gwa_input-last_name,
                 gwa_input-address,
                  gwa_input-mobile,
                  gwa_input-acc_num .
      endloop.
    endform.
    Regards
    Niraj Sinha

  • Reading/Writing the Microsoft XP/OSX Memory...MUCH HELP NEEDED!!!

    (This post might not be as lengthy or as indepth as it should be because I just closed the page thinking that when you click "formating help" that it would open a popup, not paying attention, I CLOSED THE WINDOW!)
    This should be a pretty straight forward question. I need a script written in either:
    A) JAVA
    B) JNI
    C) C/C++
    D) Visual Basic
    ... to be able to access the variable that coresponds the the value of a text box in internet explorer on a webpage, a text box in another application, like word, or anything along those lines.
    Or
    ...to be able to read the memory in Microsoft XP home edition (OSX if possable, too) out to a file. It then needs to be able to upload that memory from the same file it makes, but the file is altered, witout crashes, freezes, etc. This script also has to be called from a java script (not javascript). I know that this would be a BIG security issue but...
    AND NO THIS ISN'T FOR CREATING/MODIFYING A VIRUS.
    Thanks.

    I think the answers you got over [url http://forum.java.sun.com/thread.jsp?thread=524137&forum=54]here were excellent. You should now know that Java is a terrible language for this kind of thing. You would be much better off with some kind of a native language like C++. Even then, you are going to have to get heavily into the internal Windows system to get what you want from another application and I can't even imagine what you would have to go through to get it out of IE.
    Anyway, I doubt you are going to find what you are looking for in the 'New To Java Technology' forum. You might be able to find something like this if you found a 'Hacker Forum' with people on it who had spent the time to find out how to steal information from other programs (probably at least a couple of years) and didn't mind if they got invovled with someone who might be talking to the FBI shortly.
    Your only other option would be to spend the year or two it would take you to learn enough to do it yourself.
    Good Luck.

  • Writing the datas from 2 files into 3rd File?

    Hi,
    I am reading datas from 2 files Say,
    Example1.txt
    Ashok
    Babu
    Chenthil
    Danny
    Example2 .txt
    ^data1^data2^data3
    ^data1^data2^data3
    ^data1^data2^data3
    ^data1^data2^data3
    I want those data's to be written in a 3rd file. Say,
    Example3.txt
    Ashok^ data1^data2^data3
    Babu^ data1^data2^data3
    Chenthil^ data1^data2^data3
    Danny^ data1^data2^data3
    So that i can tokenize it with a delimeter(^) and get the values. Here how to append the datas in this form in Example3.txt. Eventhough u use FileWriter with append "true" as a parameter how they will apend like the Example3.txt file? Please do provide an answer for this..Since this is very urgent to be delivered...Expecting postive response.
    Thanx,
    JavaCrazyLover

    open the outputfile, open both input files (all three, of course, as their own stream, obviously, but I thought I might need to say this), first. Read a line from each inputfile, and write both of them together, to the outputfile, and repeat.
    Is there something you don't understand there?

  • Problem in accessing images in the KM from Portal code.

    Hi All,
    I need to develop a portal application that accesses the KM and displays the images that are stored in the KM to the user. There are 8 images which are stored in the /documents/Images directory in the KM. The user should be able to see the next image in the KM by clicking on the 'Next' button of the JSP and the previous image in the KM by clicking on the 'Previous' button of the JSP.
    Below is the code which reads the KM and displays the images. However, the images that are displayed are not in a proper sequence. Also when the user clicks on the 'Next' button and arrives to the last image, although i disable the 'Next' button, when the user clicks on the 'Previous' button the user is not able to see the previous image. Infact the KM tries to display the next image which is not present and hence throws an IndexOutOfBoundsException. This happens vice versa for the 'Previous' button as well.
    Any help would be highly appreciated and rewarded.
    JSP Dynpage
    package com.ltitl.image;
    import com.ltitl.bean.ImageBean;
    import com.sap.security.api.IUser;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.prt.component.IPortalComponentProfile;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentSession;
    import com.sapportals.portal.security.usermanagement.UserManagementException;
    import com.sapportals.wcm.repository.ICollection;
    import com.sapportals.wcm.repository.IResource;
    import com.sapportals.wcm.repository.IResourceContext;
    import com.sapportals.wcm.repository.IResourceList;
    import com.sapportals.wcm.repository.ResourceContext;
    import com.sapportals.wcm.repository.ResourceException;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.util.uri.RID;
    import com.sapportals.wcm.util.usermanagement.WPUMFactory;
    public class ImageControl extends PageProcessorComponent {
      public DynPage getPage(){
        return new ImageControlDynPage();
      public static class ImageControlDynPage extends JSPDynPage{
        public static ImageBean imageBean = null;
        public static IResource resource = null;
        public static IResourceContext resourceContext = null;
        public static IPortalComponentSession componentSession = null;
        public static IPortalComponentRequest request = null;
        public static IPortalComponentProfile profile = null;
        public static IUser user1 = null;
        public static RID rid = null;
        public static int count = 0;
        public static int total = 0;
        public static IResourceList children = null;
        public void doInitialization() throws PageException{
          request = (IPortalComponentRequest)this.getRequest();     
          componentSession = request.getComponentSession();
          profile = request.getComponentContext().getProfile();
          user1 = request.getUser();
          imageBean = new ImageBean();
           try
                   com.sapportals.portal.security.usermanagement.IUser user =  WPUMFactory.getUserFactory().getEP5User(user1);
         resourceContext = new ResourceContext(user);
         String imagepath = profile.getProperty("PathToFolder");     
         rid = RID.getRID(imagepath);
         resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
         if(resource != null)
                 if(resource.isCollection())
                          ICollection collection = (ICollection)resource;
                          total = collection.getChildrenCount(true,false,false);
                          imageBean.setTotal(total);
                          children = collection.getChildren();
                          accessResource();
                     else
                          imageBean.setMsg_txt("resource " + resource.getName() + " is not a collection");
                else
                     imageBean.setMsg_txt("resource " + resource.getRID() + " does not exist");
              componentSession.putValue("imageBean",imageBean);
           } catch (UserManagementException ume) {
                imageBean.setMsg_txt("exception:" + ume.getLocalizedMessage());     
           catch(ResourceException ue) {
                imageBean.setMsg_txt("exception:" + ue.getLocalizedMessage());     
        public void doProcessAfterInput() throws PageException {
              IPortalComponentSession session = ((IPortalComponentRequest)this.getRequest()).getComponentSession();
              imageBean = (ImageBean)session.getValue("imageBean");
              if(null != imageBean) {
                   accessResource();
              else
                   imageBean.setMsg_txt("Image Bean null");
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("ImageOutput.jsp");
        public void onPrevious(Event event) throws PageException {
             --count;
         public void onNext(Event event) throws PageException {
              ++count;
    public void accessResource() throws PageException {
    try {
    if(count >= 0 && count < total)
    IResource resImg = children.get(count);
    imageBean.setCount(count);
    imageBean.setMsg_txt("count: " + count);
    imageBean.setInitialPath("/irj/go/km/docs");
    imageBean.setImageName("" + resImg.getRID());
    else
    imageBean.setMsg_txt("out of bounds count:" + count);
    } catch (ResourceException e) {
         imageBean.setMsg_txt("resource exception:" + e.getLocalizedMessage());

    ImageBean
    package com.ltitl.bean;
    import java.io.Serializable;
    public class ImageBean implements Serializable {
         public String imageName;
         public String msg_txt;
         public String initialPath;
         public int count;
         public int total;
          * @return
         public String getImageName() {
              return this.imageName;
          * @param string
         public void setImageName(String string) {
              imageName = string;
          * @return
         public String getMsg_txt() {
              return this.msg_txt;
          * @param string
         public void setMsg_txt(String string) {
              msg_txt = string;
          * @return
         public String getInitialPath() {
              return initialPath;
          * @param string
         public void setInitialPath(String string) {
              initialPath = string;
          * @return
         public int getCount() {
              return count;
          * @return
         public int getTotal() {
              return total;
          * @param i
         public void setCount(int i) {
              count = i;
          * @param i
         public void setTotal(int i) {
              total = i;
    Hope this helps.

  • Reg: The download from portal

    Hi All,
    Can any one guide me from where to download the patch upgrades and set up files from the portal. I have browsed through the service portal but I am not sure so as to where from to download or find the available downloads. I want to have the set up file of 2007B PL00, the upgrade file to upgrade 2005B PL42 to 2007B PL00. How do we get te updates that a patch has been released? Is there any shortcut way or it has to be browsed and find every time?
    Regards,
    Raj

    I am sure you have a S User.
    THe "then a small window opens (blank) and then dissapears." is a window that will copy the download link to your SAP Download manager basket.
    If you download and install SAP DM, then you will have to log in using the same S user. If will remember everything that you wanted to download the portal and will download it for you.
    The direct download option on the portal sometimes works and sometimes does not. I am not sure ast to why, but I fell in a similar situation like yours and am using SAP DM quite happily till today

Maybe you are looking for

  • PR not reflected in MD04

    Hi, I am doing stock transfer thro'rule based.When save the sale order in R/3.I am getting my R/3 PR number in APO.But in MD04 i am not able to see the PR number.But in ME52N(change PR),I am able to see it.How i can fix this issue regards venkadesh

  • Crackle with H4n as usb i/o

    I'm getting digital crackling when rocerding - most of the time but not alwayds (especially insane making) details with sample: http://www.smallwoodenshoe.org/mic-noise/ Set up: Shure 7B > Zoom H4n > USB Port to MacBook Pro 2009 2.53GHz 8G RAM > Skyp

  • Restart of PO workflow

    Hi All, We need to change the approval workflow because User 1 has already left Company last month. Finance has changed cost center owner & WBS owner to MGR's upper manager. Now for restarting the workflow , we have changed Internal Note in PO for no

  • "Embed Text Data" Not Working

    When a user jumps around my finished DVD, the player (computer or set-top) displays in the upper left corner the word "Chapter" and a number after that word. The player seems to decide what to number each of my chapter markers. Instead of this, I wou

  • REP-56048: Engine rwEng-0 crashed in Reports 11g

    I'm trying to run a report in Reports 11g (11.1.1.4) that uses idautomation's barcode java package and I get the REP-56048: Engine rwEng-0 crashed error. Does anyone know how to find the problem or who is using idautomation's barcode java package in