Skip to Content
author's profile photo Former Member
Former Member

BAPI Return Parameter

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2008 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2008 at 05:41 AM

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

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.