Upload the vendor master ( create,chage)

hi sap gurus
I want to upload the vendor bank details i.e LFBK table.
and want to update bank deatails for existing vendors.
what is the best way to do it.

Hi Brahmaiah,
Please see the below code and earlier i was used partial code.
report ztest_ytt.
data wa_lfa1 like lfa1.
data wa_lfb1 like lfb1.
data wa_lfm1 like lfm1.
data i_lfbk like FLFBK occurs 0 with header line.
data : T_XLFAS like  FLFAS occurs 0 with header line,
       T_XLFB5 like  FLFB5 occurs 0 with header line,
       T_XLFZA like  FLFZA occurs 0 with header line,
       T_YLFAS like  FLFAS occurs 0 with header line,
       T_YLFB5 like  FLFB5 occurs 0 with header line,
       T_YLFBK like  FLFBK occurs 0 with header line,
       T_YLFZA like  FLFZA occurs 0 with header line.
parameters : p_lifnr like lfa1-lifnr obligatory,
             p_bukrs like lfb1-bukrs obligatory.
start-of-selection.
  wa_lfa1-lifnr = p_lifnr.
  wa_lfb1-lifnr = p_lifnr.
  wa_lfb1-bukrs = p_bukrs.
  i_lfbk-lifnr = p_lifnr.
  i_lfbk-BANKL = '011000390'.
  i_lfbk-BANKN = '2356865'.
  i_lfbk-banks = 'US'.
  i_lfbk-KOINH = ' Seshu1'. " I am just modifing text here
  i_lfbk-KZ = 'U'. " U means Update,I - Inserting new record
  append i_lfbk.
  CALL FUNCTION 'VENDOR_UPDATE'
       EXPORTING
            I_LFA1  = wa_lfa1
            I_LFB1  = wa_lfb1
            I_LFM1  = wa_lfm1
            I_YLFA1 = wa_lfa1
            I_YLFB1 = wa_lfb1
            I_YLFM1 = wa_lfm1
       TABLES
            T_XLFAS = T_XLFAS
            T_XLFB5 = T_XLFB5
            T_XLFBK = i_lfbk
            T_XLFZA = T_XLFZA
            T_YLFAS = T_YLFAS
            T_YLFB5 = T_YLFB5
            T_YLFBK = T_YLFBK
            T_YLFZA = T_YLFZA.
  commit work.
Here all tables and export parameters are mandatory ,you should use LFA1 and LFb1 Mandatory.
i_lfbk-lifnr ,i_lfbk-BANKL, i_lfbk-BANKN, i_lfbk-banks - These are Primary key fields in LFBK Table,so while updating you should use these fields
otherwise you get same error.
please pass values to LFB1 ( like vendor number ,Company code)
Hope you got it and i have tested and it works great
Thanks
Seshu

Similar Messages

  • *Journal Entries while uploading the vendor master data from legacy system*

    hi SAP Folks,
    can any one of you tell me the journal entries while uploading the vendor master data from legacy system to SAP system.
    Eg: legacy system is having 10000 vendors list, 1 reconciliation account and $ 1000000. while uploading all these data from legacy system to SAP what are the journal entries we get.
    thanks in advance.
    Edited by: ravindranath manikonda on Nov 24, 2008 1:12 PM

    Hi
    you will be having  only one entry logically
    i.e. Opening Bal. clrng A/c Dr.
           To Vendor A/c Cr.
    regards

  • Vendor Master created date report

    Can I know the vendor master created date & time in SAP, which std report is giving this information.
    please help
    Thanx in advance
    srihari

    >
    Ediga Srihari wrote:
    > Can I know the vendor master created date & time in SAP, which std report is giving this information.
    > please help
    > Thanx in advance
    >
    > srihari
    Check report S_ALR_87012086...you can also get the information in LFA1 table
    Regards,
    Indranil

  • Partner Role not coming when creating the Vendor Master

    Hi all
    There is a standrd role AZ.
    There is a standrd Partner Determination procedure  L1.
    The role AZ is assigned to the Partner Determination procedure  L1.
    When creating the vendor master in MK01 the role is not coming in the list of partner function.
    For Document types there is a standard shema 0002.
    The role AZ has also been assigned to doc type.
    What can be the reason.
    Is the assignment against doc type at all required.
    Please suggest.
    Regards

    The procedure for setting partner functions:
    Step 1
    Vendor Account Group
    IMG->LOGISTICS GENERAL->BUSINESS PARTNER->VENDOR->CONTROL ->DEFINE
    ACCOUNT GROUPS AND FIELD SELECTION
    Step 2
    Defining Partner  Schemas
    IMG->MATERIALS MANAGEMENT->PURCHASING->PARTNER -> DETERMINATION -
    >PARNER SETTINGS IN VENDOR MASTER RECORD
    ->DEFINE PARTNER SCHEMAS
    Step 3
    Assign Partner Schema
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION->PARTNER 
    SETTINGS IN VENDOR MASTER RECORD->DEFINE PARTNER SCHEMA
    „«  THEN ASSIGN PARTNER SCHEMA
    Step 4
    Define  Permissible Partner Role Per Account Group
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION -
    >PARTNER ROLES ->DEFINE PERMISSION PARTNER ROLES
    If you want a partner schema for your own document type then define your partner schema and assign to document type using the below mentioned path.
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER ->DETERMINATION -
    >PARTNER SETTINGS IN PURCHASING DOCUMENTS ->DEFINE PERMISSION 
    PARTNER SCHEMAS
    And then
    ASSIGN PARTNER SCHEMAS TO DOCUMENT TYPE
    Once you have this configuration then you change your vendor in easy access menu (XK02-select partner function) define the partner roles.

  • Creation of Business partner by using the vendor master

    Dear all ,
    I have a requirement as follows. I  Have already vendor master created  in MM .Now the requirement is  while creating Business partner I have to use this vendor as the business partner .
    Can experts suggest the possibility of this .
    Regards.
    Arjun.

    Hello Arjun,
    Yes, this feature also works in 4.7. What has happened is that in ECC 6.0 the BP functinality has been totally redefined with a lot of automations. As such, if properly configured then in ECC 6.0 there is no practical use of the FLBPD/FLBPC Tcodes. However, in 4.7, both these traqnsactions should be working fine. The SAP ntes that I have mentioned are however only for ECC 6.0.
    Kind regards,
    Suvarghya Dutta
    Edited by: Suvarghya Dutta on Nov 27, 2008 4:02 PM

  • Unable to replicate the Vendor Master Records

    Hi I am using the transaction BBPGETVD to transfer the Vendor Master Records from R/3 ro SRM...but could not able to transfer it as I am getting an error "Organizational unit -
    does not exist; check entries", even through I have created Organisation Structure for Vendor also. I have maintained all the relavent parameters in the Attributes.
    The following attributes I have maintained: System Alias for Accounting Systems, Company Code, Local Currency, Current ITS for an External Partner, Accounting System for Vendor, System Alias for Vendor.
    Can any one tell me is there any other parameters to be maintained or where I am going wrong.
    I am working on SRM5.0.
    Thanks and Regards
    PKM

    Hi
    Please go through these links.
    Re: vendor not intended for a puchasing org
    Re: Vendor replication
    Re: Not able to replicate Vendor from R/3
    Re: What are the steps to me followed to get the vendors from R/3 to SUS
    Re: Vendor replication Error. SAP R/3 to EBP system
    Re: vendor replication
    Re: Vendor replication
    Replication of verdor records
    Regards
    - Atul

  • Error While Uploading the Vendors Data

    Hi Friends,
    iam uploading the vendors information. In the XL-Sheet there are 5 Records are there.the first two records are correct.but iam getting the following message for the frist two records.iam using the call transaction method.
    No memory is available for the CUA interface
    what is the error i am not able to get it.
    some times if i upload the same record with same report, i will get the following message that,
    vendor 1235 has created for the company code 1000
    why it so?

    Hi,
    1) No memory is available for the CUA interface
      Check With basis team
    2) vendor 1235 has created for the company code 1000
        Means vendor 1235 is creatred for this company.
    Regards
    Md.MaahboobKhan

  • Email upload in vendor master change

    Hi all,
    I have to do emails upload in vendor master change but when i do through shdb recording i am not able to see the communication screen to enter the values. Can any one of you please guide me step by step.
    Thanks & regards,
    Kumar

    Hi,
    you have to use table BAPICOMREM. Just go to one testing customer and add email address with note to this customer. Then go to SE37 and call BAPI BAPI_ADDRESSORG_GETDETAIL. This BAPI has same structure as BAPI_ADDRESSORG_CHANGE. Hence you will see how you have to fill all structures to change email address and also note.
    Cheers

  • 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
    -Asim

    Hello,
    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

  • I am unable to upload the customer master data using BAPI.?

    Hi Guru's,
    i am unable to upload the customer master data using BAPI.(BAPI_CUSTOMER_CREATEFROMDATA1)
    Please guide me how upload the data...
    Thanks in iadvance
    Srinivas...

    Hello Srinivas
    This BAPI does not allow to create a new customer from scratch but only to copy an existing customer to a new one and change its address data.
    The reference customer has to be provided using IMPORTING parameter PI_COPYREFERENCE. See also the BAPI documentation for more details.
    The BAPI does the same like transaction XD01 with Reference.
    Regards
      Uwe

  • Mass update of email in the vendor master record

    Hello to you all,
    Does anyone know how can I run mass update of email in the vendor master record for a big No. of entities?
    XK99 won't help since you can't find the email,
    Batch input recording won't help as well since the email can't be found.
    I will appreciate your help,
    Amir

    Hello Amir,
    You can use LSMW for update operation. You should create a batch input recording for transaction FK02. But you must tick "Use central address management" checkbox on FK02 screen while recording batch input. After that you will see E-mail field on screen.
    Regards,
    Burak

  • New to ABAP -- Need help with any BAPI to update the vendor master record

    I have a requirement to update the vendor master record ( ie purchasing block data inlfa1 and lfm1 table )directly. i have created the report but my problem is i am updating tables directly by using modify which is not correct according to SAP hence i want to use bapi whereby i can change the fields of the table. does anyone know any bapi which can modify the lfa1-sprem field and lfm1-sperm field. Plz hep me. They have specifically asked me to do it using BAPI's.

    MAP2e_lfa1_to_bapivendor_04
    MAP2e_lfa1_to_bapivendor_05
    will be helpful

  • How to upload the vendor balences

    hi ,
          how will upload the vendor balances, my client going to non sap to sap,pls give the details and will upload on amount item wise or clear item wise or vendor wise .
        pls give full producere.

    First you need to check that Balances are uploaded as Opening Balances or not ?
    IF you want as a Opening then create a new Gl code and new Document Type for Openiing Balnces and configure New GL code to Document Type.
    If you want to upload as a transaction then no need to create a separate GL Code.
    You can Create BDC or LSMW for Transaction F-02 and upload the data.

  • LEGAL STATUS field in the Vendor Master

    Hi,
    We want to mainatin the following in the Vendor Master:
    LEGAL STATUS: * Individual Partnership Pvt Ltd Ltd./Govt SSI, NON-SSI.
    Which field should we choose for the same?
    Regards,

    Thanks a lot for the help.
    Now please tell me in which table / field the data is getting stored so that I create the Z-report as requested by the User.
    Is there any Standard report thru which I can the view the vendor record based on the Status defined by us.
    Using Vendor Search "Vendor By Class" I am able to see the record.
    Thanks a lot to u again.
    Regards,
    Edited by: PK on Jun 5, 2009 11:36 AM
    Edited by: PK on Jun 5, 2009 11:38 AM

  • Sustainability in the Vendor Master

    There is much discussion about [sustainability|http://www.sdn.sap.com/irj/bpx/sustainability] in the BPX community and in other sources.  Much of the discussion is about initiatives SAP has taken as a company to become more "Green" or white papers about the topics of CSR and sustainability.
    I've got a much more concrete question.  In the vendor master (ECC6.0) what fields are available to help classify or document sustainability indicators of vendors?  How would you begin to go about creating an evaluative record of practice or performance?  GRI provides a [reporting framework G3|http://www.globalreporting.org/ReportingFramework/ReportingFrameworkDownloads/] and standards for reporting but, where in the vendor master can some of the indicator profiles be recorded?

    Hi
    Sustainability is possible in SAP (vendor master) if you implement GRC module. This module has control all over modules when it comes to Sustainability.
    regards
    Antony

Maybe you are looking for

  • ZEN for Servers 7 agent on the NW 6.5 sp7

    I've tried on couple of servers and it's definitely the problem in running ZEN for Servers 7 agent on the newest NW 6.5 support pack 7 because it causes high processor utilization after 4-5 days of server up-time. Than, you cannot stop the agent with

  • Know about ant-sca-deploy.xml

    Hi All, Can you please explain me the ant-sca-deploy.xml works, whcih parameters has to be passed ? for deployment

  • Purchase Order Integration Model Activation Error "Source Invalid"

    Hi Experts, When I try to activate Purchase Order CIF integration model for a specific plant, I am getting an error "SOURCE_INVALID" r                                    XC           014 When I checked failed LUW, found one product which is Subcontra

  • Keyframes not showing up in Premiere Pro

    Hello, Just recently, when I have been opening up my PP, the keyframe lines on my clips have not been showing up, like so: unlike the rest of the time when I have the lines to animate a keyframe: The line through my video is missing, so I'm not able

  • Correctly numbering chapter points

    How do I get chapters to be numbered automatically on a chapter menu with several pages? When I create the chapter menus they will number correctly for the first page only but on the next menu page they start again at chapter 1. Any help appreciated.