Skip to Content
avatar image
Former Member

problem while calling bapi function module

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 06, 2007 at 10:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Aug 06, 2007 at 10:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 06, 2007 at 12:43 PM

    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>

    Add comment
    10|10000 characters needed characters exceeded