Skip to Content

Multiple Bank Account Number Issue.

Hello Guys,

    Previously, we were having only 1 Bank account number for each Vendor in T-Code XK03.

    Now, Scenario has been change and now we have 2 account nos. for some vendors.

    Problem is when we print RTGS (customise program) its always capture first account Number.

    Its there any way by which user can select bank account number by its choice from multiple account number at the time of printing form??

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2015 at 10:05 AM

    Hi Gaurav,

    Vendor master Bank data gets stored in LFBK table.

    When you print RTGS (customized program ) you have to change logic.

    Select All bank accounts from LFBK table for respective vendor and print/display them in loop.

    Thanks.

    Regards,

    Ashish Desai

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Gaurav,

      Sample code as follows:

      DATA: BEGIN OF SPOPLIST OCCURS 15.

      INCLUDE STRUCTURE SPOPLI.

      DATA: END OF SPOPLIST.

      DATA: ANTWORT TYPE C.

      Loop at it_lfbk into wa_lfbk.

        SPOPLIST-VAROPTION = wa_lfbk.

        APPEND SPOPLIST.

      Endloop.

      CALL FUNCTION 'POPUP_TO_DECIDE_LIST'

        EXPORTING TITEL = 'SELECT'

                             TEXTLINE1 = 'SELECT BANK ACCOUNT NUMBER'

                             MARK_MAX = 1

      IMPORTING ANSWER = ANTWORT

      TABLES T_SPOPLI = SPOPLIST

      EXCEPTIONS TOO_MUCH_ANSWERS = 1

      TOO_MUCH_MARKS = 2.

  • avatar image
    Former Member
    Nov 03, 2015 at 10:42 AM

    If you are working in customized module then do as below

    get all vendor bank entry from LFBK table into your internal table here you can additionally specify one more column contains serial number/ or any other identical name or flag (for setting account for print as default or any..)..and code accordingly ( no need to work with popup screen )

    (with popup screen)

    Further more this link may help you. POPUP TO GET VALUE | SCN

    -Avirat

    Add comment
    10|10000 characters needed characters exceeded