‎2008 Feb 27 12:32 PM
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
‎2008 Feb 27 3:36 PM
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
‎2008 Feb 27 3:36 PM
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
‎2008 Feb 28 5:38 AM
Dear ChandraShekhar,
I asked exactly which one of these to use (return parameters) and why ?
Thanks in Advance
Paramindar
‎2011 Apr 18 12:48 PM
Dear ChandraShekhar,
I asked exactly which one of these to use (return parameters) and why ?
Thanks in Advance
Paramindar
‎2008 Feb 28 5:41 AM
It is totally depend on the BAPI you are using. Use the same structure which BAPI is using.
Regards,
Atish