Need FM or BAPI for Vendor Master Update
Hi Friends,
I require a FM or BAPI to update the vendor master data, if i change the name of the vendor only that change should reflect all other data should remain the same.
but ifi use VENDOR_UPDATE i have to pass all the data, other wise it will be blank.
regards
Kumar M
First of all get details of the vendor using BAPI vendor get detail and then update.
There is one bapi but this is online. BAPI_VENDOR_EDIT
Similar Messages
-
I want IDOC for Vendor master updation ( XK01 &XK02 )
Hi
I want to do LSMW in IDOC method for this vendor updation.
So I want IDOC for Vendor master updation ( XK01 & XK02 ).
I want to do both create vendor and change also.
Regards,
Ravi
Edited by: kandukuri ravi on Dec 1, 2008 2:56 PMHi,
For Vendor Master using IDoc's for LSMW,Use Message Type = CREMAS and Basic Type = CREMAS05.
For Basic type 01,02,03...05 are versions which includes more fields in basic type so better use latest version.
Hope it will help you.
Regards,
Sudhakar Reddy.A -
Hi Folks,
1.Is there any BAPI available for Vendor Master?
2.In LSMW if I am having a flat file of 4 records and I am updating only one of them which one will get uploaded? All the 4 or only the one which I had updated?
I had never worked on LSWM,so kindly let me know.
3.Do anyone here have a bdc for XK01?
K.Kiran.
Message was edited by:
Kiran KHi
Go to trxn BAPI, go by Alphabetical tab, check the BAPIs available for Vendor.
If you have 4 records in the file, all 4 will be processed (doesnt mean they will be updated, depends if you have changed any data) even if you update one in the file.
So, for a file of 4 records (with only 1 updated rrecord)
Processed records: 4
Updated records: 1
Regards,
Raj -
BAPI for Vendor Master Creation
Hi,
I've seen alot of messages regarding Vendor Master Creation but I didnt find any clear answer.
What Bapi can we use for Vendor Master Creation?
I saw the BAPI_VENDOR_CREATE (for online) but there are no parameters given.
Pls help.
Thanks!Hi Donna.
I would like to suggest my opinion,
1. Go To Transaction BAPI.
2. In the Alphabetical (Window).
3. Vendor.
4. Click the Node, Go To Create.
5. Click the Create Node.
6. Vendor and return will be seen.
7. Check the dictionary references for both Vendor Node and Return node.
8. Fields of the structures will be observed.
Hope this works out well.
Good Luck & Regards.
Harsh Dave -
BAPI for Material master update
Hello,
I need to upload and change data to the classification screen of Material master (MM01/02). I am thinking of using BAPI_CHARACT_CREATE and BAPI_CHARACT_CHANGE. Can we use BAPI_MATERIAL_SAVEDATA to upload and change characteristic data for material master(MM01/02)?
Can anybody provide me some sample code for mass upload and mass change of characteristic data to material master?
Thanks in advance
Rajesh.Hi Rajesh,
You can use standard SAP program <b>RCCLBI03</b> to do mass upload.
Please check the program documentation for more information.
Also you can take a look this BAPI/FM.
<b>BAPI_OBJCL_CREATE
BAPI_OBJCL_CHANGE
CLVF_INSERT_AUSP
CLVF_UPDATE_AUSP
CLVF_VB_INSERT_CLASSIFICATION</b>
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
Bapi for customer master update
hi everybody....
can anyone tell me the bapi structure for table KNVV and KNVI.
My requirement is to update the fields below using bapi...
KUNNR VKORG VTWEG SPART BZIRK VKBUR VKGRP KDGRP KONDA KALKS PLTYP VWERK ZTERM KNVI-TAXKD
i need just the BAPI structure for the tables KNVV and KNVI and the function module that will change the datas in the table...
Can anyone help me out....
Thnx
regdsLook at the following BAPIs :
<b>BAPI_CUSTOMER_CHANGEFROMDATA</b> alias Customer.ChangeFromData
PI_ADDRESS LIKE BAPIKNA101 Customer address to be changed
PI_SALESORG LIKE BAPIKNA102-SALESORG Sales organization
PI_DISTR_CHAN LIKE BAPIKNA102-DISTR_CHAN Distribution channel
PI_DIVISION LIKE BAPIKNA102-DIVISION Division
CUSTOMERNO LIKE BAPIKNA103-CUSTOMER Customer number of the customer to be changed
<b>BAPI_CUSTOMER_CHANGEFROMDATA1</b> alias Customer.ChangeFromData1
PI_PERSONALDATA LIKE BAPIKNA101_1 Customer personal data
PI_PERSONALDATAX LIKE BAPIKNA101_1X X Customer Personal Data Struc
PI_OPT_PERSONALDATA LIKE BAPIKNA105 Optional customer personal dat
PI_OPT_PERSONALDATAXLIKE BAPIKNA105X X Optional Customer Personal D
PI_COMPANYDATA LIKE BAPIKNA106 Customer company data
PI_COMPANYDATAX LIKE BAPIKNA106X X Customer Company Data Struct
PI_OPT_COMPANYDATA LIKE BAPIKNA105 Optional customer company data
PI_OPT_COMPANYDATAX LIKE BAPIKNA105X X Optional Customer Company Da
PI_SALESORG LIKE BAPIKNA102-SALE Sales organization
PI_DISTR_CHAN LIKE BAPIKNA102-DIST Distribution channel
PI_DIVISION LIKE BAPIKNA102-DIVI Division
CUSTOMERNO LIKE BAPIKNA103-CUST Customer Number of the Customer
Regards
PS: These BAPI are obsolete. -
Update Bapi for Vendor Master Characterstic & Classification
Dear All,
I am using the Bapi "BAPI_OBJCL_CREATE" While updating, in return parameter i got the following the message "Assignment exists and is valid" and is not update as well...
Thanks in advance..Hai
check the standard include "LCLBPAU14" this is using the following F.M
call function 'BAPI_OBJCL_CREATE'
exporting
objectkeynew = l_object
objecttablenew = l_objecttable
classnumnew = classnum_new
classtypenew = l_classtype
status = status
standardclass = standardclass
changenumber = changenumber
keydate = keydate
no_default_values = no_default_values
importing
classif_status = classif_status
tables
allocvaluesnum = allocvaluesnum
allocvalueschar = allocvalueschar
allocvaluescurr = allocvaluescurr
return = return.
Regards
Manjunath M -
Hi All,
Currently i have a requirement for the RFC where i need to create vendor. Currently iam using a BDC recording inside the RFC to create a vendor. But there are 5 account groups for my business where the vendor customizations are done. So the screen flow is getting changed. So how can i handle this scenario . There is no standard BAPI for vendor master creation. Please suggest on thisHello,
First identify what are the fields available and those not avaliable in the screens for each of the 5 account groups you use. After you identify them, in the BDC you can control whether the field should be updated or not based on the checks on account group
Vikranth -
Upload program for Vendor master Partner Data in XK02 needed info
Hello Experts,
I need to write data uplaod program for XK02 for vendor master Partner functions. ( Basically we created some custom partner functions and attach it to many existing vendors ).
So kindly advice me which is the suitable upload method for this.
1) There is no BAPI available for editing vendors.
2) BDC is not possible because the Vendor partner screen is having table control and some records are already filled. (No of row not fixed).
Is there any IDOC available or any standard input pgm?
Please give suggestion.
Thanks and rgds,
AnandFor the IDOC perspective, you can uses CREMAS.
For the mass maintenance you still have XK99 (which also uses CREMAS internally)
True there is NO BAPI
For the BDC and the table control. Well this is not really true.
In batchinput, instead of maintaining the rows by there Number, you should select it at the first position.
OK-CODE /06 will open a selection screen SAPMF02K 2324. The result of the selection screen goes to the first line of the table control.
Of course this works only in BDC
reward points if helpful
Edited by: Alain Bacchi on Jun 18, 2008 8:48 AM -
Need upload program for Vendor master partners (XK02)
Hello Experts,
I need to write data uplaod program for XK02 for vendor master Partner functions. ( Basically we created some custom partner functions and attach it to many existing vendors ).
So kindly advice me which is the suitable upload method for this.
1) There is no BAPI available for editing vendors.
2) BDC is not possible because the Vendor partner screen is having table control and some records are already filled. (No of row not fixed).
Is there any IDOC available or any standard input pgm?
Please give suggestion.
Thanks and rgds,
AnandHi,
You can use LSMW --> Vendor Master which supports bothe XK01 and XK02.
This is a standard Batch input program (RFBIKR00). Look at this program documentation for more info.
Regards
Sudhir Atluru -
BAPI for Vendor Non-PO Invoice processed through MIR7 Transaction
Hi All,
I have a requirement where i will get data from flat file. Using this data Vendor Non-PO Invoice
will be processed through MIR7 transaction with Multiple line items - Invoice Upload Parking the document for vendor non-po invoices.
The data is in below format in flat file:
Header fields in 1st line
Dr. Key related fields in 2nd line
Cr. Key related fields in 3rd line
Header fields in 4th line
Dr. Key related fields in 5th line
Cr. Key related fields in 6th line
etc .... in flat file
In these main fields coming in from flat file are: comp.code, doc.type, vendor no,
Debit/Credit indicatorSHKZG, G/L a/c no, inv/post dates etc..
My issues:
1. I am planning to use F.M BAPI_INCOMINGINVOICE_PARK is it the correct F.M!
But Here PO number seems to be mandatory for this F.M but it is not available as per our flat file,
if so can anybody suggest a BAPI for Vendor Non-PO Invoice parking for MIR7 transaction!
2. What are the parameters need to be used for from above flat file data especially for 2 line itemshttp://Dr./Cr. data other than header data. So as per Header & 2 Line items http://Dr. & Cr. Data which parameters will be updated with which data in above flat file! can anybody clarify!
3. Also in flat file WorkflowNo is available in which parameter this fields will need to be filled & also by doing this will it trigger workflow automatically!
Can anybody clarify about above points!
Thanks in advance.
Thanks,
Deep.Hello Deep,
I know it might be quite late for you for this answer, nevertheless I will write that, because there are lots of question like yours. bapi_incominginvoice_park is also a suitable bapi for you. All you need to do is call it this way:
data: headerdata like bapi_incinv_create_header value is initial,
table_item type table of bapi_incinv_create_item,
gl_account like bapi_incinv_create_gl_account,
table_gl type table of bapi_incinv_create_gl_account.
* fill headerdata and table_gl, leaving table_item empty
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
HEADERDATA = HEADERDATA
* ADDRESSDATA =
IMPORTING
INVOICEDOCNUMBER = lv_docnr
FISCALYEAR = lv_year
TABLES
ITEMDATA = table_item
* ACCOUNTINGDATA = table_acc
GLACCOUNTDATA = table_gl
* MATERIALDATA =
* TAXDATA = table_tax
* WITHTAXDATA =
* VENDORITEMSPLITDATA =
RETURN = lt_return.
This works perfectly for me, creating a mir7 document without refering to a PO. The trick here is to fulfill the glaccountingdata importing table while leaving itemdata empty. -
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 -
Solved - Group Fields for Vendor Master Records in IMG
This was the solution.
The new field's data element I added to LFB1 did not have the "change document" field checked. I made that change and now that field shows up in IMG.
Hello all,
I added an append structure to the table LFB1. This structure has 1 field. I then created a "Modification-Free Enhancement of Vendor Master Record" to add the new LFB1 field to the vendor master screen, edit and display screens. This is the 3rd time I have done this. So far so good.
Now our functional analyst went into IMG to add this new LFB1 field to a "Group Fields for Vendor Master Records" which we have done 2 other times.
The new LFB1 field does not show up in the list of possible Table-fields.
There must be some other step I am missing.
Does any of this ring a bell? We are on version 4.7.
Thanks
Bruce
p.s.
This is the IMG path for adding 'Field Groups' to vendor master fields.
Financial Accounting/
Accounts Receivable and Accounts Payable/
Vendor Accounts/
Master Data/
Preparations for Creating Vendor Master Data/
Group Fields for Vendor Master Records
Edited by: Bruce Tjosvold on Nov 21, 2008 1:18 PMHi Vandana,
There are several tables that are contain Vendor Master related data which can be used for extraction to BW. Some of the tables which can be useful for you are:
LFA1 : Vendor Master (General Section)
LFM1 : Vendor master record purchasing organization data
LFBW : Vendor master record (withholding tax types) X
WYT3 : Partner Functions
LFBK : Vendor Master (Bank Details)
LFB1: Vendor Master (Company Code)
ADRC: Addresses (Business Address Services)
ADR3: Fax Numbers (Business Address Services)
ADR6: SMTP Numbers (Business Address Services)
ADRT: Communication Data Text (Business Address Services)
You may use the Data sources mentioned in the previous update from Venky above namely :
0VENDOR_ATTR --- for master data attributes
0VENDOR_TEXTS -- For texts
Since the fields that you are using are from different tables so its better if you go for a Generic Data source where you can use the fields as per your requirement.
Thanks
Pawan
Edited by: pawan190187 on Aug 19, 2011 12:40 PM -
BAPI for Vendor invoice Park FV60
Hi All,
Do you knwo any BAPI for vendor invoice Park through FV60, I have tried
BAPI_INCOMINGINVOICE_PARK - Got struck where It is asking to pass teh PO data in Itme level, where as i have to uplaod only
GLaccounts data.
and i tryed for another BAPI_ACC_DOCUMENT_POST but is not working its not related to my requiremment it seems...
Can any one know better about the process to do this.. pleas let me know..?
Can anybody did the same, if ues please share with me... its very urgent it need it...
Thanks,use bapi: BAPI_INCOMINGINVOICE_PARK
-
PO created by means of Workflow with out Vendor master updates
Hi Friends,
I have my scenario like this. I am working with Production server. When ever a request is created, it has to be sent for Vendor master data updates. then only a PO has to be created. The problem is the PO is created and the workflow is completed with out vendor master updates. When i check through SWI6 the step is just skipped. In the graphical view the steps vendor master update i.e tru descion and other wait step types are disappeared. but in the original workflow the steps are present. can any one pls help me in solving this?
Thanks,
Archana.Hi Arghadip,
Thanks for the reply. The process is like this :
when once request is created , it will fetch the email id of the approver from LDAP
Then 2 approval steps are there. first approval is not mandatory. second is mandatory and its having terminatting event.
After this Amendment descion will be there. on rejection of this descion it has to go and update vendor master. Until the amendments the process is going on. after this vendor master update will be there . it includes wait steps to finish the update. then PO has to be created. but from vendor descion to wait event the steps are disappeared when i checked in SWI6 for that user. pls help me.
Maybe you are looking for
-
I am trying to locate an email that I deleted and assume should be in the trash. However my trash now only goes back a few days - how can I increase the number of days the trash remains accessible for.
-
I need some1 to help me on ow i will upgrade 6.1 on my palm
pls some 1 should help me on ow i will upgrade 6.1 on my palm Post relates to: Pre p100eww (Sprint)
-
How is XML supported in Oracle8i and Oracle Application Server and on any other Oracle development tools. Could you give a demo on those features that support XML. null
-
Cross-docking in WM with use of MIGO
Dear SAP experts, I'm looking for my company to install cross-docking in SAP ECC6.0 were they use MIGO to do the goods receipt. Which are the possibilities I have to active/setup cross-docking in SAP based on MIGO receipts? Many thanks for your help
-
Hello Experts, We are in an implementation project, and the scope was changed adding the HR Mini Master in order to work with some workflows. My question is how does change the user and roles administration with this new feature? Thanks in advance