Vendor master query
Hi
I need to make a sap query for all the fields available in both the tables LFA1 & LFB1. So anyone can suggest the steps of config. for sap query of vendor master records.
thanks & Regards,
babjee
Hi
Generally there are no configuration steps for SAP query. It is a reporting tool. Using these tool, you can create reports.
If you are using SAP Query, refer to the following websites
help.sap.com/printdocu/core/Print46c/EN/data/pdf/BCSRVQUE/BCSRVQUE.pdf
understanding sap query
http://www.sap-basis-abap.com/sapqu005.htm
http://www.sap-basis-abap.com/sapqu001.htm
Additionally you can also create ABAP Report or use BW for vendor master records
Please let me know if you need more information.
Regards
Sridhar M
Similar Messages
-
Vendor Master bank Details Query
Hi Gurus..
i have developed a program from extracting vendor master and vendor A/P transaction.. in vendor master i have to get bank info like bank key and bank account number with respect to vendor number(lifnr).
i have found the field name
<b>bnka-BANKL --- Bank Key
bsec-BANKN --- Bank account number ...</b>Now the problem is i fighting hard to relate these fields with respect LIFNR..
I'm Looking forward to here solutions from you all..
thanks in Anticipation
seriesnous is critical.. its has to be transported 2'marrow..
full points will be rewarded for usefull solutions..
chears,
Chandru.Shi Chandru,
you have to go to table LFBK, there you'll find all banks for all vendors. Pls. have a look at the table and come back if yuo have more questions. Pls. note that one vendor can have more bank accounts (but I am sure you have seen that in FK03).
hope this helps
ec -
Query on payment methods in vendor master
Hi,
in vendor master there is a field named payment methods (LFB1-ZWELS) but I cannot use table RF02K to find the descriptions.
What table can I use to find descriptions and where can I customize it from SPRO
Best regardsHi,
thanks but that table cannot be used in a query -
Query in IBAN number in vendor master
hi experts
Hi
IBAN number starts with country code + 2 numeric number.
What is the meaning for 2 digit numeric number , what does it stands for ?
And how its getting triggered automatically for all vendors, but its not same for all vendor master.
Can some body explain me in this regard.
ThanksHi ,
IBAN is designed specifically for the combination of country, bank account and bank key. Please check the link :-http://en.wikipedia.org/wiki/International_Bank_Account_Number.
In SAP, the logic to check the correctness of IBAN is built and accordingly it works.
Regards,
Pavan -
Upload program for vendor master
Hi Friends,
Could you please help me in this.
actually i have a program like this:
i have to download the data from an excel sheet and reformat it and output into a text file so that the data can be uploaded into vendor master using standard progarm
<b>"RFBIKR00".</b>
i have written the program like this:
but in the middle when formatting the data...i'm facing the problem....
plz help me in solving that...
thnx very very much...........
the program i wrote is like this:
<b>
tables: lfa1,
lfb1,
lfm1,
lfbk,
bnka,
bgr00,
blf00,
blfa1,
blfb1,
blfbk,
blfm1,
blfb5,
blfbw,
blfei,
blfza,
blflr,
blfm2,
bwyt3,
bwyt1,
blfat.
*--- Internal table for spread sheet.
data: t_filedata like alsmex_tabline occurs 0 with header line.
*--- Internal table for Vendor Master Data in Spread Sheet.
data: begin of t_sheet occurs 0,
name1 like lfa1-name1, "vendor name1
name2 like lfa1-name2, "vendor name2
altkn like lfb1-altkn, "previous master record number
bukrs like lfb1-bukrs, "company code
ekorg like lfm1-ekorg, "purchase organization
ktokk like lfa1-ktokk, "account group
stras like lfa1-stras, "street
street4 like lfa1-name4, "street4
pfach like lfa1-pfach, "po box
ort01 like lfa1-ort01, "city
regio like lfa1-regio, "region
pstlz like lfa1-pstlz, "postal code
land1 like lfa1-land1, "country
telf1 like lfa1-telf1, "first telephone number
telfx like lfa1-telfx, "first fax number
stcd1 like lfa1-stcd1, "fed tax ID#
brsch like lfa1-brsch, "commodity code
akont like lfb1-akont, "reconciliation account
mindk like lfb1-mindk, "monitory indicator
zwels like lfb1-zwels, "payment method
reprf like lfb1-reprf, "check double invoice
banka like bnka-banka, "bank name
stret like bnka-stras, "house number and street
city like bnka-ort01, "city
provz like bnka-provz, "bank state
banks like lfbk-banks, "bank country
swift like bnka-swift, "swift code
bankl like lfbk-bankl, "aba#
bankn like lfbk-bankn, "bank account no
zterm like lfb1-zterm, "payment terms
terms like lfm1-zterm, "terms of payment key
end of t_sheet.
*--- Internal table for Vendor Master data in Text File.
data: begin of t_file occurs 0,
s_session type bgr00,
s_header type blf00,
s_blfa1 type blfa1,
s_blfb1 type blfb1,
s_blfbk type blfbk,
s_blfm1 type blfm1,
s_blfbk type blfbk,
s_blfb5 type blfb5,
s_blfza type blfza,
s_blfm1 type blfm1,
s_blfat type blfat,
s_bwyt1 type bwyt1,
s_bwyt3 type bwyt3,
s_blfm2 type blfm2,
s_blfei type blfei1,
s_blfbw type blfbw,
s_blflr type blflr,
end of t_file.
SELECTION SCREEN *****
*---Selection Parameters.
selection-screen begin of block b1 with frame title title1.
parameters: p_xlfile like rlgrap-filename.
parameters: p_txfile type rlgrap-filename.
selection-screen end of block b1.
INITIALIZATION *****
initialization.
*---Initialize text fields for selection-screen.
title1 = 'Selection Parameters'.
AT SELECTION-SCREEN *****
at selection-screen.
at selection-screen on p_xlfile.
perform check_file using p_xlfile.
at selection-screen on value-request for p_xlfile.
perform select_file using p_xlfile.
START-OF-SELECTION *****
start-of-selection.
clear t_sheet.
refresh t_sheet.
*---Upload Spreadsheet.
perform read_file using p_xlfile.
*---Process data into formatted internal table.
perform format_data.
append t_file.
clear t_file.
endloop.
*---Download data to Text file.
perform download_data.
TOP-OF-PAGE *****
top-of-page.
perform top_of_page.
S-U-B-R-O-U-T-I-N-E-S *****
Form TOP_OF_PAGE
Calling the Standard Report Header
form top_of_page.
perform header using 'CREATE FILE FOR'
'VENDOR MASTER UPLOAD'
132.
skip 2.
endform. "TOP_OF_PAGE
Form check_file **
Checking the File entered **
data: p_filename type string.
form check_file using p_filename.
*---The entered File must be Excel spreadsheet.
data: l_length type i,
l_ext(4) type c.
l_length = strlen( p_xlfile ).
subtract 4 from l_length.
l_ext = p_xlfile+l_length(4).
translate l_ext to upper case.
if l_ext <> '.XLS'.
message e009 with 'Only Excel spreadsheets are supported'.
endif.
*---Check if File exits and not empty.
data: l_return(10) type c.
CALL FUNCTION 'WS_QUERY'
EXPORTING
FILENAME = p_filename
QUERY = 'FL'
IMPORTING
RETURN = l_return
EXCEPTIONS
INV_QUERY = 1
NO_BATCH = 2
FRONTEND_ERROR = 3
OTHERS = 4
IF l_return = space or l_return = '0'.
message e530(pj) with p_filename.
ENDIF.
endform. "CHECK_FILE
Form select_file **
form select_file using p_filename like rlgrap-filename.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
STATIC = 'X'
MASK = ',MS Excel (.xls),.xls.'
CHANGING
FILE_NAME = p_filename
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE e838(29) with p_filename.
ENDIF.
endform. "SELECT_FILE
Form read_file **
form read_file using p_filename like rlgrap-filename.
*---Display status message for User.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
TEXT = 'Uploading Spreadsheet'
*---Upload spreadsheet.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = p_filename
I_BEGIN_COL = 1
I_BEGIN_ROW = 1
I_END_COL = 256
I_END_ROW = 65536
TABLES
INTERN = t_filedata
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF t_filedata[] is initial.
message i009 with 'NO DATA FOUND IN FILE' p_filename.
stop.
ENDIF.
sort t_filedata by row col.
endform. "READ_FILE
Form format_data **
form format_data.
data: l_index type i.
field-symbols: <fs1>.
*---Display status message for user.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
TEXT = ' Processing Data...'
loop at t_filedata.
l_index = t_filedata-col.
assign component l_index of structure t_sheet to <fs1>.
<fs1> = t_filedata-value.
at end of row.
append t_sheet.
clear t_sheet.
endat.
endloop.
refresh t_filedata.
free t_filedata.
endform. "FORMAT_DATA
Form download_data.
form download_data.
OPEN DATASET p_txfile for OUTPUT.
LOOP at t_file.
TRANSFER t_file to p_txfile.
ENDLOOP.
CLOSE DATASET p_txfile.
IF SY-SUBRC = 0.
WRITE: / 'Excel to Textfile for Vendor Master Upload: ', P_TXFILE.
ENDIF.
endform. "DOWNLOAD_DATA</b>Hi!
You don't need to program the 'translation' from a file into input data for RFBIKR00 yourself. SAP has done this, so that you can do this (nearly) without programming. If you need some special conversion rules, then you can add some coding, but most is possible without.
Have a look at transaction LSMW. It's not so complicated it looks at the first time. Just look at <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/ad/2d54a41d7011d2b42e006094b944c8/frameset.htm">help</a> for the way to use LSMW.
Regards,
Christian
P.S.: sorry for lost your efforts, but you should switch to LSMW -
Retrieving text from Vendor Master data
Hi All,
Please go through the navigation and query next to that...
Vendor Master Change/ Display(XK02/XK03) --> Provide any Vendor number already created --->
select the General Data ---> select Payment Transactions --> press enter to view the data -->
Goto Menu Extras --> select texts --> a window will pop up giving 2 rows for entering text as mentioned below.
Accounting note
Purchasing memo
We can enter the text beside the provision 1st line else we can double click any one of them so that we will enter into a window to enter the long text or anything necessary.
Now that in this concern my requirement is that i want to retrieve the text entered under the 1st line or in the window which comes after double clicking Accounting note or Purchasing memo option basing on Vendor number or any other parameter or if any table where this data gets stored.
Is there any program required to retrieve this text or any Function Module which retrieves this text or any coding avaliable please do send me as it is a very urgent requirement ....
regards
PSNGCould you please let me know, How to check through that FM as the parameters are confusing me when i went through them?
regards
PSNG -
Standard screen changes-addition of a field in vendor master table
Hi Champs,
My requirement is to add a field in LFB1 table.
I have added the field in the table using append structure, that was fine.
I need to add the same for input/output on the screen 215 of program SAPMF02K (for the screen of Payment transaction Accounting at company code level).
The screen enhancement available for vendor master is for adding a new sub screen. But I need my field to be input/output on screen 215 of program SAPMF02K (for the screen of Payment transaction Accounting at company code level).
The only option left with me was to make changes in the Standard SAP screen as there are no enhancements available to suffice my requirement.
After taking the access key, if suppose i make changes in the standard screen viz. given a dictionary refrence to the new field created on screen 215. My query is do i need to do any kind of coding in PBO or PAI of the screen.
A quick reply would be overwhelming.
Thanks
Regards,
NishantOfcouse Nishanth, u need to code in PBO and PAI event.
PAI -> To read the User input and for doing validations or some thing as per ur requirement
Hope this helps,
Shiva kankanala -
Data not Updated in Custom Screen fields-Vendor Master
Hello,
I have created a custom screen in vendor master transaction and also implemented the two BADI's below.
Business Add-In: Processing Master Data Enhancements
(CUSTOMER_ADD_DATA/VENDOR_ADD_DATA)
Passed the Custom Program and Screen No in the method GET_TAXI_SCREEN
Business Add-In: Customer Subscreens
(CUSTOMER_ADD_DATA_CS/VENDOR_ADD_DATA_CS)
activate it with the BADI Processing Master Data Enhancements with method CHECK_ADD_ON_ACTIVE.
I also created a new screen and used few fields from LFA1 (Append structure fields) such that the fields on the screen are : LFA1-ZZFIELD1 etc...
Now the issue is the screen is displayed, but the data entered on the screen is not updated on the table LFA1 or data from the table is not displayed on the custom screen.
Am i missing something?
Regards,
ShivaSolved this problem.
I built the query against InfoCube and not the characteristic itself. That's why I can't see the update.
Thanks. -
RFC to get the Vendor Master details
Hi Experts,
We have a requirement to create an RFC to get the Vendor Master details (Used for Searching the Suppliers), where the Input criteria : Vendor Name(First Name & Last Name), City, Purchase Organisation and the corresponding output is Address Data, Central Data, Bank Information, Sales Data of Customer. Is there any standard report or function module we can use for this requirement.?
Thanks & Regards
-AsimHello,
You may need to write your own RFC with the interface that you want. If all the input parameters are obligatory then you can use the following logic
Select the vendor numbers from table LFA1 based on the name and city.
Us these vendor numbers with the purchase organization from the input parameters and filter them using the table LFM1.
Now the result will be all vendor numbers with the name specified in the city for the specified purchase organization.
That may be multiple vendors so run a loop and inside the call the RFC BAPI_VENDOR_GETDETAIL and pass the vendor numbers to get the other details.
Hope this helps in solving your query.
Regards,
Sachin -
Changed reconciliation account in vendor master - Report FAGLF101
Hi
When a Recon account is changed in the Vendor Master, a report has to be run to post the adjustment entries using T-Code FAGLF101.
The query is that, the report posts the adjustment entries through an adjustment account but at the same time also reverses the effect on the first day of the next month.
Is there a way to stop this reversal. Though I do not select the reversal posting date, system is reversing the entry.
Further, why is the Recon account not posted to rectify the entries?
Regards
Abhishek KumarHi
For changing the reconciliation account in Vendor Master and customer master, please follow the following steps.
1. First change the reconaccount in the customer / vendor master
2. run the program SAPF101 for adjusting balances of old recon account to the new recon account.
Problem will be solved.
I hope it will clarify your doubts.
Regards
Madhav -
Extract Customer and Vendor master data
Hi,
Can any one tell me the standard program name in 4.6C to extract Customer and Vendor master data?
Other than SQL query, is there any possible way to extract customer and vendor master data?
Thanks,
Siva
Edited by: Siva Kumar on Nov 13, 2008 3:43 AMu can use below BAPIs for the same.
BAPI_VENDOR_GETDETAIL
BAPI_CUSTOMER_GETDETAIL2 -
Control data in VENDOR MASTER..?
hi gurus
Can can anybody explain me about the how many views are there in vendor master like (material master-28 views).
In Control data , what is the use of --- GR based IV..?
Please explain me clearly
Thanks in advance
sap-mmHi,
We can do MIRO(Invoice before GR) by deselecting the GR based IV block.
We normally use it in case of Import process where we have to clear planned delivery cost(Customs duty,transportation charges) & then do the GR.
But in domestic procurement, if we do IV without GR, we will not be able to get proper PO history.
Hope this will solve your query.
Reward if useful.
Regards,
Piyush -
hi
I have scenario with vendor master creation and maintaining purchasing , accounting and bank details ..etc
Purchasing data will be maintained by purchasing department user .
Accounts department user will maintain accounting details of vendor.
After maintaining the accounting details, he will release the vendor for usage. Then we can use the vendor for procurement purpose, we can create PO ..etc
But my requirement is , whether there is any functionallity like maintianing the accounting details should be one person and releasing the vednor should be different person.
After these approval, system should allow me to use the vendor.. even though i manitian few details it should not allow me to use the vendor untill unless vendor has been released by different person.
The above things how we can acheive in standard SAP system.
Thanks
SAP-MM
Edited by: MM group on May 10, 2011 2:16 PMhii
Thanks for all your suggestions.
But still problem exist with me ..
If i give authorization t.code wise., for eg first purchasing department has created vendor (123456) with genaral and purchasing data.
Here now the vendor is ready to use, system will allow to create PO with vendor (123456).- i should control this.
Then may be after couple of days , account dept they will update accounting data.
So, after updating the data from purchasing and accounting department, finally 3 rd person should approve this vendor (123456) for usage.
Before maintaining complete details of vendor, system should not allow to create
How this can be achieved , any possiblities in standard SAP system or how we can do it using custom program without workflow?
Hope clear about my query.. any clarification ..?
Thanks -
RFWT0010 withholding tax type and tax code change in vendor master problem
Hi
Due to some reasons I need to change the withholding tax type and tax code in vendor master.
When i am running the report RFWT010,After changing the tax type and tax code in vendor master...the list contains no items. eventhough there are 14 line items for the vendor that are required to be adjusted with new tax type.
Please suggest how to solve this query.
regards
yesap.ficoAny inputs?
-
Vendor master EMAIL field data
dear sir,
i need to have the list of all my vendor Emails which are mentioned in vendor master.we create the vendor centrally by XK01, i tried with MKVZ and LFA1 table.
but the problem is email field (SMTP_ADDR is in SZA1_D0100-structure.
can any body help me how to download the same details?Hi
You have to create SAP query to get the Vendor e-mail id.You have join two tables LFA1 and ADR6.
In LFA1, each vendor assigned with one address number LFA1-ADDNR.With reference to this address number the Data like email ID etc stored in ADR6 table.
SO you need find out ADDNR in LFA1 and use this number to get the E-mail ID of vendor from ADR6 table.To achieve this , you can write sime SAP query.
Regards
Ramakrishna
Maybe you are looking for
-
None of the dropdowns on Tools Palette work ex: Type Tool, Pen Tool, Pencil Tool,etc. I cannot get the dropdowns for any of these to appear. I've tried uninstalling and reinstalling the entire suite - reinstalling each separately - no luck. I'm sure
-
How to create PR without valuation price.
Hi Gurus, My scenario is to create a PR for spare part repair. It is without valuation price because the spare part is within the warranty term. So I only create a PR without price. T-code:ME51N Valuation price field is set into optional, Yes,it is p
-
Best way to transfer XML based data
All, I am looking for the best possible way of transferring XML based data from a server to a web based client. XML file is generated on server and its size is massive. I am looking for all possible alternatives and possibly the best way. Could it be
-
My Network Extender has lost power and I don't want to pony up $300 for a new extender considering the one I have is only a couple of years old. I spoke to a tech support agent and was told that the power adapters were out of stock and run about $30
-
Too many functions!!!
While developing a large FMS application, main.asc has become more than a bit lengthy. The bulk of the file is taken up by the custom client functions that are created anonymously under the onConnectAccept function. (ex newClient.myFunction = functio