cancel
Showing results for 
Search instead for 
Did you mean: 

execution of BAPI through webdynpro application

Former Member
0 Kudos

Hi,

I am making an webdynpro application which will fetch the data from R/3 and display that on the screen.

RFC connection is fine.

What are the function used to execute the BAPI from webdynpro.

thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Go through this link.

Thanks,

Lohi.

suresh_krishnamoorthy
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Suresh,

I am creating the similar application however I am displaying salesorder details.

On Clicking of search button, My application is not displaying anything.

everything I checked with the documents, It seems that all is fine.

can you tell me what can be the problem.

Thanks

Former Member
0 Kudos

Hi,

The Function module you are using needs to authrised under your JCo name.

in R/3 side Goto transaction PFCG.

and Role

in autharization give your FnModule name.

Thanks,

Lohi.

Former Member
0 Kudos

Hi,

I am able to execute that BAPI through R/3, and i am using the same user id for connecting to R/3.

Do I still need to do this?

Thanks

Former Member
0 Kudos

Hi,

Create A Role assign your fnmodule under that role.

Assigning the function module to authorization.

Your admin can do that thing.

the transation in R/3 is PFCG.

Thanks,

Lohi.

Former Member
0 Kudos

Hi,

I am using the BAPI_SALESORDER_GETLIST, this is the standard bapi and user id will get the authorization by default?

Thanks

Former Member
0 Kudos

Hi,

Just import the BAPI into your WD.

for Standard BAPI no need the autharizartion.

Simple it is working Just I tried. Follow like this code.

Create a Custom controller make Model BAPI get your import and export params.

In the implementation WdInit() method add this code.

Bapi_Salesorder_Getlist_Input input = new Bapi_Salesorder_Getlist_Input();

wdContext.nodeBapi_Salesorder_Getlist_Input().bind(input);

// For this input add 0's before your value.if it lessthan 10 digits.

input.setCustomer_Number("0000000001");

input.setSales_Organization("0001");

try {

wdContext.currentBapi_Salesorder_Getlist_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

} catch (WDDynamicRFCExecuteException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

And go to your view in the context mapp the BAPI in/out params.

And goto layout add templates select table add the output values to ur table.

Deploy the Application.

This should work.

Thanks,

Lohi.

Message was edited by: Lohitha M