Skip to Content
avatar image
Former Member

web dynpro using RFC

Hi,

I am working on one web dynpro application where I am using function module : Bapi_Employee_Getdata .

In this i need to get the user id from portal and need send that as input parameter to RFC, I did everything but when i see output i couldnt see anything I guess basically itz not pulling any data from back end, I am not sure where I am doin wrong ..?

any ideas..?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 21, 2005 at 10:31 PM

    Hi Shah,

    your statements confusing little bit.

    if i understand correctly you need to retrieve portal user and send that back to RFC system.

    check the following if you have done it correctly

    1.retrieveing portal user

    2.set the value using setter method of the input structure in your rfc model

    3.execute the model

    4.invalidate the model

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      //@@begin javadoc:wdDoInit()

      /** Hook method called to initialize controller. */

      //@@end

      public void wdDoInit()

      {

      //@@begin wdDoInit()

      String strUserid = "481";

      Bapi_Employee_Getdata_Input input = new Bapi_Employee_Getdata_Input();

      wdContext.nodeEmployee_Getdata().bind(input);

      //Bapip0002B row1 = new Bapip0002B();

      //wdContext.nodePersonal_Data().bind(row1);

      //input.setUserid(strUserid.toUpperCase());

      input.setEmployee_Id(strUserid);

      //@@end

      }

      //@@begin javadoc:wdDoExit()

      /** Hook method called to clean up controller. */

      //@@end

      public void wdDoExit()

      {

      //@@begin wdDoExit()

      //@@end

      }

      //@@begin javadoc:Execute_Bapi_Getdata()

      /** Declared method. */

      //@@end

      public void Execute_Bapi_Getdata( )

      {

      //@@begin Execute_Bapi_Getdata()

      try{

      // wdContext.currentOutputElement().modelObject().e

      wdContext.currentEmployee_GetdataElement().modelObject().execute();

      wdContext.nodeOutput().invalidate();

      }

      catch (Exception ex)

      {

      ex.printStackTrace();

      }

      //@@end

      }

      /*

      • The following code section can be used for any Java code that is

      hai my one also same problame how is it solve please explain

      i sending my code please help any one.. its urgent ..

      please please