Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Bank Account Number Issue.

0 Kudos

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??

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

Hello Ashish,

     For 1 bank account number of vendor my program is working very fine , But for multiple it is selecting always first account no.

     For multiple i want some Ideas like some Pop up screen related for selecting one account number out of multiple after executing form.

Thanks

Gaurav

0 Kudos

Hi Gaurav,

You cannot give pop-up once you call form.

Before calling Form, by creating one pop-up you can give option for selecting required bank account.

Thanks.

Regards,

Ashish Desai

0 Kudos

Dear Ashish,

    Please provide some sample code/ example and procedure how pop up screen can be used in between program.

Thanks

Gaurav

0 Kudos

Hi Gaurav,

For Choice of bank account before calling form you can use standard SAP FM POPUP_TO_DECIDE_LIST.

Thanks.

Regards,

Ashish Desai

0 Kudos

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.

Former Member
0 Kudos

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