Making Profit Centre manditory in AR Invocie & AR Credit Memo

Dear Experts,
Can anybody help me what changes needs to be done in the below SP to block A/R Invoice and A/R Credit Memo without selecting profit centre.
The profit centre is mandatory in AR Invoice and AR Credit Memo.
If
@transaction_type = N'A' AND (@Object_type = N'17')
begin
if
exists (SELECT T0.docnum FROM dbo.ORDR T0 INNER
JOIN
dbo.RDR1 T1 ON T1.DOCENTRY =
T0
.docENTRY
WHERE
t1.OcrCode is null
and
t1.OcrCode2 is null
and
T0.DOCENTRY = @list_of_cols_val_tab_del)
select
@Error = 1, @error_message =
'Please Select the Profit Center'
end

Hi Srini.......
Try this........
For AR Invoice
If
@transaction_type = N'A' AND (@Object_type = N'13')
begin
if
exists (SELECT T0.docnum FROM dbo.OINV T0 INNER
JOIN
dbo.INV1 T1 ON T1.DOCENTRY =
T0
.docENTRY
WHERE
t1.OcrCode is null
and
t1.OcrCode2 is null
and
T0.DOCENTRY = @list_of_cols_val_tab_del)
select
@Error = 1, @error_message =
'Please Select the Profit Center'
end
For AR Credit Memo
If
@transaction_type = N'A' AND (@Object_type = N'14')
begin
if
exists (SELECT T0.docnum FROM dbo.ORIN T0 INNER
JOIN
dbo.RIN1 T1 ON T1.DOCENTRY =
T0
.docENTRY
WHERE
t1.OcrCode is null
and
t1.OcrCode2 is null
and
T0.DOCENTRY = @list_of_cols_val_tab_del)
select
@Error = 1, @error_message =
'Please Select the Profit Center'
end
Hope this will help you.......
Regards,
Rahul

Similar Messages

  • MAKING PROFIT CENTRE MANDATORY FIELD IN ECC 6.00 AFTER GOLIVE

    Can we activate the Profit centre mandatory field for all the entries after the system gone live?.   The details are as under:
    1.     System : ECC 6.00
    2.     Document splitting activated without making Profit Centre Mandatory field.
    If we are going to activate now, system is throwing a very strong message of Data Inconsistency and informing us not to change the settings now.
    Is there any other way where in we can make Profit Centre a mandatory field.
    Appreciate if any one  who  worked on this / has knowledge on this please revert back on the solution.

    Hi
    You should raise an OSS message and take SAP's support...
    If you add any new dimension now, all the previous docs where PC was not populated would throw an error during clearing, payments, etc
    You might be having PC as a doc spliting char already, but if you did not make it mandatory, then chances are that some docs might have been posted w/o PC
    BR,Ajay M

  • Need Profit centre field as mandatory field in the sales order

    Dear All,
    Normally Profit center data maintained in the material master, same data will get coipied to the sales order while creating sales order in VA01 transaction.
    My requirement is if profit center data is not maintained/available in the sales order system should give the error message
    For this I need Profit center field as mandatory field in the sales order(VA01).
    Can you please give possibilities ASAP.
    Give the SHD0 maintenance step by step.
    Regards,
    Murali.

    Hi Murali
    I beleive that you are talking about the Profit centre field not maintined in sales order hence not picked in delivery and billing and there is an FI posting error  (GL account error) because of that
    Profit centre is maintained in MMR and the same flows thro the sales cycle and i am quite sure if maintained in MMR it will be picked automatically and no need to make it mandatory in sales order( as the purpose is already solved)
    But there is no standard option in SAP like (even if Account assignment category of the material is not maintained in MMR it can be given in VF02 and the document can be released for accounting) to give the Profit centre in the billing and release the same
    Profit centre field field is picked from masters and flows in the entire flow and that field is greyed out (like no option of inserting it inbetween)
    As told by others incompletion log in sales doc type will take care for future orders and for the already created orders the standard option is cancel billing, reverse delivery and open the sales order and give   Profit centre field and process it (if only a few orders are there)
    But if the already created orders are many then from the FI Area  you need to go for development ( we also faced this issue as profit center not maintained in MMRs and hence accounting got hit and there were tons of billing docs and our FI consultant made some development to open it and solve it) FI consultant should be able to do this for already created orders
    Instead of making Profit centre field as mandatory field in the sales order better make it a mandatory entry in MMR
    Regards
    Raja

  • Profit centre not displyed in Customer balance

    Hi
    while executing the FL5N Customer line items the profit centre filed is blank.The profit cenre column is there but not displayed. profit centres
    Please what to do if we want to diplay
    Regards
    Arjun

    If you are on new GL, then go to Financial Accounting (New) -> General Ledger Accounting (New) -> Business Transactions -> Document Splitting -> Define Document Splitting Characteristics for General Ledger Accounting in IMG and add an entry for Profit Center.  System should then automatically pick up the profit center from the revenue line item (when you post GL document) and insert it in the customer line item as well.
    If you are not on new GL, then I don't see any option other than making the profit center available for input in the field status group assigned to the reconciliation account of your customer and entering the profit center when posting the accounting document.
    Assign pts. for useful answers!

  • Profit centre - block for posting and put as inactive status

    Hi Guru,
    I want to block a profit centre from being posted to AND put the status as inactive.
    I checked on the Lock indicator and the profit centre automatically becomes inactive.  However, I can still post to the PC.
    I noticed that if the PC has an "Active" status and the lock indicator on,  then I cannot post to the PC. 
    What have I missed?  Do I need to make the setting in a special sequence??
    Linda

    Hi,
    Here is the step-by-step:
    1.Go to T-code KE52 and call up your profit center
    2. Go to the Indicators tab and put a check in the Lock indicator
    3. Save:
    Note that this will save your changes in an Inactive Status. You may be thinking that is a good thing and that youu2019re doneu2026I was.  But youu2019re not.  If you go to FB50 or 9KE0 and try to post to that profit center, it will let you post away all day long.  One more step.
    Click the Match stick button to Activate your new state:
    Do not mess with the Validity periods unless youu2019ve got a good reason to.  The real key here is setting the Lock indicator and making sure that is Active.  Think of it as Actively locking your profit center.
    Thank you
    Pradeep

  • Changing Cost of SAles Account form Profit Centre to Cost Centre

    In order to be able to forecast against Cost of Sales accounts within the same process and plan version as expenditure accounts, I am proposing to create Cost Elements on the G/L accounts associated (they currently post to Profit Centre).
    Apart from losing history reporting, are there any issues to consider before making this change (e.g automatic account assignment)

    Hello Shirley,
    Here are the areas that I can think of:
    1) Field Status Group for Cost objects- OB41 and OB14: For all the GL's that will be created as Cost Element, ensure that Cost Center is not a "Suppressed" or "Display" field, it has to be a "Required" or at least an "Optional" field. (Internal Orders, if used, need similar treatment)
    2) Field Status Group for Profit Centers: Similarly, if you have made Profit Center a "Required" field, then you may want to make it "Optional" and allow it to be defaulted from the Cost Center or Internal Order
    3) Profit Center Derivation: 3KEH / 3KEI: Entries in these tables, if any, need to be removed for the Accounts that are being created as Cost Elements.
    4) Default Account Assignment: OKB9: In case you are not able to enter Cost Center / Internal Order at the time of FI Document entry, then you will need to include these in OKB9.
    Hope this information helps.
    Regards.
    Ashish.

  • Profit Centre Document issue at the time of Post Goods Issue on SD.

    Dear Experts,
    While SD person is posting Post Goods Issue, System is generating Profit Centre Document along with other documents. We are facing an issue with Profit Centre document here and the issue is:
    Some Profit Centre Documents are populating Delivery Order Number on respective field while some are not. Ideally all profit centre line items should show Delivery Order Numbers.
    Please guide any solution to resolve this issue, its urgent.
    Thanks in Advance.
    Regards,
    Zain Bashir

    Hi Zain
    This is a tricky issue
    Are you saying that the PCA document has the Delivery Number (VL01N) updated in some cases and not updated in some cases?
    The Delivery Number is updated in PCA document when you create Delivery from VL01N and do PGI from VL02N
    But, if you do PGI from VL01N itself, then the delivery number is not updated in the PCA document
    SAP recommends to post PGI from VL02N
    Br. Ajay M

  • Vendor Open Item Transaction FBL1N and Profit Centre Display

    When I run transaction FBL1N for vendors and include profit centre in the layout, the profit centre column is included but is not populated with and values for any line item. However when I run a report in FAGLL03 the line items dispolay a profit centre.
    How do I get the profit centre to report in my FBL1N output?
    The Program running FBL1N is RFITEMAP.
    Warm regards
    Victor

    I have done that. The column appears but it is not populated with any profit centre for line items, although the items belong to profit centres.
    Regards
    Victor

  • Stock balances by Profit centre-New GL

    Hi,
    Is there any standard FI report by which I can get the stock/material/inventory balances by profit centre and segment. We are in ECC 6.0 with new GL activated.
    If there is no standard report, can this be acheived by using a ABAP query by table join.If yes, please let me know the tables to consider.
    Thanks
    Aravind

    Try the report S_E38_98000088 - Profit Center Group: Plan/Actual/Variance for your inventory accounts. This will give you stock values by profit center. Leave the profit center value blank in the selection criterial. Run MB5L for stock values by inventory account and then double click the account to get the stock values by material.
    FAGL_FLEXT, MBEW and MARC can be joined to get the values.

  • Profit centre at storage location level

    Hi Experts,
    Can we define a profit centre @ storage location level?
    My scenario :
    The document splitting of FI is activated for the document type of FI and also the profit centre is mandatory entry for any accounting document that will be created so when I am trying to post a MIGO I encounter the error
    "Balancing field "Profit Center" in line item 001 not filled"
    We have a option of maintaining a profit centre in plant data/storage location but i will be updated in the profit centre field of Costing1 view . But we does not want to upadate in costing view of material master data.
    Basically We want the system to determine profit centre based on storage location  in Goods reciept transaction .
    Helpful Sugestions on this would be helpful & rewarded max .
    points.
    Regards,
    Patil
    t

    Hi Raju ,
    Thanx for the reply.I am Basavarajs Collougues.
    Our Enterprise Structure of our Client is as follows
    One company code is assigned to one plant and we have treated all the branches across India as Storage locations.Each  Branch (Storage Location- MM) is configured as Profit centres in FICO.The goods are procured for a storage location.
    By using the functionality of document splitting, the profit center field is made mandatory for all the accounting documents generated in the system. Now we are trying to post a goods receipt against a Purchase Order, the system is giving error "Balancing field "Profit Center" in line item 001 not filled"
    The option is there to maintain a profit center at the plant level.But we have several storage locations under the plant and each storage location has to be linked with the particular profit center. So that, while doing goods receipt the system should determine profit centre based on the storage location in purchase orders.
    Please suggest on this.
    Regards,
    SVU123

  • Profit Centre updation in Vendor or Customer Line item

    Dear All,
    With the concept of New GL, system is configured with profit centre and business area mandatory fields. after posting the document in MIRO and VF01 system is not able to capture the Profit Centre in the vendor or customer line item in " Entry View" where as in  "General Ledger Veiw" PC is capturing properly.
    Business area field is updating in the both the veiws.
    Due to this we could not able to take the vendor or customer line item in the t code FBL1n / 3n. is there config setting missig or else system is behavior correct.
    if sytem is behaving correct in this case how to take the vendor or customer line item with respective profit centre wise.
    Thanks in Advance,
    Sahil. K

    First of all go to SE37 and copy the function module SAMPLE_INTERFACE_00001650 and make a Z one out of it .
    Then code your requirement playing aorund with the structure RFPOS .
    Then Go to FIBF - Settings - Products - Of a customer . Here make a new entry with a Z one of yours as per your convinience .
    Again go to settings - P/S modules - Of customer - Entere here the BTE 1650 and the product that you have created and enter the fucntion module name that you have made the codings in .
    Save the entries .
    Also , in the FM you can keep a break point and check what is the effect that is coming out in the Structure RFPOS after the FM is executed .
    May take the help of an ABAPER for the same .

  • Profit centre-wise Vendor/Customer outstanding

    I am working in ECC6. Profit Centre and Segments are activated.
    While I am posting a vendor invoice, I assign the profit centre in the expenses account and the vendor is also posted to that profit centre while posting.
    Now my requirement is to view the profit centre-wise vendor outstandings. I tried to execute the Open item report per profit centre (S_ALR_ 87013343 & S_ALR_87013344). However, I am unable to see any output figure. The list is coming as zero. System shows a message "Report 8A4-0012 does not contain any data pages".
    Is there any other report or what is wrong with the above report ?
    Regards

    The profit centers are not posted directly in PCA.
    The Vendor/Customer reconsilatin accounts should NOT be 3KEH
    Have you run:
    F.5D - Calculate
    F.5E - Post
    F.5F - Display Log
    or
    1KEK - Transferring Payables/Receivables

  • Profit centre-Payable/Receivable

    I am working in ECC6.  Profit Centre and Segments are activated.
    While I am posting a vendor invoice, I assign the profit centre in the expenses account and the vendor is also posted to that profit centre while posting. 
    Now my requirement is to view the profit centre-wise vendor outstandings.  I tried to execute the Open item report per profit centre (S_ALR_ 87013343 & S_ALR_87013344).  However, I am unable to see any output figure.  The list is coming as zero.  System shows a message "Report 8A4-0012 does not contain any data pages".
    Is there any other report or what is wrong with the above report ?

    Dear,
    Please try below mentioned reports :-
    S_AC0_52000887 - Receivables: Profit Center
    S_AC0_52000888 - Payables: Profit Center
    S_PCO_36000219 - Segment Payables
    S_PCO_36000218 - Segment Receivables
    S_PL0_86000030 - G/L Account - Balances
    Regards,
    Kalpik Shah

  • G/L Account & Profit Centre Wise  Trial Balance Report

    Im working on a Client which is in 5 version and does not have the new GL account and document split.
    They require a  report where they could get the trial balance report (Gl accoun & profit centre).Standard report F.48 provides only Gl Account wise.
    Please suggest me on how i can start this develpomnet.As per my view i need to update a Z table with profit centre and Gl account Amounts and then in turn fetch the values to my report.
    Can the SDN experts help me on this,i would be very gratfull.

    hi,
    you can use these tables for trial balances g/l account wise.
    TABLES : glt0 ,
                   skat ,
                   t001 .

  • New General ledger accounting in ECC 6.0 : Profit centre not in BSID table

    hi,
    I already create new transaction code and report from standard transaction code
    *s_alr_87012168 : Customer Aging Report (Due Date Analysis for Open Items)* and i
    also add Profit center fields into Dynamic selection.
    My problem is, if i run the report using customer account the output is displayed but
    if i run the report with customer & profit centre the output is not displayed. currently i'm using
    new General ledger accounting in ECC 6.0 and when i look into bsid table the value
    is empty for profit centre and the value for profit centre are stored in new table
    FAGLFLEXT.
    do i miss something?
    thanks.

    s_alr_87012168 : Customer Aging Report (Due Date Analysis for Open Items) this is a report generated.

Maybe you are looking for