Skip to Content
author's profile photo Former Member
Former Member

Web Dynpro and BAPI

Hi Guys,

im new in Developeing with Web Dynpro in Java. I already developed some web dynpro applications with BAPIS (like in the tutorial Flightlist). They are all working.

But i have now a little Problem with an actual BAPI. The BAPI has no Import Parameters (like for example the Bapi_Get_Flightlist).

To get datas from this BAPI i have to enter manually the range of date (Startdate and Enddate) and Orderid in the table IT_Ranges_H (Like BAPI_ALM_ORDER_LISTHEAD_RANGES).

I get datas (if i execute the BAPI in SAP - SE80 - with this entries in the Table):

Columnames :

Field Name / S / Option / Low Value / High Value

SHOW_DOCS_WITH_TO_DATE 20081212

SHOW_DOCS_WITH_FROM_DATE 20070101

OPTIONS_FOR_STATUS_INCLUSIVE I EQ FREE

OPTIONS_FOR_ORDERID I BT 501120 501162

By default there are no values entered in this range table, and i get no datas from the Bapi back.

I already imported the model and made the context mapping and im think my application should work. But i didnt get any datas because i dont know how to enter the this values in the table IT_Ranges_H, before i execute the BAPI.

Here is some code, where i tried to make some entries in the table It_Ranges_H:

Z_Mbs_Orderoper_Get_List_Input input = new Z_Mbs_Orderoper_Get_List_Input();

wdContext.nodeZ_Mbs_Orderoper_Get_List_Input().bind(input);

Bapi_Alm_Order_Listhead_Ranges t1 = new Bapi_Alm_Order_Listhead_Ranges();

Bapi_Alm_Order_Listhead_Ranges t2 = new Bapi_Alm_Order_Listhead_Ranges();

Bapi_Alm_Order_Listhead_Ranges t3 = new Bapi_Alm_Order_Listhead_Ranges();

Bapi_Alm_Order_Listhead_Ranges t4 = new Bapi_Alm_Order_Listhead_Ranges();

t1.setField_Name("SHOW_DOCS_WITH_TO_DATE");

t1.setLow_Value("20081212");

t2.setField_Name("SHOW_DOCS_WITH_FROM_DATE");

t2.setLow_Value("20070101");

t3.setField_Name("OPTIONS_FOR_STATUS_INCLUSIVE");

t3.setSign("I");

t3.setOption("FREI");

t4.setField_Name("OPTIONS_FOR_ORDERID");

t4.setSign("I");

t4.setOption("BT");

t4.setLow_Value("501120");

t4.setHigh_Value("501162");

input.addIt_Ranges_H(t1);

input.addIt_Ranges_H(t2);

input.addIt_Ranges_H(t3);

input.addIt_Ranges_H(t4);

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 08:58 AM

    solved it myself.

    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.