cancel
Showing results for 
Search instead for 
Did you mean: 

problem while calling bapi function module

Former Member
0 Kudos

Hi,

I am working with ECC 6.0 Version, I have defined an internal table I_RETURN with reference to BAPIRET2 structure and an external work area. i have passed this internal table I_RETURN to a parameter RETURN which is existed in the bapi function module. Here its giving some error like below while doing extended program check through SLIN..

" In PERFORM or CALL FUNCTION "BAPI_TRANSACTION_ROLLBACK", the actual parameter

"I_RETURN" is incompatible with the formal parameter "RETURN".

Internal Message Code: MESSAGE GUQ

Caution: SLIN observes the catching of the runtime error by

CX_SY_DYN_CALL_ILLEGAL_TYPE"

For ur reference here i am mentiong some code related to this issue......

<b>data: i_return type table of bapiret2 initial size 0,

wa_return like line of i_return.

CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'

IMPORTING

RETURN = i_return.</b>

Please help me out regarding this issue....

Thanks & Regards.

Laxman.P

B'lore

Accepted Solutions (0)

Answers (3)

Answers (3)

Vijay
Active Contributor
0 Kudos

hi

to bapi_transaction_commit you need not pass anything.

it will work without that as well.

try it.

regards

vijay

<b>reward points if helpful</b>

Former Member
0 Kudos

Hii Laxman,

Yaa i checked ur BAPI..

See the parameter in Bapi <b>RETURN</b> is of type <b>bapiret2</b> which is a structure.

And the value you r passing is i_return which is an internal table...

Means u r trying to pass an internal table to an structure...

Better u declare an structure of type bapiret2 and then fill it with appropiate data And finally pass it to ur BAPI parameter.....

Hope it solves ur problem...

<b>"Dont forget to reward points if helpful"</b>

Regards,

Ashish

Former Member
0 Kudos

Hi

Declare the I_RETURN parameter as below and see again

DATA : I_RETURN TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

Hi Reddy,

The thing is that i am working with ECC 6.0 Ver so it won't accept OCCURS 0 WITH HEADER LINE.... If you use it will show it as an obsolete statement in Extended program check.....

Thanks & Regards.

Laxman.P