Automate

 View Only
  • 1.  Loops without a key for nextor new line

    Posted 01-29-2020 13:18
    ​​I am trying to create a script to add multiple lines of bank details (General Data-Payment Transactions) into customer masters (XD02).I cannot find anywhere on this tab a button that once one line of bank details is entered, it takes me to the next line.

    I also cannot create a script that has multiple lines with the same customer, as SAP does not direct the script to the next line, it just repeatedly replaces the bank details with the next line in the script.

    Anybody have any ideas?

    Thank you,
    Jen

    ------------------------------
    Jennifer Markie | Supply Master Data

    ------------------------------


  • 2.  RE: Loops without a key for nextor new line

    Employee
    Posted 01-29-2020 15:26
    Hi Jennifer

    Because SAP doesn't give you an insert option in this grid - or any grid without it, you have two options:
    1. use GUI scripting and use an Indexed Loop - which will find the next available empty row.  See online training for it here:  https://winshuttle.ancileuperform.com/gm/folder-1.11.1834?mode=EU  and choose Indexed Loops
    2. Or, look for a BAPI.  Since SAP doesn't have one, we happen to have created a BAPI for BANKS for customer and vendor called: /WINSHTLQ/TRN_VENDOR_BANK.  It's part of the Winshuttle Function Module, so that must be installed.  See the documentation here: http://winshuttle-help.s3.amazonaws.com/support-info/vendor-payment%20transactions.htm
    I've attached an example I did for Vendor that I modified for customer.  The only quirk - it says Vendor bank data is saved in the message, but I assure you it works for customer, too.  Screen short of the added bank below.

    example attached that ADDs banks to customers.

    Best Regards,
    Sigrid


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

    Attachment(s)