11-03-2015 9:52 AM
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??
11-03-2015 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
11-03-2015 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
11-03-2015 10:21 AM
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
11-03-2015 10:26 AM
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
11-03-2015 10:33 AM
Dear Ashish,
Please provide some sample code/ example and procedure how pop up screen can be used in between program.
Thanks
Gaurav
11-03-2015 10:46 AM
Hi Gaurav,
For Choice of bank account before calling form you can use standard SAP FM POPUP_TO_DECIDE_LIST.
Thanks.
Regards,
Ashish Desai
11-03-2015 10:53 AM
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.
11-03-2015 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