Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI Return Parameter

Former Member
0 Likes
7,054

Dear All,

What is the critaria to specify particular BAPI reaturn parameter from BAPIRETURN, BAPIRETURN1, BAPIRET1, BAPIRET2. .........

Is there any specific rule, plz brief the supporting concept too...

Thanks in Advance ...

Regards,

Parmindar

1 ACCEPTED SOLUTION
Read only

former_member188594
Active Participant
0 Likes
3,329

Hi,

The return parameter RETURN contains success or error messages for the BAPI, and depending on the SAP R/3 Release has the dictionary structure BAPIRETURN, BAPIRETURN1, BAPIRET1, BAPIRET2 or BAPIRET2_FIX. The (common) relevant fields of these structures are:

TYPE (Message type: S(uccess), E(rror), W(arning), I(nformation) ) ;

ID (message class) ; NUMBER (message number) ; MESSAGE (message text) ;

MESSAGE_V1 , MESSAGE_V2 , MESSAGE_V3 , MESSAGE_V4 (message variables)

If the transmission is successful, RETURN is either completely empty (all the fields have their initial fields for their types), or only the TYPE field has the value 'S'. Refer to the documentation to find out which applies to the BAPI you are using.

BAPIRETURN is a return parameter that is declared in export parameters or table parameter.

It is a general structure for a BAPI return parameter. It is filled by function module BALW_BAPIRETURN_GET.

As of release 4.0A use BAPIRETURN1 and function module BALW_BAPIRETURN_GET1.

For more info refer the following links:

[http://help.sap.com/erp2005_ehp_03/helpdata/EN/44/2a41f420323f0ee10000000a114a6b/frameset.htm]

[http://help.sap.com/erp2005_ehp_03/helpdata/EN/5d/a45c3cff8ca92be10000000a114084/frameset.htm]

[http://help.sap.com/erp2005_ehp_03/helpdata/EN/83/a44ef0560e423b95b748babcca3150/frameset.htm]

Reward points if useful.

Regards,

chandrasekhar.

Edited by: Chandrasekhar R Kalluru on Feb 27, 2008 9:26 PM

4 REPLIES 4
Read only

former_member188594
Active Participant
0 Likes
3,330

Hi,

The return parameter RETURN contains success or error messages for the BAPI, and depending on the SAP R/3 Release has the dictionary structure BAPIRETURN, BAPIRETURN1, BAPIRET1, BAPIRET2 or BAPIRET2_FIX. The (common) relevant fields of these structures are:

TYPE (Message type: S(uccess), E(rror), W(arning), I(nformation) ) ;

ID (message class) ; NUMBER (message number) ; MESSAGE (message text) ;

MESSAGE_V1 , MESSAGE_V2 , MESSAGE_V3 , MESSAGE_V4 (message variables)

If the transmission is successful, RETURN is either completely empty (all the fields have their initial fields for their types), or only the TYPE field has the value 'S'. Refer to the documentation to find out which applies to the BAPI you are using.

BAPIRETURN is a return parameter that is declared in export parameters or table parameter.

It is a general structure for a BAPI return parameter. It is filled by function module BALW_BAPIRETURN_GET.

As of release 4.0A use BAPIRETURN1 and function module BALW_BAPIRETURN_GET1.

For more info refer the following links:

[http://help.sap.com/erp2005_ehp_03/helpdata/EN/44/2a41f420323f0ee10000000a114a6b/frameset.htm]

[http://help.sap.com/erp2005_ehp_03/helpdata/EN/5d/a45c3cff8ca92be10000000a114084/frameset.htm]

[http://help.sap.com/erp2005_ehp_03/helpdata/EN/83/a44ef0560e423b95b748babcca3150/frameset.htm]

Reward points if useful.

Regards,

chandrasekhar.

Edited by: Chandrasekhar R Kalluru on Feb 27, 2008 9:26 PM

Read only

0 Likes
3,329

Dear ChandraShekhar,

I asked exactly which one of these to use (return parameters) and why ?

Thanks in Advance

Paramindar

Read only

0 Likes
3,329

Dear ChandraShekhar,

I asked exactly which one of these to use (return parameters) and why ?

Thanks in Advance

Paramindar

Read only

Former Member
0 Likes
3,329

It is totally depend on the BAPI you are using. Use the same structure which BAPI is using.

Regards,

Atish