SLD - import and Export through Java Program

Hi Exports,
Can you please guide how we can do SLD import and export through java program? additionally wanted to export Landscape(technical system,Landscape,business system),software catalog(products,s/w components),Development(Name Reservation)
Note: Manually we are doing through  http://<server host>:<port>/sld and navigate into administration-->import and Export
Regards,
Manivannan P

closed

Similar Messages

  • Changing the ip address of the local machine through java program

    Hi all,
    I want to change the ip address of the machine in windows and linux through java program. Iam not aware that wheather this is possible or not. If possible pls help me.
    Regards
    Bhaskar

    I'm always surprised by the weird things that developers find they need to do!

  • Looking for a program that can handel import and export of palm doc files

    I am looking for a program that can handel the import and export of palm doc Files that can convert them to to either txt or RTF files for Vista 32, running Palm Desktop 7.1.
    Could anyone give me a few suggestions of any plug-ins that would be good me?
    Hearns
    Post relates to: Palm IIIxe
    This question was solved.
    View Solution.

    Ok, you need to clean uninstall Palm desktop 6.2. Install Palm desktop 4.1.4 and download and install documents to go version 6.
    Here are the clean uninstall instructioins for Vista.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to Start --> Documents -->
    Palm OS Desktop. Highlight your Palm Desktop username and right click and
    copy. Then go to your PC desktop right click on a blank spot and select paste.
    If this is the first time you are installing Palm desktop and encountering a problem, skip the previous step.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer.
    Go to the following locations on the PC and delete the folders listed below.
    C:\Program Files\Palm or Palm One
    C:\Users\[Vista Login Name]\appdata\local\virtualstore\Program Files\Palm or
    PalmOne
    C:\Users\[Vista Login Name]\appdata
    *Note you may need to view hidden folders to get to appdata. To do that go
    into your control panel and open folder options. Go to view tab and uncheck
    hide hidden files.
    Once this is done you will need to delete some registry keys from your PC Operating System.
    Word of warning, going here and deleting the wrong thing can cause your PC
    from starting up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This procedure will show them everything they need to delete. To make sure we have a good copy of the current registry, we need to do a backup of the Registry.
    Go to start on the PC, in the search field type "regedit.exe" without quotes.
    Highlight COMPUTER, go to File --> Export. Should pop up with a Save As box.
    Current location is fine, should be in My Documents or save to a location you will remember. In the file name on the bottom type "backup[todaysdate]" i.e. backup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer.
    Then reinstall your palm desktop from the CD and do a hotsync. Use the username that is on the handheld.

  • How to send sms through java program?

    hi,
    i am trying to send sms through java program.i am usining ubuntu 6.04.i am using modem MC35i.i use the jSMSEnjine.jar and rxtxcomm.jar.
    these are the following program.
    import org.jsmsengine.*;
    import java.util.*;
    class SendMessage
         public static void main(String[] args)
              int status;
              // Create jSMSEngine service.
         CService srv = new CService("Com2",9600);
              //CService srv = new CService("COM2",9600);
              System.out.println();
              System.out.println("SendMessage(): sample application.");
              System.out.println(" Using " + srv._name + " " + srv._version);
              System.out.println();
              try
                   //     Initialize service.     
                   srv.initialize();
                   Thread thread =Thread.currentThread();
                   thread.sleep(1000);
                   System.out.println(srv);
                   //     Set the cache directory.
                   srv.setCacheDir(".\\");
                   //     Set the phonebook.
                   //     srv.setPhoneBook("../misc/phonebook.xml");
                   //     Connect to GSM device.
                   status = srv.connect();
                   //     Did we connect ok?
                   int st=CService.ERR_OK;
                   System.out.println(st);
                   System.out.println(status);
                   if (status == CService.ERR_OK)
                        //     Set the operation mode to PDU - default is ASCII.
                        srv.setOperationMode(CService.MODE_PDU);
                        // Set the SMSC number (set to default).
                        srv.setSmscNumber("");
                        //     Print out GSM device info...
                        System.out.println("Mobile Device Information: ");
                        System.out.println("     Manufacturer : " + srv.getDeviceInfo().getManufacturer());
                        System.out.println("     Model : " + srv.getDeviceInfo().getModel());
                        System.out.println("     Serial No : " + srv.getDeviceInfo().getSerialNo());
                        System.out.println("     IMSI : " + srv.getDeviceInfo().getImsi());
                        System.out.println("     S/W Version : " + srv.getDeviceInfo().getSwVersion());
                        System.out.println("     Battery Level : " + srv.getDeviceInfo().getBatteryLevel() + "%");
                        System.out.println("     Signal Level : " + srv.getDeviceInfo().getSignalLevel() + "%");
                        //     Create a COutgoingMessage object and dispatch it.
                        //     *** Please update the phone number with one of your choice ***
    // String smsLengthTest="Hi"+"\nTesting is going on.Test for sending unlimited number of charecter.So you will get N number of SMS.Initially I trancate the whole string by 70 charecter.Later I will put it upto 90 charecter.Some chararecter should kept for header portion.I don't know the total number.It is just test.If you got the sms u should appreciate me...This is Ripon...I have written sms program";
    String smsLengthTest="Hi\n"+"This is Govindo";
    int mao=smsLengthTest.length();
    System.out.println("Length of sms :"+mao);
    String smsNo="9433314095";
    smsNo="+91"+smsNo;
    if(mao<70)
    COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    else
    // COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    // LinkedList messageList;
    // messageList = new LinkedList();
    // messageList.add(msg);
    // LinkedList maooo=new LinkedList();
    // maooo=srv.splitLargeMessages(messageList);
    int sizelength=0;
    int counter=0;
    sizelength=smsLengthTest.length();
    System.out.println("SMS length :"+sizelength);
    int smsCntr=sizelength/70;
    System.out.println("smsCntr :"+smsCntr);
    counter=smsCntr+1;
    int j=70;
    int k=0;
    try
    for(int i=0;i<smsCntr;i++)
    String test="";
    test=test+i;
    test=smsLengthTest.substring(k,j);
    System.out.println(test);
    System.out.println(test.length());
    COutgoingMessage msg = new COutgoingMessage(smsNo, test);
    System.out.println("hi this is suman" + smsNo);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    k=k+70;
    j=j+70;
    catch(Exception e)
    System.out.println("Error...1");
    e.printStackTrace();
    e.getMessage();
    String lastPortion=smsLengthTest.substring(k);
    System.out.println(lastPortion);
    COutgoingMessage msg = new COutgoingMessage(smsNo, lastPortion);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
                        // Disconnect from GSM device.
                        srv.disconnect();
                   else System.out.println("Connection to mobile failed, error: " + status);
              catch (Exception e)
                   e.printStackTrace();
              System.exit(0);
    the error is:
    SendMessage(): sample application.
    Using jSMSEngine API 1.2.6 (B1)
    org.jsmsengine.CService@addbf1
    0
    -101
    Connection to mobile failed, error: -101
    please help me,its very urgent.

    come back in about 5 years, we may have time for you by then.
    In the meantime, how about contacting the people who wrote that library and asking them nicely for help (rather than trying to order people to drop whatever they're doing and jump through hoops to accommodate your every wish as you're doing here)?

  • Regarding import and export statement

    hi experts,
    how to import and export the internal table between programs...
    Nice solutins with maximum points.....

    Example of a program exporting an internal table to ABAP memory.
    Prog 1
    parameters: pa_vbeln like vbak-vbeln.
    data: itab type standard table of vbak.
    * get data to fill the table
    select * from vbak into table itab
                where vbeln = pa_vbeln.
    * now store the internal table to ABAP memory
    export itab to Memory ID 'table''.
    * here we call another program, prog 2
    submit prog2 and return.
    Prog 2  -> This imports the internal table exported by prog 1 and writes the content of the internal table to a list
    data: jtab type standard table of vbak,
           wa_vbak type vbak.
    * importing the itab that was exported by prog1
    import itab to jtab from memory id 'table'.
    loop at jtab into wa_vbak.
    write:/ wa_vbak-vbeln,
            wa_vbak-erdat.
    endloop.
    * clear the specific memory id after required processing is complete
    free memory id 'table'
    Hope this solves your problem.
    Cheers,
    Sougata.
    Subas,
    Copy/paste your code, I'll have a look. First check if data is being selected before Export command.
    Edited by: Sougata Chatterjee on Jan 11, 2008 12:31 PM
    Also make sure you create prog2 as an executable program. Then, run prog1 with a valid Sales Order number. To understand it more clearly run it in debugging mode and step through. It should work fine in any system.
    Edited by: Sougata Chatterjee on Jan 11, 2008 12:42 PM

  • Import and Export MDL error with OWB Release 2

    Getting the following error when importing and exporting MDL - any assist would be appreciated - never had this issue with previous releases - error as follows:
    Error occurred exporting metadata to file "C:\TEMP\MY_PROJECT-20061208_1058.mdl".
    java.lang.Exception: CNV0002-0038(ERROR): Cannot write to file ./../../reposasst/converter.properties. Please make sure that write privileges are enabled or that disk is not full.

    I got the solution. OWB writes some temporary xml files before importing/exporting mdl and these files are stored in OWB home directory. The problem is write privileges on the OWB Home directory. I am not local admin of my system. Admin installed the OWB client on my system through his userid. Now if i try to create a directory or file in OWB home directory it thorws an error "Access Denied". I got the Admin rights on my local system for my userid and now OWB is working fine.
    Thanks.

  • How to store xml data into file in xml format through java program?

    HI Friends,
    Please let me know
    How to store xml data into file in xml format through java program?
    thanks......
    can discuss further at messenger.....
    Avanish Kumar Singh
    Software Engineer,
    Samsung India Development Center,
    Bangalore--560001.
    [email protected]

    Hi i need to write the data from an XML file to a Microsoft SQL SErver database!
    i got a piece of code from the net which allows me to parse th file:
    import java.io.IOException;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import org.apache.xerces.parsers.SAXParser;
    import java.lang.*;
    public class MySaxParser extends DefaultHandler
    private static int INDENT = 4;
    private static String attList = "";
    public static void main(String[] argv)
    if (argv.length != 1)
    System.out.println("Usage: java MySaxParser [URI]");
    System.exit(0);
    String uri = argv[0];
    try
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    MySaxParser MySaxParserInstance = new MySaxParser();
    parser.setContentHandler(MySaxParserInstance);
    parser.parse(uri);
    catch(IOException ioe)
    ioe.printStackTrace();
    catch(SAXException saxe)
    saxe.printStackTrace();
    private int idx = 0;
    public void characters(char[] ch, int start, int length)
    throws SAXException
    String s = new String(ch, start, length);
    if (ch[0] == '\n')
    return;
    System.out.println(getIndent() + " Value: " + s);
    public void endDocument() throws SAXException
    idx -= INDENT;
    public void endElement(String uri, String localName, String qName) throws SAXException
    if (!attList.equals(""))
    System.out.println(getIndent() + " Attributes: " + attList);
    attList = "";
    System.out.println(getIndent() + "end document");
    idx -= INDENT;
    public void startDocument() throws SAXException
    idx += INDENT;
    public void startElement(String uri,
    String localName,
    String qName,
    Attributes attributes) throws SAXException
    idx += INDENT;
    System.out.println('\n' + getIndent() + "start element: " + localName);
    if (localName.compareTo("Machine") == 0)
    System.out.println("YES");
    if (attributes.getLength() > 0)
    idx += INDENT;
    for (int i = 0; i < attributes.getLength(); i++)
    attList = attList + attributes.getLocalName(i) + " = " + attributes.getValue(i);
    if (i < (attributes.getLength() - 1))
    attList = attList + ", ";
    idx-= INDENT;
    private String getIndent()
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < idx; i++)
    sb.append(" ");
    return sb.toString();
    }// END PRGM
    Now , am not a very good Java DEv. and i need to find a soln. to this prob within 1 week.
    The next step is to write the data to the DB.
    Am sending an example of my file:
    <Start>
    <Machine>
    <Hostname> IPCServer </Hostname>
    <HostID> 80c04499 </HostID>
    <MachineType> sun4u [ID 466748 kern.info] Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz) </MachineType>
    <CPU> UltraSPARC-IIi at 360 MHz </CPU>
    <Memory> RAM : 512 MB </Memory>
    <HostAdapter>
    <HA> kern.info] </HA>
    </HostAdapter>
    <Harddisks>
    <HD>
    <HD1> c0t0d0 ctrl kern.info] target 0 lun 0 </HD1>
    <HD2> ST38420A 8.2 GB </HD2>
    </HD>
    </Harddisks>
    <GraphicCard> m64B : PCI PGX 8-bit +Accel. </GraphicCard>
    <NetworkType> hme0 : Fast-Ethernet </NetworkType>
    <EthernetAddress> 09:00:30:C1:34:90 </EthernetAddress>
    <IPAddress> 149.51.23.140 </IPAddress>
    </Machine>
    </Start>
    Note that i can have more than 1 machines (meaning that i have to loop thru the file to be able to write to the DB)
    Cal u tellme what to do!
    Even better- do u have a piece of code that will help me understand and implement the database writing portion?
    I badly need help here.
    THANX

  • Import and Export to Memory

    hi guys, im currently making a program that imports and exports data into a memory so that when the user logs out that would still remain in the memory. The data would be use for the slection screen but i can't seem to make it work.  Could you please help me. Or if you have other ideas on how to store data that would also be ok. The thing is when Im running the program through se38 its working fine but if i run it through its transaction code the import does not work. Please help.
    here is my code:
    DATA: begin of i_memory,
                 memory_id(31),
               end of i_memory.
    initialization.
    IF p_prem IS INITIAL.
         CONCATENATE c_memory_id sy-uname into v_memory_id
                     SEPARATED BY c_underscore.
         IMPORT i_memory FROM MEMORY ID v_memory_id.
         IF sy-subrc = 0.
            p_prem = i_memory-memory_id.
         ELSE.
            p_prem = '0.04'.
         Endif.
      ENDIF.
    at selection-screen.
      i_memory-memory_id = v_memory_obj.
      CONCATENATE c_memory_id sy-uname into v_memory_id
                  SEPARATED BY c_underscore.
      EXPORT i_memory to MEMORY ID v_memory_id.
      IF sy-subrc = 0.
      Endif.
    Please help. Thanks in advance guys.

    Shekhar Kulkarni 
    I need help understanding your code.
    Im trying to do same thing as you described in the post.
    My main purpose is to IMPORT variant contents from cluster table VARI for all the selection screen variables dynamically.
    I can IMPORT individual screen variables :: For ex :
    st_key-report = 'ZNIDHS20'.
    st_key-variant = 'TEST_VAR'.
    IMPORT slsin_p TO TMP_VAR FROM DATABASE VARI(VA) ID ST_KEY.
    This will get me the contents of slsin_p parameter in variant TEST_VAR of program ZNIDHS20.
    But If I use same statement in a loop, im not able to get the data. : see below
    LOOP AT i_selection_table..
    IMPORT i_selection_table-name TO TMP_VAR FROM DATABASE VARI(VA) ID ST_KEY.
    ENDLOOP.
    I found your post interesting and started to test this way....As said, I have extracted selection screen variable table, and then tried to EXPORT the contents to Share Memory from database table VARI(VA), unfortunately program fails. Pls see code below....Pls see if you can help me out...
    DATA: BEGIN OF st_key,
            report LIKE rsvar-report,
            variant LIKE rsvar-variant,
          END OF st_key.
    data : i_selection_table like rsparams occurs 0 WITH HEADER LINE,
    v_rsvar like rsvar-report.
    st_key-report  = 'ZNIDHS20'.
    st_key-variant = 'VJ_TEST'.
    V_RSVAR = 'ZNIDHS20'.
    data : begin of itab occurs 0,
           COL1(40) type c,
           COL2(40) TYPE C,
           end of itab.
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
      EXPORTING
        CURR_REPORT           = V_RSVAR
      TABLES
        SELECTION_TABLE       = i_selection_table
    EXCEPTIONS
       NOT_FOUND             = 1
       NO_REPORT             = 2
       OTHERS                = 3.
    LOOP AT I_SELECTION_TABLE.
      MOVE I_SELECTION_TABLE-SELNAME TO ITAB-COL1.
      APPEND ITAB.
    ENDLOOP.
    EXPORT (ITAB) TO SHARED MEMORY VARI(VA) ID ST_KEY.
    IMPORT ITAB = JTAB FROM SHARED MEMORY VARI(VA) ID ST_KEY.
    Pls help.....

  • DRM/MDM Import and Export File types - Question

    Hi Guys,
    We have been implementing Hyperion DRM to our existing Oracle Environment for managing the company's sales data which comes from multiple data sources. In my experience and research, I feel DRM is an excellent tool but there are some questions I have in our mind. The following are the few questions that I\we have.
    a) How does the Import and Export of data functionality works in DRM? In this forum, I have found some one saying we can only import the data through flat files, in other words, "text file" with the delimiters [ ] seperated by comma. My question is, Is there any other possible way to import the data, Such as getting the data directly from the database tables? To get the data, Do we need to have any integration points or do we need to use SOAP APIs (& programming)?
    b) While we exporting the data, can we export it directly to the Oracle database tables? What are the integration points needed for this kind of export?
    c) Is there any sample guide or design document available for creating the hierarchy and nodes. I just want to know how the attributes that we have "is transformed" into the hierarchies and nodes in DRM? In the past, I used Essbase, which is integrated with DRM and that process was straight forward since we imported and exported data directly from DRM to Essbase.
    I would appreciate any suggestion offered to me regarding the questions posted above.
    Thanks in advance,
    Leo
    Edited by: user10201910 on Apr 1, 2009 4:58 PM
    Edited by: user10201910 on Apr 1, 2009 5:00 PM

    Hi,
    1.As per my knowledge the Import can be done using Flat files only,we can import the data from Oracle Tables once the structure is ready in DRM.
    2.We have an utility called Export to Table(in the last tab when you performing an Export along with Export to File), which requires the DB mapping to be done properly,
    Thanks!

  • Problem with Import and Export Data Wizard

    Downloaded and installed SQL Server Express 2008 R2 today because I want to explore how Access interacts with SQL Server (using my home computer). I'm using Access 2010 (under Windows 7), so the 2008 version of SQL Server Express seemed to be the version
    to use.
    After a couple of false starts, installation appeared to go okay. After the installation. My Start menu listed Microsoft SQL Server 2008 and Microsoft SQL Server 2008 R2. The latter listed Import and Export Data (64-bit). When I clicked that, the first Import
    and Export Data Wizard page was displayed. I wasn't ready at that time to explore the wizard, so I closed it. An hour or so later I again attempted to open the Import and Export Data wizard. This time, the wizard didn't open. Instead this error message was
    displayed: "The SSIS Runtime object could not be created. Verify that DTS.dll is available and registered."
    I found DTS.dll on my computer at C:\Program Files\Microsoft SQL Server\100\DTS\Binn, so the file is available, but don't know whether it is registered.
    How can I correct this problem?

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

  • Import and Export in 4.6b

    Hi All,
    I have a syntax regarding Import and Export statements which are not working in 4.6b. Below is the statement.
    IMPORT ID = (Internal Table) FROM DATA BUFFER ( String Variable ).
    EXPORT ID = (Internal Table) TO DATA BUFFER ( String Variable ).
    What can we have alternate to above statements ?
    Actually I need to transfer or export some internal table content to String and Import the same data from string.
    I am looking perticularly about buffer only. If not that what can we have alternate to that ?
    Thanks,
    Ram

    Hi
    You can try to use Field symbols also, for example
    you need to code in the target program.
    field-symbols <fs_itab> type standard table.
    assign '(PROGRAMNAME)ITAB[]' TO <FS_ITAB>.
    example, i did this in user exit
    assign '(SAPMV50A)XLIPS[]' to <FS_ITAB>.
    if <FS_ITAB> is assigned.
    code will continue
    make sure program name is in capital letters.
    Regards
    Madhan

  • Internal table with Import and Export

    Hi All,
    Hi all
    Please let me know the use of <b>Internal table with Import and Export parameters and SET/GET parameters</b>, on what type of cases we can use these? Plese give me the syntax with some examples.
    Please give me detailed analysis on the above.
    Regards,
    Prabhu

    Hi Prabhakar,
    There are three types of memories.
    1. ABAP MEMORY
    2. SAP MEMORY
    3. EXTERNAL MEMORY.
    1.we will use EXPORT/ IMPORT TO/ FROM MEMORY-ID when we want to transfer between ABAP memory
    2. we will use GET PARAMETER ID/ SET PARAMETER ID to transfer between SAP MEMORY
    3. we will use EXPORT/IMPORT TO/FROM SHARED BUFFER to transfer between external memory.
    ABAP MEMORY : we can say that two reports in the same session will be in ABAP MEMORY
    SAP MEMORY: TWO DIFFERENT SESSIONS WILL BE IN SAP MEMORY.
    for ex: IF WE CALL TWO DIFFERENT TRANSACTIONS SE38, SE11
    then they both are in SAP MEMORY.
    EXTERNAL MEMORY: TWO different logons will be in EXTERNAL MEMORY.
    <b>Syntax</b>
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
    When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
    When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
    However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
    Reading Data Objects from Memory
    To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    Saving Data Objects in Memory
    To read data objects from an ABAP program into ABAP memory, use the following statement:
    Syntax
    EXPORT <f1> [FROM <g 1>] <f 2> [FROM <g 2>] ... TO MEMORY ID <key>.
    This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM <f i >, the data object <f i > is saved under its own name. If you use the FROM <g i > option, the data objet <g i > is saved under the name <f i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    Check this link.
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    Thanks,
    Susmitha.
    Reward points for helpful answers.

  • Difference between Import and Export parameters in Function Module

    Hi All,
    I am unclear about the import and export parameters, when i create a function module. Can anyone explain abt this. However when i call the function module in any program the import parameters in Function module are displayed as exporting in program amd the export parameters as importing.
    Any help on this would be appericiated.
    Shejal.

    HI,
    Import parameter in FM is the value u provide to FM for processing.
    export is the value u get from FM after processing.
    when u call a FM in a progam the import parameter will appear as Export bcos u r giving value to the FM.
    and u r getting value from FM in import parameter(bcos u r importing).
    rgds,
    latheesh
    Message was edited by: Latheesh Kaduthara

  • How to compile dunamically genrated java files through java program?

    Hi, I have a requirement where i generate java files from WSDL dynamically using wsdl2java jaxbri. I need to compile these files dynamically on the fly and jar it. Everything should happen through java program. Bcos everything is dynamic here, no information is known (like dir, file names ...) until the runtime. Everything is user fed.
    the directories may contain other directories with java files. its recursive
    i tried com.sun.tools.javac.Main.. but either its not scaling to my needs or i donno how to wok with this.
    is there any option to compile the java files as they are created thru JAXBRI (wsdl2java)?
    any help is appreciated..
    -s

    my requirement is :
    i create java files from wsdl2java (axis).. i need to compile all the java files.. directories with in the directories (recursive)...
    as bcos the the java files have inter-dependencies they have to be compiled as a bunch something like (java *.java). I donno how to do this in javac.Main tool
    Once all these files are compiled i need to create a jar out of them
    Any help is appreciated!

  • Import and Export transport requests on Netweaver 2004s Sp11 Sneak Preview

    Hi Experts,
    I have configured the transportation system <STMS> in order to import and export transport requests on the NSP system. The configuration is working properly as files can be imported and exported out of the C:\sapmnt\trans directory. (configuration distributed by STMS -> Overview -> Systems -> Extras -> Distribute TMS Configuration, Folder SAPMNT shared).
    The problem I'm facing with the import of some example transports is given by the hanging import queues. In phase 'Import ABAP Dictionary Objects' I have the following message for almost all objects -> '... was not imported in this step'.
    I tried to solve this issue by running SE38->RDDNEWPP with DDIC user to schedule job RDDIMPDP for TP imports. I also made the config in TP_DOMAIN_NSP.PFL with SYSTEM_PF = C:\SAP\NSP\SYS\profile\DEFAULT.PFL.
    The error is still in logfile SLOG0732.NSP
    ERROR:       The following call returned with exit code 7:
    ERROR:         sapevt.exe SAP_TRIGGER_RDDIMPDP -t name=NSP
    and logfile dev_evt
    ERROR ***: MsSndTypeOnce, rc = -20
    ERROR ***: Event raise failed
    With the exports there is a similar issue in the EXPORT phase, given the note
    0 entries from WDY_APPLICATIONT exported.
    Batch process is available (parameter rdisp/wp_no_btc = 1)
    Profile has been activated by rz10->utilities->import profile->ofactive servers.
    Any ideas what still can be wrong? Does the import export and DDIC activation really work with the sneak preview?
    Thanks
    Christoph

    Hi Peter
    First of all thanks for your advice.
    I did No. 1. 2. 3. steps.
    Step 4. reacts with the folowing error message.
    Transport control program tp ended with error code 02008.
    Errors: error in transportprofile (param missing, unknown).
    My  license expires in four days. I tried to extend it via http://www.sap.com/minisap
    1. System-ID *   
    2. Hardware-Schlüssel (HWID) *   ?
    3.Systemnummer  ?
    What is to be entered in 1 and 2.
    Where should I look for HWID and Sysnr ?
    Thanks a lot again for your help
    With regards
    Fisseha

Maybe you are looking for

  • Update in a Case statement

    hi I have a case statement as SELECT BB.ID, CASE WHEN BB.TITLE != AA.PREFIX THEN AA.PREFIX ELSE NULL END "PREFIX", CASE WHEN BB.LST_NAME != AA.SPRIDEN_LAST_NAME THEN AA.LAST_NAME ELSE NULL END "LAST_NAME",      CASE WHEN BB.FST_NAME != AA.FIRST_NAME

  • Oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.

    Hi OTN team, How to resolve oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null. Environment:- 1) Jdeveloper Studio Edition Version 11.1.1.4.0. 2) View objects via web services/programmatic. we ha

  • Search for simple program in java

    hi i need a program that have more than 50 lines frogram that have else-if i need to make a work of qa thanks

  • Install Oracle 7.3.4 on Solaris 8

    We can install an older version of Oracle [Oracle 7.3.4 or 8.1.6] on a machine with Solaris 8 / Solaris 9 [sparc]? thanks in advance.

  • Connecting two LANs

    Please, I plan on connecting two LANs together via. the internet (public resource). The LANs are across town. The computers on each LAN will be able to access other(some) computers on the other LAN (and vice-versa), they will still be able to connect