Skip to Content
avatar image
Former Member

when giving customer no , address details have to show in same view

hi sap gurus,

in webdynpro java in one view when i give customer no , in the same view based on customer no , the address details have to show in table .

i take standerd bapi ( bapi_customer_display), i create one customer_info view. in this view when i give customer no in input field and press action button , i have to see the customer information in table ui element in the same view.

after press the action button , after onwards i can not move to further for developing the application.

How can i do this application . I am new to webdynpro java. please suggest me.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 05, 2009 at 04:14 PM

    HI,

    under the onAction<Actionname> method, what have you written?

    Regards,

    Satya.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi satya,

      in action button to execute the bapi , i have no idea to write the code, please can you reply what i have to write the code to execute the code. reply will highly appreciated

  • avatar image
    Former Member
    Sep 10, 2009 at 10:56 AM

    Hi sujana mullapudi ,

    When you map the context of component controller to Model Service Controller is created and it generates the method in component controller to execute the bapi with the name executeBapi_customer_display_Input( );

    Just call this method in the action of the button ,

    wdThis.wdGet<name of component controller>.executeBapi_customer_display_Input( );

    or

    Just write the code in action

    IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
        {
          wdContext.bapi_customer_display_InputElement().modelObject().execute();
          wdContext.nodeOutput().invalidate();
        }
        catch(WDDynamicRFCExecuteException e)
        {
          manager.reportException(e.getMessage(), false);
        }

    Regards,

    srikanth

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ms. Sujana,

      If you are not able to understand what went wrong still, try this:

      Open the component controller -> Context tab -> Delete the node zbapi_cust_addr_fm_input

      Select and right click on the component controller -> Apply template -> Wizard opens

      Select Service controller -> Select zbapi_cust_addr_fm_input ->Select the context you required for input and output ->

      Check "generate method model execution" -> Change method name if you have the method already -> Finish

      Still if you have any problems, feel free to revert.

      Regards

      Siva

  • avatar image
    Former Member
    Sep 06, 2009 at 01:30 AM

    Hi Sujana,

    Welcome to SDN!

    As for as I understand your requirement,after pressing the action button you need to send input to the BAPI bapi_customer_display and execute it. Since you are new to webdynpro java, Check this [link |/docs/DOC-8061#15 [original link is broken]]

    Regards,

    Siva

    Add comment
    10|10000 characters needed characters exceeded