cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro and BAPI

Former Member
0 Kudos

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);

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

solved it myself.