cancel
Showing results for 
Search instead for 
Did you mean: 

WDDynamicRFCExecuteException

Former Member
0 Kudos

I have developed a sample webdynpro application which we intend using on both desktop and mobile device (HP iPac using Pocket IE 2003 or similar device). The application functions when executed from the desktop and PC Emulator (using the additional URL parameter sap.session.client=PieClient) , but on the actual device I receive the follwing error message when the BAPI is called:

"com.sap.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException"

Any assistance is greatly appreciated!

Regards,

Joanne

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Joanne,

This problem is due to the communication problem between your R/3 server and WAS server. Check whther connection is working properly?

Also check that max. connections to R/3 exceeds or not.

Regards,

Bhavik

Former Member
0 Kudos

The application functions from the desktop (and Emulator running on the desktop )as depicted by the following log excerpts:

<snip> -


INPUT DETAILS -


x10545d60 000144 36343020 000b0102 00194241 50495f46 640 ......BAPI_F

x10545d70 000160 49584544 41535345 545f4745 54444554 IXEDASSET_GETDET

x10545d80 000176 41494c01 02033700 00033705 140010da AIL...7...7.....

x10545d90 000192 175e2018 9111daae ffce7a98 03646205 .^ .......z..db.

x10545da0 000208 14020100 05415353 45540201 0203000c .....ASSET......

x10545db0 000224 30303030 30303030 31323232 02030201 000000001222....

x10545dc0 000240 000b434f 4d50414e 59434f44 45020102 ..COMPANYCODE...

x10545dd0 000256 03000430 30313002 03020100 09535542 ...0010......SUB

x10545de0 000272 4e554d42 45520201 02030004 30303030 NUMBER......0000

x10545df0 000288 02030131 00b92a54 482a0200 b9000062 ...1..TH.....b

x10545e00 000304 6169786f 5f455044 5f393735 32313530 aixo_EPD_9752150

x10545e10 000320 00000000 00000000 00000000 00000000 ................

x10545e20 000336 01477565 73740000 00000000 00000000 .Guest..........

x10545e30 000352 00000000 00000000 00000000 00000000 ................

x10545e40 000368 00424150 495f4649 58454441 53534554 .BAPI_FIXEDASSET

x10545e50 000384 5f474554 44455441 494c0000 00000000 _GETDETAIL......

x10545e60 000400 00000000 00000000 00000962 6169786f ...........baixo

x10545e70 000416 5f455044 5f393735 32313530 00000000 EPD9752150....

x10545e80 000432 00000000 00000000 00000064 61306564 ...........da0ed

x10545e90 000448 32613031 38393131 31646139 65373030 2a0189111da9e700

x10545ea0 000464 30306436 30396137 3161342a 54482a01 00d609a71a4TH.

<end snip>

-


RESULTS DISPLAYED -


<snip>

700000002124aa0 000064 00000000 00000000 00000000 001f0001 ................

700000002124ab0 000080 05000000 05000503 00000503 05140010 ................

700000002124ac0 000096 da175e20 189111da aeffce7a 98036462 ..^ .......z..db

700000002124ad0 000112 05140512 00000512 0201000a 42415349 ............BASI

700000002124ae0 000128 435f4441 54410201 0203008f 45515549 C_DATA......EQUI

700000002124af0 000144 504d454e 54202020 20202020 20202020 PMENT

700000002124b00 000160 20202020 20202020 20202020 20202020

700000002124b10 000176 20202020 20202020 20202020 20202020

700000002124b20 000192 20202020 20202020 20202020 20202020

700000002124b30 000208 20202020 20202020 20202020 20202020

700000002124b40 000224 20202020 20202020 20202020 20202020

700000002124b50 000240 20202020 20202020 20202020 20202020

700000002124b60 000256 20202020 20202020 20000000 0000000c .......

700000002124b70 000272 20202030 30303030 30303002 03020100 00000000.....

700000002124b80 000288 134f5247 414e495a 4154494f 4e414c5f .ORGANIZATIONAL_

700000002124b90 000304 44415441 02010203 00264455 31373530 DATA.....&DU1750

700000002124ba0 000320 30302020 20203030 30313536 39303030 00 0001569000

700000002124bb0 000336 44554b45 20202020 20202020 20202020 DUKE

700000002124bc0 000352 02030201 00065245 5455524e 02010203 ......RETURN....

700000002124bd0 000368 01c42020 20202020 20202020 20202020 ..

<end snip>

The application does not function from the actual PDA device.

The application input screens are displayed when I start the application on the PDA device, but I receive the error message after I click the button to display the information resulting from the BAPI call. I do not receive an error stack trace on the device, just the message in the exception that is caught after the BAPI call. I am in the process of adding logging details to the application to see if this will reveal any other results.

Joanne

Former Member
0 Kudos

Joanne,

Is it a very first call? The only thing I can imaging is authorization issues (i.e. PDA device does not pass necessary credentials for some reason). Could you verify this? Or this is not an issue here (just predefined user set for JCo connection)?

VS

Former Member
0 Kudos

Hi Valery,

We are using a predefined user in the JCO connection, but since you mentioned it I was wondering if having a fixed IP address would make a difference? ( The PDA device has a server-assigned IP address, but the desktop will usually have a fixed IP address).

Joanne

Former Member
0 Kudos

Hmmm... Scarcely, I guess...

Anyway, as Armin mentioned complete stack trace will be very usefull. Sure it's hard to get it on PDA, but probably you may find it in log or catch an exception and print stack trace to file on server?

VS

Former Member
0 Kudos

I am unable to obtain a trace on the PDA. The following is an extract of my code when calling the BAPI:

//Call BAPI

try {

wdContext.

nodeFixedasset_Getdetail_Input().

currentFixedasset_Getdetail_InputElement().

modelObject().

execute();

}

catch (Exception ex) {

ex.printStackTrace();

wdComponentAPI.getMessageManager().raiseException("BAPI call failed " +ex.toString(), false);

}

wdContext.nodeOutput().invalidate();

The only response I receive on the PDA is the output from the raiseException "com.sap.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException"

What have I coded incorrectly?

Thanks,

Joanne

Former Member
0 Kudos

Joanne,

Embed the following code into catch(){} block:


try
{
  final PrintWriter pw = new PrintWriter
  (
    new FileWriter("C:\my-error-trace.txt")
  );
  ex.printStackTrace( pw );
  pw.close();
}
catch (final IOException io) {}

Reproduce error, and post content of C:\my-error-trace.txt here.

Valery Silaev

EPAM Systems

http://www.netweaverteam.com/

Answers (3)

Answers (3)

Former Member
0 Kudos

The problem was resolved by adding the value "sap.authentication = true" to the application properties.

Former Member
0 Kudos

how you " adding the value "sap.authentication = true" to the application properties."? can you show me step by setp?thks!

Former Member
0 Kudos

Hi

Try executing the RFC within SAP GUI and see if you get a error. The problem could be with your RFC or the parameters that you pass to the RFC. Moreover the parameters have to be passed in caps for the RFC to execute correctly.

If still you get the exception just check if your ABAP program is active and no one is changing it. Then just restart your J2EE and see. It works.

regards

Ravi

Former Member
0 Kudos

Can you please post the complete stacktrace?

Armin

Former Member
0 Kudos

WDDynamicRFCExecuteException occurs when the RFC is not executing from your WebDynpro. Please check if there is any problem while setting the input values into the BAPI when you run it through your specified device.