Storing Cost Centres as Text Fields

I have a problem at a client with cost centres. They have cost centres that are numeric some of which are prefixed with leading zeroes, some not-for example 12345 and 0012345. These are two distinct cost centres, but due to the formatting on the KOSTL field SAP tries to store both as 0000012345. This means that one of the cost centre creates will reject. Is there any way of storing these cost centres as text within KOSTL, so that both can be stored.
Thanks

>
ARINSO International wrote:
> Thanks Rob,
>
> This is something that we have considered already however there are other elements that are effected by this so we are still looking for other options.
>
> Thanks
I don't think that there are any other options.  Unless you want to try modding the SAP standard to remove the KOSTL conversion exit (only kidding - don't do this).

Similar Messages

  • Cost centre as input field

    Hi All
    At my client (with several sites) the cost centre field is an output field on IT0001 because the integration switch between PA and ORG is switched on. This is good for the bulk of the sites, but the client now wants the cost centre field to be an input field if the employee resides in the UK. How do I do it ? In the PAI of the flowlogic in the  modulepool ? Using dynamic actions and branching out to an little routine ? or what ??  I've tried the settings of the field in the element list of the modulepool (flagging the field as an input field) and I've also tried the setting of the field in T588M (screen control), but no cigar....... The PLOGI switch keeps the field as an output field. I cannot fiddle with the PLOGI swich as this requirement only goes for UK (ie the rest of the Globe needs the switch to be on). Advice will be much appreciated.

    Hi,
      You can do it through the Enhancement -PBAS0001
    Exit -EXIT_SAPFP50M_001
    write the logic here for making the field kostl as input field depending on the location.
    Reward points if useful
    Regards,
    Manoj.

  • Can't access a value stored in a form text field

    I created a small test page to try and understand how a piece of javascript works, well actually it's not working. All I'm trying to do is display the value entered in a text field in a form and it's failing with 
    SCRIPT5007: Unable to get value of the property 'value': object is null or undefined 
    temp.php, line 39 character 1
    The line it's failing on is this
    x = document.getElementById("otherChoice").value;
    The page can be seen here www.hollisterairshow.com/temp.php
    I just don't understand why it thinks the text field is undefined when it clearly is. I'm using DW CS4 and IE9.
    Thanks for any pointers you might have.
    Tony

    Thank you so much, I've been struggling with this for almost a week now.
    Just to complete the answer, I had to assign an ID to the text field and also to the "Other" button so that the JS could access both when it moved the value from the text field to the Button which was the original problem I was trying to solve.
    Thanks again for the assistance, much appreciated.
    Tony

  • Storing comment in a text field

    Hello everyone. Hope you are all well.
    Have a bit or of a problem.
    I have imported and XML file and using the code below i am
    able to store comments against a particular node.
    //istener object for tree
    var lo:Object = new Object();//a custom object called "lo" is
    created.
    lo.change = function(evtObj:Object):Void{
    var itm:Object = mytree.getSelectedItem();
    if(itm.savedComment != undefined)
    newcomment.text = itm.savedComment;
    else
    newcomment.text = "";
    mytree.addEventListener("change",lo);//everytime the tree
    component generates a change event
    //from the user selecting a different node the listener code
    runs.
    //listener object for submit button
    var lo2:Object = new Object();
    lo2.click = function(evtObj:Object):Void{
    var itm:Object = mytree.getSelectedItem();
    itm.savedComment = newcomment.text;
    addCommentbtn.addEventListener("click",lo2);
    All i need now is that whenever the user clicks on a button
    ("viewComment") ALL the comments already submitted are presented in
    a dynamic text field.
    ANy help is much appreciated. Thanks.

    This method works for a Text Field but can you text wrap and expand to fit the height of a cell that is a Drop-down List. The Expand to fit check box on the Layout palette is greyed out for all my Drop-down boxes. I have also tried using the following JavaScript:
    var newHeight = xfa.layout.h(DropDownList, "in");
    Textbox.h = newHeight + "in";
    but it doesn't work. Any suggestions?

  • Employees  has the same cost center long text as the previous record

    Hiiii Experts,
                          in ABAP-HR 2 employees have got the same cost centr text (kostl) with different perner.we shouldnt get  the same cost centres long text for diff pernr(employee numbers). please solve this.
    thanks and regards,
    Vishal

    Employee 01605429 has the same cost center long text as the previous record.
    01605304;A;MIKE.GESSLERMichael;Gessler;19000101;0500192745;;NUSA;NUSA SLS Solon Prepared Foods Sales;CD SOLON HQ
    01605429;A;DANA.SHERMAN;Dana;Sherman;19000101;0500193070;;NBSNA;NBS Solon Employee HR Services;CD SOLON HQ
    There are records in the file with no const center which should not be included in the file.  We need to know why they were extracted and why
    don't they have a cost center. See below.
    10252768;A;CHARISSA.HALFORD1Charissa;Halford;19000101;;;NPFC;;
    10252770;A;MATTHEW.CANADAY1;Matthew;Canaday;19000101;;;NPFC;;

  • Search and Replace values in the text field before values are stored to DB

    Hi,
    In my application there is a question - text area and answer - text field. Problem is, some answers are stored with the single quotes to the DB and I have a problem while retrieving it from the DB. I need to replace the 1 single quotes with 2 single quotes. The values are stored to the DB when the submit button is clicked.
    So I am using the following javascript code:
    italics
    <script type="text/javascript">
    function test()
    var str="&P2_S1.";
    document.write(escape(str));
    </script>
    italics
    I need to call this javascript function, when the submit button is clicked but BEFORE the values are stored to the DB. How can i get this done?
    Please let me know.

    Hi,
    Thanks for the reply.
    Yeah I planned to drop the Javascript idea.
    Now, I am using the PL/SQL code. This is what I am planning to do.
    When the user enters any word like this, Test's, this single quote should be replaced by some special character, #@@#, - what is the PL/SQL code for this?
    Right now my PL/SQL code is:
    begin
    update test set S1=:P2_S1 where name=:APP_USER;
    end;
    so the replacing part should come somewhere before the update statement.... how can I do it?
    from the DB when the values are retrieved, I use the following code:
    select REPLACE(s1,'''','') from test where NAME=:APP_USER; // this works fine.
    Please help me with the replace of the single quote before the update process...

  • How to assign search help for custom cost centre field in SRM 7.0

    Hi Experts!!
    We are currently working in SRM 7.0.As per our business requirement, in account assignment tab we need to use a custom
    cost centre field (ZCOST_CENTRE) instead of standard cost centre field.It is observed that for standard cost centre field there is a standard web-dynpro search-help assigned where it will return the F4 search help values from backend.
    Can any one of you please help me how can I assign the search-help for the custom cost centre field. Is there any FM to call the backend cost centre search help for custom field or any other way how can I achieve this?
    Thanks in advance.
    Regards,
    Kalyani

    kalyani,
    i can see your requirement in below way..
    as it just reads: you need to assign the standard cost center help to a z cost center field in component /SAPSRM/WDC_UI_DO_ACC.. which actually is fetched though the component /SAPSRM/WDC_UI_BACKEND_SH
    so, if you see the component controller of SAPSRM/WDC_UI_DO_ACC you will see the component
    USAGE_SH_F4     /SAPSRM/WDC_UI_BACKEND_SH                        
    USAGE_SH_F4     /SAPSRM/WDC_UI_BACKEND_SH     INTERFACECONTROLLER
    so you can replicate the same functionality for your z field.
    but can you clarify one thing.. why are you going for this z field in place of standard field ?

  • Field cost centre is a required field for GL account Error

    The error that I get during a sales transaction is: Field cost centre is a required field for GL account Error. Where or which transaction in FI do I use to maintain this setting.
    Thank you.

    Hi,
    Goto Tcode - OKB9. Search for that G/L account number under your co. code. There select the row, you can maintain the cost center directly. Else for Account assignment detail column, keep it as 1(Valuation area mandatory). Then under new entries maintain the valuation area, which is nothing but the plant, and against that maintain the cost center.
    Hope this resolves your query.
    Please let me know if you need any additional information.
    Thanks,
    Prithwiraj.

  • Asset Posting-Cost Centre input field

    I am trying to post an asset acquisition using FB01.  While posting the amount to the asset, system does not show the cost centre as greyed out eventhough the FSGs for GL and posting key are suitably modified with 'cost centre' as 'optional'.  How the cost centre field is coming greyed out and not able to enter a value at the time of APC posting ?
    Please offer your comments.

    Hi Jyoti
    Thanks for messaging.  In fact I had assigned a cost centre in the Asset Master.  I was trying to change the cost centre in the FI Posting.  Hence it was greyed out.  Forgetting this aspect, I was doing a wrong move. 
    Regards

  • Add cost centre name field or description in line item reports

    Dear all,
    How can the cost centre name or description be added in a report's lines (i.e. FBL1N). These fields (columns) are not included in the reports and need to add them. I have tried through special fields to include them but the table CSKSZ and fields KTEXT (Cost Centre name) and LTEXT (Cost centre description) are not included.
    Regards,
    George

    Hello,
    You must use business transaction event 1650 for adding special field to FBL*N reports.
    Please refer OSS note below.
    Note 984305 - Line item: Definition of special fields (T021S)
    I hope it helps to you.
    Regards,
    Burak

  • Add cost centre field in va02

    Dear friends,
    How to add cost centre  fields in transaction va02 on screen? is it possible using user-exit?
    or is there any steps to create user-exit?
    Thanks,
    regards,
    Vishal Bhagwat.

    Hi Vishal,
    Your requirement could be implemented using a user-exit:
    Hope the below  reply helps:
    Transaction Code - VA02 Change Sales Order
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    No of Exits: 15
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Kindly Award Points If You Find The Reply Helpful.
    Cheers,
    Chaitanya.

  • Dimension 1 Cost centre field is not able to edit in Incoming payment for Down payment Request

    Hi Exports,
    I am facing an issue on selecting Cost centres in Incoming payment screen.
    Issue: While I am booking the payment entry for Down payment request, I am not able to select first Dimension cost centre in Incoming payment rows for down payment request document, the Second dimension is able to select and update. the field is in non-editable mode (only on specific document row)
    Setup:
    1. Two Dimension are enabled
    2. In Separate Columns - Both Cost Centres are in separate column
    The above issue is only for Down payment request, for other documents (Invoice) I am able to select and update cost centre
    Please find below snap shot for reference
    Kindly check and let me know the solution
    Regards,
    Kiran

    Hi Gordon,
    Thanks for your reply.
    Yes agree, The Down Payment request is not a financial document but the Cost centres are able to select in Down payment request rows, no issue at all in this case.
    In Incoming payment screen it is necessary to select Cost centres because it has financial implication using down payment request with related to currency difference or Bank charges (both are Expense accounts) and DR assignment is mandatory in this case.
    And you have to notice one thing in above issue, I am able to select second dimension cost centre and it is allowing to edit and update the cost centre on respective row. Only issue is specific cell (dimension 1 cost centre) is not able to edit.
    Even I am not able to process payment entry without selection of Cost Centre on first dimension, the system is blocking and displaying the error message "DR Assignment is mandatory on Dimension 1 for specific account"
    Looks like bug, please clarify
    SBO version: 9.0 PL 11
    Regards,
    Kiran

  • Cost centre field needed in down payment transaction F-48

    Dear FICO experts,
    I am using the special GL indicator A. Currently my F-48 transaction contains a mandatory field "business area".  Tried all morning to replace this with an optional field "cost centre". Checked the field status variants G001 and G026 and cost centre is mentioned as an optional field but in the transaction, the field cost centre does not show up?
    Any tips?
    Deb

    Dear Alex,
    Ok I am thinking of an alternative
    Perhaps I could use perhaps FB60 to post down payments by setting "transaction" on blank (instead of invoice or credit memo) and selecting "special GL indicator" to A?
    The only thing now will be to include the special GL indicator A in the matchcode of SGL Ind field in FB60?
    Best regards, Deb

  • REG: KS01 input field cost centre

    Hello All,
    In TA: KS01,create cost centre initial sceen,the field 'cost centre' is made mandatory.
    Is there a customizing so that the system generates an internal number for the cost centre.
    Or do we always have to give the name of the cost centre.
    Thanks in advance.
    Regards,
    Julia

    Hi ,
    Cost Center name is always externally inputted.. it cannot be internally generated..
    Regards
    sarada

  • Mandatory fields used in up dating vb60(vedor invoice) and ks01(cost centr)

    Hi all,
    can anyone plz send me the mandatory fields along with discription for recording vb60(vendor invoice) and KS01(cost centre).
    ill award the points plz send me.

Maybe you are looking for