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

BAPI_Create_Bank, problems with returning message

HI getleman's!! I`m new in SAP (ABAP).

I`m using BAPI_Create_Bank and I realize that, when the data is commited rightly the message doesn't return anything.

althought when I'm trying to insert some replicate data the message of the Bapi return me and "E" Error.

I'm not sure if the message only return when it happened an error.

the options of the data element BAPIRET2 (message) shows:

Field: type

Description:

- Message type: S Success, E Error, W Warning, I Info, A Abort.

The 'S' has never been returned.

Thanks for your help.

regards.

Polak.-

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Apr 09, 2008 at 08:33 PM

    Welcome to SDN.

    That's normall. SAP dohave its own share of clinches. Just check for return messages or SY-SUBRC and if it is 0 assume the object uploaded successfully.

    Regards,

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 08:35 PM

    Hi Hernan Szmajser ,

    The return table parameter data population is based on the code inside the BAPI. for this BAPI the Return parameter is getting populated only for the error situation . If you look into the function module / BAPI they are calling a form routine "bank_distribute" in include L1011F01

    Inside this include they are populating the return table only if the SY-SUBRC NE 0.

    Check this piece of code inside the form routine:

      • Distribution of Bank*

      CALL FUNCTION 'ALE_BANK_SAVEREPLICA'

      EXPORTING

      bankctry = bankcountry

      bankkey = bankkey

      bankaddress = bank_address

      bankdetail = bank_detail

        • SERIAL_ID = '0'*

        TABLES

        receivers = receivers

          • COMMUNICATION_DOCUMENTS =*

          • APPLICATION_OBJECTS =*

          EXCEPTIONS

          error_creating_idocs = 1

          OTHERS = 2.

          IF sy-subrc <> 0.

          PERFORM set_return_message USING sy-msgty sy-msgid sy-msgno

          sy-msgv1 sy-msgv2

          sy-msgv3 sy-msgv4

          CHANGING return.

          ENDIF.

          Hope it helps.

          Thanks,

          Greetson

          Add a comment
          10|10000 characters needed characters exceeded

        • author's profile photo Former Member
          Former Member
          Posted on Apr 11, 2008 at 06:02 PM

          thanks!! i'll try it...

          regards,

          Polak.-

          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.