Skip to Content
avatar image
Former Member

Problem with Material Request

Hi All,

I am developing a WebDynPro application. The application is failry simple.

I am using the bapi BAPI_MATERIAL_GET_DETAIL. I need to enter the Material no and supposed to retrieve the foll.

1. Material Desc

2. Material Group

3. Material Type

I have created a Model.

Have mapped the Model Node to Context of the Views (SearchView, ResultView) and also to Custom Controller.

SLD is configured JCo are tested successfully.

When I am running the application, then on giving the material no 100 and on pressing search I am not able to get any data in the Result View.

What am I missing and how can I debug my application.

Points assured.

Regards

Nikhil Bansal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 27, 2007 at 10:07 AM

    Hi ,

    First define ExecuteRFC method in controller and in this method execute your RFC

    i.e.

    try{

    wdcontext.currentBAPI_MATERIAL_GET_DETAIL._InputElement().modelobject().execute();

    wdcontext.nodeOutput().invalidate();

    }

    catch(Exception e)

    {

    }

    on click of search button , call controllers ExcuteRFC in onactionSearch Method.

    i.e. wdthis.wdget<controller>.ExecuteRFC();

    Sunitha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2007 at 10:09 AM

    Hi Nikhil,

    Have you tried to execute the BAPI in SAP GUI, is it returning the data there properly, if yes are you able to execute the BAPI properly from WD.

    Regards

    Sid

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Siddharth,

      Yes the Bapi is executed successfully.

      I am getting the messages when I run my application.

      BAPI executed successfully

      Plug fired successfully

      Regards

      Nikhil Bansal

  • Mar 27, 2007 at 11:51 AM

    Hi Nikhil,

    Thr may b two scenarios,

    Scenario1:

    Ur RFC not exceuted .

    U can use Message Manager to test ur RFC execution

    Scenario2:

    1)Ur BAPI not giving the result.

    2)Its always good practice to Map the return node also. and u can map them in a seperate table.

    I suggest u to concentrate on second scenario and see the result..

    Regards,

    Ramganesan K.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      While mapping the component context with model context u can map the

      return node also.and Bind these return node with a table . While executing the BAPI. It will display some result incase if ur input is Wrong or u may missed

      any mandatory parameter.

      Thats y i suggested u to mapp return node also.

      Regards,

      Ramganesan K.