Cost Center Mandtory in Outgoing Payment

Hai Experts,
Need store procedure for cost center mandatory for both Outgoing Payment & Incoming Payment for Vendor,Customer as well as on account payment.
Regards
Mohamed Yousuf Ali M I

Hi
Try This
For Outgoing payment Vendor
IF @transaction_type='A' AND @Object_type = '46'
BEGIN
IF EXISTS (SELECT T0.DocNum FROM dbo.VPM2 T0 Inner Join dbo.OVPM T1 On T0.DocNum = T1.DocEntry
WHERE ((T0.[OcrCode]='' OR T0.[OcrCode] IS NULL) and (T0.[OcrCode2]='' OR T0.[OcrCode2] IS NULL) and (T0.[OcrCode3]='' OR T0.[OcrCode3] IS NULL) and
(T0.[OcrCode4]='' OR T0.[OcrCode4] IS NULL) and (T0.[OcrCode5]='' OR T0.[OcrCode5] IS NULL)) AND T1.DocEntry = @list_of_cols_val_tab_del And T1.DocType = 'S')
Begin
SET @Error = 1111
SET @error_message = 'At least one cost center is mandatory!'
End
End
For Outgoing payment Account
IF @transaction_type='A' AND @Object_type = '46'
BEGIN
IF EXISTS (SELECT T0.DocNum  FROM dbo.VPM4 T0 Inner Join dbo.OVPM T1 On T0.DocNum = T1.DocEntry
WHERE ((T0.[OcrCode]='' OR T0.[OcrCode] IS NULL) and (T0.[OcrCode2]='' OR T0.[OcrCode2] IS NULL) and (T0.[OcrCode3]='' OR T0.[OcrCode3] IS NULL) and
(T0.[OcrCode4]='' OR T0.[OcrCode4] IS NULL) and (T0.[OcrCode5]='' OR T0.[OcrCode5] IS NULL)) AND T1.DocEntry = @list_of_cols_val_tab_del And T1.DocType = 'A')
Begin
SET @Error = 1111
SET @error_message = 'At least one cost center is mandatory!'
End
End
With Regards
Balaji Sampath

Similar Messages

  • Down payment functionality for PO with account assignment K Cost Center

    QUESTION: Is there a way to turn-on down payment functionality for cost centers?
    When a vendor down payment is posted via tcode F-47 against a PO line item with INTERNAL ORDER as the account assignment, SAP posted the following documents from the payment run (tcode F110):
    1. Accounting Document
    dr  vendor / GL= downpymt clearing / internal order = IO1234 / cost center = CC5678
         cr  bank           
    2. Controlling Document
    dr internal order IO1234
    However, when a vendor down payment is posted against a PO line item with COST CENTER as the account assignment, SAP does not post any Controlling document, just the accounting document:
    dr  vendor / GL= downpymt clrg / cost center = CC5678
            cr bank
    From my research, it appears that the down payment functionality applies to internal orders and projects only. Then settlement is run to move the values from internal order to AUC assets and/or cost centers. Perhaps I'm missing a configuration step for the cost center piece?
    Your prompt response will be much appreciated. Thanks in advance!

    system wont generate any controlling document for noted items  downpayment and normal payments.
    Because all are balance sheet accounts. Controlling documents will generated for only P&L accounts.
    Your analysis correct.

  • Regarding Change in Cost Center after Advance payment

    Hi,
    PO is created, against that PO Advance payment is given and payment is given to Vendor of advance.
    Now query is that the while generating PO wrong cost center is entered, and user want to change that.
    How we can solve this problem ?
    Regards,
    Akshata

    Hi,
    You cannot change the cost center in down payment entry, but can be changed in PO.
    Then again you have to use KB61 to do transfer posting from one cost center to another, since this will only post an internal CO ducment to adjust the balances from one cost center to another, assuming that CO update for Controlling is active in your system.
    Use down payment accounting document no in KB61.
    Regardz,
    Srinu

  • Payment through cost center

    Hello,
    how can we make payment to the vendor through cost center?
    thanks.

    Question is not clear.
    You can make payments based on Invoice only. If invoice exists, then only u can make payment.
    Regards,
    Suresh

  • T codes to see the  payment made as per cost center

    Hi Experts
    can you please tell me what is the t codes to see  the  payment made as per cost center
    Regards
    NEHA

    Hi Neha,
    Use mentioned list of tcodes along with KSB1 for more details.
    S_ALR_87013611         Cost Centers: Actual/Plan/Variance
    S_ALR_87013612         Area: Cost Centers
    S_ALR_87013620         Cost Centers: Act./Plan/Commitment
    S_ALR_87013621         Range: Actual/Plan/CommitmentsS_ALR_87013620
    Rgds
    Suma

  • T codes for payment made as per cost center

    Hi Experts
       can you please tell me what is the  t codes for payment made as per cost center
      Regards
    NEHA

    Hi, You do not use cost center for payment. You use profit center.
    Try following, it may help,
    S_ALR_87013611-  Cost Centers: Actual/Plan/Variance
    S_ALR_87013612-  Area: Cost Centers
    S_ALR_87013620-  Cost Centers: Act./Plan/Commitment
    S_ALR_87013621-  Range: Actual/Plan/Commitments - S_ALR_87013620
    S_ALR_87013631 - More Reports -> Cost Centers: Rolling Year
    S_ALR_87013640 - More Reports -> Cost Centers: Period Breakdown Actual/Plan
    S_ALR_87013633 - More Reports -> Cost Centers: Actual/Plan/Variance/Previous year
    S_ALR_87013639 - More Reports -> Cost Centers: Actual/Target from Summarization
    S_ALR_87013644 - More Reports -> Cost Centers: Cost Component Split

  • Payment method and cost center validation check in MIRO while save or simul

    Hi,
    I want to put a validation check between payment method and cost center while posting MIRO against PO (MIGO done) . If my payment method and cost center matches then system should allow that entry otherwise should popup a message .
    We tried this with user_exit - EXIT_SAPLMRMP_010 enhancement LMR1M001 .
    But thing is it is not getting triggered at all either at the time of simulation or at the time of saving . We are also looking into BADI - update_invoice .
    Any body having any idea on this please share.
    Thanks

    Hi,
    Please don't open multiple threads for the same question..Please close this one..
    THanks,
    Naren

  • Distribution rules in Incoming payment and Outgoing payment

    Hi,
    Did anyone know the purpose of having distribution rules in all the outstanding invoices in both Incoming and Outgoing payment.
    I try to attach the distribution rules to specific invoice and post incoming payment but it did not appear in the bank journal entry row.
    I also try to attach profit center in AR Invoice row but after posting and do Incoming payment, the distribution rules also never show for that particular invoice.
    Really wonder how the distribution rule works?
    Regards
    Thomas

    Hi Thomas,
    From the SAP help, you can know what is the use of this rule.
    Defining Distribution Rules
    Use
    For cost accounting, this setting is mandatory.
    Use this procedure to define distribution rules to distribute amounts between different profit centers.
    Prerequisites
    You have defined profit centers.
    Note: If you delete a distribution rule for one profit center (100%) this does not automatically delete the profit center.
    You can also look up this key word to find more info. For examle, you can find SAP note 1236348 to see if it fits you.
    Thanks,
    Gordon

  • Best practice for HR while cost center is blocked

    Hi Experts,
    Back ground
    Cost center is blocked because the legal entity is demerged.
    Some of the employees of the outgoing company are retained in existing legal entity.
    Their current cost centers are of the existing entity.
    All the historical costcenters of the outgoing entity are blocked.
    Situation
    While there is a retro payment the system is rejecting as the old cost centers are blocked.
    Workarounds used
    Open the cost center for posting and then manually transfer the amount into desired cost center and then re-close the Costcenter.
    SAP Suggestion
    Use substitute cost center so that all costs are colloected their and do the manual transfer of cost to desired ones.
    Could not use the same as business has to do the same manual activity.
    Solution
    Taken access key into the posting driver to change the cost center to current while there is an occurence of blocked cost center.
    Requirement
    Want to use the standard posting driver by removing all customization in upgrade.
    Now the Qtn is
    What is the best business process followed by FI and HR guys in organization to handle such scenarios?

    Old question, but I have the same problem at this moment.
    We also are looking into 2 solutions:
    1. use the substitution costcenters
    2. Create a custom function in our payroll scheme and modify the costcenter during payroll-run. Normally the costcenter will eb saved in the clusters and will be read from the clusters in the fico-run.
    Anybody some good advice for this?

  • Cost center change

    we want to change cost center right now, I'm concerned about the PO and fixed asset with those old cost center, may I know the table for PO, fixed asset assignment?
    for the open PO(done goods receipt, but not invoice verification), PO(done both GR and IR) and fixed assets which are already posted acquisition, fixed assets already done depreciation, how  can we change the cost center assignment? if changed, any serious impact to the month and year end closing for system(for example, auto-payment can not run, depreciation can not run)?
    Thanks

    Hi,
    In KS02, we can't shorten cost center life, we can only change analysis period, only in OKEON, we can change the validity period.
    our business user propose following for accrual posting if cost center change (use new cost center to replace old cost center)
    -Cost center need to be deactivated.
    -And then accrue need to reclass to new cost center.
    -After that block the cost center
    but i check the system, we can only change validity period in OKEON.
    in KS02, we can block posting by locking primary cost posting.
    so my understanding is follows: (1).okeon, (3) KS02. but I 'm not sure the t-code to use for the second step,accrue need to reclass to new cost center, can anyone advise?
    also if we change validity period to end this month, after this month, user can't post to that cost center, why we need block cost center(step3), is it redundant?

  • Purchase order with cost center

    I have 1 purchase order raised against cost center. for which gr, iv & payment  also done but. client want to return part of the goods.
    What can be the best process to do this.
    Thanks,
    Kiran

    Hi,
    Talk to  your business team, what  is real requirement now and also consult with FI/CO team
    As payment done, you can go for creating a Return PO and then do  GR with 161 movement type( if excise,do J1IS for to reverse excise and then print with J1IV) and finally go for credit memo in MIRO.
    OR 
    Considering  payment done to vendor as wrongly/ by mistake,so 1st check accounting document number for which vendor (with account number) in t.code:FBL1N & then reverse it with t.code: F-02 and finally clear it with t.code: F-44.Reverse all GR and MIRO document.
    Regards,
    Biju K

  • Assign ment of Parallel currencies  & Business Area related to cost center

    1.when we are creating cost center we will give business area,,,after posting to that business area,,can we change the business area???????
    2. whe1.Conducted power user, End –user training and
    involved for preparation of Business operating
    procedures
    2.Preparation of Documentation, Functional
    Specification for manual interfaces, Unit Testing and
    Configuration control documents.
    3.Analysis of Automatic Payment programme
    4.Analysis of Interfaces, Solving tickets and
    interacting with  the Users  
    5.Analysis of Settlement rules for AUC in capital
    projects re we can assian 2nd parellal currency???
    6.Conducted Positive Unit Testing, Negative Testing in
    Development client and Quality Assurance Client in the
    Areas of GL AP AR and Controlling area

    no once posted u cannot change the business area assignment of a cost center

  • G/l Account Balances Report with Cost Center

    hi all,
    In F.08 T-code i need to place a Parameter of Cost Center in G/L Account Selection and
    after executing the report i need to place populated cost center field at the last column.
    Please help me in creating this report with different possibilities.
    thanks,
    Sankaresh S
    Moderator message: "spec dumping", please work yourself first on your requirement.
    Edited by: Thomas Zloch on Jan 24, 2012

    Hi,
    It looks like a complex system is in place. It is good that Non-SAP system is being discarded.
    Let us assume CC1 and CC2 are two company codes in SAP nad NC is a company code in non-SAP system. Further let us consider CC1 as a replica of NC. And all invoices are entered in CC2 and interfaced to NC month end. As payment details are not interfaced back to CC2, all items will be open items. I presume only closing balances from NC are interfaced to CC1, as such both are in sync.
    Under the given circumstances my views will be as under:
    1. As CC1 is already a replica of NC, why can't this continue as a Company Code in SAP. Probably you may have to create Customer and Vendor Masters in this Company code.
    2. Second option is discard both CC1 and CC2 and create a new Company Code say CC3. In this scenario, we can start with a clean slate. Basically, you need to extend the following:
       - GL Accounts to new Company code
       - Vendor and Customer Masters to new Company Code.
    The closing balances need to be transferred to new Company code along with Open items of Vendors / Customers.
    3. Third option as you have planned to update balances in CC2. In this scenario, how are you planning to write off the open items (which are already paid). You will be transferring it to a dummy / conversion GL Account. But I think this may be a significant balance and proper analysis need to be made about the implication of that.
    I would recommend option 1 of creating a new Company code.
    Thanks
    Murali.

  • Report Writer Missing Data for Cost Center+Investment Internal Order

    Hi Gurus,
    I have met a problem on Report writer. T-code KSBB -> Report for Cost Center Group by Cost Elements in diff months.
    The report can be drilled down to call KSB1 to give line items on the cost element by cost center/group.
    The problem is the drill-down report missed the line items for investment orders. ( Compared with manually use KSB1)
    The overhead internal order line items are fine.
    For example, document 001-Apr:
    Dr. Cost Element 1009                 $900  -- BA 90  Cost Center 90000 Investment order 9001
         Cr. Other cost elements.                  $900
    Document 002-Apr
    Dr. Cost Element 1009                 $800 -- BA90 Cost Center 90000 Overhead order 7001
         Cr. Other cost elements                      $800
    In KSBB report, the cost center group for 90000 in cost element 1009 in Apr only has $800.
    And the drilled down report which called KSB1 has the line item for docuemnt 002.
    However, when I run KSB1 directly, the total amount for cost element 1009 in cost center 90000 is $1700.
    Here is what I checked:
    1. I have my ABAPer checked the KSBB program and KSB1 program to debug them in DEV ( DEV and PRD has the same problem). The different to get the data is that in KSB1, it has selected a value type 11 ( Googled: field name is WRTTP, Down payments as expenses. In program: WRTTP means Statistically Actual ) and 04 ( Googled: Actual True Posting. In program: 04 in WRTTP means Actual posting).
    But in KSBB, it only select 04 when I clicked the drill down report to call KSB1.
    2. I am thinking that the cause was on different types of internal order:
    Overhead internal orders are statistical orders.  Investment orders are actual orders.
    Could you help to throw some light on the problem?
    Thank you very much.
    Emma

    Hi,
    Cost Centre vise Report you can take from KSB1
    Internal Order Vise Report you can take fro KOB1
    Regards,
    Sridhar Sha

  • What are the tables and field where Cost Center info. is stored ?

    Hi Experts,
    One of my customer is using the Cost Center / Profit Center and mention the same in all document. Now for particular Incoming Payment customer wants to print the dimention wise details entered in incoming payment as well as out going payment.
    Can anybody tell me from which table / fields I can retrive this information ? Particularly in Crystal Report.
    Thanking in advance,
    Samir Gandhi

    No response ?
    Does anybody monitoring this or not ?
    BR
    Samir Gandhi

Maybe you are looking for

  • Problem in AP invoice validation

    Hi, I have added a new operating unit and have setup INV, PO and AP. I have entered some invoices which i want to valiadte. But the validate check box in the action window is disabled. Can anyone tell me what needs to be done. Regards Deepak

  • GL account with line items in line type 'S' document split?

    Hi Experts, We found in PCP0 there are payroll documents which has GL account with with line items in line type 'S' document split. Unlike other line items with line type 'blank' these line items cannot be opened and display the wage type details. Ho

  • Regarding BPM

    Hi All, I'am using BPM.(File-BPM-File) I'am getting data from 2 files for that I've used 2 receive steps with in the fork. 1st receive step for Control data from one file and i use option start process for this receive step. 2nd receive step for deta

  • HP Dream Color monitor settings?

    Anyone using a Dream Color Monitor? I am working on one- NOT as an external monitor- it is my computer screen only. It was set to FULL and the image seemed too intense. I changed colorspace to Rec709 and everything looks closer to what I have with my

  • Pixilated result in IE

    Im useing a jquery script to slide between divs with a fade in/out effect between each div this is the code <script type="text/javascript" src="Scripts/jquery-1.4.2.js"></script> <script> $(function(){     $ds = $('.com');     $ds.hide().eq(0).show()