Release BDC in SM35 in background, How to set defaul company code?

Hi There,
    I came across one problem of BDC session release in background.
    Currently my session always fails due to the company code not correct.
    How can I change the default company code in background?
    Thanks!

Hi Brad Bohn,
    Sorry for the late reply.
    Currently, I want to retire multi asset using transaction code ABAVN and ABAON.
    I want to run the BDC session in background, hence even I can pupup a dialog to input company code, I can not choose to do so because BDC session can not run in background if there is pup up dialog to fill in field. For example, if you upload data from local PC, you should choose the path, and there is a dialog pup up to let you choose the path, then in this case you can not run in backround.
Instead, I use bellowing code to set default company code.   
SET PARAMETER ID 'BUK' FIELD p_bukrs.
But the problem is, above setting can only influence foreground. I have 4 test for background BDC.
Assum there are 2 company code A and B.
Currenly our system default company code is A. ( I don't know why, it was A).
I run a BDC session which belongs to A, then I change the global parameter, to let SET PARAMETER ID 'BUK' FIELD p_bukrs.
to 2 cases: the company code set to A and the company code set to B. In those 2 cases, in background, the BDC always success.
I have another test, I run one BDC which should run in company code B. I also change the SET PARAMETER ID 'BUK' FIELD p_bukrs to be A or to be B. In those 2 cases, in bacground, the BDC always fail.
My question is, how to change the default company from A to B?
Thanks!

Similar Messages

  • How to find out company code from a plant ?

    Hello friends,
    I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD".   For that, we have to export company code ID.  Currently it is hard coded with one company code.  Now we want to make this program usable by all company codes.  So instead of hard coding, I would like to dynamically find out company code based on the plant.   So I want to know - how to find out company code from a plant ?  Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
    Thanks,
    - Chetan

    hi
    u can find this from table T001K
    or just goto EC01
    here click on STRUCTURE>NAVIGATION
    double click on co code u will get the list
    u can slo try this in EC02
    regards
    kunal

  • How to setup a company code for material management

    Hi,
    While creating material in MM01, in sales org tab, when I gave plant XXXX, it is giving an error "Company code YYYY is not setup for material management".
    So can you help me , how to setup a company code for material management
    Help is appreciated
    thanks
    DIL

    Hello Sendil,
    You can maintain it with trns code OMSY or MMPI/MMPV.
    Hope this helps
    Regards
    Arif Mansuri

  • How to Mapping of company code to the billing units

    Hi,
    Please help me how to Mapping of company code to the billing units , iam doing the rollout project.
    Thanks
    Mustafa

    Hi Mustafa,
    External billing (A): Billing is controlled in the R/3 System.
    The company code is determined by the accounting adapter which calls
    the R3 system. You define the company code to be transferred in
    Customizing under:
    Customer Relationship Management
    Master Data
    Organizational Management
    Cross-System Assignment of Organizational Units
    Assign Company Codes and Business Places to Billing Units or
    Assign Company Codes to Billing Units.
    Also you can check attached note 717476 for further information.
    Cheers,
    Brian.

  • How to Assigning the company code to the billing units from ecc to crm

    Hi,
    Iam doing the roll out project , i require the help.
    can any one suggest me how to assign the company code to the billing units from ecc to crm.
    Thanks
    Mustafa

    Hi Mustafa
    You can load this data from R/3 to CRM by going to transaction R3AS in your CRM system, and using load objects EQUIPMENT, MATERIAL, and CUSTOMER_MAIN.
    Best Regards
    Gavin

  • How to stop the Company Code popup window in MIRO!

    Hi,
    When User logs in the system and enters into the MIRO transaction, he is asked to enter the Company Code first in order to proceed further. I know that once you enter the company code then the system does not ask it to enter again during that login, however, it will asks again whenever User login the system again!
    Can someone tell that how to stop this Company Code popup window in MIRO, so that the system should not ask for the Comp Code whenever User logs in and enters into MIRO? I think there are some entries maintained in the User Master for this!
    Thanks.

    Hi,
    It is Necessary for the user to enter the company code for which he need to process the Invoice.
    First think is if the user knows ,that he is only going to do for one company code.then
    in the T code SU3.
    In the parameter TAB
    you can make the Default value for the parameter ID BUK as your Comany Code value ( Eg 1000)
    so that when ever the user does the MIRO ,it comes with that company code only.
    and if he want to do for another comapany code ,he has to use the option of Switching the comapny code.
    so this is user dependent and has to be made for all users.
    Note .the above setting works only you have entered saved and logged off and log in again.
    also ,this value gets defaulted you all the comapny codes in all screen.
    Hope so it helps.
    Regards
    Anjanna.

  • HOW TO CAPTURE THE COMPANY CODE IN MIR7

    Hi ALL,
    MIRO data transfer i am facing some problem
    initially i am capturing the Company code in MIRO
    after that i am filling up all those values.
    for my requirement
    1.i want to hold the company code screen initially at all time
    other wise
    2. i am getting error message as No batch input screen for 'SAPLMR1M" '1000' while i am execution of the second time of MIRO posting  how to eliminate the error message.
    Please advise.
    Thanks & Regards
    K.Gunasekar.

    Hi All
    I am doing BDC in FV60( Recording) is it possible to pass the value into hidden fields through (BDC)
    SCREEN FIELD NAME: Document Type.
    Document type is hidden through FV00 and also without changing configuration in IMG.
    Thanks & Regards
    K.Gunasekar.

  • How to link ECC Company code with BCS Consolidation unit

    I have to create new consolidation unit in BCS, parallelly in SAP R/3 also I have created a company code.
    I could read following in the forum :-
    The Company Codes from ECC are assigned to the characteristic Company in BCS, thus creating a one to one relationship between ECC & BCS company codes.
    BUT HOW TO DO THE SAME.
    Also any advise on Profit centre and cost centre etc in BCS in line with ECC. This is first time I am configuring in BCS,

    Typically in ECC company codes are assigned to a company. The company is typically used for cons unit in BCS, but it is not uncommon for company code to be used as cons unit.
    When company code is used, it is an attribute of the characteristic company and thus in the load mapping, the company is mapped to the attribute company code. This results in company code being mapped to company.
    Otherwise, if company code is in the databasis as the cons unit role, then it is simply mapped to company code to company code.
    For profit center and cost center, these are typically assigned the role subassignment, but it is not uncommon for profit center to be a cons unit for a matrix consolidation. However, these characteristics must first be included in the totals/databasis infocube.

  • How to use Cross Company Code document  number as Reffrence.

    Hi
    Actually user wants to post the same debit credit line items with Editing the amounts which he has posted last month
    So i suggested him to use post refference of the previous month document number.
    Since that is Cross company document number. There is no source to give  in T.Code FBR2. There is a fecility to give only document number of a company code not cross company code.
    Assume that there are 3 company's involved in that document.
    company  X --- 25 line items
    company  Y -- 75 line items
    Company  Z -- 100 line items
    Since he given in header data X Co code it has generated the Cross company code document number 1000X 08 ( which means 1000 is doc.number X is company code 08 is year. This is sap standard cross company code doc number format)
    and individual document number is
    X - 1000
    Y-  2000
    Y-  3000
    If he post with the reffrence of X company only 25 lines will come remaining 175 line he as to post manually.
    If he take Y Doc number  only 75 lines will come
    If he take Z Doc number  only 100 lines will come
    To bring all lines there is no provision to give Cross company Doc number.
    Please advice how to use cross company doc number as refference.
    Tks
    Shivaji

    Hi guru
    This is answered
    Thanks
    shivaji

  • How to capture the company code changes

    Hi Experts,
               I need to capture the delta changes of company code which update the T001 table.( i.e. if there is any modification on existing company code or new company code created ). I couldn't find Userexit for OX02 and ec01 Tcodes. please suggest me how to achieve this, looking forward to here from all.
    Usefull answers will be rewarded,
    thanks in advance,
    Tom

    Try SCU3 transaction, as the T001 table has the "Log Data Changes" ON.
    Regards,
    Naimesh Patel

  • How to set default company logo in bex report(analyzer)?

    hi,
    i have a requirement that i need to create default template for my queries in bex analyzer. whenever i execute my query in analyzer the company logo should be on top of the query. i know how to do it in workbook but could you explain me how to set the default company logo in bex reports?
    thanks
    vadlamudi

    See the following document on creating a workbook template with an image: [http://www.researchsummary.ca/bw/Sample_Ch10.pdf]
    In BW, there is a table that stores the default workbook. The following snippet of code allows you to identify a custom workbook template as the default template for all end users.
    *& Report Z_SET_BEX_USER_TEMPLATE *
    *& Program to update all user's default template *
    REPORT Z_SET_BEX_USER_TEMPLATE.
    TABLES: rsrwbtemplate,
            usr01.
    PARAMETER: wbid LIKE rsrwbindex-workbookid.
    SELECT
    FROM
      usr01.
      MOVE: usr01-bname TO rsrwbtemplate-templateuser,
            wbid TO rsrwbtemplate-workbookid = wbid.
      UPDATE
        rsrwbtemplate.
      IF sy-subrc 0.
        INSERT
          rsrwbtemplate.
      ENDIF.
    ENDSELECT.

  • How to determine which company code a customer is assigned

    hi
    anybody knows how a customer is connected to a company code
    i know its connected to several company codes but i want to know the original company code

    Hi
    Anjali's question sounds valid. As per my understanding we cannot Create a customer many times. The customer will be created only once (say Customer 1000) and the same existing customer will be extended to other company codes and for other sales areas based on the requirement. The company code and the sales area details in which the customer was initially created should be traceable.
    But I donot understand the reason for looking for these details.It will give more clarity on the requirement if the reason behind this requirement is also posted by Anjali.
    Thanks,
    Ravi

  • 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

  • How to delete new company code ? (not moved to quality system)

    Dear Friends,
    I have created new company code in R/3 development system with only one transport request. I have created Sales org, Sales office, Plant, Business plance, Shipping poing and other links also. The transport request is not moved to quality system.
    Now, the new company code is not needed. How i can revert or rollback the transport request ?
    Otherwise, Is any way to  delete the new company code ?
    Or is it only way to rollback the changes mannually ?
    Kindly, suggest me.
    Thanks in advance.
    Rajagopal
    Chennai - INDIA.

    Thanks Nagaraj,
    If I put the description "DONT TRANSPORT", obviously our BASIS team will not move the TR.  But, the TR will be sit in development system with new company code. I donu2019t want this scenario. I need to delete all relevant data to company code.
    Moreover, i have created Plant, Sales Organization, Business Place & Shipping Point also. I need delete or rollback these things.
    Suggest me another way.
    Thanks & Regards,
    Rajagopal
    Chennai - INDIA

  • How to get new company code and controlling area in SRM

    Hi SDN,
    we are on SRM 5.0.
    Our finacial experts want to implement a new company code and controlling area.
    In SRM I can set up a new company code easily in ppoma_bbp and import a new plant from backend for the new company code.
    When testing in EBP I get the error: "company code xyz not available in controlling area zzz"
    So I need to import the new backend controlling area, too. How can I get the second controlling area in SRM?
    Thanx for help,
    matthias

    Hi Muthuraman Govi  and Sanjeev,
    in fact I can see in backend in transaction KS03 (show cost center) there in the F4s, which comp.code + controll area combinations are valid and have indeed cost centers assigned.
    So I have a new valid comp.code and a new valid cont.area.
    The new comp.code belongs to the new contr. area.
    In SRM I set the BUK attribute as described by Sanjeev (I had that already done). Still, if it is like you say, why do I get an error in EBP when trying to buy products from the new plant in the new company code...
    Is there any more config.work necessary in backend or SRM?
    kind regards, matthias

Maybe you are looking for

  • Regarding writing file in application server with ISO8859 characters

    Hello Experts,   I have a requirement that i need to write my file which read from the data base in ISO8859 characters in the application server. Is there any FM or any particular code conver normal data base data to ISO8859 characters ? Please give

  • Values in selection screen

    Iam trying to create the drop down list. Well, I got some programs, creating these lists for both parameter and ranges on the selection screen. What the user wants is when the selection screen is loaded, he wants to select from the list OR ENTER ANY

  • Administrator desing star schema for "time series analysis"

    Hi all, I need to develop a set of dashboard with reports display a set of customers properties at the last etl period (this month) and, for these customers, show their properties in the "past" (this month - "n"). I've a fact table with cust_id and t

  • Auto populating the IBASE in a Change Request

    Good Day all; I know I have seen the answer to this in the forum before, but do you think I can find itu2026u2026 Anyway, is there a way to automatically inset the u201CIBASEu201D in the Change Request? Thanks All; Regards Don Newton

  • Transactional, blocking cache operation

    Are cache operation calls, e.g. create, update, remove, read, asynchronous, by default, at the client's point of view? How do I make fully transantional and blocking calls? Should I rely on event listener? Message was edited by: superlinear