Vendor Master Creation through IDoc with Multiple Company Codes

I am trying to create vendor masters sent from a 3rd party into SAP using CREMAS05 IDoc.  I have the requirement that the vendor should be created in each of 3 company codes and the vendor number is internally assigned in SAP.
I create my IDoc with the general data E1LFA1M and multiple E1LFB1M & E1LFB5M Children.  When I post the IDoc using IDOC_INPUT_CREMAS which uses Call Transaction, the vendor gets created for the first company code, but the IDoc errors on the vendor extension XK01 for the next company code with the error: "Fill all required fields SAPMF02K 0111 ADDR1_DATA-NAME1". 
In debugging through this, it appears that the vendor number that gets created in the first XK01 transaction does not get passed into the data for the second XK01 call and SAP tries to create a new vendor instead of extending the newly created one.
If I force the value in during debug after the initial call transaction into the variable h_lifnr, it works fine (Vendor created with multiple company codes.
Any help would be greatly appreciated.
-Larry

I cannot give you exact solution, but can guess why this is happening, below is what I believe.
I think Synchronous update is not happening in call transaction, second transaction is getting processed before the first one is saved, debugging it works fine, because we give system enough time to save while processing.
Generally in call transaction we have MODE, if we pass S - then synchronous update happens, in your case, you need to find the way to incorporate this.
Hope it helps.
Regards,
Ravi Kishore.

Similar Messages

  • Vendor master data - Single material with multiple price

    Hi Gurus,
    Per our set-up, we have 1 purchasing organization to handle the central procurement function for purchases to various countries/destination.  As such, whenever we seek for quotation from a single vendor, the vendor will provide their price for a single/same material, e.g. ABC, with various price by locations. for example:
    1. Material: ABC
    - Price: $83 (EXW)
    - Price: $85 (FOB, Tianjin)
    - Price: $100 (CFR Port Klang)
    - Price: $120 (CFR Mumbai)
    - Price: $160 (CFR Jabel Ali)
    Is there a way I can use any of the vendor master records (e.g. outline agreement / info records) to capture a single material having multiple price?  At the same time, this infomation is available during our PO creation (e.g. via ME57).
    Thanks in advance.

    Dear
    For Condition Type PB00, SAP has some standard requirements in Pricing Schema.For one material different location one requirement is there.But as per your requirements you need to put logic through ABAP and it will definetely work.The exact requiremnt i'm not remembering.
    Just go through all the requiremnt and respect to PB00, put the requiremnt and put the logic.
    Revert me for the result.
    Thanks & Regards
    PKB

  • ERROR IN CUSTOMER MASTER CREATION -THROUGH IDOC.

    We are facing issue while creating customer through idoc. System is giving error "No batch input data for screen SAPLID_TAXNUM 1000 "
    On analyzing this error - we are able to find out that someone has enabled some duplicity check or message control on filed of tax number 1.In this filed we are storing some other legacy information which is not unique to each customer so system is poping up some screen which shows that this information already exist for other customers . Due to this customers are not getting created.
    We have checked the message control  setting bur there was no such message control.
    Now we are not able to figure it that who has done this change and how. Further how this can be resolved.
    Pls help.
    Rgds,
    Sudhanshu Dang

    Hai Jobi Thottungal,
    Since you can create a Customer with Account type 001, please check what is the PARTNER TYPE assigned.
    Now, GO TO
    IMG Sales and DistributionMaster DataBusiness PartnersCustomersCustomer Hierarchy
    Set Up Partner Determination for Customer Master
    Partner Determination Procedure Assignment
    Assign the Partner procedure to your Account group
    So at the time of creation of Customer master with your Account group, the partner function will get created automatically.
    Regards,
    Mani

  • One report, One Source System with multiple Company Codes -- Authorization

    Hello Guys
    We have 2 DEV source systems for our BI implementation right now. one for US (CCode - 406) an one UK(CCode - 301).
    We have already completed the implementation for UK with 38 reports.
    we are right now moving the US implementation.
    when we move to QAS we are going to have one Source system with both US and UK data.
    so when we move to QAS, the US clients wants to view the reports developed in UK implementation with their own data.
    How can we do that. since some reports doesn't have company code to restrict the data to respective users.
    Thanks and Kind regards,
    shekar.

    Hi
    First make the company code authorization relevant in infoobject BEx explore tab
    If your in BI7 , you have analysis authorization concept
    http://help.sap.com/saphelp_nw70/helpdata/en/66/019441b8972e7be10000000a1550b0/frameset.htm
    Regards
    N Ganesh

  • Issues with Multiple Company Codes

    Our organization consists of 42 legal entities which all have their own company code in SAP and their own organizational structure.  An example of how our jobs and positions are set up in SAP is provided below.
    Job:  Production Supervisor
    Position:  0140 Production Supervisor (includes company code before position)
    We may have 200 Production Supervisors company wide each with their own position number but they are tied to only one job number for Production Supervisor.
    We are considering changing how the jobs and positions are set up in SAP so that instead of Production Supervisor the job would be Supervisor III and the position would remain the same.  However, there may be other supervisor positions that will also be included in the Supervisor III job.  We are afraid this may cause issues in the future if we implement other areas of the HCM module including compensation management, succession planning, MSS and ESS.  Could we create a reporting structure seperate from the org structure so that executives at the corporate office would have access to information on all employees in their area of expertise company wide?  Any suggestions you have would be greatly appreciated.

    Hi,
    You can use the task object.
    Or check out the Qualification Management.
    Regards,
    Dilek

  • Problem for creation of PO for different company code

    I have problem for creation of PO using ME21 for different company code.Order is not created.
    Please give reply it is urgent.

    Hi Mansih,
    I don´t understand what is your exact problem, as I don´t see any company code being specified. But maybe you should check in XK03 that the vendor master data is created for this company code/purchasing organisation!
    Have a nice day!

  • Vendor Master with Multiple Bank account in Multiple Company Codes

    Dear Team,
    We have multiple companies in our SAP environment, wherein a single vendor is extended to multiple Company Codes  (Cocds).  If we change the bank account in the vendor master, it is applicable to all the Cocds in which vendor is extended.  Few vendors want payment in different bank accounts.
    How do we address this issue?
    Kindly guide.
    Regards
    James

    Hi,
    Two options without any enhancement:-
    1. Use "Partner Bank Type" in Vendor Master's Payment Transaction View where you maintain vendor bank account. Each of the bank account should be assigned to unique Partner Bank Type
    - Based on this setup, at time of invoice posting, user could choose which vendor bank type  and base on the selection, the selected bank will be selected upon payment.
    - You could also explore the option of using substitution to substitute the partner bank type upon posting if the same cocd always using the same vendor bank
    2. A much simpler option, upon payment proposal - user actually could select which vendor bank they wanted to use if you've multiple vendor in the vendor master.
    Thanks,
    Ong Yang

  • How to upload multiple company codes data for single vendor by LSMW Idoc

    Hi ,
    My requ is like this.
    uploading data by LSMW Idoc method
    In source file we have two company codes data for single vendor.
    It should create vendor for two company codes.
    But its not creating its showing error.
    How to handle this?
    Thanks in Advance.

    have you ever see this docu:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/1a/178ac72d3011d3bc3500105a6588b2/content.htm
    You can use the recording function to create a new object (or a new "import method") if neither a standard batch input program nor a standard direct input program nor the BAPI/IDoc method is available for a data object.
    Recordings are static, thats why you cannot do such flexible things like  multiple company codes at the same time.
    But with IDOC method it is certainly possible, I have done it several times already.
    Unfortunatly the creator of this thread did not say what error he got with the IDOC method. Maybe he will add this. Otherwise I dont think that anybody can help

  • Vendor master data with the company code

    Hi Friends,
       There is a requirement to pull out all the vendor master records with the company code.  I didnt find any standard report how can i pull the  same plz guide me...
    Thanks
    Prem

    check whether compounded infoobject (Material & Company Code) is available then you could create a report on that.
    Vikash

  • Vendor master creation postal code mandatory through LSMW

    Dear Expert
    Postal code is mandatory while create vendor master record through LSMW,
    but while create manually system is not asking the postal code,
    mean not mandatory. please can tell why?
    Regards
    karan

    you did not tell if you are speaking about a vendor in the same country
    you did not tell what import method you are using in LSMW
    if recording, then you may have missed to activate the small box for "use central address management"

  • Regarding vendor master creation using xk01,fk01,mk01.

    hi
    i have created vendor master using xk01.what is the diffeerence between creation of vendor master using xk01 and FK01,MK01.

    Hi
    You can split vendor master data into two parts - purchasing (MK01) and accounting (FK01).
    Purchasing veiw (MK01) is important if you want to create purchase documents like PO on vendor. This veiw is created for purchase organization with bank details and partner functions.
    Accounting view (FK01) is important for finance people to post invoice and pay to vendor. This view is created for company code. The terms of payment which purchase dept specifies will be entered in accounting view again and bank details entered by purchasing people will be confirmed by accounting team.
    You can create collectively these two views in XK01.
    Thanks

  • Vendor master creation (XK01)

    Dear Experts
                         At teh time of vendor master creation i have entered company code as AAA and purchase org is CCCC and accounting group. and all i have created the vendor master.
    Here my problem is CCCC purchase org is not Assigned to AAA company code.
    CCCC purchase org is belongs to other company code . but it is allowing as per derivation
    AAA company code belongs to BBBB purchase org only
    and CCC company code is belongs to CCCC Purchase org.
    I want to control this as per purchase organization to company code assignment CCCC purchase org is not assigned with AAA company code but it is allowing to create vendor master with AAA company code and purchas org is CCCC.
    is it possible to control standard configuration
    Regards
    Anand

    Hi,
    Please check the following standard rules:
    1. If the P Org is assigned to a company code, then that Porg is responsible for all the plants assignesd to that company code only provided Plant - Porg assignment is done. This is company code specific
    2. If the P Org is not assigned to a company code, At the time of vendor master creation, system will ask for the company code and you have enter the same assignesd to that company code provided Plant - Porg assignment is done for the Porg you are working with. This is cross company P .Org.
    3. Assignment of POrg with Plant is must.
    REgards
    Ram

  • Unable to make Postal code as required field in Vendor master creation

    Hi,
    We have a requirement of making Postal code (POST_CODE1) field under street address of new vendor master creation/change as a required field.
    In the configuration settings of vendor account group (OBD3), SAP provided Postal code City combined as only one field.
    Even after making the Postal code&City field as required in the configuration of a particular Vendor group (OBD3), the system is allowing to create new vendor master under that particular group with out the input of Postal code.
    The system only making the city (CITY1) as required filed but not the Postal code (POST_CODE1) even after setting Postal code&City field as required in OBD3.
    Could you please provide  the activities to be performed apart from the above so as to make Postal code as required filed at the time of the vendor master creation/change
    Regards
    Mani Prasad

    Yes, it is country specific. It will affect in vendor masters as well Customer masters.
    You have two options now :
    Create a Transaction variant using SHD0 and Make Postal code field as required and create a custom transaction code in SE93 (Transaction with Variant (Variant transaction) and assign here and save. Your requirement will be fulfilled.
    Else you can go for Enhancement using EXIT_SAPMF02K_001 Vendors: User Exit for Checks prior to Saving
    The following user exits exist for vendor master records:
    o   Check entered data before saving
    Please refer to the interface description of the function module to see which data is available.
    If we found any other solution we will let you know the same.

  • Name field in FK01 vendor master creation/ table LFA1 lengths are different

    Hi Experts,
    We have an issue with FK01 vendor master creation.
    The vendor Name field in FK01 has length of 40 char, however in Vendor Master table LFA1 field Name1 has length 35 char.
    So when the user inputs a name of 40 char in FK01 it does get truncated in LFA1 table.
    Guyz any idea how we can handle this scenerio.
    Need your help.
    Thanks
    Jaif.

    Please undesratnd the desciption I have given.
    The issue is with FK01, when u create vendor in FK01, If you use a name of 40 char length in the NAME field.
    After creating the vendor if you check the vendor in LFA1 table you'll find the name truncated to 35 char length in the NAME1 field.
    How can we solve this problem. Is there any BADI/User exit available to fix it.
    Thanks
    Jaif

  • Vendor Master copying through Copy Express

    Hi Experts,
    I am copying from One Database to a NEW Database ( this database has diffrent configuration ) the Vendor Master Data through Copy Express but while runing the Copy Express I am getting an error as 'Bank does not exsits in the company'. In the Base Company Database from where I am copying has a diffrent bank acccount but in the NEW Database which is created is a another company and has diffrent bank account hence I cannot keep the same bank account as in the Base Compnay Database.
    Please let me know how to achive a soltuion to it.
    Regards,
    Kawish

    Dear Vijay,
    Please note that the folowing details as required by you.
    SAP Version - 2005B
    Patch level 39
    When executing the query from query generator as SELECT * FROM T0.BankCountr, T0.BankCode,T0.DflAccount,T0.DflBranch FROm OCRD T0 I am getting value in Default Bank as -1 and and rest coloumn are blank.
    If I create manually the House Bank Account in the target company ( which means I create the base company bank account in the target company ) then upload may be done but one have to then manually change in the vendors BP master the target company bank account which is a tedious task.
    Hope you are able to give a proper solution in this regard.
    Regards,
    Kawish
    Edited by: Rui Pereira on Apr 29, 2009 1:50 PM

Maybe you are looking for

  • Missing contact when "create new contact" from email or number

    I am having a really strange problem on my iPhone and think it will be a fun mystery to solve. Please help me! It is currently set up with google so that my mail/notes are using gmail IMAP and my contacts/calendars are using Google Sync. So far it's

  • How to give the header condition type in the Sales Order for freight?

    Hi,      We are creating Sales Order(SO) using FM 'CRMXIF_ORDER_SAVE'.And we are unable to track the FREIGHT condition type in the above FM to pass value.      We want to check this value in CRMD_ORDER tcode.     Pls let us know how to make it possib

  • User exit IPRM0002 for preventive maintenance

    user exit IPRM0002 for preventive maintenance has anyone used this user exit? or BADI: BAdI: IPRM_MCP_SCHE_CHANGE  ? I seem to have some difficulty in knowing how to use these.... I need to basically be able to influence a calling date for next PMord

  • New Buffalo extreme external hard drive do I need to format before use

    Hello Just purchased a Buffalo extreme external hard drive which can be used for mac or windows.  What I would like to know, do I need to format it journaled before using this hard drive for backing up only?  Should I partition this hard? Thank you r

  • Flash builder doesn't start !

    Hi, I have a cloud version of flash builder and resently I try to start like usual and nothing append ! I try to reinstall it burt no changes ! any help ? sorry the solution is here http://forums.adobe.com/message/5202497#5202497