Get Cost Centre from runtime - WS20000050 Step 372

I am using Workflow WS20000050 for approval of travel expenses
When i attach the standard rule to step 372 it works fine
I have created a Custom rule and want to attach to Step 372
I need Cost Centre data for processing and finding out the agent
How can i get the Cost Centre data (entered through PR05 TCode)
I see that the standard function module uses these macros
  swc_get_element ac_container 'ORG_OBJECT' org_object.
  swc_get_element ac_container 'OTYPE' org_type.
  swc_get_element ac_container 'OBJID' org_id.
I am not able to identify the parameter for Cost Centre. It should be a table because one claim can have more than one cost centres assigned to it. it is stored in table PTRV_SCOS

Hi Sriram,
If you know that the table PTRV_SCOS stores the value of cost center, then you can write a custom  BO method to fetch the value of the cost center from this table.
Make a call to this BO method in your workflow and fetch the value in the workflow.
Regards,
Saumya

Similar Messages

  • How to get G/L account and cost centres from ECC to SRM...

    Dear All,
    How to get G/L account and cost centres from ECC to SRM...
    Please let me know the steps...
    Thanks
    Ravi

    Hi
    GL account - You can define in SPRO- Cross application settings--Account assignment ->Define GL account for product category and account assignment category.
    or you can use BADI BBP_DETERMINE_ACCT.
    In Organisation Strucute - You can Map the backend cost center via KNT  cost center attribute .
    Regards
    Muthu

  • How to get costing BOM from R/3

    Hi friends,
    How to get costing BOM from r/3 with levels into bw.and the transaction in r/3 is ck13n

    Hi,
    You'll need to go in for a generic DS in this case.
    Cheers,
    Kedar

  • CAS and three primary hierarchy SCCM 2012 r2 can i get any runbook from microsoft for Step by step installation

    Hi All
    need CAS and three primary hierarchy SCCM 2012 r2 can i get any runbook from microsoft for Step by step installation
    need step by step installation guide with screenshots.

    There's a lots of installation guide but each guide is for a "standard" installation, your environment is unique and you should get help to be sure to implement SCCM to fulfill your needs.
    Installing SCCM without any experience will be tricky and maintain it will be even harder. This is not a simple product.
    http://sccmentor.wordpress.com/2014/01/08/sccm-2012-r2-step-by-step-installation-guide/
    http://www.windows-noob.com/forums/index.php?/topic/4045-system-center-2012-configuration-manager-step-by-step-guides/
    Benoit Lecours | Blog: System Center Dudes

  • How to extract cost centres from tcode ME23n.

    Hi, i have a issue here regarding the extraction of cost centres from tcode me23n. I need to extract the cost centres from line item account assignment. I know I need to use ekpo-packno and esll-subpackno and then use esll-packno and i am stuck. So which is the next table? I managed to know eskn store the cost centres. Am i right? 
    Thanks & Regards!
    Andy

    Hi Andy ,
    check EKKN for costcentres.
    regards
    prabhu

  • Posting to a cost centre from a sales order

    Hi all.  We are currently in the process of replacing a third party system which deals with publicity mailing and taking the process onto our SAP system.
    At the moment a report is run on the third party system at month end which details the months costs (freight and handling) which is then uploaded into SAP by JV in order to make the postings to the correct cost centres.
    However, the current method of raising orders via email will be replaced with raising sales orders on SAP.  The sales order will obviously allow postings to a profit centre via the material, but how do I then get the costs into a cost centre for reporting and budgetary control?
    I originally thought of using OKB9, however the relationship is not a simple one profit centre to one cost centre, and the costs have to be split across multiple costs centres.
    Any ideas would be extremely welcome.
    If you need any further info just let me know.
    Many thanks

    There are a couple of options depending on how the data comes in and how you want to disburse it. You could use a substitution rule and you could also do CO allocations as well. This is because you have one profit center and many cost centers. One to one is a an easy flow match.

  • Master Cost Centre - create and assign (steps required)

    Hi All,
    I am currently working on a IDES system. I want to create and assign Master Cost Centre. Please help me in providing the steps to create and assign the same.
    Regards,
    Chinmay

    Hi Chinmay,
    Cost Center creation is done by FI Team as that comes under FI module and lot of the other things need to be done. If you just want to create Cost Center you can go to
    Financials -> Controlling (CO) -> Cost Center Accounting -> Master Data -> Cost Centers -> Create Cost Centers
    Tcode for Creating Cost Center is KS01 and for changing KS02
    You also need to Activate Cost Center Accounting in Controlling Area
    Financials -> Controlling (CO) -> Cost Center Accounting -> Activate Cost Center Accounting in Controlling Area table V_TKA01_GD
    For assigning cost center to employee, you can assign it in IT0001 whihc is the master cost center and IT0027 where you can assign overriding cost center
    Hope the information will be helpful
    guds

  • Position to inherit company code and cost centre from Org Unit

    Hi Team,
    I have entered the company code and controlling area in my root Org. Unit.  All the sub-ordinate org units that I've created have inherited this company code and controlling area, however none of the positions I've created have inherited them.  What do I have to do to get my positions to inherit this information from their org unit.
    Regards,
    Jeanette

    Hi,
    Check table T7SS0, there are three switches
    PPOM     INHIC     X     'X': PPOM: Obligatory Inheritance of Company Code
    PPOM      INHIH     X     'X': PPOM: Obligatory Inheritance of Contr. Area
    PPOM     INHS     X     Inheritance of acc. ***. features by positions
    So just check these switches that they are set in this table, and I hope your problem should resolve
    Regards,
    guds

  • Gl account no and cost centre relation

    Hi friends,
                     I need to know there is any function module available to get cost centre from gl account number or any other way to get that?(requirement is to add cost cente in a report copied from f.08 standard report).
    Regards,
    Shans
    Moderator: Please, avoid asking basic questions

    Hi,
    In FBL3N,  give the following details:
    GL Account Number
    Company Code
    Fiscal Year
    Date Range,
    Execute the screen, it will show you the line item details, there you can enable field Cost Center by Ctrl+F8,
    The table for GL Open Item is BSIS and for cleared one it is BSAK
    Hope it is clear, assign pts if helpful
    Br,Vivek

  • Runtime Mapping step throws error

    Good Morning All,
    Recently we migrgated our XI server from Windows to Linux environment. after migration,We tried to test our interfaces,
    No Interface are working, XI is getting the messages,In Runtime Mapping step it failed every interfaces due to error called "This program line cannot be accessed".
    We tested four scearnios ,Every interface failed due to error,Kindly please suggest how can I am going approach here.
    for your reference The trace error full description is:
    <Trace level="1" type="T">Interface Mapping SCM001A1_SA_REQSAPLOG_AND_SAPDATAINSERTREQ_to_SIE_PG_1E_SD_SAP_2_SCM_DB</Trace>
      <Trace level="1" type="T">This program line cannot be accessed</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.UnreachableException: This program line cannot be accessed at com.sap.aii.ibrun.server.mapping.StampPersistor.getCurrentStamp(StampPersistor.java:118) at com.sap.aii.ibrun.server.mapping.StampPersistor.getCurrentStamp(StampPersistor.java:69) at com.sap.aii.ibrun.server.mapping.MappingPool$MappingStamp.getCurrentStamp(MappingPool.java:382) at com.sap.aii.ibrun.server.mapping.pool.SynchronizedGlobalStamp.getCurrentStamp(Pool.java:155) at com.sap.aii.ibrun.server.mapping.pool.Pool.checkOut(Pool.java:50) at com.sap.aii.ibrun.server.mapping.MappingPool.checkOut(MappingPool.java:52) at com.sap.aii.ibrun.server.mapping.JavaMapping.load(JavaMapping.java:91) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:45) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62) at java.lang.reflect.Method.invoke(Method.java:391) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy199.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62) at java.lang.reflect.Method.invoke(Method.java:391) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:219) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</Trace>
    Thank you very much,
    Regards,
    Sateesh

    Hi All,
    We raised the SAP call for this issue, They asked for the J2ee engine thread dump. We created the dump and sent to SAP people back. Now we are waiting the response from SAP people.
    Mean while, Here I am sharing you our XI server J2EE engine thread dump below, Please share your ideas about this thread dump.
    Unfortunately, here I am n't provide you the full thread dump. It was very huge.
    Thread Dump:
    stdout/stderr redirect
    node name   : server0
    pid         : 31861
    system name : XQ1
    system nr.  : 10
    started at  : Mon Mar 14 14:40:57 2011
    <?xml version="1.0" ?>
    <verbosegc version="200902_24">
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: /usr/sap/ccms/wily/logs/IntroscopeAgent.log (Permission denied)
         at java.io.FileOutputStream.openAppend(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:199)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:124)
         at com.wily.org.apache.log4j.FileAppender.setFile(Unknown Source)
         at com.wily.org.apache.log4j.RollingFileAppender.setFile(Unknown Source)
         at com.wily.introscope.agent.AutoNamingRollingFileAppender.setFile(AutoNamingRollingFileAppender.java:179)
         at com.wily.org.apache.log4j.FileAppender.activateOptions(Unknown Source)
         at com.wily.org.apache.log4j.config.PropertySetter.activate(Unknown Source)
         at com.wily.org.apache.log4j.config.PropertySetter.setProperties(Unknown Source)
         at com.wily.org.apache.log4j.config.PropertySetter.setProperties(Unknown Source)
         at com.wily.org.apache.log4j.PropertyConfigurator.parseAppender(Unknown Source)
         at com.wily.org.apache.log4j.PropertyConfigurator.parseCategory(Unknown Source)
         at com.wily.org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(Unknown Source)
         at com.wily.org.apache.log4j.PropertyConfigurator.doConfigure(Unknown Source)
         at com.wily.org.apache.log4j.PropertyConfigurator.configure(Unknown Source)
         at com.wily.util.feedback.backend.log4j.Log4JBackend.configureFromProperties(Log4JBackend.java:97)
         at com.wily.util.feedback.WilyLog4JConfigureAndWatchHelper.onChange(WilyLog4JConfigureAndWatchHelper.java:61)
         at com.wily.util.ConfigurationWatcher.addConfigurationListener(ConfigurationWatcher.java:147)
         at com.wily.util.feedback.AsynchFeedbackChannel.setConfiguration(AsynchFeedbackChannel.java:64)
         at com.wily.introscope.agent.enterprise.EnterpriseAgent.setAgentFeedbackConfiguration(EnterpriseAgent.java:551)
         at com.wily.introscope.agent.enterprise.EnterpriseAgent.loadLogConfiguration(EnterpriseAgent.java:513)
         at com.wily.introscope.agent.enterprise.EnterpriseAgent.doPostConstructionInitialize(EnterpriseAgent.java:201)
         at com.wily.introscope.agent.runtime.java.enterprise.Java2EnterpriseAgent.doPostConstructionInitialize(Java2EnterpriseAgent.java:32)
         at com.wily.introscope.agent.ACommonAgent.postConstructionInitialize(ACommonAgent.java:237)
         at com.wily.introscope.agent.AgentShim.doCreateDelegate(AgentShim.java:590)
         at com.wily.introscope.agent.AgentShim.createDelegate(AgentShim.java:501)
         at com.wily.introscope.agent.AgentShim.getDelegateAgent(AgentShim.java:471)
         at com.wily.introscope.agent.AgentShim.ProbeBuilderEntryPoint_initializeAgentShim(AgentShim.java:711)
         at com.wily.introscope.api.autoprobe.IntroscopeAutoProbeImpl.<init>(IntroscopeAutoProbeImpl.java:35)
         at com.wily.introscope.api.autoprobe.IntroscopeAutoProbeFactory.createIntroscopeAutoProbe(IntroscopeAutoProbeFactory.java:163)
         at com.wily.introscope.autoprobe.connector.AutoProbeConnector.internalLoadAutoProbeAdapter(AutoProbeConnector.java:135)
         at com.wily.introscope.autoprobe.connector.AutoProbeConnector.loadAutoProbeAdapter(AutoProbeConnector.java:155)
         at com.wily.introscope.autoprobe.connector.AutoProbeConnector.getAutoProbeAdapter(AutoProbeConnector.java:173)
         at com.wily.introscope.autoprobe.connector.AutoProbeConnector.addProbes(AutoProbeConnector.java:204)
         at java.lang.ClassLoader.defineClass(ClassLoader.java)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:147)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:477)
         at java.net.URLClassLoader.access$500(URLClassLoader.java:111)
         at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:849)
         at java.security.AccessController.doPrivileged(AccessController.java:279)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:373)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:593)
    <af type="nursery" id="18" timestamp="Mar 14 14:43:36 2011" intervalms="11997.910">
      <minimum requested_bytes="184" />
      <time exclusiveaccessms="0.107" />
      <nursery freebytes="0" totalbytes="313206784" percent="0" />
      <tenured freebytes="1650623016" totalbytes="1728053248" percent="95" >
        <soa freebytes="1564220968" totalbytes="1641651200" percent="95" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <gc type="scavenger" id="18" totalid="18" intervalms="11999.543">
        <flipped objectcount="902865" bytes="77828496" />
        <tenured objectcount="43204" bytes="2969152" />
        <refs_cleared soft="130" weak="80" phantom="0" />
        <finalization objectsqueued="887" />
        <scavenger tiltratio="75" />
        <nursery freebytes="234315312" totalbytes="315141120" percent="74" tenureage="9" />
        <tenured freebytes="1646084472" totalbytes="1728053248" percent="95" >
          <soa freebytes="1559682424" totalbytes="1641651200" percent="95" />
          <loa freebytes="86402048" totalbytes="86402048" percent="100" />
        </tenured>
        <time totalms="40.434" />
      </gc>
      <nursery freebytes="234313264" totalbytes="315141120" percent="74" />
      <tenured freebytes="1646084472" totalbytes="1728053248" percent="95" >
        <soa freebytes="1559682424" totalbytes="1641651200" percent="95" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <time totalms="42.493" />
    </af>
    ================================================================================
    JVMDUMP006I Processing Dump Event "user", detail "" - Please Wait.
    JVMDUMP032I JVM requested Java dump using '/usr/sap/XQ1/DVEBMGS10/j2ee/cluster/server0/javacore.20110316.130003.32060.0004.txt' in response to an event
    JVMDUMP010I Java Dump written to /usr/sap/XQ1/DVEBMGS10/j2ee/cluster/server0/javacore.20110316.130003.32060.0004.txt
    JVMDUMP013I Processed Dump Event "user", detail "".
    <af type="nursery" id="239" timestamp="Mar 16 13:01:58 2011" intervalms="263309.652">
      <minimum requested_bytes="56" />
      <time exclusiveaccessms="0.168" />
      <nursery freebytes="0" totalbytes="366089216" percent="0" />
      <tenured freebytes="1137630384" totalbytes="1728053248" percent="65" >
        <soa freebytes="1051228336" totalbytes="1641651200" percent="64" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <gc type="scavenger" id="239" totalid="239" intervalms="263310.415">
        <flipped objectcount="328811" bytes="39659864" />
        <tenured objectcount="1662" bytes="236744" />
        <refs_cleared soft="2164" weak="5661" phantom="0" />
        <finalization objectsqueued="6154" />
        <scavenger tiltratio="87" />
        <nursery freebytes="326992280" totalbytes="368861184" percent="88" tenureage="14" />
        <tenured freebytes="1136712880" totalbytes="1728053248" percent="65" >
          <soa freebytes="1050310832" totalbytes="1641651200" percent="63" />
          <loa freebytes="86402048" totalbytes="86402048" percent="100" />
        </tenured>
        <time totalms="37.310" />
      </gc>
      <nursery freebytes="326990232" totalbytes="368861184" percent="88" />
      <tenured freebytes="1136712880" totalbytes="1728053248" percent="65" >
        <soa freebytes="1050310832" totalbytes="1641651200" percent="63" />
        <loa freebytes="86402048" totalbytes="86402048" percent="100" />
      </tenured>
      <time totalms="38.244" />
    </af>
    ================================================================================
    dump stack trace : Wed Mar 16 13:02:44 2011
    ================================================================================
    JVMDUMP006I Processing Dump Event "user", detail "" - Please Wait.
    JVMDUMP032I JVM requested Java dump using '/usr/sap/XQ1/DVEBMGS10/j2ee/cluster/server0/javacore.20110316.130244.32060.0005.txt' in response to an event
    JVMDUMP010I Java Dump written to /usr/sap/XQ1/DVEBMGS10/j2ee/cluster/server0/javacore.20110316.130244.32060.0005.txt
    JVMDUMP013I Processed Dump Event "user", detail "".
    Thank you,
    Sateesh

  • COST CENTRE EXPENSES WITH THE HELP OF COSP

    hi all,
        i have to make a report on cost centre expenses with the help table COSP.I have to put cost centre  from OBJNR in which last five haraters are cost centre and period like month  and year.After that in report display i want KSTAR i.e. in down the line and cost centres of selection in vertical it may increase or decrease depending on selection.After that i have to add all the WTG001-WTG016.if in seletion period is 1 to 2 then i have to add WTG001 and WTG002 in corresponding in KSTAR and so on in desired cost centre column below that facing respective KSTAR.If anyone can send any report relating that i will be thankful.
    Regards,
    Praveen

    Answered

  • Cost centre assemment cycle

    Dear all,
    Question on Cost Center Assessment Cycle:
    Controlling environment: only one controlling area with several company codes.
    In my standard hierarchy we've got some nodes with cost centre from different company codes in the same node.
    I would like to transfer cost from one node to another node via an assessment cycle.
    So I activated “company code” in header data as selection criteria for cost center assessment cycle via Tcode KCIU.
    This selection criteria will allow SAP to sort cost centre and only takes the one which will correspond to company code selected.
    The sender rule is the "posted amount" and the receiver rule is the "percentage".
    Once cycle has been created, I click on the check icon and the check was successful.
    When I execute it, SAP warns me that "no valid sender entries were found". The message errors numbers are GA749 and GA710. And those messages correspond to FI message and not CO.
    I do not understand because there are posted amounts and all cost centers exist with the good period of validity.
    Do you know why? Do you have an explanation?
    Is it really possible to activate some news criteria selection for cost centre assessment cycle? Or definitively not possible.
    Did I forget any else customizings?
    Best regards
    Sovann leng

    You have two directions to resolve this issue:
    1- check TCODE GCA8 and check whether the new GL tables are listed or added specially the FAGLFLEXT
    2- You probably need to change the From To periods in the selection parameters. Don't make the From To the same period.
    Make sure the Settlement profile is configured appropriately. With a bit of trial and error concerning the GCA8 including defining a new Cycle with another segment, and it'll work.

  • How to provide Cost Centre  in Shipment cost automatically

    I need to pass the values at Cost Centre field, based on the various company codes, while performing the SHIPMENT COST.
    Scenario is as follows:
    Each line item is assigned to a charge head ( i.e. GL account) but this needs CO object, at this point, we need to insert the CO object based on certain logic:  (Manual input is not being accepted by the client) some form automation is required.
    Could anybody please advise me, how this is possible - by advising the details of BADI / USER EXIT / Substitution.

    if u use cost centre from om side than it shd show in organisgment assignment
    check with the integration is properly done or not
    ploig orga shd be x
    plogi plogi shd be 1

  • Linking Cost Centre to Hierarchy via ALE

    When sending new Cost Centres from our FMS Server to HR/Payroll Server via ALE & IDOCS, the Cost Centres are created, but there is no link to the Hierarchy. (ie) when going into transaction OKEN, they do not appear under the relevant group. However in KS03, the new Cost Centre is displayed with its Cost Centre group.
    Is there a Function Module which can be run to rectify this, or can ALE be configured to do it.

    Hi Beena,
    You can structure your cost centers into groups like
    - OverHeads
      *SalesMarkeing
      *R&D
      *Admin
      *HR
      *Service
      *MGMT Office
    - Manufacturing Depts
      *dep1
      *dep2
    - Products
      *Prd1
      *Prd2
    Rgds
    Kishore

  • CATS - Defaulting Receiver Cost Centre in CAT2

    Greetings !!
    We currently use some Activity Types with Zero rate to book non productive time.
    These hours therefore need to be booked on a Cost Centre ( receiver) instead of WBS element.
    We would like to default the Receiver Cost Center value to be same as Sender Cost Centre ( from Infotype 0001)
    Can you please suggest how to achieve this?
    Many thank in advance
    JG

    requirement is :
    1. user has to book productive hours against wbs
    2. non productive hours against the home cost center
    3. user should be able to do that within a single cats entry profile.
    solution:
    1. educate the users to use the correct activity codes for the right kind of work performed. - really simple.
    2. now the idiot proof technical solution: do a user exit to enforce
    a. if wbs is selected non-productive activites cannot be entered
    b. if non productive activity is selected only home cost center can be the receiver
    c and so on and so forth kind of conditions.
    d. ensure you do not hardcode stuff, its a bad practice but not unheard of in the abap world.
    e. you may want to check the catsnnnn user exits provided by sap, where nnnn = numbers 0001 till 0009 I think.

Maybe you are looking for