cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Ouput With BAPI Return Message?

Former Member
0 Kudos

Hi,

I Executed RFC in R/3.

I Gave Employee ID As Input as B399

It gives

Employee Info B399 SubbaRao Consulatant

I Called RFC In NWDS And Developed Webdynpro Application.

After Executing Webdynpro Application is gives Below

I Gave Employee ID As Input as B399

It gives

Employee Info B399 SubbaRao Consulatant

BAPI Return 000 Does Not Found Employee ID.

Why the BAPI Return Message is Coming While Executing Application In Webdynpro.

Where is the Problem,How To Eliminate BAPIRETURN Message in Webdynpro Also.

Thanks

SubbaRao

I

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

Hi SubbaRao,

are you getting the Bapi Return message with the required info and are you priinting the both.

execute the bapi in the backend, if the problem is present there also then the fault is in bapi ask ABAPers to debug it.

Thanks

Sarbjeet Singh

Former Member
0 Kudos

Hi Everyone,

Thanks For Reply.

I Am telling bit clear.

I Executed RFC In ECC System.

I Take Employee ID As Input,and execute.

I Have Two Tables As Output

Employee Info : It gives Employeeid Information.

BAPIRETUTRN MESSAGE: If Employee Not Found It Can Display the Employee id not Found[If employeeid is not found only it can display Message].

Coming To Webdynpro.

Executed RFC In Webdynpro.

I Take Employee ID As Input,and .

I Have Two Tables As Output

Employee Info : It gives Employeeid Information.

BAPIRETUTRN MESSAGE: Every time it gives Employeeid Not Found Even employee id information displayed in above Employee Info Table.

Note: RFC is Executing Fine In ECC System.Executing same RFC in Webdynpro it gives Actual Output With BAPI Return Message.

I Did n't write any code while executing BAPI.[I Take Service Controller of the Custom Controller].

Thanks

SubbaRao

Former Member
0 Kudos

Hi SubbaRao,

WHy do not you do external Debuggging. Since you are usign service controller, I am sure BAPI itself is returning that message.

Regards,

ganga

gill367
Active Contributor
0 Kudos

Hi SubbaRao,

If the Bapi is working fine in the ECC system then you should reimport the model.

And also check whether you are invalidating the output node after executing the BAPI in web Dynpro ?

If the Problem still presists then you can do a work-around and you can check the size of the INFO table and when it is zero then only print the message.

Thanks,

Sarbjeet Singh

Former Member
0 Kudos

Hi,

I Did External Debugging in ECC,Eventhough i ececuted application in webdynpro i will get the same actual output with BAPIReturn Message.

I Checked The Code Executed the Model Object.

It is Invalidate the Output Node after executing the Model.

Why it is howing diffrent ouputs in ECC And Webdynpro.

Where is the problem Either in ABAP Or Webdynpro Side.

Thanks

SubbaRao

Former Member
0 Kudos

Hi,

If I am not wrong, the issue has to be ABAP side. The simple reason behind this is, retrun parameter can not be populated from Web Dynrpo side.

regards,

ganga

Former Member
0 Kudos

Hi,

Check that you are passing the same input while testing from ABAP and from WebDynpro.

And if possible please post the the execution code here.

Regards,

Charan

Former Member
0 Kudos

Hi,

I Gave Same Value in Both ABAP And Webdynpro.

The Below execution of Model Object in Component Controller

public void executeZ_Employee_Info( )

{

IWDMessageManager manager = wdComponentAPI.getMessageManager();

try

{

wdContext.currentZ_Employee_Info_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

catch(WDDynamicRFCExecuteException e)

{

manager.reportException(e.getMessage(), false);

}

}

Whether the problem in ECC Side or Webdynpro Side.

Thanks

SubbaRao

Edited by: subbarao chinta on Jun 8, 2009 10:47 AM

Former Member
0 Kudos

Hi,

Where are you setting the Emp Id in the input? Other than this are you passing any other input?

Regards,

Charan

Former Member
0 Kudos

Hi Charan,

Employee ID is the Only Input Parameter of the BAPI.

I Done Mapping Correctly in the View Of Webdynpro.

If the problem in ABAP Side Where can I Check.

Note: In WebDynpro,BAPIReturn Message is getting whrther i gave coreect employee id and incorrect Employee id.

If i give Correct Employee ID I Will Get the Corresponding Employee ID Information With BPAI RETURN Message.

If i give incorrect Employee ID It Will Give BAPIRETURN Message Only.

Irrespective of it gives the BPAIRETURN Message.

Thanks

SubbaRao

Former Member
0 Kudos

Hi,

If you are giving the same input in WebDynpro as you are giving at backend (While testing at SAP ECC), You should get the same results. Because that message is populationg from Backend only (100%). There is no other possibility.

Regards,

Charan

Former Member
0 Kudos

Hi ,

The Problem is Solved.

As Ganga told it is the problem in R/3.

I Set External Breakpoint in ECC And Apllication Run in Webdynpro.

We came to know While Debugging Application .

Data Conversion Problem of Employee ID it is Giving BAPIRETURN Message.

Thanks

SubbaRao

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

For your case the most EFFECTIVE TECHNIQUE would be

a) Set external break point in BAPI

b) Access the application

c) Take help from ABAPers and debug it.

Regards,

ganga

Former Member
0 Kudos

Hi,

By any chance are you sending BAPIRETURN as empty input object while executing the RFC from WebDynpro?

Regards,

Charan

Former Member
0 Kudos

Hi SubbaRao,

Your question is not clear to understand.

Please clarify the below:

1. Are you not getting "BAPI Return 000 Does Not Found Employee ID." message when you directly execute the BAPI? (For the same employee id what ever you are trying from webdynpro application).

2. When you call BAPI from your webdynpro screen are you getting both the messages ? (Employee details and Return 000 message)

3. Is the message "BAPI Return 000 Does Not Found Employee ID." getting printed on the screen? If so, you would have written the code to print the RFC response after executing the model.

Kindly paste you model executing code.

Regards,

Jaya.