cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDERS_GETLIST

Former Member
0 Kudos

Friends,

I am trying to display sales orders detials in an iView using WD.

Like standard scenario, I pass input element as Customer_Number from WD iView and i want to see all the listed sales order for that specific customer.

To achieve this, I called the BAPI : BAPI_SALESORDERS_GETLIST, then i am confused here what parameter i need to bind to my custome controller?

is it

BAPI_SALESORDERS_GETLIST_INPUT

OR

BAPI_SALESORDERS_GETLIST_OUTPUT

OR

BAPIORDER

BAPIRETURNS

I am really confused here, and I appreciate for the kind answer on eloborating more on this ? it would be great exactly what parameters i should use to achieve this scenario?

many Thanks

Peter

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Friends,

i want to display list of sales orders for one particular customer, the materials ordered, quantity ordered, goods issue date of that particular order and contact information about that particular customer, using Webdynpro.

Please somebody send me related inform,ation to complete this task, this is very urgent.

Please help

Peter

Former Member
0 Kudos

Hi Peter,

I think that to fullfill your require it needs another BAPI.

When you get the Sales Orders list and click on certain order, you must call another BAPI that takes this information in input and returns the order's detail.

Regards,

Gianluca

Former Member
0 Kudos

Hi Peter,

in BAPI_SALESORDERS_GETLIST_INPUT you have all you want:

input field parameters, tables, and output parameters (BAPIORDER list).

In addition you can bind the BAPIRETURNS, to check errors or exception in calling BAPI.

regards,

Gianluca

Former Member
0 Kudos

hI Gianluca Barile ,

ok, I drag it from model node to custom controller node and here which elements, do I need to map with model?

Peter

Former Member
0 Kudos

Hi Peter,

could you please edit here the BAPI's Interface?? I haven't it in my system.

So I tell you which nodes to map.

Gianluca

Former Member
0 Kudos

Hi,

here I have:

Bapi_salesorder_Input

Output

Return

SalesOrder

SalesOrders

Customer_Number

Document_Date

Document_Date_To

Material

Purchase_Order

Purchase_Order_Number

Sales_Organisation

Transaction_Group

These Nodes and attributes are under custome controler , now I would like to know what should I map here?

Peter

Former Member
0 Kudos

Hi Peter,

you must bind Bapi_salesorder_Input (with all subnodes), Return.

Regards,

Gianluca

Former Member
0 Kudos

Hi,

After mapping and binding to the view, under the Custom Controller init method I have writtten,

Bapi_Salesorder_Getlist_Input input = new Bapi_Salesorder_Getlist_Input();

wdContext.nodeBapi_Salesorder_Getlist_Input().bind(input);

To excute the Bapi i written this code under executeBapi() with try catch balock. and called this method under view search buttton.

{

wdThis.wdGetSalesOrderCustController().executeBapi();

}

The program executed success fully and now I need to enter the customer Number and click on Disaply Button, Please could you give me once sample customer number to display the sales order list for him?

Peter

Former Member
0 Kudos

Hi Gianluca ,

Here I set the customer number under the init() method like: 400455

Bapi_Salesorder_Getlist_Input input = new Bapi_Salesorder_Getlist_Input();

wdContext.nodeBapi_Salesorder_Getlist_Input().bind(input);

I set the input object to the Customer_Number like:

input.setCustomer_Number("400455");

Now I deployed the application, all the application layout is diplaying and when I click on Display button, nothing is happening, not even error.

Please help me.

Peter