How can a Java prg pass data to a SAP table (TStpo)

Hi All,
I created a webservice using JAVA.
Got WSDL for a SAP Funtional Module(CSAP_MAT_BOM_CREATE) and created Java Classes using (WSDL2Java -t XXX.wsdl ).
While Invoking the service from Java Client program by Passing all the parameters.
Error:Deserialisation failed
Exception in thread "main" AxisFault
faultCode: Client
faultSubcode:
faultString: Deserialisation failed
faultActor:
faultNode:
faultDetail:
        SimpleTransformationFault:<
MainName>/1BCDWB/WSS0080429093947734000</MainName><ProgName>/1BCDWB/WSS008042909
3947734000</ProgName><Line>209 </Line><Valid>X</Valid><MatchFault><DescriptionTe
xt>System expected the end of the element 'TStpo'</DescriptionText><TokenType>S<
/TokenType><TokenName>ItemCateg</TokenName><TokenNameSpace/><TokenValue/></Match
Fault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE
</Method><Positions>1 </Positions></Caller>
Thanx ,
Vijay

Hi Venkat,
I am passing the value to ItemCateg.. Pls see the portion of XML Sent below..!
<TStpo xsi:type="ns2:StpoApi01" xmlns="" xmlns:ns2="urn:sap-com:document:sap:soap:functions:mc-style">
  <ItemCateg xsi:type="xsd:string">L</ItemCateg>
  <ItemNo xsi:type="xsd:string" />
  <Component xsi:type="xsd:string">PART008</Component>
  <CompQty xsi:type="xsd:string">1.0</CompQty>
  <CompUnit xsi:type="xsd:string">EA</CompUnit>
<FixedQty xsi:type="xsd:string" />
  <ItemText1 xsi:type="xsd:string" />
  <ItemText2 xsi:type="xsd:string" />
  <Sortstring xsi:type="xsd:string" />
  <RelCost xsi:type="xsd:string" />
  <RelEngin xsi:type="xsd:string" />
  <RelPmaint xsi:type="xsd:string" />
</TStpo>
Thanx,
Vijay

Similar Messages

  • How can we access R/3 data remotely from SAP APO system?

    Hi Experts...!
        I want to access R/3 data (i.e, some ZTABLE data) remotely from SAP APO system. Can any one give some solution regarding this ?
    Regards
    Rayudu

    Hi,
    Please try this FM RFC_READ_TABLE.
    Regards,
    Ferry Lianto

  • How can I return the current Date in Java?

    I am new to Java, and basically I want to know how I can return the current date as a variable, so for example, I have declared the following date variable
    private java.util.Date currentDate;How can I return the current date, do I have to write a method? To be more specific, I need to write a setMethod, that simply returns the current Date in Java.
    Please point me in the right direction.
    Thanks,

    If all you want is a date for printing or displaying, the easiest way is to use Date as shown below. If you need something more complex, look at the Calendar API.
    import java.util.Date;
    class DateEx
         public static void main(String args[])
              Date now = new Date();
              System.out.println(now);          
    }

  • How can I transfer all my data including SMS to my mac/windows computer?

    My friend has asked me to help her transfer all the data from her iPhone 3GS to a computer then to a hard drive. She has several folders with pictures in but image capture on mac is only picking up the one. I have an iPhone 4S and iPad 3 installed already on iTunes so don't want to accidentally erase her phone.
    She also needs some of the SMS messages taking off of her phone and saving either as they are or in some form of text file so they are readable in the future.
    How can I retrieve all this data including the messages without losing anything and can it be done for free?
    If you need anymore info please just ask and I'll try and pass it on to the best of my (limited) knowledge.
    Thanks in advance!

    http://www.iphonebackupextractor.com/
    SHe can also do a backup of her phone and it will save the text message, but she won't be able to view the text unless she restores to the backup.

  • How can i get the meta data from database?

    Hi, all java and db experts,
    I need to write a tool to generate java file which will be used to hold the resultset of a stored procedure of Oracle. Is there any API call or tools to connect to db and then get the meta data of the return cursor instead of reading stored procedure definition on my own?
    Please help, thanks a lot.
    Hanna

    if i execute a Oracle stored procedure, the resultset of a cursor is returned. It's easy to know the meta data at the runtime.
    However, could i get the meta data about the resultset of a cursor before runtime? Such as by connecting to the database and ask it about meta data of a specified stored procedure?
    Is it feasible?
    DatabaseMetaData dbmd = conn.getMetaData();
    ResultSet rs = dbmd.getProcedureColumns("", "%", "SP_NAME", "%");
    while (rs.next()) {
    String colName = rs.getString(4);
    int colType = rs.getInt(5);
    int colDataType = rs.getInt(6);
    int colPrecision = rs.getInt(8);
    int colLen = rs.getInt(9);
    int colScale = rs.getInt(10);
    long defaultValue = rs.getLong(11);
    But what i get is a list of stored procedure parameters. In oracle, cursor is IN OUT parameter . How can i get the meta data about the resultset of cursor?

  • How can avoid mandatory fields in data transfer

    hai
    please respond me
    how can avoid mandatory fields in data transfer like bdc

    hi,
    u have to pass values for mandatory fields in bdc method, u have to prepare u r bdc data such a way that all the mandatory fields are filled, other wise it will give error

  • How to call routine and pass data to routine in vofm

    Hi Experts,
    I need to update KBETR and KWERT values present in 'Conditions Tab' in Purchase Order (ME21N/ME22N).
    I have created a new customer tab in which we enter amount field and  percentage filed. When user enters some value in this and clicks on 'Conditions Tab', calculation has to be done and the calculated value has to be appeared across a specific condition type.as i am new to abap  i dont know how to create routine and pass data to routine in vofm from customised tab in me21n .
                                                                                                                                                                          Thank's in advance

    Hello Rajendra,
    You can get plenty of forums in SCN related to it. Follow below steps to create VOFM routine.
    Go to VOFM Transaction Code
    1. On the Menu Select required Application i.e Pricing
    2. Enter any Number in between 600 to 999 for Custom Developments.
    3. On entering Pop Screen appears ask for Access Key(We have to remember that Every New Routine needs an Access Key)
    4. Once the Access Key is received we can do modification.
    5. Enter the Routine Number ,description and insert the Access Key
    6. Now the ABAP Editor will open and required code can be copied from Standard SAP Routine and Custom Code Can be developed.
    7. Once the coding is completed we have to Activate the Routine
    8. Select the Routine and Go to Edit – Activate
    9. Ensure that Active check box is ticked upon Activation of the Routine.
    10. Double click on the routine will enter into ABAP Editor, we have to generate the Routine
    11. Go to Program and select Generate
    12.A screen pops up with the related Main Programs  and select all required main programs wherever the Routine is being called.
    13. Once the Routine is Generated and Activated, We need to configure the Routine in the config.
    ** Important SAP note: 156230.
    Check the below document too.
    http://www.scribd.com/doc/35056841/How-to-create-Requirement-Routines
    Regards,
    Thanga

  • How can I get the system date in mm/dd/yyyy,

    how can I get the system date in mm/dd/yyyy, i need to compare system date with some other date,continuosly using threads,can U plz help me.
    With Some code
    Thanks In advnace
    Mahiiii

    Hi,
    You can use SimpleDateFormat class under java.text package.
    SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy h:mm a z", new Locale());
    //formatter.setTimeZone(timezone);
    String dateTime = formatter.format(new Date());

  • How can I get extract the data between two cursors on an XY graph

    How can I get extract the data between two cursors on an XY graph

    Well, you say xy graph, so this might be a more complicated problem.
    For a waveform graph it's trivial. Simply get the two cursor indices (property: cursor index) and apply them to array subset of the data. Is that all you need?
    Here's how the above code would look like. using cursor.index instead of cursor.x elimnates the need to include scaling information.
    For an xy graph, there could be multiple segments (e.g. imagine a spiral that passes the desired x range multiple times from both sides). This would neeed significantly more code for a general solution.
    Message Edited by altenbach on 11-24-2009 07:53 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    cursorsubset.png ‏17 KB

  • I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    Your only choice is to place the phone in DFU mode (search Google for instructions) and restore as a new device.  You will lose all your data.

  • HT1430 How can I retrieve my pass code?

    How can I retrieve my pass code?
    My Ipad mini is disabled

    Try this first - I saw a recent post where a user with the same problem after an iOS update used his Apple ID password.
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Please help.........how can i get the last date of the month?????

    Hello....
    I want to get the last date of the month.
    For example, the last date of Jan is 31.
    How can I get the last date of the particular month and year ????
    Thanks for help.
    Gloria

    Hi Gloria
    1. How can I compare the date???date1.compareTo(date2)
    where date1 and date2 is a java.util.Date Object
    will return 0 if it is the same date
    or
    date1.after(date2)
    where date1 and date2 is a java.util.Date Object
    will return true if date1 is after date2
    (the same for date1.before)
    2. How can I change the date format into yyyymmdd format???? I just want the year, month and date.try the java.text.SimpleDateFormat Object
    new SimpleDateFormat("yyyymmdd").format(yourdate)
    Hope this help.
    Please also have a look at a calendar I wrote, (maybe it help)
    demo & source :
    http://www.geocities.com/globe_software/java/components/
    globe_sa

  • HOW CAN I EXTRACT THE SYSTEM DATE?

    HOW CAN I EXTRACT THE SYSTEM DATE?

    import java.util.*;
    import java.text.SimpleDateFormat;
    public class date2{
        public static void main(String[] args){
            Date today = new Date();
            SimpleDateFormat output = new SimpleDateFormat();
            String answer = output.format(today);
            System.out.println(answer);
    }If you want to make it prettier, you can look at using a locale, or a pattern string in the SimpleDateFormat constructor. Read the Documentation.
    Note that new Date(), constructs a Date with the current Time,
    you could also use: new Date(System.currentTimeMillis());
    Hope this helps
    -Philip.

  • I forgot my password in the restrictions settings. I have 8 failed attempts now. How can I reset the pass code?

    I forgot my password in the restrictions settings. I have 8 failed attempts now. How can I reset the pass code?

    YOU CAN ALSO FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. If you did not do step 4 properly, start all over again.

  • How can I sort lines of data (alphabetically) in the new pages 5.0?

    How can I sort lines of data (alphabetically) in the new pages 5.0?
    It was very simple to do in the previou version of pages.

    I'm not sure why people are torturing themselves with Pages 5 given the nearly universal outcry on this forum and the incredibly negative reviews elswhere, such as the App Store.
    Pages 4.3 should still be in an iWorks folder within your Applications folder.  Just use that.
    Please remember to tell Apple what we need from them at:
    http://www.apple.com/feedback/pages.html

Maybe you are looking for

  • From where can i download "adobe acrobat distiller" ? and if its a part of acrobat family, is it ava

    From where can i download "adobe acrobat distiller" ? and if its a part of acrobat family, is it available as a separate install within this product family "acrobat" What is the latest version of distiller. Where can i find more informaiton just on d

  • ABAP HR Reports

    Hi Experts, i'm new to HR reporting, Now My Requirement is to add 16 more fields to existing report . Transaction for that report is S_PH9_46000434. for doing this ,wht is the approch to follow. explaine me in detail please. The program being RHXTEIL

  • Error in resource clean up for a disconnected client

    Hi we are using NW04s portal. in the default.log of this dispatcher I continuously receive the following error. this is fulling my log in less then 10 minutes. anobody have an id ?? regards #1.#00156004CA3300070000FEEC000062CA00043EE5ADC2F2ED#1195056

  • Motherboard fan mount needed

    Hello, I am trying to repair a family members desktop (HP Pav. 6240f). Complaint was : not able to complete boot. Machine constantly shutting down. Upon inspection machine was indeed shutting down soon into booting up. Found a problem with the mother

  • Send IDoc through adapter IDoc_AAE

    Hi, guys! We have SAP PO version 7.4 We need to setup the unloading of the IDoc from BI in PO I used the following sources: http://scn.sap.com/docs/DOC-31398  http://help.sap.com/saphelp_nw74/helpdata/en/34/66c81241874285851e2497aa6f0573/content.htm?