Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2009 at 04:14 PM

    HI,

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

    Regards,

    Satya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.