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

Similar Messages

  • Profit Center wise Vendor & Customer  Line item report

    Hi
    We are on SAP ECC 6. Can I get Profit Center wise Vendor & Customer  Line item report (as like FBL1N)
    Regards
    Sandeep

    Hi,
    Please Try using "S_ALR_87013343 - Profit Center: Receivables " and "S_ALR_87013344 - Profit Center: Payables"
    Reports
    Best Regards,
    Ravi Reddy

  • Profit Center for Vendor/Customer line item in F-02

    hi all,
    We have implemented SAP ECC 6.
    At the time of vendor line item posting, there is no input field for profit center.
    Can anyone please tell the way out for Profit Center field pop up in case of t-code like f-02 for vendors & customers
    Abhishek

    Please note the following:
    - On FBL5N and alike customer/vendor line item reports you won't find
    the field profit center filled; hence you can't directly input it during document entry (as pre-mentioned)
    and the profit center for customer/vendor gets inherited (as of document splitting functionality) from the document other line item(s) (according to the defined document splitting rules...)
    - Yet you can use the below reports (with New G/L.) to get the customer/vendor line items wise reporting over a profit center (i.e. unlike FBL5N & showing the inherited customer/vendor profit center in the G/L. view)
    S_AC0_52000887 - Line Items->Open Items->Receivables: Profit Center
    S_AC0_52000888- Line Items->Open Items->Payables: Profit Center
    In both reports you can use:
    "Custom Selections" -Dynamic Selections Icon- enabling you to filter the output according to
    a. Customer line items specific data entered within the posted document(s)
    b. General ledger items of the G/L. view of the posted document(s)
    & the "Output type" includes like most of the New G/L. Reports:
    - Graphical report output
    - Classical drill-down report
    - Object list (more than one lead column)

  • Profit Center required for Customer line items

    Hi Gurus,
    Can we make Profir center filed mandatory to customer/vendor line items in New GL

    Hi
    When you activated New GL Functionality and made Profit Centre Update is mandatory.
    At new GL side system will automatically take about updation of profit centre for customers and verdor line items.
    Regards.
    Chandrasekhar Ponugumati

  • Profit Center Substitution for Migrated line item

    Dear Expert,
    we migrated the data on feb 2014. past records having the default profit center value in each line item, after the migration we are not using the default profit center , we blocked that through some validation, but some situation, for clearing vendor or customer or gl, the migrated line item having default profit
    center with disabled mode to change. so its throwing the validation error, we cant able to unblock the validation also. we need to write a substitution for this to replace automatically . Eg :
    Default Profit center is : 38000
    it should be replace with to 2038100001
    like wise we have multiple company codes.
    i try to write the prerequisite, herewith i have attached the screen shot, i am getting the error for this, anyone can explain this situation ?
    Regards
    Prince

    Hi
    Please, check these notes
    SAP Note 173798 - User exit for PCA substitution
    SAP Note 1532865 - FAQ: Profit center in the billing document
    SAP Note 150959 - Profit center is incorrect in production order
    SAP Note 530578 - Special stocks in PCA
    SAP Note 594507 - PC with valuated special stock incorrect
    and related notes
    I hope this helps you
    Regards
    Eduardo

  • Profit Center on Vendor/Customer Reconn account

    Hi,
    I have a requirement where we need to replace the dummy profit center on the Vendor/Customer line item in the Accounting document with the profit center from the offset line item. The transactions that will be used MIRO, VF01 and FB60.
    We cannot user 3KEI or 3KEH since the profit center is dynamic and needs to be copied from the second line item in the accounting document.
    I have used substitution rules to achieve the same. But the same does not work for MIRO since the BSEG-BUZEI is not populated and I do not have access to the entire item table to do the modification in the program of substitution.
    Please let me know if I can achieve the using substitution or is there any exit or BADI that can achieve the same.
    Thanks,
    Preetham S

    Hi
    If you have new GL, profit center is copied from the second line item. I believe, you need to check your splitting configuration throughly. There is no need for any BADI or other configuration settings. Follow the path
    IMG>Financial Accounting(New)>General Ledger Accounting (NEw)> Business Transactions>Document Splitting>Extended Document Splitting>Define Document Splitting Method
    Here in check the Item Categories and Base Methods assigned for Document Splitting. Pls check for your Splitting Method, for Business Transaction 0300 - Vendor Invoice and 0200 - Customer Invoice, if you have all the categories assigned. For example for Vendor Invoice Business Transaction 0300, you should have at least the following base categories assigned like, 03000 - Vendor, 05100 - taxes on Sales & Purchase, 05200 - With Holding Tax, 01100 - Company Code Clearing to give you an example.
    Pls check the configuration. In case of doubt, pls revert back
    Thanks & Best Regards
    Sanil K Bhandari

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Error - Balancing Line Item Profit Center not filled in Line Item 007

    Hi
    I am trying to do a transfer posting from one vendor account to another. However, system is giving an error - Balancing Line Item Profit Center not filled in line Item 001. Pls suggest.
    Regards
    Vaibhav

    hi  vaibhav
    you go through this Tcode  FAGL3KEH  and maintain default profit centre. in the  error message system shown GL accounts
    hope you userstand
    thanks
    dharmendar

  • How to assign profit center to automatically generated line items

    Hi, Experts,
                       My problem is that I want system automatically assign profit center to automatically generated line items.
                       Eg.
                             (Vat is @ 10%)
                                        Transaction                             Amount                            Profit Center                    
                              Purchase                   Dr                    Rs.1000/-                           XYZ
                              Vat                             Dr                    Rs.100/-
                              To Vendor                  Cr                                      Rs 1100/-
    Here I have to assign Profit Center in VAT G/L by double clicking on it, in reality, system should automatically assign profit center to VAT G/L same as to purchase, because this vat amount belongs to same purchase G/L.
    Kindly help me
    Thanks in advance

    Hi,
    1. In which SAP version you are working ? Are you using SAP 4.7 or ECC 6.0. ?
    2. If you are in ECC 6.0, have you activated New G/L ?
    3. Segment reporting is happening with Profit Center is one of the scenario ?
    Auto updation of Profit Center will depend upon these conditions. Accordingly one can provide you the solution.
    Regards,
    Shridhar

  • Update Profit Center Field in CO Line item tables

    Hi,
    We are working on ECC6.0 NewGL with Real-time CO-FI integration for Cross Company Code and Cross Pofit Center.
    For those CO internal documents (like activity confirmation at production order) where there is no cross company code or cross profit center postings, no FI document is generated and hence table FAGLFLEXA is not updated. So, we wanted to take data from CO table COEP / COVP for these internal CO documents. However, there is no Profit Center field in CO line item tables COEP / COVP. We don't want to refer to Object Number (OBJNR) of COEP / COVP tables and take profit center from master table of cost centers, IOs etc..,as Profit center in the cost center, IO masters may get changed latter.
    I tried to generate a new report through report painter from structure CCSS, but Profit center is not defined as Charactericts there. Hence of no use.
    Can we append Profit Center field in CO line item tables COEP / COVP and update tatabase at the time of posting? Is there any risk?
    Please suggest any other alternative...
    Thanks,
    Bijay

    Hi,
    As per the standard process we can't derive PC from CO-internal Object...as per my knowledge.
    Better you can derive from IO-CC master PC ....if your question that it will change frequently then -no control can make.
    Regd,
    Kha

  • Business Area wise Vendor & Customer Line item report

    Hi
    We are on SAP ECC 6. Can I get Business Area wise Vendor & Customer Line item report (as like FBL1N)
    Regards
    Debojyoti

    Hi,
    In FBL1N in dynamic selections you can give the business area as the selection parameter otherwise after execution of report with the help of layout you can set filters for business area.
    Go to FAGLB03 give the vendor or customer reconciliation account along with business area. So after you execute the report you can choose vendor code and business area.
    Check once it may help you
    Regards,
    Sankar

  • Profit center not flowing in line item 2

    Hi Experts,
    We have activated document splitting and kept the field Business Area (BA), Profit center (PCTR) and Segment mandatory and only business area and segment as zero balancing field.
    While doing F-02 for an entry of Expense a/c..... Dr, Bank A/c ... Cr, I am giving cost center (say A) in the expense line item. From that Business area (say K) and Segment (say X) is taken in the expense line item and if I do not give anything in the bank line item the same is inherited there also.
    If i give a separate profit center (B) in the bank line item (other than that in the expense line item) and keep the business area blank, automatic line item of 'inter branch clearing' is generated with 2 different PCTR (say A and B) and segment (say X and Y) but same business area
    *But if I give a separate business area in the bank line item and keep the profit center blank though it is generating automatic line item of inter-branch clearing for separate business areas but it is not inheriting profit center from the expense line item and it is giving me an error that profit center in line item is not filled
    Please help
    Sourabh

    @ Murli: The scenarios for OL ledger is maintained so that is not the reason.
    @ Ravi: I also initially thought the same but even after making profit center zero balanced it did not work.
    The scenario is like this:
    We are trying to post a JV - Dr. Expense a/c to Bank a/c.
    1. When both BA & PC are left blank in the Bank line item, both are getting  inherited from the Expense line item.
    2. When both BA & PC are manually given, system is taking the manual inputs only.
    3. When user enters PC manually but leaves BA blank, system takes that PC (user input) and inherits BA from the Expense line item.
    4. BUT, when user enters BA manually & leaves PC blank, system is taking the BA (user input) & leaving the PC field blank, i.e. not inheriting PC from the Expense line item.
    Regards
    Sourabh

  • Vendor - Customer Line Item subtotal

    Hi,
    I link my vendor to my customer master. E.g. Vendor code is 100000, customer code is 100001 (in this case, i can't make the customer and vendor number the same)
    When I execute the report of either Customer Line Item Display, or Vendor line item display, I need to display both AP/AR transactions for this same entity; and when I execute the report it has to be for all vendors and all customers.
    Basically, I need a common link that I can sort for the same entity to give me the subtotal for both AP AR open items.
    Any Idea?

    Hi,
    Yes, I understand that. But I need a common column/fields in which I can sort for both AP and AR open items together. My objective is to subtotal by entity (whether it's customer/vendor items).
    Currently, if I execute FBL5N, the customer items would be subtotaled under one account number and vendor items would be subtotaled by another account number. How do I combined these for my Subtotaling?
    Example when I execute FBL5N
    Account    Vendor    Document Type
    100445                      RV
    100445                      RV
    100271      100271
    How do I subtotaled by this business partner, since they both have different account number?
    Another question is: How do I pulled out customer / vendor name in FBL1N and FBL5N report at the line item level? Does SAP provides this facility to include the Name for line item level reporting?

  • T code for vendor,customer line item display

    we are using ecc 6.
      I would like to know the wheter any tcode is available in ECC6 for cust and vendor line item display.
    NEW TCODE for FBL3N is FAGLL03. Like that any new new tcode is availbale for FBL1N & FBL5N?
    Please clarify.
    Thanks
    Rajesh

    Dear Rajesh,
    There are not direct 'replacement' as the FAGLL03->FBL3N for FBL1N and FBL5N.
    So the FBL1N and FBL5N can be used further without any problem.
    As stated before, only the G/L are has directly changed.
    But in the relation to the New G/L, there are two new 'Recherche' tools for the vendor and customer area in relation to the 'Segment' and 'Profit Center'.
    You can find them in the FGI0 transaction.
    They are called:
    0SAPRECIEV01
    0SAPRECIEV02
    0SAPPAYABL01
    0SAPPAYABL02
    Maybe they can also help you further.
    Best regards,
    Christoph

  • Profit Center : Reflect - Vendor, Customer, Bank/Cash Balance

    Dear Experts,
    Ref. : Reflect - Vendor, Customer, Bank/Cash Balance, Balance Sheet GL Accounts - Profit Center wise.
    When we do postings to P&L Items, we assign a CO / Cost Object. Such Cost objects may be Orders, Cost Centers, etc., which has a Profit Center assigned to it.
    Now, we wish to view Balance Profit Center wise.
    My Concerns :
    1.  Can Vendor, Customer, Bank/Cash Balance, Balance Sheet GL Accounts - Profit Center wise. Since we do not assign CO objects to such line items, but the correspondense line items (P&L GL) has a CO object.
    2.  If yes, how do we move balance of such items, to Profit Center / profit Center wise.
    Experts, please help me to understand the concept.
    Regards,
    Hussein.

    Hi,
    Are you in ECC activated new G/L? If yes, then you can define Profit Center as Document Splitting Characteristic for General Ledger and profit center will be in the AR/AP line item as well in ledger view (though you don't enter profit center during document entry).
    You cannot give the Profit center in line item level to the Subledger accounts like vendor and customers.Vendor and customer accounts take the profit center from the offsetting entry.If want to see the profit center to the particular document, open the document go to Environment field and select Balance Sheet Adjustment option.
    If you want to see the Profit center wise payables and receivables, use T.code GR55 and take report group 8A90 for Periodic Receivables and 8A91 for Payable.
    If you want to see the all payables with Profit center use Table BFOK_A for vendors BFOD_A for customers.
    Regards,
    Viswa

Maybe you are looking for

  • In e-mail on "attaching a file" upload does not succeed. Why or how? succeeds on g.chrome and IE so why no on firefox???

    tried to attach an image in an email to a friend, image was previously downloaded.....same procedure succeeded on google chrome and internet explorer

  • How to include balance level reporting currency in a ledger set.

    Hi, I was trying to use ledger set for consolidation purposes in GL to generate FSG report. I read on the following meta link that i can do so: http://docs.oracle.com/cd/E18727_01/doc.121/e13425/T348488T348495.htm#T385474 But when i am trying to defi

  • IWeb 3.02 crashes unexpectedly since update

    Since completing the rather complicated iWeb 3.0.2 update manually it has now stopped working properly ... (I'm on OS 10.6.4 but can't remember if this was updated before or after the iWeb update) it always crashes when I click on one page in particu

  • PM Capacity planning

    Hello fds for work center say PIT_02 0010) operation duration  2 hr 0020)  operation duration 3 hr 0030) operation duration 3 hr in all the above operation my work center is same i.e. PIT_02 now i want this all working duration to be combine as 8 hr

  • Masterslides and item on slides?

    I am creating courses that will eventually be viewed on tablets (Android and iPad). I've had some issues with some of my slides loading really slow, when I play a course on an android device. I had created the course originally in Captivate 5, but up