cancel
Showing results for 
Search instead for 
Did you mean: 

SyncBO - Creation- Exception

Former Member
0 Kudos

Dear All,

I am trying to create SyncBo's for Getting Company List

<b>(BAPI_COMPANY_GETLIST)</b> but I am getting error message as follows

<b>RETURN parameter in GetList BAPI Wrapper should refer to structure BAPIRET2</b>.

I checked the return parameter of the BAPI it is BAPIRETURN instead of BAPIRET2. Now I am not sure how to proceed about this problem.

<i>Most of the BAPI which I am going to use is of return type BAPIRETURN.</i>

Please suggest me some idea how can I proceed with sync BO creattion.

Thanks

Satya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello satyabrata,

Please refer to following link.

http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/bapi_wrapper...

<b>Parameter named “RETURN” where the type is BAPIRET2 structure needs to be defined as either Export or Tables parameter</b>

Suppose you want to use BAPI_MY_GETLIST bapi.

If the return bapi parameter type is BAPIRETURN.

Then write your own <b>RFC</b> function module.

Lets say ZBAPI_MY_GETLIST.

It must have same signature as that of BAPI_MY_GETLIST

But the return type is of type BAPIRET2.

Then inside ZBAPI_MY_GETLIST call BAPI_MY_GETLIST.

Use the return value from BAPI_MY_GETLIST and assign the respective field values in return parameter pf ZBAPI_MY_GETLIST.

kishorg
Advisor
Advisor
0 Kudos

Hi Satya,

u just create ur own RFC's have the same code as that of ur standard BAPIs . then replace the bapiretun with BAPIRET2. then fill the exceptions in this BAPIRET2 .

i think that can solve ur problem.here the constraint is we have to make changes in the code accordingly, that satisfy our structure change.

let me know..

Regards

Kishor Gopinathan