cancel
Showing results for 
Search instead for 
Did you mean: 

Java code for BAPI_SalesOrder_getlist_Input

Former Member
0 Kudos

Hi Experts,

I have done sales order using bapi in web dynpro. I have complete all my design part related to this like context mapping, model binding etc an all are working fine, now i have to write some java code in the Implementaion tab.,

I have taken fields for this BAPI

1-Output · Return

Output · SalesOrders

Customer_Number

Document_Date

Document_Date_To

Sales_Organization

I have wriiten something but, i am not sure as i do not have java background.

so please help me out this issue or send me some documets on this topic.

thanks & regards,

Iqbal Ahmad

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Mani

Can u give me the links where i can get the elearning examples like the one you have posted. I have checked in SDN but cant seem to find the path.

Regards

PN

Former Member
0 Kudos

Hi Iqbal,

Check this url for sample apps :

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">https [original link is broken] [original link is broken]

regards

Sumit

Former Member
0 Kudos

Hi,

This is the best thread to find all the flow and no need to write more code.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202f1dfb-74db-2910-e48e-a7430c31....

U can add the followng code n the init method of any view or custom controller

wdContext.nodeControllernodename().bind(new FnModule());

// pass the nput.

try{

WdContext.CurrentControllerNodeElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

close the brace and

catch(Excepton e)

{

e.prntStacTrace();

close the trace.

Thans

Lohi

Message was edited by:

Lohitha M

Former Member
0 Kudos

Hi

First You have to bind the Model . Using the below code make necessary changes according to your bapi name in the component controller

public void wdDoInit()
  {
    //@@begin wdDoInit()
    Bapi_Flight_Getlist_Input bapi_obj = new <Bapi_*****_Input()>;
    wdContext.node<Bapi_**********_Input()>.bind(bapi_obj);
    try
    {
    	wdContext.node<Bapi_***********_Input()>.currentBapi_Flight_Getlist_InputElement().modelObject().execute();
    	wdContext.node<node below output>.invalidate();
    }
    catch(Exception e)
    {
    	e.getStackTrace();
    }
    //@@end
  }

Regards

Chandran S

Message was edited by:

Armin Reichert