Retrieving Profitability Segment of Accounting Doc

Hi everyone,
Is there a function module that you can use to return the profitability segment of an accounting document?  If not, what table can you access to retrieve the profitability segment information, and what parameters do you need?
Many thanks

The table that solved my problem was
CE4xxxx_ACCT
where xxxx = operating concern

Similar Messages

  • Validation for profitability segment in Account document

    Hi Team,
    Currently We are using validation for cost object i.e. either cost center or WBS elements enter  in a  GL account line items and if we are enter both cost object then system will be give Error message . in this validation we have added validation for profitability segment . System will be allow only one at a time enter in Gl accounts (i.e. cost center /WBS elements / profitability segment ). But it is not working for  profitability segment so can you help regarding this.
    Thanks in Advance
    Regards,
    Manas deo

    Hi
    I think you should check
    BSEG-KOSTL <> "" (Blank) AND BSEG-PROJK(WBS) <> ""
    OR
    BSEG-KOSTL<> "" AND BSEG-PAOBJNR <> ""
    OR
    BSEG-PROJK <> "" AND BSEG-PAOBJNR <> ""
    trigger the error msg
    br, Ajay M

  • Profitability segment lost

    Hi Gurus,
           I created a FI doc and I filled one item with profitability segment, and this doc was posted successfully.
           But when I check this document, that item's profitability segment got lost. The button of profitability segment is grey, meaning it can not  be clicked.
           Profitability segment field status for corresponding account is required. No COPA doc is generated. And its real CO assignment object is cost center, not profitability segment.
            Anyone has some clue,thanks.
    regards
    zhihua

    Hi..
    You should check whether the Substitution is applied for the GL account to replace profitability segment with cost center using t-code OKC9 or OBBH.

  • Profitability Segment while releasing invoice to Accounting

    Hi,
    I am configuring a scenario in which a debit memo request and a corresponding debit memo will be created. Users want to put in a WBS element at the line item level of the debit memo request (which is fine). Business gave me a GL account in which the profitability segment is a required entry. Now, when I try to release the invoice to accounting, I get an error saying "Field Prof.Segmt is a required field for G/L account" (Msg Number F5808). I know that by changing the field status group on the GL account, i can make it post, but that is not the point. I want to know
    a. Why system is unable to determine the profitability segment (i entered GL account in OKB9 and checked auto determination of profitability segment)
    b. Is it because I am using the WBS element and trying to post to both FI and CO (because, when i use WBS in sales order, during account determination, system looks for KOFK condition type to determine the GL account) and i am not supposed to do that? If i do not use a WBS, then, the posting happens (using KOFI) and the profitability segment is also determined.)
    Please let me know if you need more information.
    Your help is most appreciated.
    Regards,
    Mukund S

    We closed this issue by changing the field status group for the GL account. Though this is not the perfect answer, we had to do it for the business need.

  • Sales Order No profitability segment!! Account assignment error!!!

    Dear Experts
    We are running an MTO(make to order) scenario!
    First we create an contract in the system!Then we create sales order
    with reference to this contract!
    And when the sales order is sent to the planning department! They use
    TCODE:CO08 create production order with reference to the sales order!
    But we get an error message as follows:
    Account assignment cannot be carried out because of different origin no.
    Message no. V1134
    Diagnosis
    The sales document to which you want to refer is based on sales document 41033737 and item 000010.
    Therefore, the settlement and possibly inventory management are carried out using the number of the
    preceding document.
    ut when I entered the the contract in Co08 and then I am able to create
    the production order.
    And when I back to see the detail in the sales order ,I find there is no
    value in the account assignment to the profitability segment!!
    Why the sales order have no profitability segment??*
    Why we can not create production order with reference to sales order??
    It seems there are one problem!
    Thanks for any reply!!

    Please refer note 327195 or 35445
    thanks
    G. Lakshmipathi

  • DKACB-XERGO Assignment to a profitability segment has no effect for account

    Hi,
    I have a batch input (FB01) in error for this message:
    Assignment to a profitability segment has no effect for account XXXXXXXXXX
    This account is not to opened as cost element...and this is correct.
    If I process batch input in foreground, I notice that field 'Profit. Segment'
    (DKACB-XERGO) is flagged.
    How Can I unflag this field?
    Where 'Profit. Segment' is customized?
    Thanks,
    Marco

    I am wondering what is behind the batch input or what process is used  to do that. For e.g, when I tried entering FB01 transaction with a pure G/L account (it has no cost element) and  clicked on the profitability segment icon, I got the same message what you got.
    So could it be possible that batch input goes through the 'Detail screen for profitability segment' though it may not be required?

  • GL Account Subject for Profitability Segment

    Hi gurus,
    I just want to ask if how will I know if a certain GL account is subject for Profitability Segment (CO-PA).
    Regards
    Andre

    Hi
    I think you should check
    BSEG-KOSTL <> "" (Blank) AND BSEG-PROJK(WBS) <> ""
    OR
    BSEG-KOSTL<> "" AND BSEG-PAOBJNR <> ""
    OR
    BSEG-PROJK <> "" AND BSEG-PAOBJNR <> ""
    trigger the error msg
    br, Ajay M

  • Profitable analysis and cost accounting doc

    hi,
    May i know why some of billing in vf03 only have cost accounting doc whereas some have both profitable analysis and cost accounting doc in document category when click accounting button.
    thanks

    Hi,
    Please check the Sales Condition Types assigned to Value fields. May be some of your condition types are assigned to Value fields and some of are not. Go to KE4I.
    Also check the PA Transfer Strcuture in KEI2, Whether relevant Cost Elements are assigned to Value Fields or not.
    Regards,
    Jigar

  • EDI Vendor posting (INVOIC01) to account assign Profitability segment

    Hello Experts,
    Have anyone used INVOIC01 (EDI vendor) Idoc type to post to a Profitability segment in a InterCompany sales scenario? If yes, could someone guide me how to achieve this? I see that OBCC transaction has Profitability segment field, but I am not sure how to use it.
    Any ideas?
    Thanks for your time.

    Thanks Waman for the SAP notes.
    In fact, I have looked at those notes, already. We cannot change to INVOIC02 Idoc type.
    I wonder, why SAP does not offer the functionality to update Profitability segment on the EDI Vendor posting. Transaction OBCC has Profitability segment, but giving a fixed PSEG will not meet any business requirement! EDI enhancement FEDI0001 has only EDI-FIELDS and not the IDoc segment details. There is nothing much one can do with just the EDI-FIELDS.
    Have you used FEDI0001 enhancement for PSEG determination? Looks like all that one can do with FEDI0001 is move the OBCC configuration values to Coding block.
    Thanks for your time.

  • Billing doc item to Accounting doc item no relation

    Hi all
    I want to link the billing doc item to Accounting doc item no.
    how is the relation available using tables & fields ?
    thanks

    Dear SRI,
    These are the fields
    1.BUZEI --- Number of Line item with in the Accounting
    Document.
    2.POSNR -- Billing item
    These are the Tables,
    1.VBRP -
    (INV ITEM)
    2.BSEG -
    (ACC DOC SEGMENT)
    I hope it will help you
    Regards
    Murali.

  • How to update sales order number (KAUFN) characteristic in the profitability segment of the PA document created at the time of service entry sheet confirmation, as a result of shipment cost document

    Hi,
    We have a scenario wherein we create shipment cost documents against delivery. As a result of shipments fully transferred, a PO for freight vendor is automatically created and a service entry sheet confirmation happens. As a result of service entry sheet confirmation, we have Financial accounting, Controlling and profitability analysis documents created. We have a requirement wherein we need to have the characteristic “sales order number (KAUFN)” populated in the profitability analysis document created as a result of service entry sheet confirmation.
    Could someone please advice how could this be attained in COPA. Thanks for your help in advance.
    Regards,
    Sandeep

    Hi Ajay,
    Thank you for the quick update.
    The document is updated to COPA through OKB9 settings. The profitability segment is updated with fields like customer, product, company code, plant, sales area data, profit center, etc; however the sales order number is missing.
    Could you please elaborate further how could FI substitution be implemented to call for the FM COPA_PROFITABILITY_SEGMENT through user exit? Are you recommending the substitution through GGB1? What could be the possible validation to call for the user exit to be implemented?
    Regards,
    Sandeep Kulkarni

  • Incompletion log Profitability Segment at item level in the Sales Order

    Hello Sapians,
    We recently activated the "Sales Order value flow to COPA". When we create the Sales Orders the Profitability segment for the item is getting picked up automatically and have no issue in saving the Sales Order.
    But when we edit the Sales Order and then try to save it, Sales Order has incompletion log which is leading to Profitability segment in the item level.
    When I click the little box in Sales Order Item > Account Assignment tab> Profitability Segment forward arrow--> "continue" or "derivation" in the populated screen, then the Forward arrow in the profitability segment is deriving the characteristics, then system lets us to save the Sales order with out any incompletion log.
    I checked the OSS notes 114520, in this OSS note, my sitiuation is exactly first point but could not get any clue how to resolve automatically.
    Why it is happening only when we edit the Sales Order? How to update bulk of Sales Order automatically?
    Any inputs?
    Thank you.

    Hi
    Since you have activated the Sales order flow to COPA, any change in the sales order triggers a Prof Segment redetermination.... Thats why you are able to save it once you redetermine the Prof Segment....
    Ideally, if no Chars like Plant/Org Elements/etc are changed - It need not trigger the Prof Segment redetermination...
    Refer  Note 729381 - When is a profitability segment supposed to be determined?.... With ref to this note, raise an OSS msg to SAP and check if it is possible to avoid the redetermination of PSG as long as none of the relevant chars are changed in the sales order....
    There is a similar issue in MTO where by, even if you change the Header text of sales order, it triggers the Sales order cost estimate.... SAP provided a note to stop this... Note 1548608 & 1260868.... Your case is similar to this.... Raise an OSS to SAP and ask them if they can provide such a note for your case.... I feel, it should be possible for SAP to give this!
    br, Ajay M

  • Copying of Profitability segment from Sales Order to Purchase Order

    Dear Edurado,
    My requirement is in the sales order account assignment tab there is Profitability segment which is done by CO PA , the same PA segment must be automatically flow to Purchase order while creating the Po with ref to a sales order. Profitabilty segment is flowing but the fields like customer , Material is not flowing ,user must have to enter manully which he does not want.... i want all the field is Profilabbility segemnet of SO must be flow to PO while doing Po with ref to SO.
    Regards
    Abhi

    Hi,
    Try transaction code KE4IM, to map the MM condition types to COPA value fields.
    Trust this helps much!
    Cheers!

  • Required a customer field(located in the profitability segment box) as mand

    our client is requested  that the customer field (located in the Profitability Segment box) be a mandatory field for GL accounts which are getting posted directly from FI. This field is needed so that proper reporting can be generated for bad debt and product liability claims. Currently this field is not a mandatory when making journal entries, so there were some postings happened with out customer field. Due to this we are unable to extract exact values in CO-PA reports . Please can some one help me on this and explain the process and settings for this??
    Thanks in advance.
    Regards,
    Venkat

    Hi Eli,
    I have posted note to SAP and i got the below reply from them.
    Get this functionality you should change
    the coding of form DERIVE_CRITERIA_EXTENDED from include RKEVRK2L after
    uninstallation of note 115500(in case you have installed) like this:
    Im Dialogfall (Kontierungspopup) Verprobung ob für Feld
    Mußeingabe erforderlich (Merkmalsgruppe!)
    (nicht f. Faktura, da dort keine Fehlermeldung moeglich)
    if ( xt_criteria-field is initial
    BEGIN OF DELETION *****
    and xt_criteria-status eq '2'
    and not is_status_flags-dialog is initial ) .
    perform send_message using 'KE' 'E' '494'
    END OF DELETION *****
    BEGIN OF INSERTION *****
    and xt_criteria-status eq '2' ) .
    data: l_mtyp type c.
    if not IS_STATUS_FLAGS-DIALOG is initial.
    l_mtyp = 'E'.
    else.
    l_mtyp = 'W'.
    endif.
    perform send_message using 'KE' l_mtyp '494'
    END OF INSERTION *****
    xt_criteria-fieldname
    is_cobl-vorgn
    i_char_group
    endif.
    Afterwards you have to run function module RKE_GENERATE_INTERFACE_ACT
    for your operating concern to update the generated program RK2LXXXX.
    Thanks & Regards,
    Venkat

  • LSMW-adding Profitability segment in FI document by batch

    Dear all:
    i want to consult that:
    I do the LSMW using the standard batch to post the FI document:
    object :100
    Mehod : 0000
    program name ; RFBIBL00
    Program type: D
    and In my FI document one account is the revenue account and should to assign the PSG ( Profitability Segment)
    and so i  set the related field about the PSG such like RKE_PRCTR ( PSG-profit center)  and so on in the source structure and map them to the related BBSEG's PSG field just like RKE_PRCTR , and i found the read data and convert data, it is ok, but when i excute, it seems the data about the PSG can't upload to the related field, and i'm sure that the field's data is correct, so could you tell me except to map the PSG'S field , which field should i also set? thanks very much

    Hi,
    Can you execute the posting batch in the foreground and revert with the message it returns. In certain screens it should give you a message like:  Screen field XXX-XXXXX does not exist.
    Cheers.

Maybe you are looking for