Locking a transaction based on profit center.

The exact requirement is as follows.
We have an application in which there are some reports. We want that when a user works on a particular profit center in one particular report, no one should be able to work on the same profit center in any report at that particular time.  How can this be done?
We tried one solution - a table was made in which profit centers are stored when a user executes a particular report.  But the problem is that the profit center should be deleted or unchecked when the report is stopped.  This does not happen in all scenarios.  When we use Back, it works but when we close the session, it doesn't.  The profit center is still locked.  This can be solved by checking whether the transaction through which profit center was locked is open or not.  For this transaction like SM04 can be useful, but then how to use it for our purpose?  Is there some table which we can refer?  SM04 works on a structure, then how can we use the structure?
Also, is it possible to solve the issue totally by ABAP?  Till what extent can BASIS be of help?
Please suggest possible solutions.  Thanks.

Hi,
Try this.
Create a lock object for the table which stores the profit centre details.
Whenever a particular profit centre is changed, it will be locked. Once the session is closed, unlock it. Locking/Unlocking can be done with the help of the function modules generated by the lock objects (using ABAP).
Hope this may be helpful.
Regards,
Sharin.

Similar Messages

  • Automatic Payment programme - exclusion based on profit center.

    Hi Forum Member,
    I am having a Vendor supplying to different Profit centers.
    My requirement is to run Automatic payment programme based on Profit center i.e: all overdue of one profit center to be paid through specified House Bank of said Profit center. While APP system should not pay for other Profit centers.
    Rgds
    Dwijendra

    Hi
    In Tcode F110 in Free Selection tab you can select the profit center for which you want to make payment.
    The technical filed for this is BSEG-PRCTR.
    Then the system will select the document which has this profit center.
    Regards
    RS

  • How to restrict authorization based on profit center in ke80 report

    hi friends
    we have a situation where we need to maintain the authorization based on profit center in ke80 report. The authorzation object K_PCA is not working. whenever we assign a particular profit center and then generate the profile, we still get the message no autjorization and when we check su53 it shows it needs '' asterisk. but we cant assign the asterisk as we have 5 subsidaries and there are using 5 different set of profit centers so assigning asterisk () would be comprimising on our security.
    does anybody came across this situation and if yes how did they resolve this?
    I need your suggestions on how to maintain this restriction.
    Regards,
    Imran

    Hi Friends
    The problem has beend solved. It turns out that this is a report writer issue. We raised the issue with SAP and they informed that 'For Report Painter/Writer every item is checked if you have the authori-zation or not. Only the items with authorization fullfilled will be displayed afterwards'.
    Based on SAP answer we created different reports for each profit center/company code.
    I would like to thank you all for your time and inputs.
    Regards,

  • Document splitting-based on profit center

    Hi Experts,
    While posting JV (f-02) document, document was not splitting based on profit center.
    Dr 520499.......9100  (Profit center 100)
    Dr 520475.......7888 ( Profit center 200)
         To. 199000...... ...    16988
    When I am trying to post the above entry getting error " Balancing profit center error, profit center is not filled in line item 3"
    I hope I done configuration is current.
    Please provide the solution on top priority.
    Regards,
    Mallesh
    Moderator: Please, search before posting

    Hi,
    If you have activated document spliting and done the need ful settings, then entry will be posted in 2 views one is normal etry view and another one is genereal ledger view.
    Entry view;
                                              Profit center
    vendor                     cr 100
    Printing& stationary dr 50     200001
    Labour charges       dr 50     200002
    GL View
    vendor      cr     50      200001
    vendor      cr     50      200002
    prin & stat   dr  50      200001
    Labour charges dr 50  200002
    So plz just check your settings related to document spliting and get back.
    Regards
    T N R

  • To View Report based on Profit Center

    Hi
    I will require Transcation Code to view the report based on Profit center, presently we are using KE5Z T_Code but that report doen't conatin the line items which was derived the data from 1st line item
    For Ex: Expenses Dr
                To, Expenses Payable A/c Cr (Profit center derived from Expenses line)
    these kind of derived line items profit center is not showing in KE5Z, Please let me know where can i get such kind of line items
    Thanks
    Sreenivasulu

    Hi Friends
    The problem has beend solved. It turns out that this is a report writer issue. We raised the issue with SAP and they informed that 'For Report Painter/Writer every item is checked if you have the authori-zation or not. Only the items with authorization fullfilled will be displayed afterwards'.
    Based on SAP answer we created different reports for each profit center/company code.
    I would like to thank you all for your time and inputs.
    Regards,

  • F110 Based on profit center

    Dear Experts,
    I have a requirement where F110 should print checks based on profit center.for particular vendors.
    Right now checks are getting printed based on Business Area but now i want to know if it is possible to make payments based on profit center in 1 proposal only.Also the requirement is for particular vendors only.
    Please provide your inputs 
    Regards
    Rahul

    Hi,
    You can define a grouping key by "Profit center" (tr.code SM30 / view V_TZGR). This is the SAP documentation:
    "Define Payment Groupings
    In this activity you define the grouping keys that are used to settle a customer or vendor's open items together. For each key, you specify a maximum of three fields from the database tables BSIK (vendors) or BSID (customers). Items containing the same entries in the specified fields are settled together. You determine the grouping key used to group together the open items of a customer/vendor by entering this grouping key in the customer/vendor master record.
    Example
    If you have installed SAP's loans management system (currently being developed), you can use the grouping key to carry out bank collection at the customer, separated according to loan numbers.
    Note
    If an alternative payee is specified in the master record of the customer/vendor, the grouping key of the payee is used. When clearing between customers and vendors takes place, the key in the vendor master record has priority.
    Activities
    1. Define the required grouping keys.
    Regards,
    Svetlin
    2. Ensure that the grouping keys are entered in the customer/vendor master records."

  • Change company code based on profit center at line item level in FB50

    Hi All,
    Following is my requirement, would be thankful if anyone can provide inputs on the same.
    When posting documents through FB50, In line item table control company code column gets un-editable ones correct entries are entered for that line. But after this if we want to change the profit center which belongs to different company code system throws error and makes company code column un-editable. In this situation there is no option left for user to correct the values unless he deletes the current line and creates a new one.
    Here can we make the company code field always editable?
    If not can we update the company code based on the profit center entered on that line item?
    I looked for exits but couldn't find any, validation and substitution are also not working because error message thrown by SAP is getting triggered before the substitution or validation code is executed.
    Please drop in your comments/inputs.
    Thanks in advance.
    Lucky.

    Transaction Code - FB50                     G/L Acct Pstg: Single Screen Trans.
    Exit Name           Description
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    No of Exits:         14
    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
    USER EXIT
    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
    Rewards if useful.........
    Minal

  • Find Profit centers based on profit center group

    1)       If I know profit center group how to pick profit centers which belongs to that profit center group.the tcode is (KCH3)
    2)       In the tree there may be many levels I mean for the profit center also contain other profit centers, just to display in the same way as like in KCH3 tcode, how we are going to maintain in alv trees

    Hello,
    Check the tables:
    <b>SETLEAF
    SETNODE
    go through this link which ll give you clear idea about the profit center group.
    http://help.sap.com/bestpractices/industry/serviceindustries/v346c_us/BBLibrary/documentation/B30_BPP_04_E.doc
    go through these tables.
    CEPC Profit Center Master Data Table
    CEPCT Texts for Profit Center Master Data
    </b>
    REgards,
    Vasanth

  • P/L Account for the month Based on Profit Center Group..........

    HI Friends,
                Iam having a requirement related to FI module.I need to extract P/L Actual and Budget amount data from ECC, What are the Extractors are available in BI content.What is datamodeling for Actual data and Planned data.

    Hello,
    Check the tables:
    <b>SETLEAF
    SETNODE
    go through this link which ll give you clear idea about the profit center group.
    http://help.sap.com/bestpractices/industry/serviceindustries/v346c_us/BBLibrary/documentation/B30_BPP_04_E.doc
    go through these tables.
    CEPC Profit Center Master Data Table
    CEPCT Texts for Profit Center Master Data
    </b>
    REgards,
    Vasanth

  • Profit center lock

    Hi Friends,
    We lock the one of the  profit center in KE52.How come system allowing to post the Sales order using the lock profit center.
    System showing only warning message only.How to set the Error message for locking Profit center when user selecting.
    Please help.
    thanks,
    Hani

    Hi Yogesh,
    If we lock the Profit center and save it in INACTIVE Mode What would be the impact and also confirm if we need to Lock only in Active Mode ?
    Please Clarify.
    Thanks
    Goutam

  • Profit Center wise Debit Credit report for Customers

    Hi
        I  want to develop Customer Debit , Credit balance report based on Profit Center in the company. In KNC1 Table I got the required data except Profit Center.In  S_ALR_87012169 Standard report profit Center is taken. I wanted to make output format of my report in the same format of output of mentioned transaction. Please Suggest from which table I have to take  Profit Center and all data of KNC1 table.
    Already Searched in Forum
    Thanks in Advance
    Regard's
    Sai
    Edited by: sai_abap on Aug 24, 2009 5:11 PM

    Hi
    If your requirement is to add the field in report no need to copy the program and change. As per as my knowledge after executing the S_ALR_87012078, select the call up report, and double click on line item report.
    From menu select- settings-special fields then it leads to OBVU(It is cross client Customizition)
    You can add the Table:BSEG, field name:PRCTR -save
    after that you can Run the program RFPOSXEXTEND through SE38
    and please follow the SAP note 984305 for further process
    I saw the thread .I didnt get it.
    will u explain me in detail.
    Thanks in Advance
    Sai

  • Automatic clearing of VAT accounts as criterion Profit center

    Hello all,
    We are trying to make automatic clearing for our VAT GL Accounts thru transaction F.13 and the criterion Profit center on table TF123.
    The requirement is to clear the VAT line items form invoices against the documents generated by standard VAT declaration S_ALR_87012357.
    This is not working as the profit center is not populated in Bseg on VAT line items, only in FAGLFLEXT.
    How can we clear the VAT line items based on profit center automatically, is anyone already done this ?
    Thank you
    Tamim

    Thank you Mahesh,
    The posting document generated by VAT declaration regroups many VAT postings, example
    If I have 10 Invoices with VAT (each invoice with different Assignment), the VAT declaration will generate only 1 document, and regroup the different invoices VAT amount  by profit center.
    That's why assignment is different between VAT line item, and VAT declaration document line items.
    Also, we do not have PO number most of the cases.
    We really need clearing on profit center as it seem the only shared value.
    Is there a solution for this issue ?

  • F107: how to valuate by Profit Center

    When I post a revaluation for Customer Open Items via transaction F107, the profit center is determined based on the 3KEH settings.  However I would like to use the profit center from the original open item. Is this possible?
    Thanks in advance

    Hi, Cristiano.
    Thank you for your useful advice
    Do you know smth about new special functions (see attach file)?
    Regards,
    Tatyana

  • Default Profit center Via 3KEH & FAGL3KEH

    Dear All,
    I have defaulted the profit center of a particular Bank G/L Account via these 2 transactions.
    Now the new entries, whatever  taking place are getting displayed in fbl3n when we choose a specific profit center.
    But what about the existing entries in that G/L Account? Those are not getting displayed profit center wise.
    Kindly suggest
    Regards,
    Prashant Goel

    Hi
    If you are using FAGL3KEH, I assume you are on New GL. In case you are drawing Financial Statements based on Profit Center, you may be using Document Splitting. In such a case, you can derive the profit center into the clearing document by deriving the same from Payment Document. You need to set up Document Splitting Derivation Rules in such a way. Also in your splitting rule the tick for inheritance should be clicked.
    If you are not using document splitting and still want to derive profit center from the clearing document while doing EBRS, you may choose to look at implementing the BADI, FAGL_LEDGER_CUST_DEFPRCTR to write your own logic
    Regards
    Sanil Bhandari

  • Regarding Profit center Reporting

    Dear All,
    I am stucked up at the point where my profit center reports are not coming as i desired.My client wants the reports as per their product line for that purpose i have treated all his product lines as a profit center & group them as per the products to be produced in the same company but at different plants. For Example for 1000 co.code there area three plants & there product lines are A, B ,C & D out of the three plants A product is produced in all three plants, while B product is produced in only one plant & C & D are produce at two of the plants under same co.code.
    for this scenario i have treated those product lines as my profit centers & further also group them as follows
    Group A - Where ever A product is produced (in this i have taken three profit centers of A product which is produced in all the three plants
    Group B -Where ever B product is produced (in this i have taken one profit center of B product which is produced in only one plant )
    Group C-Where ever C product is produced (in this i have taken two profit centers of C product which is produced in all the two plants )
    Group D-Where ever D product is produced (in this i have taken two profit centers of D product which is produced in all the two plants )
    After doing this i assigned all of them to the Dummy Profit center & all my cost centers are also assigned to dummy profit center But now i am not getting my reports right as all the transactions are going to dummy profit center & Is it possible to transfer these transactions to individual profit center & get the Reports Correctly ? If, yes tell me the Way how to do it .
    Please help me in this regard
    Thanking You in Advance
    Santosh Rothe

    Prerequisites for Transferring Actual Data
    Before you can transfer data to Profit Center Accounting, you need to assign your CO objects and your material masters to profit centers.
    When you post subsequently, the posting is made to dynamically derived profit centers (from CO objects) or to the profit center set at the time of the original posting (such as materials).
    You also need to create your own accounts in Profit Center Accounting in order to be able to reflect goods movements between profit centers. You do this in Customizing.
    It may also be useful to assign a revenue or sales deduction account to a profit center. For more information, see the section Cash Discount Expenses/Income and Exchange Rate Differences .
    In the standard system, the following posting rules apply:
    · All the postings made to a cost element are transferred to Profit Center Accounting. If it does not find a profit center, the system posts the data to a dummy profit center  to ensure that the profit&#8209;relevant data is complete in Profit Center Accounting.
    · If an account is a profit and loss account but not a cost element, the system transfers all the postings where the lines contain a profit center. For profit and loss accounts from logistics activities, the system determines the profit center based on the logistics objects involved, such as the production order (for work in process) or material (for price changes or inventory differences). If no profit center can be found, the system transfers the data to the dummy profit center.
    · The payables and receivables from the period in question are transferred to Profit Center Accounting. Other balance sheet and profit and loss accounts can be chosen from a Customizing table. The accounts are updated to the profit center specified or to a default profit center specified in the table.

Maybe you are looking for

  • Help with sys_guid and Primary Keys

    I am trying to use sys_guid to create unique PK_ID in my tables (see below). This works fine in oracle, but when I try to insert into a remote DB I get a precision error. Is there a way to control the length/format of sys_guid? Is there something eas

  • 5.0 removing images

    I have several previously created Pages files with images (pictures) in the header section.  When I view the "quick view" of the file the image is there.  When I open the file in the new Pages 5, the image is missing.  If I edit anything in the file

  • Difficult to filtrate the user Dimension table

    I have dimension table, named user, and fact table. I want to filtrate that right user can review right value from the fact table based on user's windows authenication. You use the WA to filtrate the dimension table. I have used the syntax code "{STR

  • Time machine destinations

    Hello, as my MacBook Pro is backed up with the help of Time Machine to Time Capsule I have a question about my external hard drives. Time Capsule for my MBP is 1Tb and my macbook has as well 1Tb of combined space for data. As I am a photo-/videograph

  • Something wrong with music I bought?

    I bought the album "El Camino" by The Black Keys from iTunes with a gift card, and for some reason whenever I go and play "Lonely Boy" (The first song on the album) it plays the first 2  seconds and stops, both on iTunes and my iPod touch. All the ot