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

Strange behaviour of BAPI

Hello Friends,

Actually I am trying to get the bank detail of the SAP business partner, with the following BAPI BAPI_BUPA_BANKDETAIL_GETDETAIL,

Now problem is that, my code is working very fine if I create the bank info of a particular SAP BP manually, i,e while going into transcation bp.

But If I have created the bank information using a BAPI BAPI_BUPA_BANKDETAIL_ADD and then try to access the bank info using the BAPI BAPI_BUPA_BANKDETAIL_GETDETAIL, it does not show me any thing, even the return table's feild( type and msg) are not shown!

However bankinfo is already there (using bapi BAPI BAPI_BUPA_BANKDETAIL_ADD)

Here is my ABAP code

data: bankId type BUT0BK-BKVID.

data: bankDetail type BAPIBUS1006_BANKDETAIL.

data: my_Table type standard table of BAPIRET2 with default key,

wa_myTab like line of my_Table.

CALL FUNCTION 'BAPI_BUPA_BANKDETAIL_GETDETAIL'

EXPORTING

BUSINESSPARTNER = '0000000016'

BANKDETAILID = '1'

IMPORTING

BANKDETAILDATA = bankDetail

TABLES

RETURN = my_Table

.

write /.

write wa_myTab-TYPE.

write /.

write wa_myTab-MESSAGE.

write bankDetail-BANK_CTRY.

write bankDetail-BANK_KEY.

write bankDetail-BANK_ACCT.

write bankDetail-ACCOUNTHOLDER.

write bankDetail-BANKACCOUNTNAME.

.

Dont know what is the problem, Pls identify me the possible error !

Many thanks and so nice of you!

Marek

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 03, 2004 at 03:25 PM

    Check the return table, if there is no error then call function module 'BAPI_TRANSACTION_COMMIT'.

    Just search for keyword commit in this forum, you will find a lot of posts.

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Check Out Adding some wait sec after the call of bapi, With the New Bapi's Which need a Initialization Unit, we had problems , so on inspection it appears that the bapi's require few cycles after completing,

      Just a Try

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.