Multiple operations on DbAdapter

Hello,
Right now i create 1 database adapter for each query,
the wizzard (JDeveloper) only lets me configure 1 query.
How for example do i create 2 select operations:
- getCustomerByName
- getCustomerByXXX
I can edit the wsdl file to add an operation but i would rather do it
with the wizzard so no "loose" ends get created.
Thanks in advance!
Edited by: 908157 on 19-mei-2012 6:39

It is indeed a lot of work to do and you should be real careful. I just tried an example for you and its working as expected. I have an employees table which has two fields id and name. First i created the database adapter reference with the pure sql operation and i gave the query as below...
select * from employees where id = #ID
so, for the above reference, i named the operation as GetDetailsById
Now, i have edited the WSDL and jca files, to make a second operation available to the same reference, its name is GetDetailsByName...
In the JCA file, i have added one more endpoint-interaction and in that i have given the second query which is below...
select * from employees where name = #NAME
Ofcourse, i have added the new operation in the WSDL also, and also i have added a new input element in the XSD also...
and depending on the query and database operations, we need to do a lot of manual work....
So what i have now is just one DB Adapter reference which has two operations, GetDetailsById(pass the id and get the record details) and GetDetailsByName(pass the name and get the record details)
Hope this helps...Let me know if you have any questions
P.S : Please rate the answers as helpful/correct as it helps everyone; dont be like someone where you get the answer and dont assign points to the person who has helped you
Thanks,
N

Similar Messages

  • Please help me get my laptop back someone has cracked the master password and is running multiple operating systems which I have no access to

    Okay so I am not a computer expert by any means and have no clue how to fix my system. My father worked for intel for over 20 years as an engineer I asked him to restore my laptop to its original factory state and instead he cracked the master password
    installed multiple operating systems and made himself the administrator or domain controller. Many features and options I do not have access to so reading the trouble shooting and going through the steps always leads me to a dead end. The laptop is TOSHIBA
    SATELLITE L875D-S7332 a6 VISION AMD WINDOWS 8. As far as I can see my profile is actual running a version of windows 7. I do see reference to a windows 8RT windows 2003 windows vista wow64 and 32 I don't know what all that means I would just like to know how
    wipe everything and get back to the factory condition I bought it in. If anyone can help it would be much appreciated

    Do you have Win 7 installation disk? If yes, then go ahead and format the laptop if you don't need any data. If you need the data it it, then copy the same to USB disk and format it. Removing OS and deleting these things will anyhow keep some remains on
    HDD. TO get the speed and performance back, you might need a fresh installation. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Single concurrent program for multiple operating units

    HI
    I am working on XML/BI publisher to generate AR invoice reports.
    We have single rdf report using which rtf templates are generated.
    There are 10 operating units (10 ORG_ID's) and 10 rtf templates, one for each operating unit. There are 4 different responsibilities for each ORG_ID
    Eg: ORG_ID's = 11, 12, 13, 14..........etc
    Eg: Responsibility = xx, yy, zz...........etc
    I want to register a single concurrent program. When a user submits a request from "XX" responsibility, then the template associated with that org_id should be generated. Whichever responsibility the user is accessing from, that particular template must be shown as output.
    How can i register one concurrent program for multiple operating units.
    Thanks!
    Edited by: 994628 on Mar 18, 2013 4:39 PM
    Edited by: 994628 on Mar 18, 2013 4:42 PM

    >
    There are 10 operating units (10 ORG_ID's) and 10 rtf templates, one for each operating unit. There are 4 different responsibilities for each ORG_ID
    Eg: ORG_ID's = 11, 12, 13, 14..........etc
    Eg: Responsibility = xx, yy, zz...........etc
    I want to register a single concurrent program. When a user submits a request from "XX" responsibility, then the template associated with that org_id should be generated. Whichever responsibility the user is accessing from, that particular template must be shown as output.
    >
    interesting case for 10 OE set 10 template
    what is purpose? for each OE different requirements for layout?
    BTW
    if each Responsibility associated with one org_id then
    - you can get current org_id when you run concurrent program
    - create main template (will be #11) with condition like
    <?choose:?>
    <?when: ORG_ID=11?>
    <?import:xdo://FND.XX11_SUB.en.00/?>
    <?call:TEMPLATE11?>
    <?end when?>
    <?when: ORG_ID=12?>
    <?import:xdo://FND.XX12_SUB.en.00/?>
    <?call:TEMPLATE12?>
    <?end when?>
    <?otherwise:?>
    <?import:xdo://FND.XX21_SUB.en.00/?>
    <?call:TEMPLATE21?>
    <?end otherwise?>
    <?end choose?>so based on org_id will be import of needed subtemplate
    - re-register your "10 rtf templates" as subtemplates
    another way is substitution of template for concurrent then it running
    in before_report trigger set needed template
    l_conc_request_id := fnd_global.conc_request_id;
        if ORG_ID = 11 then
          UPDATE fnd_conc_pp_actions t
             SET t.argument2 = 'XX11'
           where t.concurrent_request_id = l_conc_request_id
             and t.action_type = 6;
      if ORG_ID = 21 then
          UPDATE fnd_conc_pp_actions t
             SET t.argument2 = 'XX21'
           where t.concurrent_request_id = l_conc_request_id
             and t.action_type = 6;

  • 1099 Reporting for Multiple Operating Units using same Tax Id Number

    Everyone!!!!
    We have multiple operating units using the same tax id number. We need to use the 1099 standard reports. I see that in the 1099 standard programs, one of the necessary parameters is Tax Entity Id which is again at operating unit level.
    As 1099 reports need to be sent at the Tax Id Number not at operating unit level, is there any way to use the starndard program and do this, or will we have to customize it?
    We are on 11.5.10.2 if it matters. Let me know if you need more information.

    Ok, I Found it. We have to customize it. Taxes are reported at Operating Unit level only.

  • Multiple Operations in 7.1

    Hi,
    I would like to know about multiple operations in 7.1.
    In what kind of scenarios it can be used. When it can be used?

    Hi Abhishek,
    > I doubt this statement.....any document available for the same?
    Please refer to this [document|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50a1a52b-688c-2a10-bc91-8985e4a188a0] , page 12 specifically. It will answer you doubt.
    > If Stateless XI30 Compatible then only one Operation will be visible. Operation name in this case cannot be changed
    > For all other Interface Patterns, Operation name can be selected.....they need not (rather cannot) be same as the Service Interface name (they can be similar)
    You can always delete the default operation(changing to Stateless temporarily) and create new, but it wont work for XI 3.0 compatible. This case should have same name in operation name as the Service Interface name. By default u cant edit.
    > having ERP as source/ target is not mandatory.
    > mapping to XI30 compatible is also not mandatory. just refer my blog and it will answer some of your doubts
    Yes I agree the ERP is not mandatory. But, the point is that application should be capable of WS-RM protocol. ERP is just an example here.
    Its good having discussion on this topic.
    Regards,
    Vikas
    Edited by: Vikas Aggarwal on Oct 1, 2009 5:13 PM
    Edited by: Vikas Aggarwal on Oct 1, 2009 5:15 PM

  • Implementing Multiple operations in a web service in JCAPS 5.1.3

    Hi,
    I am using JCAPS 5.1.3 and have a requirement where in I have to implement multiple operations and expose them as a webservice.
    The complexity of operations is medium, they have to log the input message into database.
    In order to achieve this I have come up with two models:
    Model-1:1.Create a Business process in eInsight and use event based decisons and implement various operations.
    2.Create jcd operations in order to log messages into database.
    3.Expose the business process as a webservice
    Model-2:1.Create a jcd for each operation and make it Callable as an External SOAP web service.
    2.Expose each jcd as a webservice
    I would like to know which of these models gives better performance for the webservice .I see eInsight in earlier versions was low in performance.
    Please let me know if you have any ideas on this.
    Thanks in advance.
    Regards,
    Nag
    Edited by: Nag4.5.3 on Jun 10, 2008 12:02 PM

    I'd try the idea #1 first. EInsight performances could be an issue only for very CPU-intensive operations, but as you need to interact with a database usually this I/O is going to be the real bottleneck. Instead, you should avoid eInsight not mainly because of hypothetical performance issues but when you foresee the need to write very complex logic, which is much easier to code and maintain in Java within JCDs than in BPEL. However remember that JCDs exposed as WS need the latest ESR Rollup to work properly, if I well recall they were single-threaded in plain JCAPS 5.1.3.
    By the way, if your WSDL describes multiple operations you could probably implement them one by one by distinct eInsight BPs if you need to distribute them differently, you are not forced to use a single BP with event-based decisions, it is a matter of your taste and requirements. In my experience however in the past I had some annoying issues with WSDL exposing multiple operations and eInsight, hopefully those are gone with the latest Rollup but do some quick test yourself before betting all your money on it.

  • Use ar_receipt_api_pub create_cash API across multiple oper units

    Hi,
    I have a requirement to create AR receipts across multiple operating units and I am using the AR_RECEIPT_API_PUB's create_cash() to do that. The APIs work fine and I can create receipt in oper unit A. But when I changed to a different operating unit B and call the API, it terminated with NO_DATA_FOUND error.
    If I run my same code with operating unit B and then oper unit A, it created receipts in oper unit B but returned NO_DATA_FOUND in oper unit A. That way I confirmed there is no set-up issues with both oper units.
    I tried following 4 different ways to switch to different operating unit but all resulted in NO_DATA_FOUND:
    1) mo_global.init('AR');
    2) mo_global.init('AR'); fnd_client_info.set_org_context(&org_id>);
    3) mo_global.init('AR'); mo_global.set_policy_context('M', &org_id) ;
    4) mo_global.init('AR'); mo_global.set_policy_context('S', &org_id) ; (My EBS set-up has multi oper units, but I tried 'S' flag because of lack of ideas)
    Please help. Thanks!
    Mike.

    @MikeLi,
    Did you find any solution for this problem? We are facing this problem on R12 while creating AR receipts across multiple operating units. We will be glad if you share the solution. We have tried all possible ways; but did not help. When we look at the mo_glob_org_access_tmp ; we have access to all organizations; but the api returns 'no data found'
    Thanks.

  • Multiple Operations in a Single Interface - How To trace the Operations !!!

    Hello PI Experts,
    We have implemented an interface for Multiple Operations in the client proxy.
    We are able to trigger the proxy for the diff methods of the class and the message is flowing to the desired Receiver correctly.
    I have 2 queries regarding these mutiple operations workout :-
    1.     First thing I am curious about , how PI is knowing/handling the operation details i.e which operation   needs to be carried out & routed to which receiver.
    I had a good look at the SOAP Header Message , but there is no trace of the operation name    that is being used.Only the Interface name is tracked over   there.
    I just want to know , how PI is handling & determining this whole stuff and where we can find out the operation name which is being used...as it should be   mentioned somewhere in the message header.
    2.     Second one is if the sender is other than a webservice/proxy call, how can we make the operation specific calls from the sender for e.g if its a http call ?
    Could you please help me out with this.
    Thanks in Advance,
    Sunil Kumar
    Edited by: SUNIL DALAL on Nov 4, 2010 11:23 AM

    Yes, its possible no doubt..but how its playing with the operations can you please let me know.
    Thanks,
    Sunil
    Edited by: SUNIL DALAL on Nov 8, 2010 2:26 PM

  • PI 7.1 multiple operation interface and SOAP action doubt

    Hi guys,
    I'm trying to implement a scenario, where I have a single outbound (sender side) interface with multiple operations (as 7.1 allows). The problem is afetr the WSDL generation I have the same SOAP action for each operation. Standardly there should be unique SOAP action per operation, but how to achieve it?
    And another question - is it ok to use SOAP sender adapter for this interface?
    Thanks for your help,
    Olian

    Hi Olian,
    >>The problem is afetr the WSDL generation I have the same SOAP action for each operation. Standardly there should be unique SOAP action per operation, but how to achieve it?
    I dont think you need to have separate action, the Operation Name inside Service Interface differentiate the Request type. Also when you send SOAP message to PI, you are sending it to either
    http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c
               (where host is the host name, port is the port number, p is the optional party name, s the service name, and c is the channel name, respectively.The URL given above is valid for 3.0/7.0/7.1.)
    or      * http://host:port /XISOAPAdapter/MessageServlet?senderParty=FP& senderService=FS& interface=IF&receiverParty=TP&receiverService=TS&interfaceNamespace=IFNamespace *   
    (7. 10 onwards a new URL syntax is also valid and is recommended to be used. )
    >>And another question - is it ok to use SOAP sender adapter for this interface?
    Yes
    Regards
    Suraj
    Edited by: S.R.Suraj on Sep 8, 2009 6:23 AM

  • Check Payment Processing Across Multiple Operating Units

    Hi There
    We are currently implementing Oracle R12 at the company I work for. Our solution implementer has informed us that you cannot process one check (cheque) payment across multiple operating units and that this is an outstanding enhancement with Oracle. Therefore (if we accept) this we will have to process a seperate check per operating unit which will increase our payment processing significantly.
    Can anyone out there:
    A. Confirm this is indeed an issue
    B. Are you aware if Oracle are doing anything about it and
    C. Is there any workaround that we could consider to lessen the impact.
    Thanks

    Hi,
    Scenario 1
    If you are going to make Single check payment to the same supplier having different sites under various operating units, oracle has provided a workaround, i.e. to make a manual payment in payables module, however it would not generate any payment instruction.
    Scenario 2
    If you are going to make single check payment to various suppliers in different/same operating units, it is not allowed by Oracle, as there is no logic behind it. You cannot have 1 check generated for different suppliers ...
    I am assuming you are referring to Scenario 1, in which case, i would say there is an WORKAROUND suggested by Oracle to make use of MANUAL PAYMENT method, which you could discuss with your Solution Implementer.
    Regards,
    Ivruksha

  • Error in multiple operation with change document object for custom table

    hi all,
    I have developed a change document object for a custom table ZTEST and developed a report program for insertion, updation & deletion..everything works fine if I do only once ie. if I created only 1 entries. If I created 2 new entries , I am getting an Error "DUPREC:POS&Z3RL_TAB&Z3RL_TAB" and EXIT the transaction.
    why I am getting this error??? is it not possible to do multiple operation with the change document???
    kindly help.
    Edited by: JaiKarthik on Apr 7, 2010 6:20 AM

       LOOP AT ts_mod INTO wa_mod.
                READ TABLE <i_itab> INTO <wa_tab> INDEX wa_mod-row.
    * Select the existing entries in table Z3RL for change history
                    SELECT SINGLE * FROM z3rl
                           INTO wa_z3rl
                           WHERE vkorg   = <wa_tab>+3(4)
                           AND   zzkunnr = <wa_tab>+7(10).
    * Move the old entries
                    IF sy-subrc = 0.
                      CLEAR ls_z3rl.
                      ls_z3rl = wa_z3rl.
                    ENDIF.
    * Update the table
                 MODIFY (viewname) FROM <wa_tab>.
                   CLEAR wa_z3rl.
                    wa_z3rl-mandt      = <wa_tab>+0(3).
                    wa_z3rl-vkorg      = <wa_tab>+3(4).
                    wa_z3rl-zzkunnr    = <wa_tab>+7(10).
    * Populate change tables
                    CLEAR wa_change.
                    wa_change-teilobjid = 'Z3RL'.
                    wa_change-textart = 'TEST_2'.
                    wa_change-textspr = 'EN'.
                    wa_change-updkz = 'U'.
                    APPEND wa_change TO ts_change.
    *call the fM to log the values in CDHDR table.
                    CALL FUNCTION 'Z3RL_WRITE_DOCUMENT'
                      EXPORTING
                        objectid                 = 'Z3RL'
                        tcode                    = sy-tcode
                        utime                    = sy-uzeit
                        udate                    = sy-datum
                        username                 = sy-uname
                        planned_change_number    = ' '
                        object_change_indicator  = 'U'
                        planned_or_real_changes  = 'U'
                        no_change_pointers       = 'U'
                        upd_icdtxt_z3rl= 'U'
                        n_z3rl= wa_z3rl
                        o_z3rl        = ls_z3rl
                        upd_z3rl= 'U'
                        lv_opt                   = ' '
                      TABLES
                        icdtxt_z3rl= ts_change.
                CLEAR : wa_mod, <wa_tab>.
              ENDLOOP.
    Edited by: JaiKarthik on Apr 7, 2010 6:49 AM

  • Mapping in Services Interface with multiple operation... ?

    Hi ALL,
    I have a SOAP to SOAP scenario here Just PI 7.1 with EHP1 acting a bus no mapping nothing .
    1) I have the WSDL file from the receiver system with multiple synchronous operations  in it ..i imported the wsdl as External Definition .. i used the same the WSDL file to create the sender Service interface also...
    when i created the service interface with the operation in it , i just gave the same operation name from the WSDL.this i followed for the sender and receiver service interface.
    1)now the issue is do i need any operation mapping if the service interface has more than one operation ...?
    2) I compelted the scenario without any operation mapping ..but i am getting this error ..Problem occurred in receiver agreement for sender -ICRM_D to receiver -EXACTTGETWEBSERVICE_D,http://ICRMtoExactTaetWebservice.com.si_os_ICRM_EXACTTETWEBSERVICE: No standard agreement found for , ICRM_D, , EXACTTARGEBSERVICE_D, http://ICRMtoExactarebservice.com, si_os_ICRM_EXACGETWEBSERVICE..?
    pls help me in this issue..
    Thanks
    Souz

    you might want to read this /people/shabarish.vijayakumar/blog/2010/09/08/service-interface-and-multiple-operations--is-it-just-an-hype
    you will need to create additional configurations for multiple operations to be supported

  • PI 7.1 - Multiple Operations - NO_RECEIVER_CASE_ASYNC

    Hello All
    I am using PI 7.1, Proxy to JDBC scenario. I a trying to use a single Service Interface with multiple operations (Customer, Vendor). When I test the scenario I am getting the error "NO_RECEIVER_CASE_ASYNC" at SXMB_MONI. Receiver Determination is configured as Operation Specific. However this error occurs.
    Has anyone who could help me on this?
    Thanks
    John Jeyaraj

    Hi John ,
    following is one of my wiki where I have explained how to determine receiver system based on operation if you have multiple operations under single service interface..
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=233472879
    in your case make sure that you have done configuration as expected and object receiver determination is active and there is no problem in Cache..
    if configuration is correct then this might be problem with cache..
    check cache..
    check your object status in tcode SXI_CACHE
    try activating your receiver determination object and one more time..
    Thanks,
    Bhupesh

  • Multiple Operations for File to IDoc scenario

    Hi all,
    I have a file to IDoc scenario where two IdocXML files (one for INSERT and one for CHANGE of Business Object) have to be picked up by file adapter and transfered to SAP System. In respect to the multiple operations PI 7.1 can handle I would like to create one Service Interface for the Business Object and two operations (INSERT and CHANGE).
    Unfortunately I am not able to use the operation in the sender agreement, so I can't specify the comm-channel for the operations, only for the interface.
    So, can I use multiple operations in a file scenario (respectively in a non Web Service scenario)??
    Thanks a bunch,
    Manfred

    The scenario is pretty easy. I just want two different files to be read by one Comm Channel with one Sender Agreement.
    They are both transferred to the same receiver. I just wanted to test one scenario using multiple operations.
    In your blog you described that you should not use two operations with the same set of messages (synchronous/asynchronous). In my case both are asynchronous but I already tried it with one being sync and the other one async. Where did you actually get this information, it puzzles me a little since SAP does the same in its preconfigured Enterprise Services as far as I know.
    In the Trace for pipeline step Interface determination in SXMB_MONI it says:
    <Trace level="1" type="T">...There is no Interface Determination configured for receiver party and receiver service BS_RECEIVER</Trace>
      <Trace level="2" type="T">Check conditions for (Inb: Party Srvc If) BS_RECEIVER SI_..._Out</Trace>
      <Trace level="2" type="T">...valid InbIf without Condition: SI_..._Out</Trace>
      <Trace level="2" type="T">Number of receiving Interfaces:1</Trace>
    So it finds the Outbound Interface in Receiver side which is wrong since I specified the Inbound Interface in the Interface determination. Did anyone of you already encounter such a behaviour? I already deleted and recreated all routing objects but without any success.
    Thanks,
    Manfred

  • Does the sender SOAP adapter support multiple operations per interface

    Hi guys,
    does the sender SOAP adapter support multiple operations per interface? (interface type of 7.1)?
    Thanks,
    Andrzej

    theoretically Yes.
    Do have a look into this when you get time
    /people/shabarish.vijayakumar/blog/2010/09/08/service-interface-and-multiple-operations--is-it-just-an-hype

Maybe you are looking for