Profit Center for VAT Report

Dear Expert,
We are trying to Make VAT report for Indian Company.
Document Split is active.
How or where can i fetch Profit center?
We are using following tables to fetch data BSET,BKPF,BSIK,BSID,BSEG.
But profit center is only appearing in BSIK,BSEG and BSID but the line item for vat is not showing profit center.
In document split profit center is made mandatory.
In FAGLFLEXA it is all updating.
Can anyone guide me what logic can i use to pull the profit center fro VAT Report

Hi
Its better if you use Table FAGLFLEXA instead of BSEG...
FLEXA is the younger brother of BSEG which will store the PC wise infotmation if you have doc splitting active
Br, Ajay M

Similar Messages

  • Profit center line item report

    Hello All,
    A sales order is created with reference to a service order, now when I see Profit center line items, the function area available in Service order is differ from the function area displaying with sales document number in profit center line item report. Can anyone please tell me where could be the problem.
    Full points will be awarded for the answer.
    Thanks & Regards
    Srini

    Hi,
    what SAP release do you have ?
    Normally the derivation of the functional area is made with the following logic:
    1) manually entered
    2) FI-Substitution (calling point 5 or 6 since ERP2004)
    3) cost center
    4) cost element
    Please see also SAP note 106180 of how to correct wrong functional areas in PCA.
    Best regards,
    Andreas

  • Difference in Profit center for GR/IR account in MIGO & MIRO Transaction

    1) We have created material 106267 with material type ROH. We have assigned profit center 1001052999 (common profit center) to material.
    2) We have created WBS element MUM-RIV002.SS.RC.RF with profit center 1001052002.
    3) We have created PO 4000000236 for account assignment category u2018Qu2019 for the above material with WBS element MUM-RIV002.SS.RC.RF   . After posting GRN for PO 4000000236 we have identified that for GR/IR account profit center is taken from material master & for stock account profit center is taken from WBS element.
    Please find the below Flow
    In MIGO
    Entry
    Accounting Document number in Entry View
    5000001125
    PSKY          G/L Code      Description
             Amount
         Curr.
              Profit Center
         WBS element
    89          231101     RAW MATERIAL STOCK     2,000.00     INR          1001052002     MUM-RIV002.SS.RC.RF
    96          162101     GR/IR-Material     -2,000.00     INR          1001052999     MUM-RIV002.SS.RC.RF
    Document number in Ledger View
    L.item     PK     SG     Account     Description         Amount     Curr.     Tx     Profit Ctr     WBS element
    1     89          231101     RAW MATERIAL STOCK     2,000.00     INR          1001052002     MUM-RIV002.SS.RC.RF
    2     96          162101     GR/IR-Material     -2,000.00     INR          1001052999     MUM-RIV002.SS.RC.RF
    3     50          162001     InterSegment Clrg     -2,000.00     INR          1001052002     
    4     40          162001     InterSegment Clrg     2,000.00     INR          1001052999     
      It should take profit center from WBS element for GR/IR account & Stock account but for GR/IR account profit center is taking form material master & for stock account profit center is taking from WBS element.
    MIRO
    Entry
    Accounting Document number Entry View
    5100000657
    PK     SG     Account     Description         Amount     Curr.     Tx     Profit Ctr     WBS element
    31          100000     Ambuja Cement Ltd     -1,996.00     INR     V4          
    86          162101     GR/IR-Material     2,000.00     INR     V4     1001052002     MUM-RIV002.SS.RC.RF
    40          254001     VAT Receivable     80     INR     V4          
    50          172103     TDS PAYABLE -194C     -42     INR               
    50          176101     WCT-TDS payable     -42     INR               
    Document number in Ledger View
    PK     SG     Account     Description         Amount     Curr.     Tx     Profit Ctr     WBS element
    31          160100     CRS-Domestic Supp     -1,996.00     INR     V4     1001052002     
    86          162101     GR/IR-Material     2,000.00     INR     V4     1001052002     MUM-RIV002.SS.RC.RF
    40          254001     VAT Receivable     80     INR     V4     1001052002     
    50          172103     TDS PAYABLE -194C     -42     INR          1001052002     
    50          176101     WCT-TDS payable     -42     INR          1001052002     
    In the MIRO Accounting Document profit center for [162101] GR/IR-Material A/C has taken from WBS element
    Please note that we are using document splitting with Profit center is mandatory
    We have created same scenario for Cost center. After posting the GRN profit center is taken from cost center for both GR/IR account in MIGO & MIRO accounting documents.
    Plez help

    Hello
    ANy suggestion for question & if solved do let me know

  • Profit Center in Aging Reports

    Dear All,
    I have a requirement of creating an Aging report (Which we have built on AR Data Source, 0FI_AR_4).
    Now, i have a requirement to show the Profit Center drilldown in this report. Profit Center is present in the Base tables (BSID / BSAD (AR EXTRACTOR)) but cannot be used as its not getting populated (due to Document Split Principle in ECC, which only updates data in new GL tables).
    Our understanding is that the details of profit center gets populated in FAGLFLEXA table and not in and of the old FI table (BSEG /BSID / BSAD) which makes it very difficult to pull profit center for Account receivables data.
    We are not sure whether taking GL and AR data in an DSO will solve my problem but thatu2019s the last option we have and the receivables (not aging) break-up can be shown only by Customer ( Like in SAP Report S_AC0_52000887 ).
    Please let us know if you have any suggestions / solutions / inputs for this issue or if we have some wrong understanding here.
    Regards,
    Dennis

    Here goes the code. Enhance your Data source 0FI_AR_4 for profit center. (here ZZPRCTR)
    Unhide the field in RSA6. Then write this code in your CMOD user exit for 0FI_AR_4 extractor.
    DATA: L_SYTABIX LIKE SY-TABIX.
    DATA: WA_DTFIAR_3 LIKE DTFIAR_3.
    DATA: IT_DTFIAR_3 LIKE DTFIAR_3 OCCURS 0 WITH HEADER LINE.
    TYPES: BEGIN OF TP_JOIN,
        RBUKRS TYPE DTFIAR_3-BUKRS,
        FISCPER TYPE DTFIAR_3-FISCPER,
        BELNR TYPE DTFIAR_3-BELNR,
        BUZEI TYPE DTFIAR_3-BUZEI,
        UPOSZ TYPE DTFIAR_3-UPOSZ,
        STATUSPS TYPE DTFIAR_3-STATUSPS,
        KUNNR TYPE DTFIAR_3-KUNNR,
        KKBER TYPE DTFIAR_3-KKBER,
        MABER TYPE DTFIAR_3-MABER,
        KOART TYPE DTFIAR_3-KOART,
        UMSKZ TYPE DTFIAR_3-UMSKZ,
        BLART TYPE DTFIAR_3-BLART,
        BSCHL TYPE DTFIAR_3-BSCHL,
        FISCVAR TYPE DTFIAR_3-FISCVAR,
        BLDAT TYPE DTFIAR_3-BLDAT,
        BUDAT TYPE DTFIAR_3-BUDAT,
        CPUDT TYPE DTFIAR_3-CPUDT,
        AUGDT TYPE DTFIAR_3-AUGDT,
        MADAT TYPE DTFIAR_3-MADAT,
        NETDT TYPE DTFIAR_3-NETDT,
        SK1DT TYPE DTFIAR_3-SK1DT,
        SK2DT TYPE DTFIAR_3-SK2DT,
        ZFBDT TYPE DTFIAR_3-ZFBDT,
        ZBD1T TYPE DTFIAR_3-ZBD1T,
        ZBD2T TYPE DTFIAR_3-ZBD2T,
        ZBD3T TYPE DTFIAR_3-ZBD3T,
        ZBD1P TYPE DTFIAR_3-ZBD1P,
        ZBD2P TYPE DTFIAR_3-ZBD2P,
        LAND1 TYPE DTFIAR_3-LAND1,
        ZLSCH TYPE DTFIAR_3-ZLSCH,
        ZTERM TYPE DTFIAR_3-ZTERM,
        ZLSPR TYPE DTFIAR_3-ZLSPR,
        RSTGR TYPE DTFIAR_3-RSTGR,
        MANSP TYPE DTFIAR_3-MANSP,
        MSCHL TYPE DTFIAR_3-MSCHL,
        MANST TYPE DTFIAR_3-MANST,
        LCURR TYPE DTFIAR_3-LCURR,
        DMSOL TYPE DTFIAR_3-DMSOL,
        DMHAB TYPE DTFIAR_3-DMHAB,
        HSL TYPE DTFIAR_3-DMSHB,
        SKNTO TYPE DTFIAR_3-SKNTO,
        RTCUR TYPE DTFIAR_3-WAERS,
        WRSOL TYPE DTFIAR_3-WRSOL,
        WRHAB TYPE DTFIAR_3-WRHAB,
        TSL TYPE DTFIAR_3-WRSHB,
        SKFBT TYPE DTFIAR_3-SKFBT,
        WSKTO TYPE DTFIAR_3-WSKTO,
        KTOPL TYPE DTFIAR_3-KTOPL,
        HKONT TYPE DTFIAR_3-HKONT,
        SAKNR TYPE DTFIAR_3-SAKNR,
        FILKD TYPE DTFIAR_3-FILKD,
        AUGBL TYPE DTFIAR_3-AUGBL,
        XBLNR TYPE DTFIAR_3-XBLNR,
        REBZG TYPE DTFIAR_3-REBZG,
        REBZJ TYPE DTFIAR_3-REBZJ,
        REBZZ TYPE DTFIAR_3-REBZZ,
        VBELN TYPE DTFIAR_3-VBELN,
        XREF1 TYPE DTFIAR_3-XREF1,
        XREF2 TYPE DTFIAR_3-XREF2,
        XREF3 TYPE DTFIAR_3-XREF3,
        SGTXT TYPE DTFIAR_3-SGTXT,
        XNEGP TYPE DTFIAR_3-XNEGP,
        XARCH TYPE DTFIAR_3-XARCH,
        UMSKS TYPE DTFIAR_3-UMSKS,
        UPDMOD TYPE DTFIAR_3-UPDMOD,
        ZUONR TYPE DTFIAR_3-ZUONR,
        AWTYP TYPE DTFIAR_3-AWTYP,
        AWKEY TYPE DTFIAR_3-AWKEY,
        BSTAT TYPE DTFIAR_3-BSTAT,
        DMBTR TYPE DTFIAR_3-DMBTR,
        DMBE2 TYPE DTFIAR_3-DMBE2,
        DMBE3 TYPE DTFIAR_3-DMBE3,
        GJAHR TYPE DTFIAR_3-GJAHR,
        HWAE2 TYPE DTFIAR_3-HWAE2,
        HWAE3 TYPE DTFIAR_3-HWAE3,
        MONAT TYPE DTFIAR_3-MONAT,
        PROJK TYPE DTFIAR_3-PROJK,
        DRCRK TYPE DTFIAR_3-SHKZG,
        WRBTR TYPE DTFIAR_3-WRBTR,
        PRCTR TYPE DTFIAR_3-ZZPRCTR,
        END OF TP_JOIN.
    DATA: IT_JOIN TYPE TP_JOIN OCCURS 0 WITH HEADER LINE.
    FI_AR_4 data source enhancement for Profit ctr.
      WHEN '0FI_AR_4'.
        MOVE C_T_DATA[] TO IT_DTFIAR_3[].
        SELECT
        BELNR
        BUZEI
        BUDAT
        RBUKRS
        HSL
        GJAHR
        TSL
        PRCTR
        RTCUR
        DRCRK
        FROM FAGLFLEXA INTO CORRESPONDING FIELDS OF TABLE IT_JOIN
        FOR ALL ENTRIES IN IT_DTFIAR_3 WHERE BELNR = IT_DTFIAR_3-BELNR
                                        AND  BUZEI = IT_DTFIAR_3-BUZEI
                                        AND  GJAHR = IT_DTFIAR_3-GJAHR
                                        AND  RBUKRS = IT_DTFIAR_3-BUKRS.
       LOOP AT IT_JOIN.
       L_SYTABIX = SY-TABIX.
        READ TABLE IT_DTFIAR_3 WITH KEY BELNR = IT_JOIN-BELNR
                                    BUZEI = IT_JOIN-BUZEI
                                    GJAHR = IT_JOIN-GJAHR
                                    BUKRS = IT_JOIN-RBUKRS.
      IF SY-SUBRC = 0.
        IT_JOIN-AUGBL = IT_DTFIAR_3-AUGBL.
        IT_JOIN-AUGDT = IT_DTFIAR_3-AUGDT.
        IT_JOIN-AWKEY = IT_DTFIAR_3-AWKEY.
        IT_JOIN-AWTYP = IT_DTFIAR_3-AWTYP.
        IT_JOIN-BELNR = IT_DTFIAR_3-BELNR.
        IT_JOIN-BLART = IT_DTFIAR_3-BLART.
        IT_JOIN-BLDAT = IT_DTFIAR_3-BLDAT.
        IT_JOIN-BSCHL = IT_DTFIAR_3-BSCHL.
        IT_JOIN-BSTAT = IT_DTFIAR_3-BSTAT.
        IT_JOIN-BUDAT = IT_DTFIAR_3-BUDAT.
        IT_JOIN-BUZEI = IT_DTFIAR_3-BUZEI.
         IT_JOIN-CPUDT = IT_DTFIAR_3-CPUDT.
         IT_JOIN-DMBE2 = IT_DTFIAR_3-DMBE2.
         IT_JOIN-DMBE3 = IT_DTFIAR_3-DMBE3.
         IT_JOIN-DMBTR = IT_JOIN-HSL.
         IF IT_DTFIAR_3-SHKZG = 'H'.
           IT_JOIN-DMHAB = IT_JOIN-HSL.
         ELSEIF IT_DTFIAR_3-SHKZG = 'S'.
            IT_JOIN-DMSOL = IT_JOIN-HSL.
         ENDIF.
         IT_JOIN-FILKD = IT_DTFIAR_3-FILKD.
         IT_JOIN-FISCPER = IT_DTFIAR_3-FISCPER.
         IT_JOIN-FISCVAR = IT_DTFIAR_3-FISCVAR.
         IT_JOIN-GJAHR = IT_DTFIAR_3-GJAHR.
         IT_JOIN-HKONT = IT_DTFIAR_3-HKONT.
         IT_JOIN-HWAE2 = IT_DTFIAR_3-HWAE2.
         IT_JOIN-HWAE3 = IT_DTFIAR_3-HWAE3.
         IT_JOIN-KKBER = IT_DTFIAR_3-KKBER.
         IT_JOIN-KOART = IT_DTFIAR_3-KOART.
         IT_JOIN-KTOPL = IT_DTFIAR_3-KTOPL.
         IT_JOIN-KUNNR = IT_DTFIAR_3-KUNNR.
         IT_JOIN-LAND1 = IT_DTFIAR_3-LAND1.
         IT_JOIN-LCURR = IT_DTFIAR_3-LCURR.
         IT_JOIN-MABER = IT_DTFIAR_3-MABER.
         IT_JOIN-MADAT = IT_DTFIAR_3-MADAT.
         IT_JOIN-MANSP = IT_DTFIAR_3-MANSP.
         IT_JOIN-MANST = IT_DTFIAR_3-MANST.
         IT_JOIN-MONAT = IT_DTFIAR_3-MONAT.
         IT_JOIN-MSCHL = IT_DTFIAR_3-MSCHL.
         IT_JOIN-NETDT = IT_DTFIAR_3-NETDT.
         IT_JOIN-PROJK = IT_DTFIAR_3-PROJK.
         IT_JOIN-REBZG = IT_DTFIAR_3-REBZG.
         IT_JOIN-REBZJ = IT_DTFIAR_3-REBZJ.
         IT_JOIN-REBZZ = IT_DTFIAR_3-REBZZ.
         IT_JOIN-RSTGR = IT_DTFIAR_3-RSTGR.
         IT_JOIN-SAKNR = IT_DTFIAR_3-SAKNR.
         IT_JOIN-SGTXT = IT_DTFIAR_3-SGTXT.
         IT_JOIN-SK1DT = IT_DTFIAR_3-SK1DT.
         IT_JOIN-SK2DT = IT_DTFIAR_3-SK2DT.
         IT_JOIN-SKFBT = IT_DTFIAR_3-SKFBT.
         IT_JOIN-SKNTO = IT_DTFIAR_3-SKNTO.
         IT_JOIN-STATUSPS = IT_DTFIAR_3-STATUSPS.
         IT_JOIN-UMSKS = IT_DTFIAR_3-UMSKS.
         IT_JOIN-UMSKZ = IT_DTFIAR_3-UMSKZ.
         IT_JOIN-UPDMOD = IT_DTFIAR_3-UPDMOD.
         IT_JOIN-UPOSZ = IT_DTFIAR_3-UPOSZ.
         IT_JOIN-VBELN = IT_DTFIAR_3-VBELN.
         IT_JOIN-WRBTR = IT_JOIN-TSL.
         IF IT_DTFIAR_3-SHKZG = 'H'.
              IT_JOIN-WRHAB = IT_JOIN-TSL.
         ELSEIF  IT_DTFIAR_3-SHKZG = 'S'.
              IT_JOIN-WRSOL = IT_JOIN-TSL.
         ENDIF.
         IT_JOIN-WSKTO = IT_DTFIAR_3-WSKTO.
         IT_JOIN-XARCH = IT_DTFIAR_3-XARCH.
         IT_JOIN-XBLNR = IT_DTFIAR_3-XBLNR.
         IT_JOIN-XNEGP = IT_DTFIAR_3-XNEGP.
         IT_JOIN-XREF1 = IT_DTFIAR_3-XREF1.
         IT_JOIN-XREF2 = IT_DTFIAR_3-XREF2.
         IT_JOIN-XREF3 = IT_DTFIAR_3-XREF3.
         IT_JOIN-ZBD1P = IT_DTFIAR_3-ZBD1P.
         IT_JOIN-ZBD1T = IT_DTFIAR_3-ZBD1T.
         IT_JOIN-ZBD2P = IT_DTFIAR_3-ZBD2P.
         IT_JOIN-ZBD2T = IT_DTFIAR_3-ZBD2T.
         IT_JOIN-ZBD3T = IT_DTFIAR_3-ZBD3T.
         IT_JOIN-ZFBDT = IT_DTFIAR_3-ZFBDT.
         IT_JOIN-ZLSCH = IT_DTFIAR_3-ZLSCH.
         IT_JOIN-ZLSPR = IT_DTFIAR_3-ZLSPR.
         IT_JOIN-ZTERM = IT_DTFIAR_3-ZTERM.
         IT_JOIN-ZUONR = IT_DTFIAR_3-ZUONR.
      ENDIF.
        MODIFY IT_JOIN FROM IT_JOIN index L_SYTABIX.
       ENDLOOP.
      MOVE IT_JOIN[] to C_T_DATA[].

  • 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)

  • 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,

  • Profit center for Open items

    Hi,
    We have a stanndard report for customer evaluation is 'RFDOPR00'.This report is working based on company code level.
    But our client needs a custom report which should work based on Profit center.
    for that I have created a report for customer evaluation taking profit center value from BSID table. But in this table no PRCTR value filled except  0099990000.
    So in this case, how can we get profit center value to make a report.
    Kindly provide me a solution for this...
    Thank you!!!
    Regards,
    Anilkumar.G

    Hi,
    Thanks for your replies...
    Actually the standard report program is using LDB 'DDF' and inside source code we have PRCTR. But not able to find the table name (which are having open items) where PRCTR value will be available..
    Regards,
    Anilkumar.G

  • Default Profit center for balance sheet account

    Dear All
    I've problem when i display accounting document in billing, there is no profit center information in GL account VAT,since document spliting is not activated,so I maintain default profit center for balance sheet account (3KEH),.
    can anybody tell me why this problem raised? where that i have missed the configuration?
    Thanks And Regards
    Adit

    Hi Vijay,
    Good day!
    I would like to seek your advice regarding the default profit center for Balance Sheet Account:
    We have this issue that BS account defualted to a certain profit center: I have done several testings but still cannot find why the BS account defaulted to the profit center
    1. I have checked the FAGLBK3EH and the BS account in which PC defaulted is not maintained in this tcode.
    2. also check the OBBH and the document does not contain any cost object wherein a profit center can be derived. also checked  substitution, either both of this code does not defines the profit center im searching for.
    Can you please advice some directions where to check and why certain profit center defaulted to balance sheet account.
    Your advice is greatly appreciated.
    Janice

  • Enhancement request for VAT Report of Customer and Vendor.

    Hello SAP Gurus,
    Have enhancement request for adding new fields in existing VAT report of Customer and Vendor like user id, GL account etc.
    As I am fresher, can you please help me that how I need to approach. Thanks for your support.
    Regards,
    Saleem

    Hello Saleem,
    Almost all fields required for VAT reporting are available in standard tax report
    S_ALR_87012357 .
    You have to configure the layout from the selection screen as below
    regards
    pb

  • B/S Profit Center for GR/IR clearing act in MIGO is fine but not in MIRO

    Hi Experts,
    Can you please help on the below as am posting this after reviewing the existing postings:
    We are in ECC 6.0 and implementing Classic GL.
    While posting MIGO and MIRO the GR/IR clearing account (B/S account) is getting the Profit enter from expense line item.
    Requirement is to have the B/S profit center from 3KEH.
    As an option we created one Substitution so getting B/S profit center only for MIGO but MIRO is still getting the exp Profit center.
    How to get the B/S profit center for MIRO also?
    Thanks,
    Sudha

    Hello
    ANy suggestion for question & if solved do let me know

  • BAPI_PO_CHANGE me22n add profit center for purchase requisition number

    Hello all,
    I have to add an item line for a specific sales order( p_vbeln ).
    for that i use BAPI_SALESORDER_CHANGE and it works and the item is inserted.
    ( p_posnr = sales order item and ln_etnr = schedule_line = 1 )
    Now I have to maintain the specific po item line and to insert the Profit Center related to the Purchase Requisition Number that was assigned to the above sales order item like using transaction ME22N.
    when i use the transaction all i have to do is to ADD the Purchase requisition number to the PO Order Number and to add the PROFIT CENTER.
    for this i use BAPI_PO_CHANGE.
    i colect the folowing data:
    from table VBFA( vbelv = sales order number vbeln = l_ebeln)
    PO Number = p_ebeln.
    from table VBEP ( vbeln = sales order number, posnr = the previously inserted sales order item )
    Purchase Requisition Number = l_banfn
    Purchase Requisition Item = l_bnfpo
    from table VBAP (vbeln = sales order number, posnr = the previously inserted sales order item )
    Profit Center = l_prctr
    from table EKKN
    select max(  ebelp )
    from ekkn
    into l_ebelp
    where ebeln = l_ebeln.
    add 10 to l_ebelp
    Purchase Order Item = l_ebelp .
    and i move the data:
      i_t_poitem-po_item = l_ebelp.
      i_t_poitem-preq_no = l_banfn.
      i_t_poitem-preq_item = l_bnfpo.
      i_t_poitem-acctasscat = cc_x.
      APPEND i_t_poitem.
      i_t_poitemx-po_item = l_ebelp.
      i_t_poitemx-po_itemx = cc_x.
      i_t_poitemx-preq_no = cc_x.
      i_t_poitemx-preq_item = cc_x.
      i_t_poitemx-acctasscat = cc_x.
      APPEND i_t_poitemx.
      i_t_poaccount-po_item = l_ebelp.
      i_t_poaccount-itm_number = p_posnr.
      i_t_poaccount-SCHED_LINE = ln_etnr.
      i_t_poaccount-profit_ctr = l_prctr.
      APPEND i_t_poaccount.
      i_t_poaccountx-po_item = l_ebelp.
      i_t_poaccountx-profit_ctr = cc_x.
      APPEND i_t_poaccountx.
    then i use the function BAPI_PO_CHANGE:
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder                = p_ebeln
          testrun                          = l_test
       TABLES
         return                            = i_t_return_po
         poitem                          = i_t_poitem
         poitemx                        = i_t_poitemx
         poaccount                    = i_t_poaccount
         poaccountx                   = i_t_poaccountx.
    BUT i get the folowing result ( messages in return table)
    Insert item for PO-order                                                                               
    Message:  Changing of PO using Enjoy BAPI unsuccessful ;                                                
      Message:  Purchase order item 00120 still contains faulty account assignments ;   
      Message:  Enter Profit Center ;                         
    what should i do?
    best regards,
    emilia

    hello,
    i debugged the function.
    first the data from poaccount is copied in lt_account.
    then this happens:
      PERFORM get_current_data
          TABLES    poitem               poschedule               poaccount
                    pocondheader         pocond
                    extensionout
                    poexpimpitem         allversions              popartner
                    potextheader         potextitem               return
          USING
                    l_po                 lf_header_currency
          CHANGING
                    expheader            exppoexpimpheader.
      exppoexpimpheader = poexpimpheader. "foreign trade export workaround
    after this form is executed poaccount-profit_ctr is empty.
    lt_account-profit_ctr in not empty but then it is not anymore.
    in the form this happens:
    item data
      CALL METHOD im_po->get_items
        IMPORTING
          ex_items = lt_items.
      LOOP AT lt_items INTO an_item.
        l_item ?= an_item-model.
        CALL METHOD l_item->get_data
          IMPORTING
            ex_data = ls_mepoitem.
        ls_mepoitem-ebeln = ls_header-ebeln.
        APPEND ls_mepoitem TO lt_item.
    schedules
    accountings*
        CALL METHOD l_item->get_po_accountings
          IMPORTING
            ex_accountings = lt_accountings.
        LOOP AT lt_accountings INTO an_item.
          l_accounting ?= an_item-model.
          CALL METHOD l_accounting->get_data
            IMPORTING
              ex_data = ls_mepoaccounting.
          ls_mepoaccounting-ebeln = ls_header-ebeln.
          APPEND ls_mepoaccounting TO lt_account.
        ENDLOOP.
    item conditions
    foreign trade (item data; EIPO)
      ENDLOOP.
    so it acctualy copies every item from purchase number ebeln in lt_item.
    for each one of them it copies the account data into lt_account.
    so the last loop is for the item that i want to enhance.
    here it copies all the necessary data in lt_account except of course the profit center because that's the one that i need to insert.
    after this loop there is a form:
      PERFORM move_account_out TABLES lt_account
                                                                ext_poaccount
                               USING  header_currency.
    where the ext_poaccount is the poaccount parameter.
    this form:
    clears ext_poaccount.
    copies the data from lt_account into ext_poaccount.
    and returns the ext_poaccount with the empty Profit center field
    and so after performing get_current_data my parameter is deleted.
    then it's almost the end of the function and nothing else related to the poaccount parameter.
    so it's no use for me to insert the field Profit_Center?
    is there another FM that i should use to be able to insert the profit center?
    what should i do?
    Best regards,
    Emilia

  • Assigning profit center for vendor to vendor transfer (F-02)

    Hi,
    We are having two profit centers and would like to generate financial statments each profit center wise for which we must assign profit center for each entry passed.
    Now we want to transfer balance from one vendor to another(which is a normal scenario in our case) with tcode F-02, but it doesn't allow us to select profit center  and at the same time it gives  an error that profit center not selected.
    kindly guide us
    Sanjay

    Hi,
    You have not mentioned teh Verison you are in.
    Assuming you are in ECC 6.0 (As the error posted seems to be more relevant for this version) and document splitting is enabled, you cannot transfer from vendor to vendor or customer as profit centres in recon accounts are not taken by system.
    So you need to take a intermediary GL account for first transferring from one vendor to  GL account where you will be giving the profit center in teh gl line item and save. After that you use same GL account to transfer th amount to other Vendor account.
    The system derives the proft center from GKL line item to teh AR/AP line items. Use F-44 or F-32 as the case may be.
    Check document type in F-02 if you are using this as document type also controls the psoting in new GL.
    Reward if useful.
    Sarma

  • Substitution for profit center for credit line item

    Hi
    There is some common material sold in two segments. (Example head phone is sold from cell phone segment and computer segment). These segments are created as a division also for SD purpose.
    Now for determining the profit center, i am using the validation rule. Logic: if the division in sales order is cell phone, entry should be posted in cell phone division. So my revenue and PGI will be in cell phone segment.
    When head phone was procured, it was procured in computer segment (division). So my inventory credit should be the posted to computer segment (via profit center) and consumption should be posted to cell phone division (for matching with revenue). Hence i want some substitution rule for posting to two different profit center ( or segments, determined by profit center) at the time of PGI. Debit (consumption) should be to the profit center for cell phone and credit (inventory posting) should be to profit for computer.
    Please help.
    Edited by: Meenu_ND on Jun 23, 2011 8:02 PM

    Hi
    In an ideal scenario, profit center is derived from material master. Since, your business is such that profit center is nto known as unique for a material master, try using the following BADI to derive profit center at the time of Goods movement document. You should not maintain profit center in material master in such a case.
    MB_MIGO_ITEM_BADI
    MB_MIGO_BADI
    Regards
    Sanil Bhandari

  • Open profit center for reconciliation account

    Hi experts
    I need to display the field profit center for reconciliation account and I check  Field Status Group  (OBC4 & OB41). The field Profit center is mandatory.The new legder is not activate
    But when I use the FB01 , the profit center is not available 
    So It s possible to display the field Profit center for reconciliation account without the New Ledger ??
    Thanks for your help

    Hi
    If you are referring to Asset Recon account - You can not enter any Pr Ctr manually in it...
    Just ensure
    1. Cost Center is maintained in Asset master
    2. Maintain KOSTL in T code ACSET for Acq Posting and transaction type *
    3. Create APC account as Statistical cost element
    Whether New GL or not, PC in Asset recon a/c depends on these settings.... You cant enter it manually in the APC acount
    Regards
    Ajay M

  • Default Profit Center for Retained Earnings Account

    Hi,
    We wish to default a profit center for our retained earnings account. Currently, the system carries forward P/L balance to Retained Earnings Account Profit Center wise.
    Kindly advise on how we can default a particular PC for retained earnings account. Also in case it is possble, does the system balance the PC wise trial balance by changing balances in Inter PC Balancing account (Zero Balance Clearing)?
    Thanks!

    Dear,
    You can default through 3KEH in classic GL and through FAGL3KEH in New GL
    Br, Vivek

Maybe you are looking for

  • How do I redirect request to an external page flow?

    Hi, I´m really stucked here. I need to redirect and XML wich I get in page flow to an external page flow(in a different project(war) but in the same workshop application(ear)), I´ve tryied all kinds off things but it does not work correctly. I even t

  • Video not downloading from itunes

    I purchased a TV series from itunes and I am having a problem downloading the individual shows from the season.  I went in and deleted all the other videos i have previously purchased on my ipad, and i have restarted the download several times.  Any

  • How to send 100 records from an IDOC to File Scenario without using BPM?

    Hi All, I have a requirement that i need to send 100 records from sap to file by using the scenario IDOC to File. Can you suggest how can i achieve this? Regards, Ramvilas.

  • Nik plugins & selective editing

    Hi! Just got aperture2... I have some nik plugins, viweza and silver fx pro, ozone and so on. my understanding is that they can be intergrated within aperture2 , but HOW? Also, can you do selective editing with "enhance/definition" for example - like

  • Evaluate the performance of EHP4 upgrade

    Hello All, We are upgrading our ERP 6 Systems to EHP4. The process is going on smoothly in our landscape. I want to know the tools/ utilitys/ support available to evaluate and analyse how did the upgrade went off? Was it perfromed as per the SAP' s b