Skip to Content
avatar image
Former Member

execution of BAPI through webdynpro application

Hi,

I am making an webdynpro application which will fetch the data from R/3 and display that on the screen.

RFC connection is fine.

What are the function used to execute the BAPI from webdynpro.

thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 31, 2006 at 10:31 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Just import the BAPI into your WD.

      for Standard BAPI no need the autharizartion.

      Simple it is working Just I tried. Follow like this code.

      Create a Custom controller make Model BAPI get your import and export params.

      In the implementation WdInit() method add this code.

      Bapi_Salesorder_Getlist_Input input = new Bapi_Salesorder_Getlist_Input();

      wdContext.nodeBapi_Salesorder_Getlist_Input().bind(input);

      // For this input add 0's before your value.if it lessthan 10 digits.

      input.setCustomer_Number("0000000001");

      input.setSales_Organization("0001");

      try {

      wdContext.currentBapi_Salesorder_Getlist_InputElement().modelObject().execute();

      wdContext.nodeOutput().invalidate();

      } catch (WDDynamicRFCExecuteException e) {

      // TODO Auto-generated catch block

      e.printStackTrace();

      }

      And go to your view in the context mapp the BAPI in/out params.

      And goto layout add templates select table add the output values to ur table.

      Deploy the Application.

      This should work.

      Thanks,

      Lohi.

      Message was edited by: Lohitha M

  • avatar image
    Former Member
    Oct 31, 2006 at 10:31 AM

    Hi,

    Go through this link.

    r3-access-through-webdynpro-application

    Thanks,

    Lohi.

    Add comment
    10|10000 characters needed characters exceeded