KO01 : Ordrer type and company code

Hi,
Is there any possibility to limit the choice of company code in KO01 depending the order type entered.
Example : I have 2 companies CC01 & CC02 and 2 order types OT01 & OT02
in customizing I assign OT01 to CC01 and OT02 to CC02
So I want to block the user (error message) if he creates an ordrer (type OT01) and enters CC02
Please how to do this ?
Regards.

Hi
You have 2 options
1. Enhancement - Use the exit COOPA_01
2. Standard solution  - (I would prefer this)
a.  Create 2 Model Orders in KOM1 using Order Type $$..
b. Specify Comp Code CC01  in one and CC02 in other model order...
c. Specify Model Order 1 in Order Type OT01  and 2nd model order in Order type OT02...
Now, whenever the user creates the Internal Order, the field Comp Code will be automatically populated...
However, the user can change the comp code if he wishes
d. If you want the field comp code to be non-editable, then follow an additional step....
In your order types, click on "Field Selection" button at the end.. This button is at the end of the screen under "Master Data Display".. Here, you can specify the field Comp code as in DISPLAY mode
Regards
Ajay M

Similar Messages

  • Profit center and company code field in Internal order type (KOT2)

    Dear Experts,
    I want to bydefault profit center and company code in ordertype customization.
    Profit center and company code field in Internal order type (KOT2)
    regards
    RR

    Hi
    1. Create a Model Order in KOM1
    Enter the Comp Code and PC and other fields you want and save it
    2. Enter this Model order in your Internal Order Type in KOT2... Transport this change to production client
    3. Next time when you create an IO, PC and CC will be populated by default
    br, Ajay M

  • Where we assign Exchange rate type at company code level,

    Dear All,
    Where we assign Exchange rate type at company code level, In 0BA7 we assign by Document type wise and OB22 will assign by controlling area wise , but we are not maintain Controlling area, exactly where we assign , and how it will pick at the time of PO creation ,
    Thanks in advance
    Vijay

    Hi,
    In OB22 we assign Exchange rate type against company code and not against controlling area .
    Regards,
    Shayam

  • Bapi_Acc_Document_Post - E 018 : Invalid tax code and company code combination

    Hi All,
    I need the help of this forum once again.
    I am using bapi Bapi_Acc_Document_Post to create KR documents in SAP. The bapi works absolutely fine except for one scenario:
    For a particular type of invoice coded to Company "XXXX" with lines having tax code "I0", the bapi returns error message "E 018 : Invalid tax code and company code combination". The tax code "I0" and the company code "XXXX" has been mapped in SAP and if I try to create the invoice manually in SAP using the GUI, the invoice gets created without any issue.
    I have tried searching the forum but could not find any post on this topic.
    Therefore, requesting the masters to please help me out on this.
    Best Regards
    Sutirtha Roy

    Hi Gowthami,
    how have you solved your problem, because I am facing the similiar issue and trying desperately to post the following combination with BAPI_ACC_POST_DOCUMENT:
    001 40       490100     Aufw. aus Marge PP              R2                 15,92
    002 31       10000003   Kreditor                                R2                 15,92-
    003 50       175060     Abzugsverfahren USt            R2                  3,18-
    004 40       154060     Abzugsverfahren Vst             R2                  3,18
    THANX!
    Regards
    Marko

  • Data model 0G: No authorization for entity type Account (Company Code) - activity Display

    Hello Expert,
    I have a problem with authorization in MDG-F.
    I want to create Account with Collective processing. After, entered Entity type, Edition and Chart of account,  Blocking message "Data model 0G: No authorization for entity type Account (Company Code) - activity Display" is displayed.
    But, i checked in PFCG transaction, for this user profil, activity are : create or generate, Change and display. So, for me , it is correct.
    Please, check screen shot below :
    Blocking message :
    and in PFCG transaction
    Could you help me to solve this point?
    Kind regards,
    Heri RAOELISON

    Hi Heri,
    the system behavior is correct. The account in company code consists of three entity types:
    1) COA - Chart of Accounts (Type 3)
    2) ACCOUNT - Account (A-Segment, related to ECC table SKA1, Type 1)
    3) ACCCCDET - Account in Company Code (B-Segment, releated to ECC table SKB1, Type 1).
    3) includes 1) and 2) whereas 2) includes 1). If you grant authorization only for 3) but not for 1) and 2), you cannot do anything.
    Best regards
    Michael

  • VAT registration number in combination with country and company code

    Hi,
    Is there configuration where we can define the VAT registration number with combination of country and company code.
    thanx in advance

    Hi,
    Thanx for the reply.bt the issue is like we have a condition type zvat where condition table have the following fields departure country and destination country,The country of our company code is GB and we maintain a record for condition type zvat i.e GB (departure country) to GB (destination country) 17.5%.While creating a contract if vat is applicable we told user to maintain country GB in both the fieds i.e tax departure country and tax destination country in billing tab at header level of the contract .It is working fine for other company where  company code country is different then GB.But for this where company code  country is GB.An error occurs i.e.There is no vat registration number fot this comapny code XXXX for  country GB.
    Now how should i go about it?

  • Assign Withholding Tax Types to Company Code

    In SPRO in the menu item "Assign Withholding Tax Types to Company Code"  (program SAPL0F61), I enter to try and setup the Types for my new Company code. 
    When I go into New Entries,  On the top drop-down I enter my new Company Code, then in the
    "Wthhld tax type" field, I click on the look-up and don't see the Withholding tax types that I setup for country Italy.  The only ones that are showing up are for a previous country setup Mexico.
    I setup Italy as a Withholding Tax Country, and I setup the Withholding Tax types already.
    Does anybody know how to get the Withholding Tax Types to show up for Italy and not just Mexico?
    thanks

    This is an ABAP Development forum, you might want to post your question in the SD or FI forum instead.

  • Client level setting and company code level setting

    Hi Friends,
    Can you tell me the client level settings and company code level settings in Configuration and master data?
    Ex : Material type configuration - client level
    Thanks in advance
    Rgds
    Madhavan

    Dear,
    For complete detailed information about SAP MM configuration, you can find on first thread or self exploration through net search.
    Please have a look at: http://help.sap.com/SAPHelp_46c/helpdata/EN/e0/71369adc56d11195100060b03c6b76/frameset.htm
    Regards,
    Syed Hussain.

  • Currency conversion with different currency and company code

    Hi all,
    how could it be done if in the report different currencies have to be managed / displayed?
    The InfoObject 0Comp_Code has to be handled for example with different currencies. There are different company codes available and their currency should be converted in the query. But for example we have different currencies like dollar, yen and euro. So the currency should be dedicated correctly.
    And the credit control area (the highest level in organisation) has only Euro.
    The data (currency) of credit control area and company code in the cube is available only in Euro at the moment.
    I thought it would be more flexible when the conversion is done at query level then at transformation level. We have filters in the query and the query is very fast. Is it also possible to include a currency for selection in filter?
    Thank you in advance for your help!

    Hi,
    Yes, it is possible to have a filter for selection of target currency if multiple currencies are involved. However, you would need to define a currency translation first in RSCUR. Here, you can specify EUR to be the fixed source currency & a variable in case of target currency which will be used as a filter for user input when the query is executed. You also need to have a reference date (exchange rate date) & a exchange rate type (avg. mthly rate, daily buying rate etc.) associated with the currency translation.
    --Priya

  • Dreamweaver setting wrong file type and creator codes

    First of all, I'm running Mac OS X 10.5.2 on an Intel-based
    Mac, with Dreamweaver CS3 9.0 build 3481.
    I have a site defined where I connect to my web server via
    FTP. On my server, I just upgraded my forum software to PHPBB 3.0,
    which created a new /forums/ directory. My plan is to use
    Dreamweaver to download that new /forums/ directory to my local
    site where I can edit the files. Inside the forums folder are
    several types of files, like ".php" files, ".htm" files, ".gif"
    files, etc.
    So, upon downloading the /forums/ folder to my local machine
    by dragging and dropping it (in Dreamweaver) from the remote site
    to the local site, I noticed that Dreamweaver insists on setting
    HFS file type and creator codes for files it recognizes, based on
    the filename extension.
    I've connected to the same server using the Finder and
    Transmit, and copied the remote /forums/ folder over to my local
    machine. Neither of those copies have files with file types and
    creator codes set, meaning they aren't actually set on the remote
    files and that this is indeed something Dreamweaver is doing on the
    fly as it downloads the files.
    I'm wondering if there's any way possible to disable this
    behavior, and just download the files like they are on the server?
    (File extension only). To make matters worse, on my Intel-based
    Mac, it's not even setting the proper codes, as you can see in the
    following image:
    http://homepage.mac.com/mdouma46/images/dreamweaver.png
    Notice for the ".php" document, it's attempting to set a file
    type of 'TEXT' and a creator code of 'DmWr' (DreamWeaver's creator
    code), but because the Dreamweaver developers didn't bother to take
    into account the byte-ordering differences between PowerPC Macs and
    Intel Macs, the codes are written in reverse: 'TEXT' becomes
    'TXET', and 'DmWr' becomes 'rWmD'. (If you're going to use
    low-level routines such as FSSetCatalogInfo() to set the file types
    and creator codes, you need to call CFSwapInt32HostToBig() on the
    OSType values before doing so, to make sure they're in Big-endian
    format).
    Anyone know where the conversion information is stored?
    Thanks in advance.....

    Creator codes are totally deprecated in snow leopard. as for a workaround you can use something like this.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on open these_items
    repeat with this_item in these_items
    tell application "Finder"
    set the_file to POSIX path of (this_item as alias)
    tell application "System Events"
    set default application of file (the_file) to ("Main HD:Applications:Preview.app" as alias)
    end tell
    end tell
    end repeat
    end open</pre>
    save it as an application and drop files onto it to set them to open with Preview.

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • FROM WHICH TABLE I CAN FIND  GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTI

    FROM WHICH TABLE I CAN FIND  GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTICULAR CUSTOMER?..I AM TRYING TO POST AN IDOC ..SO DATA HAS TO BE PROPER.JUST TELL THE SOLUTION

    Hi rendeep,
    1. LFB1
       this is the required table.
    2. field is AKONT
    3. The account number can be different
       for different companies.,
       hence it depnds upon combination of
       LIFNR
       BUKRS
    regards,
    amit m.

  • Database table/FM to find relation between plant and company code in SRM

    Hi,
    I have a requirement where I need to determine the relation between the plant and company code in SRM.
    The plant and company code both belong to R/3. We are replicating the plant by using the report BBP_LOCATIONS_GET_ALL.
    This plant is now available as a BP in SRM. But from which SRM table or using which SRM FM can I get the relation between this and the company code?
    Thanks,
    Srivatsan

    Hi
    <b>Check table BBP_LOCMAP. (Plants) -  Manage Table Business Partner   > System   > Location
    BBP_COMPCODE_FAV               User-Specific Favorites for Permitted Company code.</b>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • RFWT0010 withholding tax type and tax code change in vendor master problem

    Hi
    Due to some reasons I need to change the withholding tax type and tax code in vendor master.
    When i am running the report RFWT010,After changing the tax type and tax code in vendor master...the list contains no items. eventhough there are 14 line items for the vendor that are required to be adjusted with new tax type.
    Please suggest how to solve this query.
    regards
    yesap.fico

    Any inputs?

  • Upload of chart of accounts at coa and company code level

    dear all
    can you tell me how it is best to upload a new chart of accounts both as a chart of accounts level and company code. i am planning to use lsmw but shoud i upload chart of accounts first then company code level?
    with many thanks
    Peter

    Hello Peter,
    If you have single company code then create one LSMW for transaction "FS00" it upload the COA both at company code and COA level. If you have morethan one company code and you want to upload same COA to both company codes then better first COA level with FSP0 then company code level with FSS0 because here you can extend the required GL's from COA to COmpany code.
    Regards
    Swapna

Maybe you are looking for

  • Classic Report CSV output failed to parse SQL query

    Hi, I'm trying to get a CSV output from a classic report. I'm generating the report based on a PL/SQL block that will return an SQL query. But when i download the CSV excel just gives me a: failed to parse SQL query: ORA-00936: Missing expression and

  • What libraries are attached to my form?

    Is there a Forms built-in that will help me determine which libraries are attached to my form at runtime?

  • Need to determine end of video.

    I need to know how to tell when I've reached the end of video.  I seem to recall there's a command new to flash 10 that will let you know without having to track the total bytes used or time elapsed or anything complicated like that.  Does anyone kno

  • Sun Desktop Access Client - Language Settings Windows Logon Screen

    Dear All, i have a little problem with the language setting of my Sun Desktop Acces Client if i try to connect to Windws 2003 Server. First some configuration details: PC: Win XP (german version) keyboard layout: german Sun Desktop Access Client 1.0

  • Forms & distribution

    Acrobat Pro Extended 9.2 - form made, TRYING to upload to Adobe.com to distribute.  Go through to adding email addresses, then Adobe blows up and shuts down...