Get Profit Center Function Module

is there any Get Profit Center Function Module..
what for is it used ? how way is it related to profit center.
What are the transaction codes of MR1M,OKB9.
What is the significance of using these ?
Could any body please explain.
THANKS IN ADVANCE...

All the profit center are stored in CEPC - Profit Center Master Data Table, so u get the profit center details from this table.
Check the below link for the transaction:
http://help.sap.com/saphelp_utilities472/helpdata//EN/08/513e4243b511d182b30000e829fbfe/frameset.htm
Regards,
Prakash.

Similar Messages

  • Fbl5n profit center is cracked   , itz possible to get profit center value

    fbl5n profit center is cracked u  , itz possible to get profit center value
    in ur zfbl5n report
    der r few changes in program to b made
    Message was edited by:
            Ronei Shedi

    Hello Ronei,
    No need to make a copy of the FBL5N to have the profit center in the list.
    You can have it in the ALV Layout.
    Select profit center in the Hidden fields column and pass it to left hand side column.
    Save as a Display Variant.
    Next time when you run the FBL5N, select your display variant in the last frame "List Output".
    Regards,
    Naimesh Patel

  • Not able to get profit center in ODS

    Hi ,
    For a materila number we are not able to get profit center in Billing ODS.
    In PSA we have profit center for that material.
    Transfer rules: profit center mapped to 0PROFIT_CTR field.
    Update rules: 0profit center mapped to source fields profit cneter .
    Data source : 2LIS_13_VDITM.
    But profit center we are unable to get into ods. No routine contains restrictions for profit center. How can we geet the profit center.

    Take a look at your ODS key,  Grab a few records from your ODS that are incorrect and look them up in the PSA.   My guess is that Profit Center is not part of the key and you are getting two records for your key .... the last one doesn't have Profit Center filled.
    If you really want profit Center, you can make it part of the key, but since I am unsure of your data, key or scenario, it is hard to say what exactly the best solution would be.
    Brian

  • Profit center Functionality

    Hi all,
    Profit center functionality in our SAP system, Currently we have one 1 (9999) defined for P&L entries which the system automatically populates when entries are made. As we are now moving into a multi-product commercial environment, we would love to know the ease to utilize this technical area to allow us to run, at the product level, Revenue u2013COGS financial statements within FI (without the need to go to CO or without that transparency).
    What are the steps that we have to take to an easy progress from what we are now..... Also let me know what are the steps that i have to take.....
    Waiting for the inputs...
    Regards
    Kumar
    Edited by: Kumar_FICO on Oct 23, 2009 5:52 PM

    Dear Kumar,
    Profit Center account is a beautiful tool in SAP FICO.  Now in ECC 6.0 we have a document spliting is very use ful to have muli Profit Centers Segment Wise Or Product Wise.   We can able to see the Profit Center Wise Profit & Loss Account.  There are several reports are there to view Profit Center Wise. 
    Dont hesitate to ask to anohter information
    Regards
    Raj

  • How to get profit center group and its description

    According to three tables(as below), i get profit center group, how to get its description?
    CEPC  (Profit Center Master Data Table)
    SETLEAF
    SETNODE
    PS:(Referrence to teh link fields in table)
    For Profit centre Group ( SETLEAF-SETNAME )
    Select BSEG-BUKRS / BSEG-PRCTR from BSEG.
    SELECT SINGLE SETNAME INTO WA_SETNAME
    FROM SETLEAF
    WHERE SETCALSS = '0106'
    AND SUBCLASS = BSEG-BUKRS
    AND VALFROM = BSEG-PRCTR
    i can get two records, why?

    Hi,
    I am not sure of the significance of this table...
    But looking at the table structure it is having LINEID as one of the key fields..
    So you can have more than one record for the same combination..
    Thanks,
    Naren

  • Profit centre function module

    Hello friends!!!!
    Can anyone tell me which function module is used in fgi0 for payable : profit centre to make it profit centre specific.
    actually i am doing a report  where i have to fetch data as per the profit centre so not able to get dat profit centre as used in fgi0 to make it profit centre
    specific.
    I also debuggged fgi0 but not able to understand how it goes.
    Kindly help!!!
    Helpful answers will be rewarded.
    regards
    shappu

    Check these:
    BAPI_COSTCENTERGROUP_GETDETAIL
    BAPI_COSTCENTERGROUP_GETLIST
    BAPI_PROFITCENTERGRP_GETDETAIL
    BAPI_PROFITCENTERGRP_GETLIST
    BAPI_COSTELEMENTGRP_GETDETAIL
    BAPI_COSTELEMENTGRP_GETLIST
    BAPI_INTERNALORDRGRP_GETDETAIL
    BAPI_INTERNALORDRGRP_GETLIST
    Regards,
    Ravi

  • How to get data from function module in crystal report

    Hi,
    I installed Crystal Reports 2008 and BO SAP Integration kit for CR.
    I connected successfully to SAP system from CR but unable to get the data into Report ...
    But data is present in function module.
    Could you please tell me what may be the reason ...!!
    Thanks
    Raghavendra

    Hi,
    I connected successfully to SAP system from CR but unable to get the data into Report with all the Input parameters and data is present in function module.
    Note: - If we take Start date as input parameter in Crystal report data is coming for single parameter, whereas we take input parameters like Partner function, Region and Customer - we are not getting data. (These fields we created parameters in Crystal report)
    In Function Module IMPORT Parameters are below mentioned and Export parameter is Blank
                                                                                    Start Date (Mandatory field)
                                                                                    Partner Function (Mandatory)
                                                                                    Region
                                                                                    Customer
    Please let us know if required any information.
    Regards,
    Raghavendra

  • Regarding getting Profit Center

    Hi,
    I have a requirement on Vendor Outstanding and Inventory report,Here i have checked tcode ' S_AC0_52000888 ' with Vendor and Company Code as input and selecting Open Items and Display as Drill Down List.Can anyone tell me from which table Profit Center is displaying in this tcode.I have checked in BSIS table based on Document Number,But it is item table,For one document number it takes more time.Is there any other table?
    Thanks

    Hi Dhirav,
             To get the profit center as a selection criteria, please follow the following steps:
    i) We can take a T_Code as an example say, F-32. In this T_Code enter all the selection criteria and press enter which will lead you to a screen where you will get all the open items listed. In this screen goto <b>Settings --> Change Line Layout</b>
    ii) You will get a screen listing all line layouts. Place the cursor on the one you want to change and press <b>F2.</b>
    iii) Click onto the <b>Insert After</b> Tab. You will get the <b>Field List</b> Displayed. From this list, choose the <b>Profit Center</b> Field. Click Save.
    Now you will get the Profit Centre as one of the selection criteria.
    Kindly do let me know if this useful.

  • How to get profit center in fbl5n in ecc6.0

    hi
    in the dynamic selection screen, in documents i am not able to get the profit center.can any one tell how to get it?

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • Getting IDOC details-function module

    Hi ,
    Is there any function module(importing parameter shld be Idoc No) available to get the IDOC details - Data records
    There is a urgent requirement
    1 To get the details of the idoc-data records
    2 To change the data
    Thanks in advance
    Regards,
    Sachin

    Hi Sachin,
    The concept that is generally followed is to create a new IDoc and process it instead of amending the old one. There are various reasons for this and one of the reason is if you have processed it , and if it's outbound then informaiton would have already been sent.
    If you are somehow able to change it then also you need to send it again to theother system. And if that is to be done then you might as well create a new one
    Hope this clarifies the issue.
    Regards
    Nishant

  • Getting the total amount n creating extra profit center

    hello folks,
    I am uploading the data for open AR items, in this process..
    I am looping through the AR items internal table and for each one AR item i am taking multiple GL items looping through the GL item internal table internally.
    So here I have to do one more extra thing. I have to take the balance amount of the one AR item BSEG-WRBTR and compare with the sum of the GL items amounts for that particular AR line item and if there is any difference in the amount then with that difference amount i have to create one more extra line GL line item.
    here is the example : let us take the AR item balance amount is 100$ and the for that particular AR item if u have 3 GL line items each one with 30$ balance amounts. Then compare 100 = 303030 and  the difference is 10$. With that 10$ amount i have to create the one more GL line item how to do it can anyone guide me plzzzzzzzzzzzz
    here is my code.......
    FORM FORM_MAIN_LOGIC.
    DATA:BEGIN OF KUNNR1,
         KUNNR TYPE KUNNR,
         ALTKN TYPE ALTKN,
         BUKRS TYPE BUKRS,
         END OF KUNNR1.
    DATA: BEGIN OF IT_EXTENSION OCCURS 0,
            P_EXTENSION TYPE C,
            END OF IT_EXTENSION.
    DATA : LV_WRBTR TYPE WRBTR.
    DATA: BEGIN OF I_PRCTR,
          PRCTR TYPE PRCTR,
          END OF I_PRCTR.
    PERFORM FORM_READ_DATA_ALL.
    LOOP AT I_ARITEM.
        SELECT SINGLE KUNNR FROM KNB1 INTO KUNNR1-KUNNR WHERE ALTKN = I_ARITEM-P_KUNNR and BUKRS = 'U001' .
        IF SY-SUBRC <> 0.
          WA_ERROR-E_KUNNR = I_ARITEM-P_KUNNR.
          WA_ERROR-E_XBLNR = I_ARITEM-P_XBLNR.
          WA_ERROR-E_ERROR = ' CORRESPONDING SAP CUSTOMER NOT FOUND'.
          APPEND WA_ERROR TO IT_ERROR .
          MOVE KUNNR1-KUNNR TO I_ARITEM-P_KUNNR.
          MODIFY I_ARITEM.
        ENDIF.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
       IMPORTING
         OWN_LOGICAL_SYSTEM                   = WA_DOCUMENTHEADER-OBJ_SYS.
        WA_DOCUMENTHEADER-OBJ_TYPE   = 'IDOC'.
        WA_DOCUMENTHEADER-OBJ_KEY    = I_ARITEM-P_AWKEY.
        WA_DOCUMENTHEADER-USERNAME   = SY-UNAME.
        WA_DOCUMENTHEADER-HEADER_TXT = 'BAPI Test'.
        WA_DOCUMENTHEADER-COMP_CODE  = 'U001'.
        WA_DOCUMENTHEADER-PSTNG_DATE = P_DATE.
        WA_DOCUMENTHEADER-REF_DOC_NO = I_ARITEM-P_XBLNR.
        WA_DOCUMENTHEADER-DOC_DATE = I_ARITEM-P_BLDAT.
        WA_DOCUMENTHEADER-PSTNG_DATE = I_ARITEM-P_BUDAT.
        WA_DOCUMENTHEADER-DOC_TYPE = I_ARITEM-P_BLART.
    fill AR (line 1)
        IT_ACCOUNTRECEIVABLE-ITEMNO_ACC = '1'.
        IT_ACCOUNTRECEIVABLE-CUSTOMER = I_ARITEM-P_KUNNR.
        IT_ACCOUNTRECEIVABLE-REF_KEY_1 = I_ARITEM-P_XREF1.
        IT_ACCOUNTRECEIVABLE-REF_KEY_2 = I_ARITEM-P_XREF2.
        IT_ACCOUNTRECEIVABLE-REF_KEY_3 = I_ARITEM-P_XREF3.
        IT_ACCOUNTRECEIVABLE-PMNTTRMS = I_ARITEM-P_ZTERM.
        IT_ACCOUNTRECEIVABLE-ALLOC_NMBR = I_ARITEM-P_ZUONR.
        IT_ACCOUNTRECEIVABLE-ITEM_TEXT = I_ARITEM-P_SGTXT.
        APPEND IT_ACCOUNTRECEIVABLE.
    fill extension segments.
        it_EXTENSION1-field1+3       = 1.
        it_EXTENSION1-field1+3(18)  = I_ARITEM-P_RSTGR.
        it_EXTENSION1-field1+3(10)       = I_ARITEM-P_WSKTO.
        append IT_EXTENSION1.
        IT_CURRENCYAMOUNT-ITEMNO_ACC   = 1.
        IT_CURRENCYAMOUNT-CURR_TYPE    = '00'.
        IT_CURRENCYAMOUNT-CURRENCY     = 'USD'.
        IT_CURRENCYAMOUNT-AMT_DOCCUR   = I_ARITEM-P_WRBTR.
        APPEND IT_CURRENCYAMOUNT.
    LOOP AT I_GLITEM.
    *******GET THE PROFIT CENTER AND UPDATE THE BAPI STRUCTURE************
    *SELECT SIGLE PRCTR FROM YOCTD_C009_MKDPR INTO I_PRCTR-PRCTR WHERE LEG_MRKT_DIV = I_GLITEM-P_MRDIV AND
                                                                      LEG_SBU = I_GLITEM-P_MRSBU.
    IF SY-SUBRC = 0.
    MOVE I_PRCTR TO I_GLITEM-P_PRCTR.
    MODIFY I_GLITEM.
    ENDIF.
    *IF PROFIT CENTER IS NOT FOUND THEN CREATE A NEW PROFIT CENTER.
    IF SY-SUBRC <> 0.
    I_GLITEM-P_PRCTR = 'P1331193'.
    MODIFY I_GLITEM.
    ENDIF.
    *******CHECK THE ROLL UP GL LINE ITEM AMOUNT WITH AR LINE ITEM AMOUNT.
    GET PROFIT CENTER FOR THE CORRESPONDING MARK DIV AND SBU.
    *SELECT SINGLE PRCTR FROM YOTCD_C009_MKDPR INTO I_GLITEM-PRCRT WHERE LEG_MRKT_DIV = I_GLITEM-MARDIV AND LEG_SBU = I_GLITEM-MRSUB.
      IT_ACCOUNTGL-ITEMNO_ACC     = 2.
      IT_ACCOUNTGL-GL_ACCOUNT     = P_HKONT.
      IT_ACCOUNTGL-ITEM_TEXT      = 'CONVERSION ACCOUNT'.
      IT_ACCOUNTGL-COSTCENTER     = P_KOSTL.
      IT_ACCOUNTGL-PROFIT_CTR     = P_PRCTR.
      APPEND IT_ACCOUNTGL.
    IT_CURRENCYAMOUNT-ITEMNO_ACC   = 2.
    IT_CURRENCYAMOUNT-CURR_TYPE    = '00'.
    IT_CURRENCYAMOUNT-CURRENCY     = P_WAERS.
    IT_CURRENCYAMOUNT-AMT_DOCCUR   = I_GLITEM-P_SAMNT * -1.
    APPEND IT_CURRENCYAMOUNT.
    ENDLOOP.
    PERFORM FORM_CHECK_DATA.
    PERFORM FORM_POST_DATA.
    PERFORM FORM_COMMIT_WORK.
    PERFORM FORM_LONG_TEXT.
    ENDLOOP.
    Please its bit urgent can anyone guide me...........
    SRI

    HELLO guys,
    I tried to write the logic as below.....
    IF I_GLITEM-P_XBLNR = I_ARITEM-P_XBLNR.
    APPEND I_GLITEM TO I_EXTRAGL.
    AT END OF P_XBLNR.
    V_GLBAL = V_GLBAL + I_EXTRAGL-P_SAMNT.
    IF I_ARITEM-P_WRBTR <> V_GLBAL.
    V_DIFBAL = I_ARITEM-P_WRBTR - V_GLBAL.
    ENDIF.
    ENDAT.
    ENDIF.
    Now i got the difference amount into V_DIFBAL... then how to create the extra GL ITEM...
    please can anyone guide me to complete this?
    SRI

  • Function module for getting Vendor Address details

    Hi,
    Im new to this group,and new to ABAP
    plz hep me out by solving ABAP Query...
    i want to generate a report for getting Vendor Details
    like Vendor address,Ph num and Email
    input fields are Company code,country key and Account Group.
    im Using Smart Forms for this..
    but im not getting the Exact Function module to get All Required Details..
    regards
    Smitha

    thanks for ur quick reply...
    SELECT SINGLE LIFNR
      FROM LFB1
      INTO V_LIFNR
      WHERE BUKRS EQ V_BUKRS.
      CALL FUNCTION 'VENDOR_READ'
        EXPORTING
          i_bukrs         = V_BUKRS
          i_lifnr         = V_LIFNR
        EXCEPTIONS
         NOT_FOUND       = 1
         OTHERS          = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    this is the code i have written...
    but my problem is there no table in the Function module....
    for Example...
    CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
        EXPORTING
          i_plnty            = 'Q'
          i_plnnr            = V_PLNNR
          I_PLNAL            = V_PLNAL
          i_sttag            = V_DATUV
       TABLES
        T_PLMKB_TAB        = IT_TAB
    i want the function modules with tables and proper input...

  • Profit Center is not getting captured in Vendor line item from MIRO.

    Dear Friends,
    Profit Center is not getting captured in Vendor Line Items from MIRO Transaction for some New Business Users, where as for Old Users profit center is getting generated at Vendor Line Item.
    We have provided the same authorization of old Users to new business users. (i.e. New user is a copy of old user)
    Please help us how we can the get Profit Center in all transactions will be processed by New Business users.
    I think we need to maintain user based authorization to get the Profit center in vendor Line items processed from T.Code:MIRO in SAP.
    Looking forward for your kind cooperation in this matter
    Thanks & Regards,
    Naveen Kumar.

    Hello Naveen,
    I am not very sure about your query, as you might be knowing that the Profit Center is only updated in New GL tables (FAGLFLEXA, FAGLFLEXT) and hence the Vendor relavant tables would not.
    The profit center information in the split lines or the line of the 'General Ledger View' are only displayed within transaction FAGLL03 which read the 'new' table for the NewG/L.
    About profit center wise reporting, when New GL is active Please review attached consulting SAP note:
    - 826357     Profit Center Accounting and new general ledger in
    I hope this helps. If not, please provide an example of your requirement.
    Thanks and regards,
    Suresh Jayanthi.

  • Need profit center in Vendor & customer Line items in reports FBL1N & FBL5N

    Hi,
    how to get profit center field in reports FBL1N and FBL5N.  Please help.
    Regards,
    Sumit Jain
    Moderator: Please, search SDN; it has been answered several times

    Hi,
    I have done the below to get this. (You can change the naming convention of function module as per your wish):-
    Step 1:-
    Create function module Z_GET_PRCTR as below:-
    Import:-
    BELNR     LIKE     BKPF-BELNR
    BUKRS     LIKE     BKPF-BUKRS
    BUZEI     LIKE     BSEG-BUZEI
    GJAHR     LIKE     BKPF-GJAHR
    Export:-
    PRCTR     LIKE     BSEG-PRCTR
    FUNCTION Z_GET_PRCTR.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(BELNR) LIKE  BKPF-BELNR
    *"     VALUE(BUKRS) LIKE  BKPF-BUKRS
    *"     VALUE(BUZEI) LIKE  BSEG-BUZEI
    *"     VALUE(GJAHR) LIKE  BKPF-GJAHR
    *"  EXPORTING
    *"     VALUE(PRCTR) LIKE  BSEG-PRCTR
    DATA: ZDOCLN LIKE FAGLFLEXA-DOCLN.
    CONCATENATE '000' BUZEI INTO ZDOCLN.
    SELECT SINGLE PRCTR FROM FAGLFLEXA INTO PRCTR WHERE RYEAR = GJAHR
                                    AND  DOCNR = BELNR
                                    AND  RLDNR = 'NL'
                                    AND  RBUKRS = BUKRS
                                    AND  DOCLN = ZDOCLN.
    CLEAR ZDOCLN.
    ENDFUNCTION.
    Step 2:-
    Then create the Function Modules as below:-
    Z_LINE_ITEMS_GET_PRCTR (Copy of SAMPLE_INTERFACE_00001650)
    FUNCTION Module Z_LINE_ITEMS_GET_PRCTR.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    *"  EXPORTING
    *"     VALUE(E_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    Initialize Output by using the following line -
    E_POSTAB = I_POSTAB.
          E_POSTAB = I_POSTAB.                "<-- important
          IF I_POSTAB-PRCTR EQ SPACE.
              CALL FUNCTION 'Z_GET_PRCTR'
                   EXPORTING
                    BELNR           = I_POSTAB-BELNR
                    BUKRS           = I_POSTAB-BUKRS
                    BUZEI           = I_POSTAB-BUZEI
                    GJAHR           = I_POSTAB-GJAHR
               IMPORTING
                    PRCTR           = E_POSTAB-PRCTR
               EXCEPTIONS
                    OTHERS          = 1.
          ENDIF.
    ENDFUNCTION.
    Step3:-
    Transaction FIBF:-
    Settings -> Products -> of a Customer
    PRCTR     Profit Center in Line Item Display          Active
    Settings -> P/S Module -> of a Customer
    00001650     PRCTR                    Z_LINE_ITEMS_GET_PRCTR
    Step 4:-
    Create the layout for FBL*N with display of the profit center.
    Regards,
    Gaurav

  • 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