How to retive Vendor code in autogenerated vendor code in bdc

Hi All,
I have written BDC for the upload of vendor master table .  The Vendor no is automatically generated . The entire data is uploaded but i am unable to retrieve the vendor No  while running the BDC session. Now how to capture vendor no through program
I have used the Get parameter but still i am unable to retrieve the vendor no.
Point  will be provided if i get the solution.

hi,
you can find the vendor number (newly created one) in message table .
call transaction 'TCODE' message into it_msg..."check the syntax.
look for success message.
loop at it_msg where msgtyp = 'S'.
"look for success you can find
endloop.

Similar Messages

  • How to change VENDOR payment transactions in T-code XK02

    when I use BDC code to change vendor payment transaciton in XK02.
    There is a problem.
    AT the payent transaction view,bank details at the control table,When i want to change it ,i use cursor to decide which line change. But at the run time,it may be wrong. The fact,i want to change the second line bank data,but at my code,it change the
    first one line.
    SO, have FUNCTION MODULE to change it or how to avoid my problem?

    HI,
              This  function is update module ,  I  am not sure  that  I can correct use it .  I  solved the problem with BDC programm.
              Thank you all the same.

  • How to transfer gl, vendor, customer balances from 1com code to 2 com code

    Hi sap guru's,
           Regarding one issue, please give me the solution it's urgent,
    My problem is My client will  having  11 com codes. out of those one company code is merge with another company code. so how to transfer all balances from one company code to another company code.
    is there any effect will haapen once balance upload. ie adjustments
    Thanks & regards,
    Maruthi.

    You create one account grp Uplaod accounts.In which you create 5 GL masters with follwing data
    Tax Catergory :*
    Line Item Display : Yes
    Open Item Display : Yes
    Sort: 0001(Gl), 012(Vend),031(Cust)018(Asst) etc
    FSG: g001
    Under that grp you need to create all 5 accounts . All are balancesheet Accounts
    GL Balance Upload Ac
    Customer Balance Upload Ac
    Vendor Master Uplaod Ac
    Asset Master Upload Ac
    Material Upload Ac
    You should take the trail balance of the company and chose all gl accounts with balances
    use LSMW uplaod GL balance upload f-02
    Example : Salareis Acc - 5000 Dr Balance
    Then entery will be
    Salaries Ac----
    Dr 5000
    To GL Uplaod Ac 5000
    Example : Rent Ac-2000 Cr Balance Ac
    Then the GL entry will be
    GL upload Ac----
    DR 2000
    TO Rent Ac 2000
    Example for Vendor upload Account F-43
    Vendor Cr Balnce- 5000 and client want ot upload line item wise
    ex line items are: 1000,2000,3000
    Vendor Upload Ac----
    Dr 50000
    To Vendor Ac 1000
    To Vendor Ac 2000
    To Vendor Ac 3000
    Same with the case of Customer F-22,
    Assets : For assets you need to use AS91 which will create asset master data and upload
    chandra

  • How do I generate a report (Active Vendors -- Vendor Code)?

    Dear SAP Friends,
    May I ask how do I generate a report showing all active vendors with their corresponing vendor code in SAP?
    Thank you very much in advance,
    Albert

    Thanks very much Johannes! I can now generate the report.
    Regards,
    Albert

  • Manage vendor bank account in company code level - Best practice

    hi,
    we have on our client several company codes, and we are thinking how to manage the vendor bank accounts in company codes level or in centeral level.
    our problem with company codes level is that the vendor bank accounts define in a centeral level so technically with sap standard it is not possible. if anyone can tell me that this is possible i will be very happy to know.
    in centeral level our problem is with the business process because of we do not have a person (functionalism ) that can be responsible for all the company codes, basically every company shoule be responsible for her vendors
    please advice what is the best practice to manage vendor bank accounts in enviroment of several company code
    regards,
    meir

    hi Raghu,
    i know that but this is not my qusition.
    which company code will be responsible to enter the bank account in the vendor master data? as i say the vendor bank accounts manage in centeral level and not in company code level and this is our problem and i like to know how other companies with the same situation handle with this issue
    and also after we have the bank accounts in the vendor master data what happend if for one vendor has several bank accounts one for every company code? how the payment program F110 could know automaticaly which bank account to take (i know that there is an optoin to use Partner bank type in the vendor master data, and enter this PBT when posting the invoice of the vednor, but this is not good because of we do not want the the accountant will be responsible from which bank the vendor get his money).
    regards,
    meir

  • How to unblock the payment to the vendor , even though the lot will be get

    Hi,
    we receive the material from vendor . when store people unloaded, it was get broken.
    so quality will reject the lot for the reason. but if we reject vendor will not get the payment
    since this is not the vendor mistake. he expect for the payment.
    how to unblock the payment to the vendor , even though the lot will be get reject .

    Hi
    Can you not make UD code as Partially accepted.
    Put OK material in Unrestricted
    For NOT oK material put into block stock.
    From Block stock you can move to QRNT (Quarantine storage Location - 311 mvt type) or directly move to Unrestricted(mvt type 343)
    Form here you can move material to Scrap by 551
    This will give payment to vendor & Qty can be scrapped.

  • Open items of all company codes displaying in vendor or customer payment

    Hi
    I am doing the open item posting for vendors with F-53, But it is showing all the open items of the Extended  vendor in the other company codes. I want to only display one company code open items.
    Please suggest me how to remove that option.
    I am now using the selection criteria for that.
    Thanks

    Hi Vikram,
    For your requirement i am giving the solution as below.
    In F-53 select process open item button, once you filled the fields
    then all line item will appear.There you should select overview button there,then select choose process open item button. now you can give the company code in that screen which one you want.
    next select process open items
    May be this information is useful to you
    Regards
    Surya

  • Vendor Data for different company codes/purchase organization

    Hi,
    In Fax massages of POs the fax number is taken automatically from the filed ADRC-FAX_NUMBER.
    We have 2 different companies and each has their own contact number and fax for the same vendor.
    How can I differentiate the numbers to each company code or purchase organization?
    Where can I maintain different fax and telephone numbers for a single vendor, that can be used in the printing of POs?
    Thanks
    Shachar

    Hello,
    If your intention is to use the same vendor code for different company codes, create a new OA partner with the 2nd fax number. You can default the OA partner in the contract.
    Hope this helps,
    Cheers!

  • How to get table having successfully created Vendor's Iban number.

    Hi All,
    Iam creating vendor using Maintain_Bapi of class VMD_EI_API. While creating bank deatils for some reason bank iban is not populating (when im checking it in XK03) apart from that other bank details are populating.  So, how can i check after vendor creation that particular vendor ' s IBAN is created or not.
    iam getting input values for vendor bank details i.e IBAN, Bank country key,Bank Key and Bank account from user.
    Is ther any function or bapi to check whther Iban is successfully created or not.
    Or what is the table storing IBAN for a successfully created/populating vendor.

    Hi Bohuslav,
    I check wid everything , the value of IBAN is not coming in  VMDS_EI_MAIN-VENDORS (imporing parameter ). Its blank whether value  IBAN created or not.Apart from IBAN all other bank details like bank country & bank key are fetched.
    Also i think its fetching value from vendor table i.e LFA1. Since this table doesnt have IBAN field so its not showing.Kindly suggest any table from where i could get successfully populated IBAN value for a generated vendor. IS ther ne valid link between TIBAN(general table for IBAN)
    and LfA1.
    Below is code snippet for Get_data method i used.
    * Call the Method for creation of Vendor.
    CALL
    METHOD
    vmd_ei_api=>maintain_bapi
    EXPORTING
    is_master_data = gs_vmds_extern
    IMPORTING
    es_master_data_correct = gs_vmds_succ
    es_message_correct = gs_succ_messages
    es_master_data_defective = gs_vmds_error
    es_message_defective = gs_err_messages.
    IF
    gs_err_messages-is_error IS
    INITIAL
    COMMIT
    WORK
    CLEAR
    : gs_vmds_extern ,ls_vendors,lt_vendors[].
    ls_vendors-header
    -object_instance-lifnr = gv_lifnr.
    ls_vendors-header
    -object_task = 'M'
    APPEND
    ls_vendors TO
    lt_vendors.
    gs_vmds_extern-vendors = lt_vendors[].
    DATA
    : vmds_ei_main TYPE
    vmds_ei_main,
    cvis_message TYPE
    cvis_message,
    ls_lifnr TYPE
    lfa1,
    ls_bank TYPE
    cvis_ei_bankdetail,
    lv_iban TYPE
    iban.
    * *** Bank details***************************************
    DATA
    : lt_bankdetails TYPE
    TABLE
    OF
    cvis_ei_cvi_bankdetail,
    ls_bankdetails TYPE
    cvis_ei_cvi_bankdetail.
    CALL
    METHOD
    vmd_ei_api_extract=>get_data
    EXPORTING
    is_master_data = gs_vmds_extern
    IMPORTING
    es_master_data = vmds_ei_main
    es_error = cvis_message.
    CLEAR
    ls_vendors. REFRESH
    lt_vendors.
    lt_vendors = vmds_ei_main-vendors.
    READ
    TABLE
    lt_vendors INTO
    ls_vendors INDEX
    1
    IF
    sy-subrc = 0
    ls_lifnr-lifnr = ls_vendors-header
    -object_instance-lifnr. "Fetch vendor number.
    lt_bankdetails = ls_vendors-central_data-bankdetail-bankdetails.
    READ
    TABLE
    lt_bankdetails INTO
    ls_bankdetails INDEX
    1
    IF
    sy-subrc = 0
    lv_iban = ls_bankdetails-data
    -iban.
    ENDIF
    ENDIF

  • No State Code for the vendor

    Hi Everyone
    We have a vendor located in Bermuda and has no state code. This state code is not set-up as required field for vendor master but we need to have this information for our check processing file sent to the bank for payments. Can someone please guide me as to how should I add this missing information to the vendor master so that the file gets processed?
    I appreciate your help.

    Hi
    I checked in the country settings and Bermuda is there. But when I go to insert region and to New entries, I can insert the country BM but there is no region code for Bermuda. The state code HM TX is not working here as it only allows for 2 alphabets. May be we can ask the bank itself what shall be the input here as Region for the check to reach safely. Please advise.
    I appreciate your help.

  • How to make the Region Fild in Vendor Master as a Mandatory?

    HI All,
    can anyonde guide me about:
    How to make the filed: "Region" in Vendor Master a Mandatory while entering the Data.
    PL.help.
    Thanks,
    Roopan.

    Hi
    Go to T-code OBD3.
    Check with account group you use for the vendor.
    Double click on the account group.
    Double click on the general data and on then on the address group. You can maintain region here as Mandatory.
    Reward if this helps
    Thanks

  • How do i do mass maintenance on vendors.

    Lets say i have a number of vendors created under 1 company code and 1 pruchasing organization,how can i go about changing these vendors to a new company code and new purchasing organization?

    Hello, John.
    I see many problems with what you are trying to do. First and foremost: you cannot "change" vendors to a new company code and/or new purchasing org. Table LFB1 contains the Company Code data for vendors and LFM1 contains Purchasing Org data for vendors. The Company Code field (BUKRS) is part of the key to LFB1, and the Purchasing Org field is part of the key to LFM1.
    So, you can extend an existing Vendor to a new Company Code (in effect, adding a new record in table LFB1) or to a new Purchasing Org (in effect, adding a new record in table LFM1), but you cannot change an existing record in LFB1 to point to a new Company Code, or an existing record in LFM1 to point to a new Purchasing Org.
    If you want to extend existing Vendor Master Records to new Company Codes and/or new Purchasing Orgs, you might consider having a look at transaction MASS (Mass Maintenance of Master Records), I believe there is a Mass Maintenance Object for Vendors. Although, I don't recall whether this object will allow you to create new records.
    The second issue that I see has to do with the existing documents for your Vendor. Indeed, if, what you have in mind is to "re-assign" an existing Vendor to a new Company Code or Purchasing Org, the process is quite involved, if the Vendor has postings (Financial AP documents, or MM Purchase Orders, for example) already recorded against it. In that case, you would have to:
    - Flag the existing Vendor Master Company Code and/or Purchasing Org records for deletion. This will prevent new postings being made against that Vendor in that Company Code and/or Purchasing Org (or at least, users would receive warnings when trying to post against the "old" Company Code or Purchasing Org);
    - Define your Vendor in the new Company Code/Purchasing Org;
    - You may also need to transfer the AP Account balance from the old Company Code to the new one, as well as the open items for the Vendor (there you would need to be careful about the "double counting" effect, as your open items will already have been taken into account in the Account Balance). You also need to consider what to do with the open Purchasing Documents (Purchase Orders, Contracts, Purchase Reqs,...), define what other master records to recreate in the new Purchasing Org (Purchasing Info-records, Condition Records, Output records,...);
    - Finally, you need to take into consideration the archiving for your Vendor, so that the record for the old Company Code and/or Purchasing Org gets deleted from your system, ultimately.
    Even if your Vendor does not have any postings yet recorded in FI (Company Code) and MM (Purchasing Org), the only safe and standard way to get rid of the "unwanted" Company Code and Purchasing Orgs records for that vendor is through archiving (transaction SARA).
    In short, your requirement, as described in your question, simply cannot be achieved in SAP without seriously jeopardising the integrity of the existing postings (in FI and MM).

  • Vendor not defined in company code

    Hi,
    I have problem, one of vendor not defined in company code.
    I already check table LFB1, no entry found in that table.
    Please advice how to solve this issue.
    Thanks
    Moderator: Please, avoid asking basic questions

    hi,
    if it is not created you can create it by fk01,
    regards,
    raj
    Edited by: subramanyan1985 on Dec 14, 2010 10:19 AM

  • How to create serviice no and also vendor

    sir,
    for external services,
    1. how to create serviice no and also vendor
    2. hot to create service contract
    3. rate contract
    pls explain with details and t  codes step by step
    we need to use the service no for orders
    sai meghna

    hi
    1. sevice number you have to use AC03 transaction and click on create button
    select the service category
    enter the description of service
    enter the valuation class and Base UOM.
    and save
    2. Vendor you have to create using XK01 and select the vendor group and enter the required details for address/payment transaction etc and save.
    service contract we can use MK31 there are two types value and qty based contracts.

  • How to ship back subcontracting materials from vendors to company .

    Hi
    Our client is delivering subcontracting materials  to vendors  using  ME2O transaction .
    She is asking me how can I  ship back materials  from vendors to company .
    Example :
    Shipped 236.C from  company  to vendor .
    Now we need to ship back 236.K from vendor  to  company .
    Could you  brief  me T codes to be used and entire process in step by step .
    Thanks In Advance

    hi jaya
    check whether these points will help you
    Item category: L
    Order type: NB
    In info record vendor should be maintained as subcontractor.
    Vendor (Subcontractor) receives the components used to manufacture a finished product directly from your company or through third party.
    Your company should place a purchase order for the finished product.   In this manually you can enter the required individual components or it can be determined via the explosion of BOM (if exists).
    Stock check at vendor level: ME2O
    Company stock check: MMBE
    GR for individual components through movement type: 501 or 561 (if with out PO or without reference).
    GI to subcontracting vendor: through movement type 541.
    GR from sub contracting vendor: through movement type: 101
    Movement type 543 is displayed to cancel the material cost account.
    If the subcontracting order has to be generated through materials planning,the special procurement key has to be set in MRP 2 screen.
    regards
    harish

Maybe you are looking for