cancel
Showing results for 
Search instead for 
Did you mean: 

RFC problem

Former Member
0 Kudos

Hello everyone!

I have faced with problem trying to call BAPI BAPI_ALM_ORDER_GET_DETAIL through aRFC from java. Called remotly BAPI returns error "Error reading the order 4000463 in the document tables". When I call it locally (se37) it is working well and returns 4000463 order data.

Appreciate any help!

Kirill

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kirill,

If the problem is with value then try this, it might resolve it.

If you are passing a value to an import parameter by getting a value from value attribute then pass it by appending 0's to it, so that the length of the field is same as it is in the back end.

or

Change the value attribute type to the back end type which resolves your problem.

Thanks & Regards,

Jhansi Miryala

Former Member
0 Kudos

Hello Jhansi Miryala!

Thank you!

It solved after adding five '0' before order number, to get C(12) type.

But how to deal with such situations in general? Add addtional '0' every time?

What did you mean with "Change type"? Abap type is C(12) but java is String. Model was generated from FM, and attribute was derived from model.

Regards,

Kirill

Edited by: Kirill Trunov on Feb 18, 2009 5:19 PM

Answers (0)