Validation rule cost element via Idoc

Hi all,
i am sitting on the following Problem:
we are creating master data via an external tool, called MDM. It is an Access based tool as far as i know.
These data's are send via Idoc into our SAP R/3 system. It works fine.
The only issue we have:
If you create cost elements, you have normally a validation with gives you a warning that e.g. this cost element already exist. Via our Idoc its just overwriting this already existing cost elements, also the history, all data's are nearly lost.
Do we have to customize special validation rules? Is it because of Idoc? why is the existing validation not be activated via Idoc?
I hope i have written down enough information, so that somebody can help me. Thanks
Michael

Hi Christian,
I have set a breakpoint in validation rule. The step from Financial Accounting is processed.
Prerequisite
BKPF-BUKRS = 'FAI' AND BKPF-BLART = 'WA' AND
BKPF-AWTYP = 'MKPF' AND BSEG-HKONT IN TESTE_CL
Check
BSEG-AUFNR IN TESTE_OP
The validation rule check only the first item from accounting document. So, all postings on account 1103010008 are blocked.
Itm   PK   Account           Account short text              Order            Amount                                                                               
1   99   1103010008     STOCKS OF AUXILIARY                            63,15-
  2   81   5102040001     Maintenance and Repa        101541          63,15 
I need to check the second item from accouting document.
Do you have any suggestion to solve my problem?
Thanks.
Osmar.

Similar Messages

  • IDOC to JDBC scenario in case of Cost Element Group IDOC.

    This is an IDOC to JDBC scenario.
    The Cost Element Group IDOC is having different segments. The main segment E1COGH (1...unbound) is consisting of different subsegment like E1OGS (0...unbound) & E1COGV (0...unbound). The main segment (E1COGH) along with subsegments E1OGS & E1COGV) is occuring more that 1 times. I have to insert data into the table, which we can do in single rows (no hierarchy  is possible in tables). I have used "use one as many" in message mapping. Now if E1OGS or E1COGV is repeating in a single E1COGH segment then we dont get any error. But if I duplicate the main segment then I am getting runtime exception.
    Please suggest about how to map in this case.

    In my scenario:
         E1COGH
         |
          -> E1COGS
             E1COGV
    where     E1CGH -> Main segment
         E1COGS & E1COGV -> sub segment
    E1COGH -> 1..unbound
    E1COGS -> 1..unbound
    E1COGV -> 1..unbound
    At the target side I have created two Statement Structure (ie.Statement & Statement_1) . One for E1COGS (ie. Statement) & the other for E1COGV (ie. Statement_1).
    Case 1 ->  If E1COGS is present in the main segment E1COGH then it is mapped AS IS.
    Case 2 -> If E1COGS is not present in the main segment E1COGH then it is mapped as blank.
    This will be mapped with Statement & in the absence of E1COGS this Statement structure is SUPPRESSED.
    Similarly,
    Case 1 -> If E1COGV is present in the main segment E1COGH then it is mapped AS IS.
    Case 2 -> If E1COGV is not present in the main segment E1COGH then it is mapped as blank.
    This will be mapped with Statement_1 & in the absence of E1COGV this Statement_1 structure is SUPPRESSED.
    All the elements of the segment E1COGH, E1COGHT & E1COGHR are replicated in all the rows for X (no. of occurance of E1COGS) + Y (no. of occurance of E1COGV).
    While testing in Message Mapping, I am able to get the output as for multiple occurence of E1COGS & E1COGV in a single E1COGH.
    But if I increse the occurence of E1COGH the it is giving the following error :
    Runtime exception during processing target field mapping /ns0:MT_Cost_Element_Group_Response/Statement/DBtablename/access/GROUPNAME. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too few values in first queue in function useOneAsMany. It must have the same number of contexts as second queue.] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[com.sap.aii.mappingtool.flib3.CollapseContexts@51197231, , ]
    Please suggest how to map the occurence of E1COGH simultaneously with the occurence of E1COGS & E1COGV.

  • Value BLANK/SPACE not valid for cost element "Fund"

    Hi!
    We use funds management in our solution. It has worked fine in development but when doing the module tests we get the following error when creating a shopping cart:
    Value BLANK/SPACE not valid for cost element "Fund"
    When creating a PR in backend we do not get an error. So it should not be a problem in funds management.
    Everything works fine when using BBPSC01 (central)
    Any ideas?
    Sincerely
    Anders
    Edited by: Anders Öhrling on Sep 29, 2008 11:33 AM

    Ple provide the solution for Problem Resolve.

  • Delete OR Change Validity of  COST ELEMENT

    Hi,
         I want to delete the wrongly created COST ELEMENT but after Excution of same through  Tcode  KA04,again it is apearing and
         even change in validity date is also not reflecting.
         Kindly suggest how to do the same. Thanks in advance.
    Regards
    AJIT K SINGH

    Dear Sai,
                   As per ur suggestion it allow me to change but after saving the same it is giving message that no changes were made.
                   And when I open it again showing me the old one validity period only.
                   Kindly help me out.
    Regards
    AJIT K SINGH
    Edited by: AJIT K SINGH on Nov 27, 2009 10:33 AM

  • How to extend cost element to controlling area?

    Hello all,
    I created a new cost element via FSP0 and then created cost element via KA01.
    Now whwen I am trying to do cost center assignment in OKB9, it throws me error that cost center in controlling are not exit for today's date with error message KI217
    I made sure the cose center's validity date cover's today, so why does it show me that error?
    Do I need to extend the cost center for perticular controlling area? if yes than how acan I do it?
    Regards,

    Hi,
    if you want to extend validity period for Cost centre - KS02  & for Cost element KA02 and select particular Cost centre & Cost element - go to edit in main menu - select Analysis Period - press F6 - and change valid period as per your requirement
    but we can't change one controlling area to another controlling area ,
    if you do not want use cost centre , cost element whatever already created - just go and Block/lock for posting
    Thanking you
    Regards
    Mahesh

  • Activity allocation cost element reposting

    Hi Gurus,
    Maintenance cost has been allocated to maintenance order using activity type MAINT1 ( allocation cost element MAINT1_ACT , category 43) , but business wanted to post to a different allocation cost element. So I created a new activity type MAINT3 with new allocation cost element MAINT3_ACT, and try to use KB65 to do reposting ( see below ), but this doesn't seem to have option of updating the receiving allocation cost element, the sending and receiving cost element still pointed to MAINT1_ACT. Idealy, it should empty out the postings on MAINT1_ACT and post to MAINT3_ACT.
    I also try to create reposting cycle, but don't know how to add activity type and cost element field on the receiver side. Please help if you can, thanks!!

    1. You can reduce the validity of the cost element via KA02 -> Edit -> Ananlysis period
    2. What do u mean by re-class.
    Activity type master data can be assigned only to a cost element category 43.
    Regards,

  • Creation primary cost elements

    Primary cost elements can be generated in batch for creation, but then it seems to me it's all of them or nothing.
    Is this also possible for 1 year for instance or for a limited number of cost elements, via another transaction for instance.  MASS create?

    Hi Walter,
    First of all you have to select automatic creation of cost elements for your chart of account in OB13.
    Next in OKB2, you have to specify the cost element category for the range or single cost elemets.
    Next create batch input session in OKB3, here you can give from and to valid date.
    You have to execute the created batch input session in SM35.
    Rgds
    Murali. N

  • Cost Element Block

    Hi
    I have created one cost element and posted number of documents.
    client asks that the posting should be reflecting in FI but not in CO
    So I tried to delete the Cost element category in FS00 but it is mandatory field. So if we delete it will impact the business..
    So there is any alternative to block Cost element or witout reflecting the posting in CO
    Raju

    Hi Raju,
    the cost element is the transmission between FI and CO. So if you do not want a FI posting to be reflected in CO you must not create a cost element for the relevant account.
    If a cost element has already been created, the only possibility to prevent the CO posting will be
    to delete the cost element again via TA KA04. For this you will first of all have to delete all CO documents that have been posted with the relevant cost element via report RKACOR20 (see SAP note 45122)
    Regards
    Karl

  • Lock Cost Element into a WBE element

    Hi all,
    I want to lock all movements (CO-FI-MM) for a WBE with a Cost Element. How to do this? It's possible with a GGB0 validation?
    I'm thinking about put the Cost Element code in a WBE master data field (I don't know which one yet). Then create a validation that check in Co tables that all costs movements (not budgeting) for a WBE element has the correct cost element.
    How to do this?
    Thanks a lot. Regards

    It's possible with a GGB0 validation?
    It can be possible with CO validation.
    Cost Element code in a WBE master data field (I don't know which one yet).
    You cannot assign cost element in WBSE master data. What you should do is? If the CO document contains is posted with that cost element then check If WBSE is entered as the CO object.
    On the other end: I want to lock a WBS with a Cost Element, not to lock a Cost Element with a WBS.
    I want to put the Cost Element in a WBS master data field (like Responisble o something like this eith a Char10 domain) and check if posting in a WBS element, if KSTAR field of the CO document is equal to Responsible Field in the WBS element

  • KEDR - Testing Newly added Cost Element to Derivation Rule

    Hi There -
    Background: We have Column in COPA KE30 report - 3BOXID. This field is updated with Blank and the reason we found is cost element is missing in dervation rule and we added the respective cost element to Derivation Rule
    Can you please help me in testing this
    Thanks
    Sri

    Hi,
      Basically i understand that you wish to have HR posting to COPA
      Please take a look at attached note 130344.
      Basically according to the note there are 2 options:
    1. The update of data from the Payroll in Controlling should be carried out in the standard system to the cost center. The actual commissions posted to cost center can then be posted to Profitability Analysis by assessment.
    2. If you assign the relevant account via the automatic account assignment in transaction OKB9 to profitability segment a costing-based CO-PA document should be created for the postings of transaction PCP0. The profitability segment determined should only be filled rather scarcely though as not much information is available in this case.
    regards
    Waman

  • Validation rule on Cost Object for Manual Journal Entry

    Hi Experts,
    We have an issue regarding General Ledger Account to be posted manually (FB01,FB50...).
    For this posting the busines required only one Cost object (WBS or IO or cost center) is needed.
    The problem is that I can not define a Field status group who require only one assignement, either WBS or IO or COPA.
    Thus all General Ledger Account is alraedy created as Cost Element.
    How can I create this validation rule ?
    Thanks for help

    Hi Shoeb
    SAP allow only one cost object to be filled at one time in order to avoid conflicts. example- CC, WBS, IO etc. you can enter only any one of these in one particular document. how ever balancesheet items are not needed to be filled this.
    Hence I guess your validation issue may be already taken care by SAP standard solution. You may keep all cost objects as optional in you Field status group so that it allow any values.
    Cost elemets categoroes (primary, secondary)are different than cost object (CC, orders, wbs etc).
    if you still need a validation please specify the purpose of validation. hope this helps.
    best regards
    Jomon

  • CO validation rule for cost center

    we want system to show error message when user post to cost center other than 1111 for GL account between 540000 to 541000, how to define the validation rule?

    You can put FI validation (Ob28) , give restriction to co code BSEG-BUKRS ( for your co code ) and BSEH-HKONT  ( for GL account for you want to restrict) and have check on BSEG-KOSTL and then assign the error message.
    Regards
    Ranjan

  • Valid period date of Cost Element

    hi,
    i have problem in cost element.actually my fiscal year is Jan.1.2011 to Dec31.2011.i create some cost element in 01012011 to31122011 (valid period )this period is system allow to enter the transaction.but i create some cost elements in 01.09.2011 to 31.12.2011(valid period) this period is not allowed.system showing error message.ie cost element valid period extented.
    finally my question is How to Change the Cost Element Valid period from 01.09.2011 to 01.01.2011.?can you help me this problem.
    thanking you.,
    Regards,
    P.Pratap

    It will allow!  I just tried it.  Make sure you have the validity from to (in the initial screen of KA01) as I stated below - 01/01/2011 to 31/08/2011.  Also, check in table CSKB what are the validity periods for your cost element(s).

  • How to reclass WBS via secondary cost element

    Hi team,
    How can I reclass WBS A to WBS B via secondary cost element A1234567? For example, For CNY (LC1), I need to input certain amt, but for USD (LC2),I have to force in zero. When I do correction via manual allocation (KB15N), only USD currency is available for input.
    Appreciate your feedback.
    Thanks.

    Hi,
    In FB01 you need to use primary cost element, secondary cost element is internal to CO. In your case since that is a rectifaction and you want to eliminate the value in one currency you would need to follow the manual process. You can use same general ledger account for debit and credit with different WBS assigned so that there is no impact in FI and the values are transferred from one WBS to another.
    Kind Regards // Shaubhik

  • Mass Extension of cost center and cost element validity dates

    Hi SAP Gurus,
    We have around 5000 cost centers and 6000 cost elements for which "Valid to" date is 09/27/2008. We need to extend this date for another 5 years.
    Can you please suggest any pointers as how we can do the mass update.
    We have already tried KS12 which is not of any help.
    Thanks,
    Sreeni.
    1-408-307-7965
    CA, USA.

    Hi,
    Run the LSMW.
    Or Use the fuction automatic creation of Primary/Secondary cost elements in the SPRO.
    Or You can write a program which replaces the valid to date directly in the database table.
    For this you require ABAPER help.
    Regards,
    Edited by: Jagadeesh Sornapudi on Sep 13, 2008 8:25 AM

Maybe you are looking for

  • CC Simple Wire Removal Dead?

    I recently opened one of my projects to find that any layer upon which CC Simple Wire Removal is used displays and renders as pure black. I went straight to the Adobe forums and found this thread full of users having the same experience: http://forum

  • Add field

    Hi all, My task is like this. I have to include FI reference in report ME80FN. Actually the ebusiness needs to see the vendor invoice number (FI reference field) in the PO history report ME80FN. actually it is said that the query has to be replicate

  • What is the use of types tab in global settings in smartforms?

    Hi, Please let me know with examle, the use of Types tab in global settings in smartforms. Thanks.

  • Error in client: domain was null

    I'm getting the following exception now that I've deployed one of the applications on another OC4J instance on a separate machine. I can connect fine and get the expected response when running out of my Intellij IDE or command line. Problem is I get

  • Bookmark

    Hi guys, I have the following problem with bookmarks. The bookmarks store navigation state of the web template. The problem is, if I create a couple bookmarks und after that I change something in the web template (e.g.  add additional dropdown item)