How to use non sap application in sap.......?

hi,
        anyone has any idea how to use non sap application  like java class in sap through abap programming. please let me know ...
thanks in advance.
saurin shah.

Hi,
DATA: COMMAND TYPE STRING VALUE 'C:\j2sdk1.4.2_08\bin\java',
DIR TYPE STRING VALUE D:\eclipse\workspace',
PARAMETER TYPE STRING VALUE 'Helloworld'. "here the name of your java program
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
APPLICATION = COMMAND
PARAMETER = PARAMETER
DEFAULT_DIRECTORY = DIR
MAXIMIZED =
MINIMIZED = 'X' "If you need the DOS window to be minimized
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
BAD_PARAMETER = 3
FILE_NOT_FOUND = 4
PATH_NOT_FOUND = 5
FILE_EXTENSION_UNKNOWN = 6
ERROR_EXECUTE_FAILED = 7
OTHERS = 8.
check this link
/people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
Regards,
Satish

Similar Messages

  • How to integrate non-sap application with sap netweaver trial abap

    Hi, I currently have with me SAP Netweaver ABAP trial and Mini SAP BASIS 4.6 D. What i want to do is to see how can i integrate my non-SAP application with SAP.
    I am confused as to if using SAP Netweaver ABAP trial, will i be able to establish that. Can anyone guide me in this regard.I want to connect using JCO basically, want to write a java client that will be talking with the SAP application. Provide me a starting point.
    Will i require a Deployed SAP application as well to do this, or will Netweaver ABAP Trial do the job, will i also have to expose the business objects using BAPI.
    Please help.
    Please point out the right forum to post the question if this is not the right one.
    Thanks

    Hey
    Please post this question in ABAP forum
    ABAP Development
    Thanx
    Aamir

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • How to import  Third party application through SAP in ABAP

    Hello,
    This is regarding importing third party application or non sap application through SAP or through portal...
    is there any way to do the same?
    actually our organization is having one independent application developed on .NET platform. we need to connect that in mY SAP R/3. so pls suggest me some proper way to achieve this one.
    regards,
    jigar
    [email protected]

    You can connect to SAP from a .Net application using the .NET connectors. Please find the help below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/23c80d66d08c4c8c044a3ea11ca90f/content.htm
    http://www.microsoft-sap.com/overview_sap_connector.html
    http://www.sapgenie.com/interfaces/netconnector.htm
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • How to Use CMOD and SMOD in SAP using ABAP Code

    Hello anyone,
      Please help me How to use CMOD and SMOD in SAP using ABAP code.
    Give Me Some Sample Example.
    Mail ID: [email protected]
    Thanks,
    Regards,
    S.Muthu,
    SAP Developer.

    Hi,
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

  • How to Use IDOC and ALE in SAP?

    Hi anybody,
                     I want Use Idoc and ALE in sap ABAP. What is inbound and outbout process of IDOC?
    Please give me sample code for Idoc . and Sample code for ALE.
    anybody Please tell me.
    Thanks
    Regards,
    S.Muthu.
    IT Dept.

    hi,
    Follow the link for step by step ALE/IDOC tutorials.
    http://www.sapmaterial.com/idoc_sample.html
    http://www.****************/Tutorials/ALE/ALEMainPage.htm
    An IDoc is not a process.
    The term IDoc stands for intermediate document. It is simply a data container used to exchange information between any two processes that can understand the syntax and semantics of the data. An IDoc is created as a result of executing an outbound ALE or EDI process. In an inbound ALE or EDI process, an IDoc serves as input to create an application document.
    IDocs are stored in the database.
    In the SAP system, they are stored in database tables. Several utilities are available to display the information contained in an IDoc and present it in different ways. For details, refer to Chapter 11, "Monitoring the Interface."
    Every IDoc has a unique number.
    When an IDoc is generated in the system, a unique number is assigned to it. This number is unique within a client.
    IDocs are independent of the sending and receiving systems. They can be used for SAP-to-SAP and SAP to non-SAP process communication as long as the participating processes can understand the syntax and semantics of the data.
    IDocs are based on EDI standards, ANSI ASC X12 and EDIFACT, but are closer to the EDIFACT standards. The size and format of data elements in an IDoc type are derived from these standards wherever applicable. For example, if a material number is represented by 20 characters in an EDIFACT message, the corresponding data element in the IDoc is also 20 characters. If there is a conflict in data size between standards, the one with greater length is adopted. This approach ensures compatibility with most standards.
    IDocs are independent of the direction of data exchange. An inbound and an outbound process can use an IDoc. For example, the ORDERS01 IDoc is used by the Purchasing module to send a purchase order, and is also used by the Sales and Distribution module to accept a sales order. Using this technique avoids creating redundant IDoc types for the same information.
    IDocs can be viewed in a text editor and do not contain any binary data. Data is stored in character format. When transferred to the operating system, an IDoc is stored in a file in text format and can be viewed using a regular text editor. However, the contents make sense only if you understand the structure and format of the data in that IDoc. In the Appendix, "FAQs, User Exits, and Miscellaneous Resources," you will find an example of an IDoc file.
    Hope this helps, Do reward.
    Edited by: Runal Singh on Mar 5, 2008 6:09 PM

  • How to use msword as editor in sap script and smart form..

    how to use msword as text editor in sap scripts and smartforms..

    Hi
    Go through the link given below :
    Saptechnical. com
    tutorials
    smartforms
    you will find solution for how to use MS word as editior.
    Or
    Call transaction I18N
    go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
    If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
    Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor.
    With Regard
    Nikunj shah

  • How to use ls-l command in SAP ??

    Hi,
    can any one suggest how to use ls-l command of unix in sap to get the details of file like creation date,etc.
    Thanks.

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • LightDM: How to stop non-graphical applications on session logout?

    Hi all,
    I'm currently moving from XDM to LightDM and have a hard time figuring out how to clean up after myself when my session ends.
    Here's the problem:
    I start two non-graphical applications in ~/.xprofile
    offlineimap
    ssh-agent
    I want to cleanly kill these when my graphical session ends
    What would be the best way to achieve this?
    What I tried until now:
    Add ~/.xlogout which does the cleanup
    Create /etc/lightdm/Xsession-mine which calls /etc/lightdm/Xsession and then ~/.xlogout
    Modify /etc/lightdm/lightdm.conf to use /etc/lightdm/Xsession-mine as session wrapper
    Result: ~/.xlogout doesn't seem to be called, probably due to exec in Xsession
    History:
    With XDM I would start my window manager in the foreground (without exec) in ~/.xinitrc and when it returns call my cleanup code.
    Thanks in advance for all help and suggestions!
    Timo

    Hi graysky,
    graysky wrote:Haven't used lightdm in a long time... does it have a PostLogout function similar to lxdm?
    https://wiki.archlinux.org/index.php/Lxdm#Configuration
    it does have something alike:
    # session-cleanup-script = Script to run when quitting a user session (runs as root)
    However, as the documentation states, this script is run as root, so I can't clean up on a per-user basis (or can I?).
    Kind regards,
    Timo

  • How to use non default port 1521 while 11.2.0.1 grid upgrade to 11.2.0.2

    Hi Team ,
    We are planning 11.2.0.1 Grid infra rolling upgrade to 11.2.0.2 with out any downtime.
    But while up gradation due to default scan port 1521 , 11.2.0.1 databases are not able to connect (remote connections)
    We are using 1900 port for existing 11.2.0.1 grid infra scan.
    While up gradation it is taking default port of 1521 insted of existing port 1900.
    Please provide the solution to use non default port while 11.2.0.2 up gradation.
    After upgrade the status as below.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
    Here I was getting TNS:no Listener errors from the client connections.
    I have modifyed the scan port then it is working fine.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl modify scan_listener -p TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4>
    Here the problem is we need to do the grid infra upgrade with out downtime,but due this default port issue clients are not able to connect to the database.
    Thanks
    Bala
    Edited by: user12032334 on May 31, 2011 11:46 AM

    Why are you using a non default port? It does not improve security. It makes network management more complex. And causes the type of issues that you are facing now.
    So before changing defaults, make sure that your reasons are technically sound. And using port 1900 when 1521 is available, is not technically sound by any means.
    As for addressing the problem you have created for yourself by mucking around with port numbers. Use a NAT firewall (on each RAC node) to rewrite packets headers received on port 1900 and send these to the server's port 1521 instead (on the VIP or static IP as required).
    This can be fairly easily done using iptables if your o/s is Linux. You need to:
    a) create a pre-routing NAT rule
    b) create a post-routing NAT rule
    c) create a forwarding filter rule for port 1900/tcp
    d) create an input filter rule to accept traffic on 1900/tcp

  • How to use the mobileme application in my ipod touch? I already have my account.

    How to use that mobileme app? Is it true that if ever my lost my itouch, I could use that app to look where is it?

    Mobileme was replaced by icloud many months ago.  There is no more mobileme.
    IF you set up find my ipod on the ipod BEFORE it was lost AND it is on AND it is connected to wi-fi, then you may be able to get an approximate street address using icloud.
    iCloud: iCloud

  • How to create custom BSP application in SAP CRM?

    Hi Experts,
    I would like to seek help from you. I am new in developing CRM objects. My first requirement is to create a custom program that will generate a PDF report.
    First thing I would like to know is the transaction code where I need to create a BSP application that will be able to run in crm webclient. Please clarify if it is in BSP_WD_CMPWB or in SE80 because it is said that I should create BSP application using MVC.
    Second thing is how will I be able to call a smartforms in a BSP application. The scenario for my custom program would be, I should have a two input fields in the selection-screen which are Business Partner ID and Product Lines. together with a button that will trigger the form when ticked.
    Hope to hear from all of you. Your help will be very much appreciated.
    Thanks and Regards,
    Monica

    Hello MonicAnna,
    You can find some information on this page.
    (http://help.sap.com/saphelp_nw70/helpdata/en/59/cd7daa07d711d5b66f006094192fe3/content.htm)
    And also you dont have to use se80 to create new Bsp appliaction. You can create new application by this transaction BSP_WD_CMPWB.
    Zafer,
    Edited by: Zafer Kuru on Dec 5, 2011 10:12 AM

  • How to use the activation library on SAP J2EE Engine

    Hi my friends:
       This post is referent to a note and their solution, but the solution is not clearly:
    Symptom:
    One wants to use the activation library provided together with the j2ee engine from an own library.
    Reason and Prerequisites:
    One wants to use the activation library from an own library but a ClassNotFound Exception or a NoClassDefFoundError keeps showing up.
    Solution:
    For J2EE Engine 6.30/6.40:
    To avoid the above mentioned exceptions one has to specify circular references between the activation library and the specific resource. When the engine's classloading system sees such references it creates a common loader for these resources and avoids the issue.
    Some one knows how to do circular references in my program????,
    i can use web applications or web dynpro with SAP Developer Studio Kit.
    thnsk Forum
    Joshua

    Hi,
    This is the info from help.sap.com on libraries and how provider.xml sjould look like:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/16/df813e77d46245e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/content.htm
    this is the dtd:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/09/5d963be736904c96cbdfe93793eb42/content.htm
    The file itslef is located in the library archive in server folder usually.
    I hope this helps.
    Greetings, Myriana

  • How to use two versions routing in SAP on different time period?

    Hi PP experts,
    There is a material Material-100 linked Routing-A and Routing-B. I would like to use Material-100/Routing-A combination during period 29.04.2015-30.05.2015, and using Material-100/Routing-B combination during period 01.06.2015-31.12.9999.
    Could you please kindly guide me how to do it in SAP? Thank you.
    Best Regards,
    Bu Fanchao

    Hi Amit,
    Below is my thinking, please kindly help me check.
    1. Due to routing-A is existed in SAP with period 29.04.2015-31.12.9999. So I need to change the valid-to-date from 31.12.9999 to 30.05.2015 via ECM.
    2. Create routing-B by CA01 with period 01.06.2015-31.12.9999.
    3. Create production-version-1 with routing-A/BOM during 29.04.2015-30.05.2015. And Create production-version-2 with routing-B/BOM during 01.06.2015-31.12.9999.
    My new question: Do I have to create production-version to achieve it? Does SAP system can choose routing automatically without production-version?
    Best Regards,
    Bu Fanchao

  • How to use the memory efficiently in SAP systems?

    Hi All,
    We are using  suse linux X86_64 bit OS
    All the instances are present in distributed environment. Eg we have one DB,1 ASCS(Message server and Enqueue), 1 PAS and 1 AAS
    In CRM there are 100 end users are there.
    Database is also 64 bit (Oracle)
    Ram size is 32 GB.
    CPU is:4
    Theoretically I know that the
    RAM:Virtual memory should be 1:2 ratio
    How to find the Virtual memory size in the existing system If it is a freshly installed means then how can we estimate it?
    How to find the SWAP size allocated in the existing system If it is a freshly installed means then how can we estimate it?
    How to find the size of virtual memory is allocated for the live SAP system and DB? And explain how to calculate if it is a freshly migrated system?
    How to find the size of RAM is assigned to SAP and the same for DB?
    If anything is increased in sap level like work process why should we need to increase the process and sessions in oracle and how?
    Kindly help to me to find the solution for this questions?
    Thanks,
    Priyanga G

    Do you see the search functionality in the upper left of the screen?
    Okay, now type in ecatt, press enter and in the next screen filter on blogs.

Maybe you are looking for