Access BAPIs Using the SAP Java Resource Adapter

Hi experts,
Can someone tell me how to Access BAPIs Using the SAP Java Resource Adapter?

hi Shweta,
Please refer the step by step procedure:
1. Start the deploy tool of the SAP J2EE Application Server with the DeployTool.bat in the directory //<SAP J2EE Engine Installation Directory/.../j2ee/deploying.
2. Choose Project &#8594; New Project and enter a name for the new project.
3. Click on the Deployer tab.
4. From the menu path, choose Deploy &#8594; EAR &#8594; Load Module and select the sapjra.rar file.
5. For the newly created node sapjra.rar, choose Server Settings &#8594; Identity Subjects and select Caller Impersonation as authentication type, so that the J2EE user data is used to log on to the ABAP system.
6. Make sure that the J2EE Application Server is running. Connect to the J2EE Application Server with Deploy &#8594; Connect.
7. Deploy the sapjra.rar using the menu Deploy &#8594; Deployment &#8594; Deploy Module.
8. Enter SAPJRADemo as application name and start the application.
9. Close the deploy tool.
10. Start the Visual Administrator again.
11. Select the Cluster tab and switch to <Server Node> &#8594; Services &#8594; Connector Container.
12. Click on the Runtime tab and choose sap.com/SAPJRADemo &#8594; eis/SAPJRADemoFactory.
13. Choose Managed Connection Factory &#8594; Properties. On this page, you need to specify the logon data for the ABAP system. There is already some dummy data visible in the property list if no real system data has been specified so far.
14. To change the value of a property, select the property in the list, change the value underneath it, and add the changes using the Add button. At the end, do not forget to save all changes by pressing the button Save Changes. The user configured for the SAP JRA must be the user authorized to read metadata of function modules.

Similar Messages

  • Problem: Accessing BAPI using SAP System Connector and setting SELOPT_TAB

    Hi,
    I am trying to use the SAP System Connector (based on JCA) to connect to a BAPI and do a search for a customer with EP SP15. (Using BAPI_CUSTOMER_FIND).
    I established the connection and can set simple input parameters, however I didn't find a way for setting the SELOPT_TAB in the IInteraction instance.
    This is what the table should contain:
    Table SELOPT_TAB
    Field Content
    COMP_CODE SPACE
    TABNAME KNA1
    FIELDNAME NAME1
    FIELDVALUE Ma*
    Here the import parameter:
    IMPORT-Parameter
    MAX_CNT 100
    PL_HOLD X
    And here the code for the IInteraction without the SELOPT_TAB that I want to include.
    // Get the Interaction interface for executing the command
    IInteraction ix = connection.createInteractionEx();
    IInteractionSpec ixspec = ix.getInteractionSpec();
    String functionName = "BAPI_CUSTOMER_FIND";
    ixspec.setPropertyValue("Name", functionName);
    String function_out = "RESULT_TAB";
    RecordFactory rf = ix.getRecordFactory();
    MappedRecord input = rf.createMappedRecord("input");
    // put function input parameters
    input.put("MAX_CNT", "100");
    input.put("PL_HOLD", "X");
    MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
    Does anybody know how to set the SELOPT_TABLE as input parameter?
    Any help would be appreciated.
    Regards, Andy

    Maybe your application isn´t run in x84
    #Go to properties of your project ->Build -> changed platform target of "Any CPU" to "x86"
    #Copy these libraries from our 32-bit environment :
    *SAP.Connector.dll
    *SAP.Conector.Rfc.dll
    *librfc32.dll
    *msvcp71.dll
    *msvcr71.dll
    In 64 bits environment:
    1. librfc32.dll to C:WINDOWSsystem
    2. msvcp71.dll to C:WINDOWSsystem32
    3. msvcp71.dll and  msvcr71.dll to C:WINDOWSSysWOW64
    4. SAP.Connector.dll and SAP.Conector.Rfc.dll to C:WINDOWSassembly (DRAG)

  • SAP simulated Resource adapter

    Hi Folks,
    I don't have an access to a real SAP backend at this moment, Though a using a SAP R/3 Simulated adapter to test some use cases. I am not sure how do I create one.
    Tried searching in this forum.
    Can anybody help with a SAP simulated adapter snippet.
    Thanks
    Roger

    Folks,
    I solved this, For someone who is hitting hard his head on wall like me for this issue, here is the trick.
    Choose simulated as the resource name from the resource list, which brings the resource wizard, put the name of the file where you want to write
    the result xml file. Now on the next screen where you need to define the exact mapping, For my case I went to the orginal sap adapter and took the mapping
    and given those same values and then save it. Bingo!
    You have a brand new SAP simulated resource adapter.
    I guess this is same for any simulated adapter, Just make sure to pull the orginal adapter mapping to this simulated one.
    Cheers
    Roger

  • Create a Purchase order using the BAPI using the data in the XML file.

    Hello Gurus,
    here is the scenario can anyone help me how to proceed explaining the procedure?
    Create a Purchase order using the BAPI using the data in the XML file.
    comprehensive explanations are appreciated.
    thanks in advance.

    hi,
      first use fm "bapi_po_create".
      then use fm "BAPI_ACC_GL_POSTING_POST"
    The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
    •     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
    •     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
    •     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

  • Problem with HowTo guide - Use the BI Java SDK in a Web Dynpro Application

    Hello,
    I am following the HowTo guide - Use the BI Java SDK in a Web Dynpro Application
    at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e49be590-0201-0010-0c83-fc20e5da124f">this link</a>.
    I have configured the connector on the WAS as needed.
    The problem is that when I run the application I receive an Unauthorized error on the connector URL.
    If I open this URL on a browser I receive a pop-up for UID and PWD and when I enter the same UID and PWD I used to configure the connector I am able to login and see the WSDL.
    Any ideas?

    I've never tried using BI in WebDynpro !!!
    But i foond one posting on the connection problem https://forums.sdn.sap.com/click.jspa?searchID=955524&messageID=2133396
    Regards,Anilkumar

  • How to install the SAP Java Connector

    Hi,
    I am unsure how to install the SAP Java Connector on Linux (Suse Linux Enterprise 10). The SAP Integration Kit install and admin guide says:
    ===
    u2022 Copy the librfccm library and the libsapjcorfc library to busines
    sobjects_root/enterprise120/PLATFORM_PATH, where busines
    sobjects_root is the full path to your businessobjects directory,
    and PLATFORM_PATH is your platform. For example, PLATFORM_PATH
    is solaris_sparc for an installation on Solaris.
    u2022 Use symbolic links for the location of the librfccm library and the lib
    sapjcorfc library.
    u2022 Add the location of the librfccm library and the libsapjcorfc library
    to the library path.
    ===
    Do I have to do all 3 steps or is the 1st one (copying of files) enough?
    On the other hand, the SAP Java Connector guide says:
    ===
    Then add {sapjco-install-path} to the LD_LIBRARY_PATH environment variable.
    Finally, add {sapjco-install-path}/sapjco.jar to your CLASSPATH environment variable.
    ===
    So, what to do?
    Thanks!

    Thanks for your help. So i copied the 2 files as mentioned in point 1.
    Where do I have to copy the file sapjco.jar to? There is no shared lib folder after installing BO Edge 3.1 on a Linux system.
    I copied the sapjco.jar to /bobje/tomcat/common/lib but still get the message that the Java Connector files are not in the correct directory.
    I already copied the files librfccm.so and libsapjcorfc.so to /bobje/enterprise120/linux_x86 .
    Thanks again!
    Edit: problem solved: Copying the sapjco.so to tomcat/shared/lib is correct, if the directory doesn't exist then just create it (mkdir). The message is just plain information 7 hint.

  • Java Resource Adapter

    Hi guys,
          Can any one send me good links on How to develop a Java resource adapter. Can we develop Java resource adapter in NDS?
    Regards,
    Gowtham K.

    Hi Gowtham
    Here you go,
    http://help.sap.com/saphelp_nw04/helpdata/en/61/1d88424466d665e10000000a155106/frameset.htm
    cheers
    Sameer

  • Is anyone using the Illustrator CC host adapter on Mac?

    I'm not able to successfully use the Host Adapater for Illustrator CC on Mac OS.  It's working on Windows and on earlier versions of Illustrator.  I'm using Illustrator CC 17.1.0 and Mac OS 10.9.1. 
    Is anyone else successfully using the Illustrator CC host adapter plugin on Mac OS? If so, where did you get the host adapter plug-in from, and did you have to do any special "tricks" to install it? 
    I created a new Extension project in Extenion Builder (licensed copy of EB 2.1), selecting the options to use the Illustrator host adapter libraries.  My extension just has a button that calls the AIEventAdapter.pingPlugIn() function and a list box to show the results (i.e., "pingSucceeded" or "pingTimedOut").  I then used Extension Builder to Export the project as a ZXP and sign it (with a self-generated certificate).  I then installed the test Extension with Extension Manager on my Mac.  All of this completes without any errors, and the AIHostAdapater.aip is in the correct Illustrator Extensions folder.  But when I run the Extension the pingPlugIn() function always returns with the "pingTimedOut" event.  The same Extension correctly results in the "pingSucceeded" event on Illustrator CC on Windows or for earlier versions of Illustrator on both Windows and Mac OS.
    Is there a known problem with the Mac OS version of the Illustrator CC host adapter plug-in?  Or an updated version somewhere?
    Thanks.

    For someone facing loading issues of AIHostAdapter plugin in CC2014, you can download the same from the following URL
    https://github.com/timothybrandspencer/CEP-Resources/tree/master/host_adapters/illustrator
    Thanks,
    Manan

  • Unable to register the SAP JAVA CONNECTOR sapjco3.dll file

    HI
    I'm trying to intergrate BO and BW using SAP BO Integration kit, and following the manual at http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/a00ee3b2-5283-2b10-f1bf-8c6413e0898f&overridelayout=true
    But first i must install the SAP Java Connector, I have downloaded them from https://websmp107.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000719346&.
    My server is a WMvare win 2008.service pack 2.
    My problem is that i'm unable to register the sapjco3.dll file.
    I'm runnning the comand regsvr32 "C:windowssyswow64sapjco3.dll
    but I only get the error message "The module "sapjco3.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "sapjco3.dll" is a valid DLL or OCX file ant try again"
    I hav tried both the 64 bit and the 32 bit version of the dll. same error.
    the dll version is 7110.34.16.7531
    Any ideas
    Thanks

    Hi Pal,
    you need to use the Java Connector v 2.1.8 and there is no need to register the DLL.
    ingo

  • How can i use the operationsComplete JAVA API in EJB2.0

    Hello guys,
    My Issue is cleaning the EJB Cache. some guys saying using JAVA API like operationsComplete like the follwing
    weblogic.ejb.interfaces.EJBLocalObject
    public.void.operationsComplete()
    weblogic.ejb.EJBObject
    public.void.operationsComplete()
    Please reffer the link below
    (http://e-docs.bea.com/wls/docs92/ejb/entity.html#wp1194003)
    Understanding Passivation of Entity Beans
    Entity beans that are involved in transactions can be passivated when necessary in order to attempt to prevent a CacheFullException when an attempt is made to insert an entity bean into a cache that is full. Passivation is handled automatically by the EJB container and you do not need to change the way you program EJBs in order to take advantage of this feature. However, you can optionally program your EJBs to communicate to the cache that they are done performing all operations in the current transaction. The cache can then make use of this information when evaluating beans for the possibility of passivation.
    To optionally program EJBs to notify their cache that they are done performing operations in the current transaction, you can use the operationsComplete Java API as follows:
    weblogic.ejb.interfaces.EJBLocalObject
    public.void.operationsComplete()
    weblogic.ejb.EJBObject
    public.void.operationsComplete()
    It would be great help if any guy give me a solution.
    Thanks in Advance
    Rajasekhar

    Netweaver is comprised of different components...
    in WAS ABAP.. if you go to SPAM.. and select imported support packages and click display..
    You will see list of components.. some of the components you might see at same level and some follow different paths...
    ex:
    SAP_OCS  - > SPAM/SAINT UPDATE 24
    SAP_BASIS -> Support pacakage 13 for 7.0
    SAP_ABAP-> Support pacakge 13 for 7.0
    and the same way you can find different components in java engine...
    http://<host>:<port>/sap/monitoring/SystemInfo
    You can upgrade each of them by individual support packages.. or you can upgrade stack by stack..
    stack is collection of supporpt packages...
    If you follow stack.. then you can tell that you at NW04S Support stack 10 or 11... if you upgrade by support package always it is collection of versions of different support packs in your system...
    Please do come back if you require any further information..
    Award points if this reply found useful

  • How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the Ipad to the Iphone and not the other way around.

    How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the IPad to the IPhone and not the other way around.

    The devices are not designed for transfer of that kind.  Use Photo Stream as suggested by another poster, or transfer photos to your computer (a good idea anyway since they will be lost if your device needs to be reset), then use iTunes to sync them to the other devices.

  • How do i connect my mac mini to a kvm switch using the hdmi to dvi adapter?

    I want to connect my Mac Mini using the HDMI to DVI adapter to a KVM switch cable. I have an Iogear KVM switch. The cable from the KVM switch has a male VGA end connection. I have been trying to determine the right adapter to connect the female DVI connection to the male VGA connector. I will be using the Mac mini and a PC running through the KVM switch. This is doable as the iogear switch is compatible with both a PC and a Mac. Any ideas out there? Thank you.

    You would need to get  HDMI or DVI to VGA CONVERTER, not a simple adopter. The converter requires USP connection for power. HDMI is only digital while VGA is analogue.
    http://www.newegg.com/Product/Product.aspx?Item=N82E16812699001&nm_mc=EMC-IGNEFL 070414&cm_mmc=EMC-IGNEFL070414-_-EMC-070414-Index-_-AudioVideoSplitters-_-126990 01-L019B
    If your MIni has a mini displayport or Thunderbolt port yu can get a les expensive mini displayport to VGA afopter.

  • Can I connect my old mac to my new mac using the thunderbolt to ethernet adapter

    I've got a lot of data to transfer from one mac to another, one with thunderbolt and one without. I was wondering if by using the thunderbolt to ethernet adapter I could connect the two macs in a target mode kinda way.
    I know people will answer with a lot of other options in how to do this, but I am specifically interested in whether or not this option is possible.
    Thanks!

    you can use the adapter with any Thunderbolt-equipped Mac running OS X Lion 10.7.4 or later, but you'll want to install the Thunderbolt Software Update 1.2.1 after having the 10.7.4 upgrade
    10.7.4
    http://support.apple.com/kb/DL1524

  • HT3382 using the thunderbolt to vga adapter, i have to unplug and replug the connection to get my display to "wake up"  what's the deal?

    using the thnderbolt to vga adapter, I have to unplug and replug the connection to get my disply to "wake up"  What's the deal?  otherwise works fine.
    Same on initial boot up

    First try > Resetting your Mac's PRAM
    There have also been others reporting problems with analog VGA connected monitors. If your monitor also supports DVI, then you may want to use the supplied HDMI to DVI adapter or switch to a Mini DisplayPort to DVI Adapter and a good DVI cable.

  • How can I access and use the alphabetical keyboard of the phone ?

    How can I access and use the alphabetical keyboard of the phone ? I cannot find the answer in the manual of use.  Thanks for your help !

    Recently I was abroad and tried to contact my voicemail to check my messages. I was asked to enter a password and did not know how to use the letters below the figures on the keyboard.  I had to give up and wait until I was back in my country (no password is then needed).

Maybe you are looking for

  • HT201335 what type of hdmi cable do I need to get for my apple TV to connect to my HDTV

    Hi I just got myself an apple TV and would like suggestions on the best connection cable to buy to be able to connect my apple tv to my LGHD TV. Regards

  • Photo Stream on new iPad

    How do I move photos from Photo Stream so they show up in my Photos or Events on a new iPad?  They show up in Photo Stream but not in my normal photo library.

  • No Price Upate in Inbound ORDRSP

    Inbound ORDRSP-->Price Change is not working, even if price is within the tolerance limit. 1) I configured OMGZ-->Adopt Price change flag is active. 2) EDI1 and EDI2 condition type is active. Looks like all my configuration is correct, but price is n

  • Can't update device package for adobe DC in cd photo shop CS3 beta)

    i've installed device central from CD Photoshop CS3 BETA , the problem is i can not install new device package for the file that download from net , and it always shown ( the file update is too new for this version of adobe device central ).... someb

  • My iPods Color...??

    I receivced my iPod mini as a gift from my dad and he bought me the blue one and i dont like the color much. is there anyway i can exchange it for a different color?