Automate

 View Only
  • 1.  Delete specific Bank Information from BP Tcode

    Posted 05-14-2020 08:09
    Hi,

    How can we Delete a specific bank data in BP Tcode ??


    ------------------------------
    Vag Vignesh Shenoy |
    ------------------------------


  • 2.  RE: Delete specific Bank Information from BP Tcode

    Employee
    Posted 05-18-2020 12:39
    Hi Vag

    Hope you're well!

    Just as with any grid in SAP that doesn't have the ability to position to a specific row, your options are GUI scripting with an Indexed If on the identifier or a BAPI.

    Luckily there is a super simple  BAPI:  BAPI_BUPA_BANKDETAIL_REMOVE  It uses the BP number and bank id to remove the bank.  You have to make sure you enable commit.  Note I tried this in S4, you didn't specify if this was S4, ECC ERP or CRM.

    Hope that helps,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 3.  RE: Delete specific Bank Information from BP Tcode

    Posted 05-28-2020 03:46
    Hi Sigrid,

    Thanks for the Inputs. I am running this in ECC ERP system. 

    Could you please let me know some more details on the use of Indexed If concept. Appreciate if you can point out some example code or a thread/document which has a similar things covered.

    Regards,
    Vag Vignesh Shenoy

    ------------------------------
    Vag Vignesh Shenoy |
    ------------------------------



  • 4.  RE: Delete specific Bank Information from BP Tcode

    Employee
    Posted 05-28-2020 10:23
    Hi again Vag

    Here's a support article on the topic.  https://support.winshuttle.com/hc/en-us/articles/360023557472-How-to-use-If-on-Index-condition
    It is for a different tcode but the same method would work.  You just need to decide how to identify a line.
    You could use the ID, which is always unique or perhaps you could use the bank key.

    The Indexed If would use that field - whichever you choose and capture - and it will position it to the correct row - even if the row is not visible, i.e. you have to scroll down to see it.  Then you can hit the delete button.  

    Hope this helps,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------