Can we call a  webservice  to   insert a value to r3 table  - using XI ?

Hi friends  ,
                   At present we are directly going to the r3 screen and   we are giving input to the particular  table.After succcesfull insertion  that will return a status as 's' .
                       Can we do it through weservices ?
                        How xi can play a role here   ?
Best Regards .,
V.Rangarajan

Hi ranga Rajan,
     Yes we can achive this, by using SOAP adapter at sender side so that u can send data from webservices to XI which inturn will pass to R/3.
if u need acknowledgement, u can use RFC at receiver side.
regards
harsha 
**if u found this, assign points**

Similar Messages

  • How to insert a value  in a table using another table

    My table is like this
    col1 col2 col3
    india
    Pakistan
    my doubt is if i insert India in a table it will automatically insert India Id or code into another table
    output i want is like this
    col1 col2
    10
    20
    please give the exact query.

    u will have to use triggers to achieve the functionality..

  • Can we call a webservice  using standalone java application  ?

    Hi friends,
                   Can we call configurd webservice in xi , using standalone java application by just giving url of webservice ?
                  OR
                  Only by means of WEBDynapro we can call  ?
                    Can you please tell me the answer for this .
    Regards .,
    V.Rangarajan

    HI Ranga Rajan
    well, If at all if you have webservice...you can import that werbserivce as External definition in to IR.
    How to import:
    1) Go to IR and and move to your requied component and there you can see the option called imported objects...select on imported objects where you can give the name and you can select the webservices which you want to use it.
    2) Hope you are aware of that a werbservice will have the request and response.
    3) Create the mapping program accroding to your requirement.
    Go through blogs of Bhavesh and Naveen which talks about calling webservice in a specific condition:
    Webservice Calls From a User Defined Function - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    Consuming/Calling webservices from DataBases - /people/sap.user72/blog/2005/10/20/consumingcalling-webservices-from-databases
    Also check this help file on Web Services:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • Can we change the lengh of a field in thestandard database tables using dat

    Hi Experts,
        I've a doubt in Data dictionary. can we modify the length of the field in data base tables using stanadrd table.
    My requirement is add customer data to business are field. but the lengh of business area field is 4 chars.and the customer field length is 10.So in sap note i've found a solution is there a table call replacement of business area(FLQGSBER_SUBST).in this first we've append the customer field to this table.then the structure of business area should be modified.
    can we modify the length of the standard table field?
    its an urjent issue
    reward points for helpful answers
    thanks in advance
    regards,
    Rekha

    Hi,
    Thank you for your reply.
    But there is solution i've found in SAP note is 'There is a standard table for business area called "FLQGSBER_SUBST" Replacement of business area.In this table we've to append the field.for ex here we've append the customer (kunnr) and
    the field business area field has no data. when we append the customer field then the data in customer field updated in business area field.when i've tried this
    and when execute this.in debugging the businee area updated with 4 chars only.
    it didnt take 10 chars(kunnr).
    is it possible...

  • Inserting rows in a database table using JDBC

    Hi,
    I am trying to insert a row in a table using the follwing code:
    String Query_String = "Insert into Table_Name (Field_1, Field_2, Field_3)" +
    "Values (Value_1, Value_2, Value_3)";
    stmt.executeUpdate (Query_String);
    Field_1 is a Date field, Field_2 is a String, and Field_3 is an integer.
    Any of the fields could be null. If the user does not enter a value for any
    one of these fields what would be the values for
    Value_1, Value_2, or Value3 in the Query_String?
    Thanks.

    Hi,
    I am trying to insert a row in a table using the
    follwing code:
    String Query_String = "Insert into Table_Name
    (Field_1, Field_2, Field_3)" +
    "Values (Value_1,
    "Values (Value_1, Value_2, Value_3)";
    stmt.executeUpdate (Query_String);
    Field_1 is a Date field, Field_2 is a String, and
    Field_3 is an integer.
    Any of the fields could be null. If the user does not
    enter a value for any
    one of these fields what would be the values for
    Value_1, Value_2, or Value3 in the Query_String?
    Thanks.Keep in mind that each database server probably has their own way of storing date values. For now, I'm going to assume that you're going to be using MySQL.
    // Initialize variables to null
    String Value_1 = "";
    String Value_2 = "";
    String Value_3 = "";
    try
    // Get Date
    Date date = new Date();
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
    Value_1 = dateFormat.format(date);
    // Get String value
    Value_2 = "some string";
    // Get Integer value
    Value_3 = String.valueOf("2");
    String query = INSERT INTO T_NAME VALUES('" + Value_1 +"', '" + Value_2 + "', '" + Value_3 + "');
    int iUpdated = stmt.executeUpdate(query);
    catch(Exception e)
    // Catch Code
    System.out.println("Number of records updated: " + iUpdated);
    This will just enter empty string values if the strings are empty.
    Is this what you wanted to know?
    If not, provide a bit more information and I'll try to help as best as I can

  • Abort inserting a record in a table using a trigger

    Hi there,
    Is there any way to abort inserting a record in a table using a trigger?
    For full details, I have the following table ("myTable"):
    BSC INTEGER NOT NULL,
    BTS VARCHAR2(20) NOT NULL,
    INFO1 INTEGER,
    INFO2 INTEGER
    myTable_PK = PRIMARY KEY (BSC,BTS)
    I have also a stored procedure that imports a data from text file and inserts them to the specified table (using UTL_FILE package). The stored procedure works great.
    But the thing that in the text file itselft it might be (due to third-parity report generation bug) that the primary key will be violated or the BSC/BTS field has null value. In such case I just want to ignore the insertion statement using a trigger.
    Thanks

    Ok Jens, could you tell me what exception could I use?
    Below a protion of my StoredProcedure.
    CREATE OR REPLACE PROCEDURE update_myTable() IS
    FHANDLE UTL_FILE.FILE_TYPE;
    BSC INTEGER;
    BTS VARCHAR2(20);
    INFO1 INTEGER;
    INFO2 INTEGER;
    BEGIN
    FHANDLE := UTL_FILE.FOPEN('LOG_FILE_DIR',FILENAME,'R',4000);
    LOOP
    UTL_FILE.GET_LINE(FHANDLE,STR);
    -- Process the line STR and generates BSC, BTS, INFO1, and INFO2 values
    EXECUTE IMMEDIATE 'INSERT INTO myTable VALUES(:1,:2,:3,:4)' USING BSC,BTS,INFO1,INFO2;
    END LOOP;
    EXCEPTION WHEN NO_DATA_FOUND THEN UTL_FILE.FCLOSE(FHANDLE);
    END UPDATE_R205BTS;
    Remember that I am already using an exception with NO_DATA_FOUND to indicate the end of file then closing it.
    Thanks for your reply

  • Inserting multiples rows into a table using function or procedure..

    How do i insert multiples rows into a table using function or procedure?
    Please provide me query..

    Use FORALL bulk insert statement...
    eg:
    procedure generate_test_data as
    type cl_itab is table of integer index by pls_integer;
    v_cl_itab cl_itab;
    type cl_vtab is table of varchar2(25) index by pls_integer;
    v_cl_vtab cl_vtab;
    type cl_dtab is table of date index by pls_integer;
    v_cl_dtab cl_dtab;
    begin
    for i in 1.. 100 loop
              v_cl_itab(i):= dbms_random.value(1,1000);
              v_cl_vtab (i):=dbms_random.string('a',20);
              v_cl_dtab (i):=to_date(trunc(dbms_random.value(2453737, 2454101)),'j');          
         end loop;
         forall i in v_cl_itab.first .. v_cl_itab.last
              execute immediate 'insert into test_order values( :n, :str , :dt ) ' using v_cl_itab(i), v_cl_vtab (i), v_cl_dtab (i);          
         commit;
    end;

  • Can we call a webservice which is defined outside SAP system from ABAP

    Hi All,
      i am very new to the ABAP. i would like to know how we can call a webservice which is defined in some other system from the ABAP code. if you are providing any sample code then it will be very help ful for me.
    Thanks in advance.
    - Siva

    yes its possible. check out the weblog
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Regards
    Raja

  • I can not call the webservice?!?!?

    Hello,
    I want to call a webservice, but the Inputfields are all disabled. I have used a simple Weahterservice where I can input a city.
    I can not use it.
    Also I have follow the steps in the weblog: /people/anilkumar.vippagunta2/blog/2005/07/20/developing-web-application-without-writing-single-line-of-code-my-first-web-log
    But there is the same problem. I can not use the input-fields. In this example I have create the output for the state of delivery. When I push the button, the request is shown on the form: "Please enter correct from email address to send this message". So I think, that the webservice work.
    What is my mistake? If anybody want to help me, I can send my project-files. It's only the usage of the webservice.
    Thanks,
    Peter
    Edited by: Peter S on Jan 14, 2008 11:21 AM
    The Webservice I used in my own sample is : http://www.webservicex.net/WeatherForecast.asmx
    for WSDL use http://www.webservicex.net/WeatherForecast.asmx?wsdl

    I have not called the class which was under response

  • Where in the Code can I Call a function Before Insert

    Hi, using DWMX and VBSCRIPT with n MS Access table set on a
    W2k3 server and ASP
    I need to insert a value 'intGradID' from a function into a
    hidden field 'hGradID' when the submit button (to insert a record
    in an access database) is clicked (and before insert takes place as
    this is the key field that I am adding).
    I realise Javascript might be required (not too great with
    Java) so any help please tell me where to put script/code and what
    to put. Thanks.

    Why not just setup the field in the record to be
    auto-incrementing? That way
    on insert the next # in the series is assigned to the new
    record. And even
    if 2 people someone did it at exactly the same time, the
    server takes care
    of the collision.
    "Dave(UK)" <[email protected]> wrote in
    message
    news:e9uakp$s11$[email protected]..
    > Hi, using DWMX and VBSCRIPT on a W2k3 server and ASP
    >
    > I have an on-line application form for Graduates (bound
    to Insert Into a
    > table
    > called graduates). On open of the page (at the top) I
    have some some code
    > to go
    > look in the Graduates table for the last gradID No and
    add 1 for this new
    > Graduate and I set a session variab;e with the GradID
    found and that value
    > is
    > the 'Initial Value' of a hidden field hGradID which is
    inserted into
    > GradID in
    > the table on Submit, along with the other info. Works
    Perfectly!! Until,
    > that
    > is, during the course of one Graduate registering,
    another tries to do so
    > ..
    > both get the same gradID and the one who submits last
    ends up with the
    > error
    > 'Dulicate in Key field '(ie GradID in the table). What I
    got to work was
    > to set
    > up another table (GradOn) into which at the end of the
    GradID+1 routine,
    > the
    > GradID was entered and when the form was submitted, it
    ran a routine to
    > delete
    > the contents of GradOn. Then if the form was opened
    again by another user,
    > the
    > first routine now was to check for a presence of a
    record (any record) in
    > the
    > GradOn Table - if a record existed, it redirected to a
    'Registration in
    > Progress - Please try later page' ... again all worked
    well, perfectly,
    > until
    > a. The user left the form open for hours
    > b. The user used the browser to wuit the page instead of
    the logoff which
    > ran
    > a routine to 'Delele * from GradOn'

  • Can i change or modify or insert the data in standard tables

    hi gurus
    can i change /modify/insert the data in standard tables
    witout using module pools
    plz send the  progem lines also
    it ll be very helpful to me
    thank you
    kals.

    Hi Kalyan,
    It is not advisable to update standard tables directly or through your own module pool programs also.  The reasons are,
    1.  It is difficult to find out how many tables are updated through the transaction.  if we leave one table also as Mr.Andrew said data integrity will be lost.
    2.  Authorization objects and profiles will be totally bypassed if data is inserted through custom programs.
    3.  Complete data validation is not possible.  There are certain validations that are executed through code and appropriate errors and warnings are shown in the transactions.  If we insert data directly to the tables anything can be inserted into the table field violating all the validations unless we have field level check constraints on the tables at database level.
    4.  User Exits and BADIs that are implemented for specific business requirements and checks will not function on the data.
    5.  Update & Transaction locks will not work properly.
    Due to above reasons, definitely you should avoid updating standard tables directly.
    There are many tools such as LSMW Recordings, BDCs, BAPIs, IDOCs, Upload Interfaces available in SAP through which bulk data can be updated without using relevant transactions.
    You can collect data from end users in text or excel sheets or through custom programs in required format and upload at once through above mentioned tools.
    Regards,
    Hema

  • How can i insert character data in a table using the report trigger

    well here is my query
    do_sql ('insert into report_trigger_details values(po report,before parameter)');
    i need to to insert data from within the report using the before parameter form trigger.Error is as follows:
    error: rep-1425,cant parse the statement,missing comma
    This error got removed by removing the space in ''po report" and before parameter"
    Now the error that i get is :ora-00984:column not allowed here
    Also i need to keep the spaces between the values while inserting data
    Please help!!!
    Thanks
    Edited by: 924271 on Mar 29, 2012 7:02 AM
    Edited by: 924271 on Mar 29, 2012 7:07 AM
    Edited by: 924271 on Mar 29, 2012 7:08 AM

    I know this isnt a great way of using query but its part of the assignment ,so any help will be greatly appreciated.
    Here it is again......
    function BeforePForm return boolean is
    segment2 varchar2(10);
    begin
         srw.message(001,'I just got executed first');
    srw.do_sql('select segment1 into :segment2 from xxmssl_po_headers_all');
    srw.do_sql('insert into report_trigger_details values(seq2.nextval,:segment2,''po report'',''before parameter form'',''po number is'')');
    srw.do_sql('commit');
    return (TRUE);
    end;
    the that i was getting earlier was resolved by using two single quotes....Now the error is....
    Error: error putting value in column....
    column 'segment2' may not be referenced by parameter triggers..
    The insert ran fine until I changed the above function as follows:
    function BeforePForm return boolean is
    segment2 varchar2(10);
    type_code varchar2(10);
    org_no number(4);
    begin
         srw.message(001,'I just got executed first');
    srw.do_sql('select segment1,type_lookup_code,org_id into :segment2,:type_code,:org_no from xxmssl_po_headers_all');
    srw.do_sql('insert into report_trigger_details values(seq2.nextval,:segment2,''po report'',''before parameter form'',''po number is'':segment2 '',type_code is'':type_code '',org_no is'':org_no )');
    srw.do_sql('commit');
    return (TRUE);
    end;
    When i ran it ,it started giving the above mentioned error.I reverted the changes back and recompiled my report but still getting the same error....
    Thanks in advance
    Edited by: 924271 on Mar 29, 2012 11:59 PM
    Edited by: 924271 on Mar 30, 2012 12:11 AM

  • How do you insert new records into multiple tables using the same unique primary key?

    I’ve created a PHP site and MySQL server using a free app called XAMPP.  I have successfully created a form in Dreamweaver that will write data to a (name) table in the SQL database.  Here’s my question: How do you write to two (or more) tables in the same database and pass the same primary key to both tables?  In the SQL database, I defined the first field as ID and set it as the primary key with auto update.  So, when you insert a new record, it creates a unique primary key for that record.  In my form, I’m capturing info that needs to be stored to two tables at the same time; a Name table and Address table. Since the Name and Address tables use the ID field as the primary key, I believe I will need to pass the ID value from the Name table to the insert of the Address table to insure they both have the same primary key, right?

    No. You probably need the primary key from one table to be a foreign key in the other tables. In any case, I believe you can use two methods to obtain the auto generated key. First with SQL:
    http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html
    And the other using a PHP function:
    http://us3.php.net/mysql_insert_id

  • Inserting an image into a table using the iPad?

    I am trying to make an evidence table in pages. I need to insert photographs into a table, next to the related statement. Is it possible to insert a photograph into the table on an iPad as I obviously don't have the 'command' button that others are using. If this is possible I want to be able to insert the picture as a predefined size?

    Hi,
    Yes, you can do this by using the Word Edit Cell VI under Report Generation>>Word Specific>>Word Tables in your block diagram functions pallette.  After creating a table, you can edit specific cells and send the file path of the image saved on your computer to that specific cell.  I put together an example that I've attached here as well to help you out with this.
    Regards,
    Austin S.
    National Instruments
    Academic Field Engineer
    Attachments:
    RGTWordImageInTable.vi ‏14 KB

  • Inserting Multiple Rows into Database Table using JDBC Adapter - Efficiency

    I need to insert multiple rows into a database table using the JDBC adapter (receiver).
    I understand the traditional way of repeating the statement multiple times, each having its <access> element. However, I am just wondering whether this might be performance-inefficient, as it might insert records one by one.
    Is there a way to ensure that the records are inserted into the table as a block, rather than record-by-record?

    Hi Bhavesh/Kanwaljit,
    If we have multiple ACCESS tags then what happens is that the connection to the database is made only once. But the data is inserted row by row.
    Why i am saying this?
    If we add the following in JDBC Adapter..logSQLStatement = true. Then incase of multiple inserts we can see that there are multiple
    <i>Insert into tablename(EMP_NAME,EMP_ID) VALUES('J','1000')
    Insert into tablename(EMP_NAME,EMP_ID) VALUES('J','2000')</i>
    Doesnt this mean that rows are inserted one by one?
    Correct me if i am wrong.
    This does not mean that the transaction is not guaranted. Either all the rows will be inserted or rolled back.
    Regards,
    Sumit

Maybe you are looking for

  • Error Message and Itunes won't open. NEED HELP ASAP PLEASE

    I tried to get into my iTunes from my desktop short cut and the error message saying "Problem with Shortcut" then saying "This action is only valid for products that are currently installed." ***??? Anyway I tried to download a new version of iTunes

  • IMac won't boot 10.6.4 but will Windows 7

    Was playing a game on Windows 7 via Bootcamp. I restarted, and my iMac took an age to get to a blue screen on my Mac partition and then hung. Reset the PRAM, rebooted and then it got to the Snow Leopard screen, but I couldn't select either of the use

  • CTRL+Z Doesn't Work in Direct Link

    So...oddly, CRTL+Z for undo doesn't work for me when I'm Direct Linked. My UI pulls up the Timeline window though (as in settings not actual timeline) which doesn't do anyone any good because you can't adjust anything there anyway Thoughts? Anyone el

  • Uninstalling cs6 trial version

    uninstalling cs6, having issues uninstalling trial version.

  • NetBeans javadoc hotkey

    Hi all, I realize this is probably lame question but I can't find it on the google and directly in NetBeans on my own. Can anyone tell me how can I set hotkey for generating javadoc ? I'm writing a project documentation and I run it so often that it'