Query Regarding 2 Calls From XI to same Database.

Hi All,
I've a scenario in which XI has to call the Database two times:
First call is to get a value from the Database by using stored procedure
Second call is to update a table in the same Database by one to one mapping.
I've called the stored procedure and one-to-one mapping individually but now I've to use them together without having a common Interface Mapping as they different structures.
I've tried to search but couldn't find any similar scenario's.
Kindly let me know the steps I should do to execute this interface.
Thanks In Advance.
Sreedhar.
Edited by: Sreedhar Av on Nov 2, 2009 9:13 AM

Hello Sreedhar,
Your scenario is pretty simple..
Your scenario as per my understanding will be like this..
SAP Source Message ---> Message Mapping (Use LookUp function to get value) -
> Target Message.
So just to make it simple if I say the above scenario as "File To JDBCwith look up function" then you can take a help of this blog, which will let you know all required steps for design.
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
I have already provide you blog for JDBC Lookup, so take help of that to create the UDF for Lookup and use that in your mapping.
Note: You have to use 2 JDBC receiver CC. One which you will use in LookUp function and other for updating the Database.
It looks weird that you are not allowed to use UDF. Try to convince your Client that UDF provides the options which is not possible with std. functions. Also UDF is a part of mapping.
Regards,
Sarvesh
Edited by: Sarvesh Singh on Nov 2, 2009 3:46 PM

Similar Messages

  • Query regarding calling T-code MIGO from ALV report output

    Dear friends,
    I have to call MIGO transaction  from my ALV report output. Now problem is that I have to set the value 'display' In the first header field, 'Material Document' in 2nd header field when MIGO is called from the report output. Morever there is no parameter ID for these two fields. So how to set the values w/o using parameter ids.
    Regards,
    Rishi

    Hi,
    Try this coding,
    FORM DISPLAY.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM             = SY-REPID
       I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
       IS_LAYOUT                      = AK_LAYOUT
       IT_FIELDCAT                    = AK_FIELDCAT
      TABLES
       T_OUTTAB                       = ITAB.
    ENDFORM.                    " DISPLAY
    *&      Form  EVENT
    FORM EVENT USING P_AK_EVENT TYPE SLIS_T_EVENT.
      DATA : AK_EVENT1 TYPE SLIS_ALV_EVENT.
      AK_EVENT1-NAME = 'USER_COMMAND'.
      AK_EVENT1-FORM = 'USER_COMMAND'.
      APPEND AK_EVENT1 TO P_AK_EVENT.
    ENDFORM.                    " EVENT
    *&      Form  USER_COMMAND
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            RS_SELFIELD TYPE SLIS_SELFIELD.
      IF R_UCOMM = '&IC1'.
      " AND SY-LSIND = '1'.
        READ TABLE ITAB INDEX RS_SELFIELD-TABINDEX.
        SET PARAMETER ID 'AUN' FIELD ITAB-BUDAT.
        CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.
      ENDIF.
    ENDFORM.                    " USER_COMMAND
    Regards,
    Nikhil.

  • A Query regarding calling a DB procedure from a Crystal report

    Hi,
    Please tell me how can we call a database procedure from a crystal report  (crystal report XI)?
    I tried by selecting the procedure as a data source for the report; but its giving me an error "Invalid Argument Provided".
    The procedure contains a single Update table statement. Could anyone please help me to resolve this problem as early as possible ?
    Thanks & Regards,
    Priyashree Katkar.

    Duplicate of
    Crystal reports with a DB procedure
    Closing and locking this thread
    Ludek

  • Query regarding Purchase Order Lines stored in database?

    Hi Friends,
    While i extract Purchase Order details ,i found that in demo database,some Purchase order lines are stored in seperate entries in POR1..
    eg: if <b>21</b> A00001 is ordered,then the purchase Order line for 20 item is stored in a row and purchase order for 1 item of that same item 'A00001' is stored in a seperate row in POR1..
    In wht criteria SAP B1 take it as a seperate row for a single item order while storing in POR1--Purchse Order Lines
    Thanks in Advance
    regards
    Sooriyakala.P

    Hi,
    Could be that 20 items come from a Sales Order (and line), and 1 from another one? If isn´t this data, could be any diffent one.
    Then in the SBO GUI there is a field in the left botton of the item matrix called "summary type" (or something similar, I´m translating). Here you can say to summ all the items in one row, or not to make any summary.
    Regards,
    Ibai Peñ

  • Query regarding Call errors in webview

    We are running on UCCE 8.x comprehensive setup. On an average in a week we get around 20 call errors in the webview report. Also, I had read a Cisco document stating different scenarios for call errors. I would like to know what will happen to a particular call if it is incomplete, etc and how to minimize the call error by providing high customer satisfaction
    Regards,
    Dass

    Hi Bhargav,
    Do one thing just check in tcode - SE01
    and enter your TR No. in first tab..
    Now in the TR expand and double click on the task no.
    Here you will get list of objects to be transported to with this TR..
    Just whether you TR includes entry for your screen
    <b> OR</b>
    Incldue R3T3 PROG <UR_PROG_NAME>
    If both the case is not application...then the screen has slipped from the TR and has to be transported  in separate request..
    Just check TR and let me known ...based on ur response we can move ahead..
    Enjoy SAP.
    Pankaj Singh

  • Query regarding calling web services in Visual Composer

    Hi Experts,
       I am thankful for your help for posting this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e017128
    I am following the same steps but I am unable to find the system in visual composer after creating it in portal.
    I got another document also related to it...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ceea45f3-0c01-0010-049c-c2b001f590fb
    But in this document when I am giving the WSDL URL name its not accepting. It is showing as invalid.So I am unable to proceed forward. Please help soon...
    Regards
    Nutan

    Hi Nutan,
    Try to define the web service system directly in the portal. Through VC you can encounter problems.
    Regards,
    Natty

  • Query regarding Calling   long run jobs

    I am Calling a java standalone program through a cronjob.
    In the program I have written logic that will create a CSV file.
    The problem is sometimes it takes long time to create the csv file, so I need to facilitate user some way of cancelling it. User will cancel it through UI.
    Can any body suggest what could be the best approach to implement it.
    Also I want multi threaded approach too because many users will request to create CSV file.
    Thanks

    How about this - create a thread for every user request and let it run in the background and when the file is generated just email the generated file to the user.
    Advantage of this is, if the user runs this through a web page, then this allows the user to just kick off that generation process and navigate to other pages. He doesn't have to stay on the same page until the file is generated.
    You can have another page where the user can see the list of threads running and can stop his thread if needed. This is done by invoking thread's interrupt() method. The contents of this page depends on the user's role.
    HTH.

  • Does each query template call within a repeater re-create the connection?

    Version:  11.5.1.b57
    Hi,
    How exactly does query template calls from a BLS work?  Does each call re-create the connection to the database, or does the connection stay open for awhile?
    Specifically, in my situation we are making query template calls to a database within a repeater loop to insert rows and I'm curious whether it is recreating the connection each time.  We can't insert all the rows at once because of JDBC limitations, so have to insert row by row.  We are reading the data from an xml file and then inserting the data into the database and the performance seems slower than I would have expected (even inserting row by row).  Currently it is taking around ~4m to insert ~2600 records into the database.
    I thought one of two things would be causing the slow speed.
    1.  XMII is recreating the DataBase connection for each query template call
    2.  The repeat reading from the XML document is time-consuming as 11.5 BLS XML manipulation is slow.
    Thanks for the help.
    Kerby

    Hi Kerby,
    It will  recreate connection eachtime.
    You need to use the repeater action block to insert all the rows.If you wont use repeater,it will insert only one row.
    2600 records inserting into database means you will get performance issue because eachtime it will recreate the connection.
    To avoid the performance issue you need to do the following things:
    1) you schedule the transaction in backend.It will insert the records in the database table.
    2) If you want to populate the data in front end , write a query using that table and make a grid.
    It wont create any performance issue.Always big transactions we need to schedule in backend to avoid the performance issue.
    Hope this will help you.
    Thanks,
    Manisha

  • Query UCCX database for calls from a specific Caller ID

    Hi,
    I did some searching and could not find this answer specifically.
    I have a request from the call center supervisor to provide a report of all calls coming into the CSQ's showing all of the important data (date, time, answered, not answered, length of call, disposition, etc.) for calls from a specific caller ID for a specific date range.
    The caller ID starts with 9XX-XXX-XXXX, so of course UCCX Historical Reports will not display this number as a parameter in the Detailed Call by Call CCDR report because I am limited to the first 32,765 rows. I tried modifying the XML file but have not been successful.
    I tried doing a query through the CLI but not sure if I have the query right.
    Any insight?
    Thank you very much.

    I tried modifying the XML file for the Detailed Call CSQ Agent report
    ICD_Detailed_Call_CSQ_Agent_en_us.xml with the following:
    BEFORE:
    SELECT distinct callednumber FROM contactcalldetail
    AFTER:
    SELECT SKIP 10000 FIRST distinct 20000 callednumber FROM contactcalldetail
    Unfortunately, there are no changes in the available parameters shown:
    The number starts with a '9', so I need to skip the numbers that start with 408. Any help?

  • Stored Procedure call from JDBC sender for Oracle Database

    Hi,
    I have a requirement to call stored procedure using JDBC sender adapter for retriving data from an Oracle database.
    I need to execute first stored procedure call from Querry SQL statement and then trigger second stored procedure call for confirming the succesful retrival of those records from the update SQL statement.
    Querries:
    1. Can we trigger stored procedure from Update statement of JDBC sender.
    2. Can we call stored procedure from Querry statement, since I have read on other sdn threads that stored procedure calls on Oracle database are not allowed. If not possible to have "Execute stored procedure" would the function call (select * from table(function name)) work same as stored procedure.
    3. In a JDBC sender the Querry statement and Update statement are executed in same session call and same database connection. What happens if the querry statement was not succesful, would the update be still triggered.
    Please note PI does not have direct access to main table and hence the need to have separate stored procedure calls.
    The PI version is PI 7.11 sp4.
    Appreciate your inputs.
    Thanks.
    Siddhesh S.Tawate

    >1. Can we trigger stored procedure from Update statement of JDBC sender.
    I think not possible using update statement.
    > Can we call stored procedure from Querry statement, since I have read on other sdn threads that stored procedure calls on Oracle database are not allowed. If not possible to have "Execute stored procedure" would the function call (select * from table(function name)) work same as stored procedure.
    Yes using select query you can call stored procedure.
    >. In a JDBC sender the Querry statement and Update statement are executed in same session call and same database connection. What happens if the querry statement was not succesful, would the update be still triggered.
    No select and update handles in the same session using the same thread so if one transaction fails update should not proceed.

  • Query regarding XI interaction with database

    Hi all,
    I have got the Oracle database and SAP R/3 system
    Is it possible that through JDBC adapter ,
    a) Direct fetching of data from database
    b) Data should come in XI and after mapping should be  
        posted in SAP R/3 .i.e complete automated process
    c) Is it possible to put direct query statement in XI
        while connection with database through JDBC adapter
        E.g For fetching the vendor data from database
        Select * from .... 
    Thanks in advance
    Shikha Jain

    Shikha,
    <i>a) Direct fetching of data from database</i>
    In the JDBC Sender adapter you have to mention the SQL Query.
    <i>b) Data should come in XI and after mapping should be
    posted in SAP R/3 .i.e complete automated process</i>
    This is what XI does. There is no manual intervention needed.
    <i>c) Is it possible to put direct query statement in XI
    while connection with database through JDBC adapter
    E.g For fetching the vendor data from database
    Select * from ....</i>
    your question a is same. You can execute a SQL statement in the Adapter which polls the database in the intervals you mention. It could be a SELECT or EXEC PROC etc.
    regards
    Shravan

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Query regarding database access segregation using os authentication in windows environment

    Hi ,
    I have a query regarding database access segragation using os authentication (like sqlplus "/ as sysdba") in windows environment.Let me briefly explain my requirement:-
    Suppose you have two DBA`s viz DBA1 and DBA2 and 4 databases resideds in a windows server say A,B,C & D.Now I want to set up such a way if DBA1 logs into the server then he can login to database A and B only using OS authentication and DBA2 can login to database C and D only using OS authentication.
    Please let me know how to do setup for this requirement.
    Database version is 11.2.0.3

    1494629, I am not a Windows person but if there is any way to do this I suspect some additional information is necessary:
    Are the DBA users members of the Administrators Group ?
    Do all 4 database share the same $ORACLE_HOME ?
    I suspect if either answer above is yes then this is not possible, but like I said I am not a Windows person.  I would just ask for two servers and the associated licensing to be acquired.  The requirement to spend money to do something management wants usually elimanates the request in my world.
    HTH -- Mark D Powell --

  • How to query Process Status from database in Project Server 2010

    Hello All,
    I am using Project Server 2010. 
    I need to query Process Status  from SQL. 
    where can I find Process Status in Database. 
    Thanks,
    Rohit

    Hi Rohit,
    you will not be able to find this information in reporting DB - the only database queries are supported.
    If you really want to go for an unsupported solution, you should be able to find related tables and how to join them in stored proc "MSP_WEB_SP_QRY_Statusing_ReadStatus" in published database.
    Regards
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • Need help regarding configuring the WebService Call from RTD to Siebel

    Hi All,
    Can someone help me with the information on how do i configure a Webservice Call from RTD to Siebel?
    Any high-level or granular details on this would be very helpful as I am new working on this product. How can a jax-ws be utilized to achieve the same?
    Thanks in advance.
    Best Regards,
    Hariharan

    If you actually need a portal service though, this will not work. However, you could have the portal service return a Document object, which is basically the text of the HTML file you want to display. Then, when calling the portal service, you can simply output the text to the IPortalComponentResponse object
    I hope this helps
    Darrell

Maybe you are looking for

  • HP Officejet Pro L7590 won't print correctly after it sits a few days

    I have a HP Officejet Pro L7590 All In One.  It all of a sudden will not print correctly after it sits a few days.  I purchased a new black/yellow printhead recently and it did print well for about a week.  If it sits a few days, it acts up again.  A

  • Is using a 12 volt charger bad for my iPhone 5?

    Is using a 12 volt charger bad for my iPhone 5?  I just purchased the iPad Air and it came with the same lightning cable that was included with my iPhone 5.  The only difference is that the charger that came with my iPhone is a 10 volt and the one th

  • Premiere elements 12 does not open

    i have photoshop and premiere elements 12.  the photoshop works fine, but the premiere does not open.  when clicked on the hard drive spins for a short time but nothing opens.  using windows 7.

  • Oracle UCM SME Opportunity (formerly Stellent)

    I am posting in an effort to locate a strong Oracle UCM (formerly Stellent) resource that may be interested in considering a fulltime position in Dallas, TX. Provided below is a job brief outlining the position and scope of responsibility to perform

  • Keyboard shortcut: switch between modules?

    Hi all and thank you for your help. I have checked through the keyboard shortcuts and could not fint it: Is there a shortcut to switch between the different modules in LR 3? It will be very handy if there is something like that. Thank you so long. De