Restrict INVOIC Idoc to certain company code

Hi,
I am generating INVOIC Idocs in SAP system and distributing using ALE ...I have successfully configured the ALE settings and could trigger the IDOCs for all the Invoices in the system.
Now my requirement is to restrict the generation of IDOC's only to a certain company code ..how can I achieve it ?
I have used filters on BD64 but it is only restricting some segments to be created in the IDOC...my requirement is to not at all create the IDOC if it belongs to different company code as the Invoicing for such companies will be manual.
I am using output type created through NACE to trigger the IDOC..can we restrict the output type on a compnay code..I maintained condition records at NACE but still all the company codes are getting triggered.
Please let me know if you have encountered such issue earlier.
Regards
Kumar

If nothing works (BD64, NACE) then there are exits available.
for example in function module mentioned below there is a user exit "EXIT_SAPLVEDF_004". If you want to restrict IDOC "only to a certain company code" raise exception "data_not_relevant_for_sending" in the exit
Function module      IDOC_OUTPUT_INVOIC
Function module      EXIT_SAPLVEDF_004
       EXCEPTIONS
              error_message_received        = 1
              data_not_relevant_for_sending = 2.

Similar Messages

  • SAP ISU- Can you help on Invoice Rounding steps at company code level,

    Dear Friends,
    Can you help on SAP ISU Invoice Rounding steps at company code level,
    Client requirement is: - for one company code they need round the Invoice and other company codes they does not required the round option.
    We have configured some steps, which are given below,
    Contract Accounts Receivable and Payable - Basic Functions - Postings and Documents
    1.     Define Rounding Rules for Currencies
    2.     Define Accounts for Rounding Differences
    3.     Accounts for Rounding Gross Amounts (IS-U)
    4.     IS-U: Define Acct Assignment Data Relevant to Transactions
    a.     (Main Transaction 0010 and Sub Transaction 0040)
    SAP Utilities u2013 Invoicing
    1.     Define Basic Settings for Invoicing
    2.     Define Invoice Rounding Rules
    Please provide the solution; I will be appreciating for earliest answer...
    Thanks and Regards,
    Prudhvi

    Hello Christiane,
    Thanks for your quick reply, and valuable information,
    But we have u201CNo roundingu201D option available at client level, path has given below, 
    SPRO u2013 SAP Utilities Invoicing u2013 Basic setting u2013 Define Basic setting for invoicing
    We are not authorized to change any configuration at client level,
    If you can able to guide me at company code level that could be great,
    Thanks for the support
    Thanks and Regards,
    Prudhvi

  • Incoming invoice number range per company code

    Hi!
    I have a doubt.
    Is there the possibility of create incoming invoice number range per company code?
    I need the MM doc, not FI doc.
    Thank's!

    Hi
    If the settings available in OMR4 and OMRJ don't cover your requirements, try with enhancement LMR1M003.
    Regards
    Eduardo
    PD: I found it, see Note 452127 - MIRO: Standard number assignment per company code, you have a sample of coding for this enhancement
    Edited by: E_Hinojosa on Jul 11, 2011 6:37 PM
    Edited by: E_Hinojosa on Jul 11, 2011 6:38 PM
    Edited by: E_Hinojosa on Jul 11, 2011 6:42 PM

  • Access restriction in IM52 based on company code and investment reason

    Hi,
    How can we have access restriction in IM52 based on company code and investment reason?
    thanks
    Randeep

    hi
    please check the authorization object for the transaction
    company code you can

  • Activate invoice evaluation for the company code.

    HI,
    I m doing vendor evaluation . want to make settings for main criteria "INVOICE".
    With sub criterias
    Quantity Variance  &  Price Variance.
    In order for evaluation results for the above two subcriteria to be generated automatically,
    you must activate invoice evaluation for the company code.
    Where do i do the above setting.
    regards

    Tell the user to run SU53 and send that info to your authorizations person. SU53 will show what was actually the problem if it was related to authorizations. This has to be done instantly after closing the error message (preferably in a new session).
    The difference between test and production environments could be that the user has another type of access there.

  • Automatic restriction of currency based on company code

    Hi,
      I have a requirement where in the layout I need to restrict the header currency based on the company code chosen.  How is this possible?
    Currency is an attribute of company code and both company code and currency are in the header but users dont want to choose currency and only want to select company code from the drop down.
    Now my problem is without limiting the header to a single currency the layout cannot be opened.
    Any help would be appreciated.
    Thanks

    Hi,
    if it is not working with the table as Sunil describes (I never tried this) maybe the solution for your problem is reading the value of the variable for company code with the function module Z_VARIABLE_GET_DETAIL as describes in the howTo-paper "Variables of type exit"
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20variables%20of%20type%20exit.pdf
    It works, in case of troubles, dont use the buffer.
    Greetings,
    Christian

  • Invoice tolerance check at company code level

    Hi! I know in SRM, the tolerance check for invoice is set up and assigned to a tolerance group which is then assigned to the user attribute. In theory, the tolerance setting should match that of ECC as it does not make sense to meet the tolerance requirement in SRM and then subsequently get block in ECC. However, it is common in ECC that we maintain different tolerance value for different company codes. Is there a way to do the same in SRM? My guess at the moment is that we will have to 'copy' the check in ECC to SRM rather than relying on the tolerance checks in SRM. Am I right to say that? What is the best practice in such situation?
    Appreicate you sharing your experience in this.
    Cheers!
    SF

    Hi. I think the only way to do this is to set the tolerance to 999% via config and PPOMA and assign to all users. This means the standard tolerance check does not apply.
    Then use the BBP_DOC_CHECK_BADI to read in whatever tolerances you want based on whatever parameters, and issue an error on screen if the tolerance is exceeded. You can easily RFC into R/3 to get the tolerances from table T169G.
    Regards,
    Dave.

  • How to restrict user to process own company code data in z program

    Hi All,
    I have this issue. in asset management I would like to restrict user to process its own company data.
    for example A who works in company 0123 only can process comp code 0123 data whereas X who is manager can process all company code data.
    In the abap program, how can i achive this? by authority object? if yes what asset management authority object to use?
    i have company code in selection screen. so may i know what method i can achive so that A can only execute co 0123 whereas X can do for all company code.
    thanks

    Hi,
    One way would be:
    For all persons for whom you would like to 'control' the access to a specific company, SU01-->Parameters--->Give some parameter ID say XXX, & in PArameter Value key in the compnay code whose data it can process.
    Please note that this is only one time process which has to be carried out for all the users. Then in your z-program  in SELECTIO-SCREEN OUTPUT use GET PARAMETER ID 'XXX" Field w_value. If GET PARAMETER ID returns su-subrc = 0 then move w_value to your company code on the selection screen. Then Use LOOP AT SCREEN & make SCREEN-INPUT = '0' for company code so that company code will be displayed but protected thus not allowing the user to change the company code.
    I hope this helps,
    Regards
    Raju Chitale

  • Invoice list over different company codes?

    hey guys,
    does anybody know the answer to the question: is it possible to create an invoice list with individual billing documents from different companies, or must it always be one company code?
    So say I have a customer (payer) which is created for three different salesorgs and company codes. Say 3200, 3300 and 3400 and 5000. Is it possible to combine the invoices from this one payer from 3200, 3300 and 3400 on one invoicelist for sales org / company code 5000?
    I wanted to test this but unfortunately not possible to system problems at this time, so I was hoping that somebody would know the answer to this.........

    Hi
    you can try vf05 payer number and material number and execute.whether it is same company code or diffrent code i think you will get it.
    or else if you have authorisation you can try customer billing status report. 100% you will get.
    you doubts is clear dont forget to reward.
    thanks
    surya

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

  • Restrict users with the same company code

    Hi All,
      I have developed editable ALV which allows users to edit and delete records and save those changes in database.
    Input is Company Code , Document Number and Fiscal Year.
    Now I want to restrict multiple users trying to edit/delete records with same company code at a same time.
    Example:
    User A is editing records for company code 1250.
    If User B tries to access for same company code 1250 at the same time, it should return an
    error message saying “Table currently locked by User A”.
    and also want to restrict the records if multiple users are trying to edit/delete the same record at
    a same time,I should give an error message.
    Thanks,
    Arpita

    First perform some search on Lock Concept in online help (ABAP Programming (BC-ABA), The ABAP Programming Language, Saving Data Externally, Data Consistency, The SAP Lock Concept or The SAP Lock Concept (BC-CST-EQ), SAP Lock Concept)
    Then use or create thru SE11 a lock object for your table (keys must start with mandt + Bukrs, to not interfere with standard locks, e.g. EFBKPF, you may create your own z-structure and an associated lock object) and before reading data check the company code is not yet locked with ENQUEUE FM, release the lock is either implicit at end of transaction or triggered thru DEQUEUE FM or COMMIT/ROLLBACK WORK (depends also on your choice on _SCOPE Parameter value).
    Regards,
    Raymond

  • How to Restricting Buisness area in same company Code?

    Hi All,
    Can anybody tell me whether is it possible to restrict users from accessing diffrent buisness area within the same company code?
    regards,
    Amit

    Hi Amit,
    Use the following objects to restrict the access for Business area's:
    1. A_S_GSBER "Asset Master Data Maintenance: Company Code/Business Area"
    Object class is AM [Asset Accounting]
    2. J_3GABRLST "Call CEM Settlement List for Organizational Units" ---> Object class is "J3GD" [Industry Business Solutions - CEM]
    and there are other auth. objects for Bus.area's which might help you :
    1. F_BKPF_GSB
    2. F_FDES_GSB
    3. F_FDSB_GSB
    4. F_FDSR_GSB
    5. A_IMA_GSB
    6. A_IMPR_GSB
    Regards,
    Ashok
    "Award points if it is helpful"

  • Create Idocs based on Company Code change & Line Items less than 950

    Dear all,
    I am trying to create the Idocs based on the flat file in the following way.
    1) Create the Idoc per company code
    2) If company code exceeds 950 lines then create another Idoc
    I am trying to follow this BLOG and could not be able to achieve it because in the Blog explained with flat structure and my case is Idoc structure.
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
    I changed the Idoc Occurrence and imported to External definition.
    I am able to do the both check individually but not able to put them in combining.
    Please advice..
    Regards

    Company Codes -> sort -> SplitbyVlaue(Valuechange) -> CollapseContexts -> remove contexts
    AND
    Contact(CompanyCodes, Lines) both in header context - removeContexts - SortbyKey(CompanyCodes) -
    formatbyExample(Company Codes -> sort -> SplitbyVlaue(Valuechange)) - count - greater(>950)
    Srikanth Srinivasan

  • Logistic Invoice posting numbering per company code

    Hi,
    If we post an incomming invoice the numbering will be 5100000 for company code DE01
    next posting will be 5100001 for company code FR01.
    How can we setup that for every company code the number starts at 5100000?
    Thank you in advance,
    Eric.

    Hi,
    I did, but then you lose the 1 on 1 relationship with the MM LIV document.
    I would like a new numberrange for the MM LIV document per company code and the financial document will follow this flow. Is this possible?
    Best Regards,
    Eric.

  • Restricting business areas as per company code

    Dear friends,
    The Company Code is 1000. This company code has four Business areas IQE,DQE,DPS,KQC.
    The Requirement is that when the user selects the company code 1000, He must restricted to pick only the business areas
    IQE,DQE,DPS,KQC.
    Please advise how to proceed?
    Thanks
    Sridhar

    HI,
    one possible sample for business areas:
    Prerequisite: BSEG-BUKRS = '1000'
    Check:  BSEG-GSBER = '0010' OR
    BSEG-GSBER = '0100' OR BSEG-GSBER = '0200' OR
    BSEG-GSBER = '0400' OR BSEG-GSBER = '0600' OR
    BSEG-GSBER = '0700' OR BSEG-GSBER = '0900' OR
    BSEG-GSBER = '1900'
    Message: (own defined) raised if the  business area differs from the ones listed above:
    "Business area & can not be posted in company code & ! "
    with variables 1: BSEG-GSBER 2: BSEG-BUKRS
    BR Christian

Maybe you are looking for

  • After upgrade to 11.1.1.2 Agreement not found for trading partners

    We just upgraded from 11.1.1.1 to 11.1.1.2 and an existing composite that sends a file from Oracle EBS to an outside trading partner is not working. We tried importing the Agreement from the 11.1.1.2 and when it did not work, we purged the repository

  • Money taken from my account I don't know why

    Hi, I am student and I bought the photoshop license about a week ago and One day after I bought it I realised you had a better offer so a switched to that offer, I asked spoke with one of your colleagues, Lyna, who told me that I wouldn't be charge f

  • Old iphoto library from an old computer's hard drive doesn't open anymore

    My old computer broke some time ago, but I got the hard drive saved with its iPhoto library. I used to be able to open the old iPhoto from the old computer's hard drive with my new computer connecting them, but now it says that the old iPhoto cannot

  • An error prevents TOC from being displayed on IE8

    Hello, I am using RH 9.0.1 and IE 8.0.7. When I compile a help project in webhelp format, the TOC is not displayed in the output result. A yellow error icon is displayed in the lower left corner of the browser window with the following information: U

  • How to do where clause within the where clause?

    Hello. I have had a look in the previous postings, OWB help and user guide - and can't seem to find how to do the following in OWB: insert into table A (col1, col2, etc) (select col1, col2 etc from table B where col2 is (select col3 from table C wher