Please can any one tell me whether my code is correct or not......?

Hi
I have create on webservice for edit the customer details. I have imported this into my model.I got the stucture of the model like following
ChangeAddressModel
...|-----Request_Z_Bapi_Customer_Change_WS_CustomerChange
..........|-----parameters(ComplexType_CustomerChangeFromData)
..................|-----ComplexType_CustomerChangeFromData
.........................|------piAddress(ComplexType_Bapikna101)
.........................|........|-----ComplexType_Bapikna101
.........................|................|-- city
.........................|................|-- country
.........................|................|-- faxNumber
.........................|................|-- .......etc
.........................|----- customerNo
.........................|----- piDistrChan
.........................|----- piDivision
.........................|----- piSaleOrg
I have written the following code in CustomCutroller
Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData customer = new Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData();
     ComplexType_CustomerChangeFromData dataStructure = new ComplexType_CustomerChangeFromData();
     ComplexType_Bapikna101 bapi = new ComplexType_Bapikna101();
     customer._setUser("abap");
     customer._setPassword("quinnox");
     customer.setParameters(dataStructure);
     wdContext.nodeRequest_Z_Bapi_Customer_Change().bind(customer);
The following code is for executing the Bapi
public void executeChangeAddress( )
    //@@begin executeChangeAddress()
    try{
         wdContext.currentRequest_Z_Bapi_Customer_ChangeElement().modelObject().execute();
         wdContext.nodeResponse().invalidate();
    }catch(Exception e){
         wdComponentAPI.getMessageManager().reportException("Error :"+e,true);
    //@@end
But i am getting the following error........
<b> com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [PiAddress] of class [com.sap.changeaddress.model.proxies.types.p1.CustomerChangeFromData] must exist and can not be null. This is required by schema description.</b>
I have done one more for fetching the customer details which is working fine
Please help me
Best Regards
Ravi Shankar B

ChangeAddressModel
...|-----Request_Z_Bapi_Customer_Change_WS_CustomerChange
..........|-----parameters(ComplexType_CustomerChangeFromData)
..................|-----ComplexType_CustomerChangeFromData
.........................|------piAddress(ComplexType_Bapikna101)
.........................|........|-----ComplexType_Bapikna101
.........................|................|-- city
.........................|................|-- country
.........................|................|-- faxNumber
.........................|................|-- .......etc
.........................|----- customerNo
.........................|----- piDistrChan
.........................|----- piDivision
.........................|----- piSaleOrg
I have written the following code in CustomCutroller
Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData customer = new Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData();
     ComplexType_CustomerChangeFromData dataStructure = new ComplexType_CustomerChangeFromData();
     ComplexType_Bapikna101 bapi = new ComplexType_Bapikna101();
         bapi.setCity("");
         bapi.setCountry("");
         bapi.setFaxNumber("");
        dataStructure .setPiAddress(bapi);
     customer._setUser("abap");
     customer._setPassword("quinnox");
     customer.setParameters(dataStructure);
     wdContext.nodeRequest_Z_Bapi_Customer_Change().bind(customer);
The following code is for executing the Bapi
public void executeChangeAddress( )
    //@@begin executeChangeAddress()
    try{
         wdContext.currentRequest_Z_Bapi_Customer_ChangeElement().modelObject().execute();
         wdContext.nodeResponse().invalidate();
    }catch(Exception e){
         wdComponentAPI.getMessageManager().reportException("Error :"+e,true);
    //@@end
try this it might helps you.
Thanks,
Lohi.
Message was edited by:
        Lohitha M

Similar Messages

  • Can any one tell whether the concept which i understood is correct or not

    hai everyone
    iam studying jdbc and this is what i understood about the basic concept .can any one tell whether the concept which i understood is correct or not
    whenever the statement class.forName("driver class") is executed driver class is loaded and registered with drivermanager.Internally drivr class contains a static bloc which contains the following code
    static
    Driver drv=new name of driver class();
    DriverManager.registerDriver(drv);
    whenever the statement class.forName("driver class") is executed,static bloc is executed first and driver class is registerd.
    concept as i understood about DriverManager:
    suppose there may be situations where an application developed in java has to deal with one or several databases and this is accomplished with one or different driver classes.so all these driver classes are to be managed and this is done by DriverManager class and in order to make the driver class itself known to the driver manager we have to register the driver classes with the help of registerDriver() method of DriverManager class because DriverManager is the class which will attempt to load the driver classes into memory..
    If we look at the last statement: DriverManager is the class which will attempt to load the driver classes into memory.Here i have some doubt if DriverManager class loads the driver class after registering the driver class then what does the statement class.forName("driver class") will do which is also used to loaad the driver class.
    what i understood is since the responsibility of loading the class is done by class.forName("driver class") only registering of the driver class is done as the class is alredy loaded.
    help me to clear my confusion
    thanks in advance

    hai everyone
    iam studying jdbc and this is what i understood about
    the basic concept .can any one tell whether the
    concept which i understood is correct or not
    whenever the statement class.forName("driver class")
    is executed driver class is loaded and registered
    with drivermanager.Internally drivr class contains a
    static bloc which contains the following code
    static
    Driver drv=new name of driver class();
    DriverManager.registerDriver(drv);
    }That's supposed to be the case, but there's no way to guarantee that every driver actually has that static init. I don't think I've ever run across one that doesn't, though, so, yes, you're basically correct.
    whenever the statement class.forName("driver class")
    is executed,static bloc is executed first and driver
    class is registerd.When you do Class.forName(), the class is loaded and initialized. Whenever you initialize a class, its static init blocks are executed, yes.
    concept as i understood about
    DriverManager:
    suppose there may be situations where an application
    developed in java has to deal with one or several
    databases and this is accomplished with one or
    different driver classes.so all these driver classes
    are to be managed and this is done by DriverManager
    class and in order to make the driver class itself
    known to the driver manager we have to register the
    driver classes with the help of registerDriver()
    method of DriverManager class because
    DriverManager is the class which will attempt
    to load the driver classes into memory..Except for that last part, yes.
    DM keeps track of loaded drivers, and gives them a chance to parse the connection URL when you call getConnection. DM does NOT load the driver classes into memory, however. That's done when you call Class.forName.
    what i understood is since the responsibility of
    loading the class is done by class.forName("driver
    class") only registering of the driver class is done
    as the class is alredy loaded.Right.

  • Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

       Hi
    Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

    Dear Srikanth,
    I am not sure, if my answer will satisfy you, but anyway I will try:
    Field Sales District is technically called BZIRK. In delivery structure is this field located in header (table LIKP), what cause split, if origin document (Sales Order) has different Sales District in some positions. This is standard program behavior. Basically it shouldn't happen, as value is taken from customer master (Sold-to Party) and copied to header and items of sales document. But user can manually changer for particular items.
    Well, to solve situation you have few ways:
    1. Do not allow users to change value on items - can be managed by organizational decision or by authorization concept.
    2. If there is a reason to have different Sales District in items, then it can be managed in in routines for copy control between sales and delivery documents (delete value of BZIRK for all items for instance). But then will be this information lost for further usage. It seems to me to invoice is value copied directly from sales order (field VBRP-BZIRK_AUFT) then it mustn't be a critical for analyses.
    3. Your situation also can happen if you wants to collect more sales documents to one delivery. In this case can be that Sales District is different for same customer in different sales order (even seems to be little bit strange). Then solution from point 2 can help as well, I believe.
    Best Regards
    Arnost

  • TS3899 Hi my nan keeps Getting an error message of cannot get mail the connection to the server failed.... Can any one tell me what this means please

    Hi my nan keeps Getting an error message of cannot get mail the connection to the server failed.... Can any one tell me what this means please

    I too am getting this message. I have been using my iPad for two years with no problems but a couple of days ago I starting having this problem intermittently. I have restarted the iPad when that did not work I deleted the account and reloaded it. Nothing seems to work. I was having the same problem on my iPhone but that seems to be OK today. Any other ideas?

  • Can any one tell me how to send one PO to mutilple mail ids in vendor maste

    Hi Experts,
    Can any one tell me how to send one PO as a mail to multiple vendors who are all maintained in my vendor master record
    Suppose I have 3 mail ids in my Vendor master record and I created a PO with that vendor, will that PO goes to all the three mail ids maintained in the vendor master record  or only to one ?
    Inorder to send to multiple mail ids, Do we need to do any configure any thing in SPRO settings functionally, if so where we have to maintain?
    Or shall an Abaper needs to maintain a code for that.?
    Please suggest me, I would appreciate your feed back.
    Best Regards,
    Sairam

    Go to XK02 enter the vendor code
    go to the communication tab
    Email will be there press the ---> button
    you can add many Emails in the list.
    Please ensure that the  message output is configured by
    the  SAP BASIS team
    No need of any configuration
    G.Ganesh Kumar

  • Can any one tell me how to get rid of error code ox80010108

    can any one tell me how to get rid of error code ox80010108 when i put a dvd in my hp touchsmart 520 thanks

    Hello @charly6,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you are getting the error 0x80010108 when you insert your CD into your Optical Drive on your HP Touchsmart 520 Desktop PC. The error you are receiving is related to Windows Essentials and I suggest that you download and install the latest version from the Windows Essentials website. I believe that Windows Essentials was aware of this error and have corrected it in their updates.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Can any one tell me how to pull out a sealed management pack key token

    Hi All,
    Can any one tell me how to pull out a sealed management pack key token. I want to add dependencies to a management pointing towards a sealed management pack for which a "management pack key token" is required which i need to add in the XML File
    of the management pack. Can any one please tell me how to fetch that information.

    Hi Gautam,
    If you need to reference one management pack in another management pack, then you will need to know what the public key token is. When referencing a Microsoft management pack, it is easy as Microsoft always have the same key which is 31bf3856ad364e35 but
    if you need publickey token for other then MS management pack then you can simply run a SQL querry in your OperationManagerDB.
    select * from dbo.ManagementPack where MPName = 'Type your ManagementPackID'
    ManagementPackID will be present of the properties of the Management Pack.
    In that case the management pack should be imported in your SCOM environment.
    And you will get Public key token only for sealed Management packs not for unsealed.

  • Can any one tell me how to make a join in between RESB & VBAP Table

    Hi.
    can any one tell me how to make a join in between RESB & VBAP Table. Please do the needful.

    u have Sales order number and sales order item number in RESB table..
    KDAUF   Sales Order Number
    KDPOS   Item Number in Sales Order

  • Can any one tell me how to talk between two controller.....

    Hi,
    Can any one tell me how to talk between two controller.....
    Help will be awarded.
    Regards,
    Gurprit Bhatia

    Hi Gurpit,
    If you want to share data between 2 controllers then you can simply do that by providing a data link between the controllers in your data modeler.
    If you want to use some methods of one controller in another then you can do it using
    wdThis.wdget<controller name>().<method name>();
    If your question is something different than this then please elaborate your requirement.
    Regards,
    Murtuza

  • Can any one tell me the exact procedure of how to update XPERIA NEO V to ICS using both PC companion and SUS.

    Can any one tell me the exact procedure of how to update XPERIA NEO V using both PC companion and SUS.
    Please provide required link also for SUS and step by step procedure for the same.
    It will be really helpful.

    SUS http://www.sonymobile.com/global-en/tools/update-service/
    You just need to connect your mobile to pc companion follow the onscreen instructions
    Use pc companion
    http://www.sonymobile.com/global-en/tools/pc-companion/
    Discussion guidelines.
    Message me or any other moderator to seek help regarding moderation.

  • Can any one tell me the difference between third party sales & intercompany

    Hai
    can any one tell me the difference between third party sales & intercompany billing
    reg

    Hi,
    In THIRD PARTY, Goods are sent to customer from the Vendor and no Delivery happens from Company Plant
    In THIRD PARTY, We will Pay to the Vendor and Bills Customer.
    In THIRD PARTY, the PR will be generated automatically from the Sales order
    In INTERCOMPANY Process, Goods are sent to customer from the Supplying Company code  to which an order was placed from the Ordering Company code
    In INTERCOMPANY,, Plant of the supplying company code will be assigned to the Ordering Sales Organisation
    In INTERCOMPANY , We Bills the customer and settles to the SUPPLY COMPANY CODE
    We will use two Pricing procedures, One Normal pricing and other is INTERCOMPANY pricing procedure.
    These are the Major differences.
    Please check these and revert back if you need more details
    regards,
    santosh

  • Can any one tell data match ticket with example  SD& MM

    hi
    this is jagadeesh
    can any one tell data match ticket with example in SD& MM

    Dear,
    Please refer below mention link.
    http://www.sap-img.com/sap-sd/link-between-sap-sd-mm-and-fi.htm
    Regards,
    Mahesh Wagh

  • Please can some one tell me how I can remove an ex boyfriends account from my iPad ? I want it update my updates but his email address always comes up and not mine

    Please can some one tell me how I can remove an ex boyfriends account from my iPad ? I want it update my updates but his email address always comes up and not mine

    Press and hold any of the apps on your iPad's homescreen and after a couple of seconds or so they should start to shake. Then press the 'x' in the top left corner to delete the ones that you don't want, and when you've finished deleting press the home button so as to stop the shaking. If you don't get the 'x' on any of the apps that you've downloaded then check that Settings > General > Restrictions > Deleting Apps isn't set 'off'.
    Note that deleting an app will delete all of its content as well

  • Can any one tell me where do we have to change the Language for Vendor curr

    Hello
    Can any one tell me where do we have to change the Language for Vendor currerncy?
    Is it in the vendor master record or in the Currency settings.
    Please tell me the path or Tcode for it.
    Best Regards,
    Sairam.

    hi sai
    do you want to change the currency or langauge ?

  • Can any one tell me how can I move to a different folder pictures, that I've cloned, without them staying aggregated? They all come together to the other folder and I don't want that- thanks

    Can any one tell me how can I move to a different folder pictures, that I've cloned, without them staying aggregated? They all come together to the other folder and I don't want that… thanks

    There's more to it than that.
    Folders in Aperture do not hold Images.  They hold Projects and Albums.  You cannot put an Image in a Folder without putting it in a Project or an Album inside that Folder.
    The relationship between Projects and Images is special:  every Image must in a Project, and can be in only one Project.
    Images can be in as many Albums you want.  Putting an Image in an Album does not move it from the Project that holds it.
    You can make as many Versions from a Master as you want.
    What you want to do may appear simple to you, but it still much adhere to how Aperture works.  I still can't tell exactly what you are trying to do (specifically: Images don't live in Folders; moving an Image from a Folder is non-sensical).
    It can be very confusing (and frustrating) to get going with Aperture -- but it does work, and can be enormously helpful.  If you haven't, take a look at the video tutorials on Apple's Aperture support site.
    I feel as though I haven't helped you much -- but we need to be using the same names for interface items in order to get anything done -- and my sense is that you still haven't learned the names of the parts.

Maybe you are looking for