Profit center conversion Function Module

Hi,
Is there Any Function Module to  Convert Profit Center from 4 digit into 10 digit.
Regards,
Dhanush.S.T

Try using FM CONVERSION_EXIT_ALPHA_INPUT.
data: lv_prctr type prctr value '1234'.
CALL 'CONVERSION_EXIT_ALPHA_INPUT'
  exporting input = lv_prctr
  importing output = lv_prctr.
"After this call lv_prctr will have values '0000001234'.
Hope this helps.
Thanks,
Balaji

Similar Messages

  • Conversion function module

    Hello Friends,
              When ever i down load into excel file the filed 'WERKS' is becoming from '0780' to 780 and when i try to upload i am getting as 780 which is creating  some problems. Is there any conversion function module to convert the the field WERKS from 780 to 0780.
    Thanks in advance.
    Siva Kumar.

    Hi
    When you are using FM 'GUI_DOWNLOAD' to download to excel file, you need to populate the parameter FILE TYPE with DBF.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = p_file
    <b>filetype = 'DBF'</b>
    Thanks
    Vijay
    PLZ reward points if helpful

  • Date Conversion Function Modules YYYYMMDD to MM/DD/YYYY

    Hi,
    I have a requirement to Conver the Dats from format: YYYYMMDD into the Format : MM/DD/YYYY. Can you  please suggest me a suitabble Standard Function Module if exists? If not please suggest me a solution for this data conversion.
    Thanks,
    Rajan.SA

    Hi,
    You can use WRITE FORMATING.
    Here the sample code:
    DATA: BEGDA       TYPE TEXT10,
          ENDDA       TYPE SY-DATUM.
      WRITE SY-DATUM TO BEGDA MM/DD/YYYY.
      WRITE SY-DATUM TO ENDDA MM/DD/YYYY.
    And of course you can use other format, like:
    ... DD/MM/YY
    ... MM/DD/YY
    ... DD/MM/YYYY
    ... MM/DD/YYYY
    ... DDMMYY
    ... MMDDYY
    ... YYMMDD
    Or you can use concatenate statement:
        concatenate SY-DATUM+4(2) SY-DATUM+6(2)
        SY-DATUM(4) INTO BEGDA separated by '/'.
    Regards,

  • Conversion Function module for Volume

    hi,
      Is there any standard function module to do the conversion of VOLUME.
    for example : if i have source volume in one unit & i want it in another unit.
    regards,
    srikanth,Intelligroup.

    If it is a straight conversion and you do not need to use the conversion factors tied to a material then you can do something like this.
    report zrich_0001.
    parameters: p_qtyi type p decimals 2,
                p_uomi type t006a-msehi,
                p_uomo type t006a-msehi,
                p_qtyo type p decimals 2.
    at selection-screen.
      call function 'UNIT_CONVERSION_SIMPLE'
        exporting
          input                      = p_qtyi
    *   NO_TYPE_CHECK              = 'X'
    *   ROUND_SIGN                 = ' '
         unit_in                    = p_uomi
         unit_out                   = p_uomo
      importing
    *   ADD_CONST                  =
    *   DECIMALS                   =
    *   DENOMINATOR                =
    *   NUMERATOR                  =
         output                     = p_qtyo
    * EXCEPTIONS
    *   CONVERSION_NOT_FOUND       = 1
    *   DIVISION_BY_ZERO           = 2
    *   INPUT_INVALID              = 3
    *   OUTPUT_INVALID             = 4
    *   OVERFLOW                   = 5
    *   TYPE_INVALID               = 6
    *   UNITS_MISSING              = 7
    *   UNIT_IN_NOT_FOUND          = 8
    *   UNIT_OUT_NOT_FOUND         = 9
    *   OTHERS                     = 10
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards,
    Rich Heilman

  • Unit conversion  function module

    Hi,
    Can anyone give me the details of this function module
    Function Module name: MENGE_UMRECHNEN.
    its urgent.
    Thanks in advance.
    vaibhav

    Hi Vaibhav,
    This function module gives you the provision of conversion of quantities from Base Unit of Measure to any of the Alternative Unit of Measures or vice-versa.
    But this function would be done only for the materials and its limitation would be determined by the data maintained for a material in T006 table.
    Using this FM you can convert a material quantitity of unit 'X' to unit 'Y' only if 'X' and 'Y' are of the same dimension.
    <b>Reward points if this helps,
    Kiran</b>

  • Quantity Conversion Function Module

    Hi,
    I am using BW7.0's feature - Quantity Conversion (TCode: RSUOM).
    I could use it for converting quantity for different unit on the fly during report time.
    Now, I would like to do convert during data upload. Is there any function module that can help?
    Please note that the quantity conversion factor is "Material dependent".
    Thanks in advance.
    Best Regards,
    Chris

    Hi,.
    1) In the BEx Tab page of
    Characteristic 0MATERIAL, maintained the field "Base Unit of Measure" as 0BASE_UOM .
    2) In the BEx Tab page of
    Characteristic 0MATERIAL, maintained the field "Unit of Measure for Char." by click on the New button, it will generate a DataStore Object, which will store information for calculating the conversion factor.
    3) Fill in the DataStore generated with data, using the DataSource 0MAT_UNIT_ATTR.
    Note that we must NOT use the the former infosource technique and update rules for loading data to it. Use transformation and DTP, else the SID could not be loaded to it.
    (I stuck with this problem before..:))
    4) Create a Quantity Conversion Type through TCode RSUOM, the Conversion factor can choose 1,3 or 4, with reference to 0MATERIAL InfoObject.
    5) Then in any query of cube with 0MATERIAL in it, the quantity conversion type defined in step 4 could be use for displaying data in other UOM~
    Hareesh

  • BUSINESS AREA OR PROFIT CENTER BEST FUNCTIONALITY

    HI, TO ALL FRIENDS
    OUR COMPANY HAS 23 SALES OFFICES.SO CAN BODY CAN ADVICE METHAT BUSINESS AREA IS GOOD OR PROFIT CENTER. AS COMPANY NEED BALANCE SHEET FOR  EVERY SALES OFFICE SAPERATELY.
    WAITNG FOR YOUR SOONER REPLY
    THANK YOU IN ADVANCE.
    Moderator: Please, search before posting and don't use CAPITAL letters

    Hi,
    Please refer this link:
    http://wiki.sdn.sap.com/wiki/display/ERPFI/BusinessAreaVs.ProfitCenterVs.Profitability+Segment
    Regards,
    Pramitha.

  • Profit center in FI-module

    Hi All,
    Is there any field named as parent profit center?
    I know "parter profit center" related to profit center accounting.
    But never heard and seen about parent profit center.
    Please let me know exactly.
    Thanks and regards,

    hi sarau,
      ya ur right Profit center is the field anme generally on that profit centre only u have to do analysis of profit/loss .
    but in some cases i.e if it having hierarchy in that "parter profit centers" also having analysis.
    Thanks
    kiran.
    assign the points if it helpfull**

  • Currency conversion function module

    hi all,
    i want to change the currency to GBP so i need help regarding which standard sap function module will support for my solution.
    can any one help me out, thanks in advance.

    You can use
    <b>CONVERT_TO_LOCAL_CURRENCY</b>
    <b>SAP Documentation for the same is as follow :-</b>
    Translate foreign currency amount to local currency
    An amount in local currency is calculated from a specified foreign currency amount. For this, you may either specify the translation rate manually (Parameter RATE) or have the system determine it from table TCURR on the basis of the rate type, date and currency key. Because the ratios for the units of the currencies involved in the translation are significant for this translation, table TCURF is always read by the program, and there must be a valid entry there for the data specified. IF exchange rate fixing is defined for the exchange rate type TYPE_OF_RATE or an alternative exchange rate is defined for the currency pair, this information is transferred to the calling program.
    When table TCURR is read, the foreign currency key is always taken as the first part of the key and the local currency as the second part.
    Sample call-up:
      CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
        EXPORTING   DATE             = BKPF-WWERT
                    FOREIGN_CURRENCY = BKPF-WAERS
                    LOCAL_CURRENCY   = T001-WAERS
                    FOREIGN_AMOUNT   = BSEG-WRBTR
                     RATE             = BKPF-KURSF
                    TYPE_OF_RATE     = 'M'
        IMPORTING   EXCHANGE_RATE    = KURS
                     LOCAL_AMOUNT     = BSEG-DMBTR
                    FOREIGN_FACTOR   = FAKTOR-F
                     LOCAL_FACTOR     = FAKTOR-L
                     FIXED_RATE       = FIXKURS
        EXCEPTIONS  NO_RATE_FOUND    = 4
                    NO_FACTORS_FOUND = 8.
    Hope this helps you..
    Enjoy SAP.
    Pankaj Singh

  • Timestamp Conversion Function Module

    Hi all,
    >>We are bringing time stamp value (like 20072404161312) from CRM ,we need to convert into date & time. I need function module which one does this...
    >>We are are storing the time duration in min format (its key figure). I need to populate in reports as HR:MN:SS , How we can do this? Is there any function module is available for this?
    Thanks in Advance

    Hello Arun,
    The timestamp is in the format <date><time>. In your example (20072404161312), the date is 20072404 and time is 161312. You can transfer the timestamp into a string and then split the data. You can use the following ABAP code to separate the date from the time:
    * w_ts is your timestamp, w_s is the temporary string
    *w_date and w_time will be your final date and time.
    data: w_ts type timestamp.
    data: w_s type string.
    data: w_date type sy-datum,
          w_time type sy-uzeit.
    w_ts = '20072404161312'.
    * Here is the code you need:
    w_s = w_ts.
    w_date = w_s(8).
    w_time = w_s+8(6).
    Hope this helps.
    Hope this helps.

  • How to User Profit Center Fucntionality in ISH Module

    Hi,
    In ISH Module, i dont find an option To User Profit Center Accounting fucntionality as i am able to see only Cost Center & Internal Order.
    Kindly Proivde me some inputs how to use Profit Center in ISH module and How to get the P&L Reports profit center wise.
    Thanks

    Hi
    IS-H uses cost centers for revenue accounting, you must deactivate the flag that blocks revenue accountig in cost center master data. The revenues are then posted to profit center assigned to the cost center. There is no place to configure profit center accounting in IS-H.
    With best regards
    Matías

  • Profit Center Report doesn't show data

    Dear Experts,
    I've posted some data thru FB50 in FI, with different cost center assignment 1201 and 1202.  Both cost centers are assigned to profit centers, YB110 and YB120 respectively in master data.
    Then, I tried to run a profit center report, S_ALR_87013326 from Profit Center Accounting (PCA) module but doesn't show any data.
    Do I need to do any period-end processing in order to get the data out from PCA report?
    By the way, the selection required for plan version, I just keyed in '0'.  Not sure of the number, where to find the plan version as I didn't create any plan before this.
    regards,
    Abraham

    Hi
    If you see the screen shot I attached, it has the text "(new)" against the Folder name...
    All new gl reports are under such a folder to differentiate... You cant deactivate any reports from the Standard Menu... You can just control it by authrization....
    You can also ask your BASIS guy to display only the authorized trans on the user screen so that they are not able to see the std set of transactions
    Br, Ajay M

  • Profit Center issue when executing GR55

    Hi Experts,
       I was reported by the business users that they see transactions with the Dummy Profit Centers when they run report for Balance Sheet and P&L Statements. They dont want to see any Dummy Profit Center Report Transactions in their financial statementsin both BSand P&LStatements. 
    For example a number of Documents posted against same G/L account and few of them have dummy profit centers, users doesn't want to see them.
    I already checked in tables BSAD,BSID, BSIS,BSAD, BKPF,BSEG
    TCodes: FAGL3KEH (No default profit centers allocated to anyone of the company codes), FBL3N, FBL5N, VF03
    So we know that there is issue but I need to know the process to find it.
    Can anyone help me out the procedure to find out the issue. This is very high priority issue.
    Thanks,
    Andy Roger

    Refer to the IMG Activity Documentation for the following IMG Node.
    Financial Accounting (New) -> General Ledger Accounting (New) -> Master Data -> Profit Center -> Create Dummy Profit Center
    Here is the documentation:
    Create Dummy Profit Center
    This function lets you create the dummy profit center for the current controlling area.
    The dummy profit center is updated in data transfers whenever the object to which the data was originally posted (cost center, order, and so on) is not assigned to a profit center. This ensures that the data in Profit Center Accounting is complete. You can later send the data on the dummy profit center to the other profit centers using assessment or distribution.
    You create the master record for the dummy profit center using this special transaction. To change or display it, use the normal profit center maintenance functions.
    The name of the dummy profit center is displayed in the controlling area settings for Profit Center Accounting.
    Prerequisites
    The standard hierarchy must exist for the current controlling area.
    Actions
    Enter the name of the dummy profit center. The rest of the steps are the same as when you create a normal profit center.
    Choose the function Extras -> Set controlling area first to make sure that the correct controlling area is set.
    I am guessing this is where your dummy profit center postings are coming from (a cost center / order or some other account assignment object that is not assigned to a profit center).  It should be mandatory (in your month-end close) to run reports on dummy profit center(s) and move balances, if any, to the real profit center, before you pull financial statements.

  • Wrong Profit Center on Material document (Goods Receipt PO for Asset)

    Dear SAP Expert,
    When our company upgrade our SAP version from 4.6C to ECC6, all Profit Center on Material document (Goods Receipt on Purchase Order for Asset) is filled by profit center DUMMY.
    This condition not happend in our previous version (4.6C). Is there any new configuration on ECC6 for Asset Accounting?
    Many Thanks
    Maickel P

    Hi, Maickel:
    There is a setting for Dummy Profit Center, you can check in SPRO: Controlling->Profit Center Accounting->Master Data->Create Dummy Profit Center.
    And you can refer to the help of this IMG activity:
    Create Dummy Profit Center
    This function lets you create the dummy profit center for the current controlling area.
    The dummy profit center is updated in data transfers whenever the object to which the data was originally posted (cost center, order, and so on) is not assigned to a profit center. This ensures that the data in Profit Center Accounting is complete. You can later send the data on the dummy profit center to the other profit centers using assessment or distribution.
    You create the master record for the dummy profit center using this special transaction. To change or display it, use the normal profit center maintenance functions.
    The name of the dummy profit center is displayed in the controlling area settings for Profit Center Accounting.
    Prerequisites
    The standard hierarchy must exist for the current controlling area.
    Actions
    Enter the name of the dummy profit center. The rest of the steps are the same as when you create a normal profit center.
    Choose the function Extras -> Set controlling area first to make sure that the correct controlling area is set.
    Notes on transporting
    You can transport the Customizing settings for Profit Center Accounting under Transport Connection.

  • Profit center group number on the report painter report.

    Hi,
    We have a client requirement where we have to develop Profit center by Functional Area report by using report painter report functionality, however we are able to bring profit center group description on to the report as per the requirement, but not able to get profit center group number displayed on the report.
    Can anyone please advice me if we can get the Profit center group number displayed on the report in Report painter report. Else let me know if we can get the requirement met by an ABAPER.

    Hi.
    First of all, through transaction GS01 create a set ID for profit centers.
    Give table GLPCT, let the set type be the default (basic set) and give field name RPRCTR. Then define the range of profit centers you want. If you want all the profit centers give * in the "from value field".
    Then create a variable through transaction GS11. Give table and field as above, choose variable type set and at the default set field choose the set you created.
    Finally, at report painter go to Edit/General Data Selection and select profit center.
    Check both flags (for entering sets and variables) and give at the form field the variable you've made.
    Now the progit center group will be available in the selection screen with default value the set you've made.
    Regards

Maybe you are looking for