Profit Center Not Displaying in FBL5N

FI Experts,
We are implementing SD, we enter a profit center in the sales order, which it carried all the thru to the billing document. However when I go into FBL5N to run list of open items and bring the Profit Center fields they are all blank. If I double click on the document and click on document overview i can see profit center. Anyone knows as to why Profit Center does not get populated in FBL5N?
Thank You, for your help,

I beleive you would be on ECC  and have activated new GL with document splitting. The profit center would be displayed for the revenue line items in entry view when you display the document and not for customer account. If you go to general ledger view you will should see the profit center there even in the Receivables GL account. This is standard behviour for ECC 6 or ECC 5.0 the profit center value is not there in BSEG table for customer line item
One option is to go to FAGLL03 report and select it for General ledger view (mostly defaulted) and then run it for the reconciliation account for customers. In the display layout you can change to include customer field also and get the relevant details with profit center.
Thanks and regards
Kedar

Similar Messages

  • Error - Balancing Line Item Profit Center not filled in Line Item 007

    Hi
    I am trying to do a transfer posting from one vendor account to another. However, system is giving an error - Balancing Line Item Profit Center not filled in line Item 001. Pls suggest.
    Regards
    Vaibhav

    hi  vaibhav
    you go through this Tcode  FAGL3KEH  and maintain default profit centre. in the  error message system shown GL accounts
    hope you userstand
    thanks
    dharmendar

  • Lockbox- GLT2 201 "Balancing feild Profit center not filled"

    Hello,
    I am trying to configure lockbox with document splitting active. When Upload my file its posting to the Lockbox clrg account but errors out when I try to post to the GL account. GLT2 201 "Balancing feild Profit center not filled". Please let me know if I am missing something.
    Regards
    Siva

    Step 1. SPRO-FS-GL Accounting- Business transactions-Doc Splitting-Edit Constants for Non Assigned processes - New Entries - Assignment of Profit Centers - Give your default/dummy profit center.
    Step 2. SPRO-FS-GL Accounting- Business transactions-Doc Splitting- Extended Doc Splitting - Assign Document Split - Check the Std Acct Assignement - Record your Constant in the field.
    Should resolve your issue.

  • Balancing field "Profit Center" not filled while doing F110

    While posting document  there is no error where as while clearing the document through F110  the error is shown as
    "Balancing field Profit Center not filled " while doing F110.

    Hi,
    There could be various reasons why this error would come.
    1. Check the settings for the new GL.
    2. In particular,Check the configuration for classify GL accounts for document splitting and classify document type for document splitting.Also check config for zero balance clearing account.
    3. Analyse the error on which line item the PC is not being filled.
    Thanks
    Aravind

  • Asset aquizition profit center not coming

    Dear all
       while asset booking profit center not coming (f-90)
    regards
    Purushottam

    Hi Purushottam,
    It is very simple. Just check your Field status setting for Asset acquisition GL, there cost center is suppressed. That is why it is not flowing.
    In asset master Cost center is maintained and Asset acquisition GL being a balance sheet Gl we do not enter cost center at the time of entry, and if the cost center field is suppressed, the profit center mainatined in Cost center master data will not flow.
    Just Check your setting in G067 recon account that is usually assigned to Asset GL's
    Regrads,
    SAPFICO

  • Profit center not updating with plant change

    We have an issue with the profit center not updating with change in delivering plant.
    A CSR entered a material on a sales order but the material is not extended to their location.  They select a plant to deliver the material from.  At this point the profit center fills in for that plant, from the material master. 
    The issue then is the material is not currently available at that plant so when the availability check is preformed the CSR checks for availability in another plant.  They are able to find an available item at another location so they select that location. 
    When they save the sales order the plant reflects the new delivering plant, but the profit center still reflects the first selected plant.  The profit center does not pull from the material master correctly.
    Has anyone seen this issue before and developed a solution?

    Hello Matthew
    May be you have substitution defined in CO.
    T codes 0KEM or 0KEL
    See the following OSS notes:
    167912 - Substitution call-up points for sales order/billing document
    Hope this helps.

  • Excise invoice India not displaying in FBL5N

    Hi experts,
    when  checked in VF03 , Excise invoice india generated accounting document with document type SA- g/l account document .
    Hence this accounting document related to onlyl G/l accounts ( all line items with g/l accounts )  , it is not appearing in FBL5N . 
    Can anyone give me the reason why accounting document is generating document type SA - g/l account  document.
    kindly give me any suggestions.
    thanks & regards,
    Raghul

    hi santhosh,
    Thanks for your prompt reply.
    Actually Excise invoice india is created and entire process is completed.
    After creating invoice , when checked invoice through VF03 tcode in display mode .
    After clicking accounting overview button on top left , accounting document and profit center document pop window came.
    when checked this  accounting document in FB03 ,  this document is OF DOC TYPE SA- G/L ACCOUNTING DOCUMENT ( all g/l account line items , no customer line item ).
    Because of this in FBL5N , it is not appearing.
    thansk & regards,
    Raghul

  • Profit center document created but profit center not updated in FI document

    Hi Experts,
    I have a strange issue; we created FI document via billing document (SD) where in profit center document got created but profit center is not updated in FI document.
    We have separate table to identify the profit center by customer.
    Please let know what could be the cause or reason for this kind of scenario
    Thanks,
    VK

    Hi Krishna,
    Though ur question seems very old, but now i got the same requirement as like you.
    So if you remeber what needs to be done for this issue thats very good help to me.
    My Requirement is : I have created Service Entry Sheet by referring PO and while releasing this Service Entry Sheet system is generating MIGO Doc and FI documents in background.
    And I have updated PERNR (Persnoal No.) in MSEG-SGTXT by using enhancment but it's not populating in BSEG-SGTXT.
    And I found an internal table while debugging i.e ; like ACCIT (not exactly ,similar to this ) where i have updated pernr and sgtxt but same thing will not available in FI Doc display (BSEG-PERNR or BSEG-SGTXG)
    So could you plz suggest what needs to be done to achieve this. Im assuming that, is it possible through BTE (Business Transaction Events) ?.  if yes, plz tell me how to proceed.
    Thanks
    Madhan

  • Profit Center Field (Display Mode) During Asset Postings

    We are using document splitting functionality with profit center mandatory for any kind of posting.
    Scenario-Asset purchase through PO:
    1.Purchase Order -created
    2.At goods receipt error is coming balancing filed is not filled (bcoz asset is not a material), for materials we are giving profit center. in the asset master i assigned cost center, still profit center is not deriving.
    Scenario-Asset Purchase from vendor
    purchasing asset directly from vendor through F-90, against asset line item we have to assign profit center. Cost center & profit center is coming in display mode. in the asset master i already maintained cost center, still profit is not deriving.
    I already done config for field status [asset account number (G067) andPosting Keys (70,75)]. I also checked note no.684659.
    how profit center will be derived for any kind of asset postings.
    Thanks
    Sai

    Hi
    Guess - Check settings in ACSET
    Thank You,

  • Profit Center not updated in J1IEX & New GL  is activated.

    Hi All,
    Good Morning to Every body
    We have activated  New GL concept making Profit Center mandatory. Thereafter, we have made a Import Purchase Order. The material for which import is being made is given the cost center in the master data. Then MIGO has been done. Accounting entry is picking up the Profit center filed automatically. Then MIRO is done and accounting entry is picking up the Profit Center filed automatically. When we do J1IEX " Post Excise Invoice" then system is not picking up the Profit Center Field automatically and is displaying an error while saving. System is saying" No profit center is updated for line item 001".
    That means, system is not picking up the profit center from the material after MIGO into J1IEX while posting excise invocie.
    Please some one help me as to how we should capture the Profit Center field automatcially or mannually so that Excise Invoice can be posted.
    Thanks in advance. Useful answers will be awarded with points.
    Thanks & Regards
    Rishikesh

    Hello Rishikesh,
    Please use the "Capture and post" option in migo for exicse invoice if you are using New G/L with profit centre.
    Regards

  • Profit Center not getting uploaded through BAPI for MM01. Pls help

    Hello all,
                  I am getting an errror while uploading a file through BAPI for MM01 , The error says
    Error:
    Profit center 1000/sslcommon does not exist
    for material: AC2
    *& Report  ZBAPI_DUMMY
    REPORT  ZBAPI_MM01.
    *& Report  ZBAPI2
    TABLES
    FLAGS *
    DATA: F_STOP. " Flag used to stop processing
    DATA DECLARATIONS *
    DATA : V_EMPTY TYPE I, " No. of empty records
    V_TOTAL TYPE I. " Total no. of records.
    STRUCTURES & INTERNAL TABLES
    *--- BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD,  " Header Segment with Control
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2, " Return Parameter
    BAPI_MARDL LIKE BAPI_MARD,
    BAPI_MARDX LIKE BAPI_MARDX.
    *--- Internal table to hold excel file data
    DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold Matetrial descriptions
    DATA: BEGIN OF IT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- Internal to hold the records in the text file
    DATA : BEGIN OF IT_DATA OCCURS 100,
    WERKS(4), " Plant
    MTART(4), " Material type
    MATNR(18), " Material number
    MATKL(9) , " Material group
    MBRSH(1), " Industry sector
    MEINS(3), " Base unit of measure
    SPART(2), " Division
    EKGRP(3), " Purchasing group
    PRCTR(10), " Profit Center
    VPRSV(1), " Price control indicator
    BKLAS(4), "Valuation Class
    *stprs(12), " Standard price
    PEINH(3), " Price unit
    SPRAS(2), " Language key
    MAKTX(40), " Material description
    LGORT(4) , " storage location
    DISMM(2) , "MRP TYPE
    VERPR(23), " Moving Average Price
    MTVFP(2) , " Availability Check
    DISLS(2) , "Lot Size
    DISPO(3) , "MRP Controller
    BESKZ(1) , "Procurment Type
    FHORI(3) , "SCHEDMARGIN KEY
    PERKZ(1) , "Period Indicator
    END OF IT_DATA.
    SELECTION SCREEN. *
    SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
    PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY  " Input File
    PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
    PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
    P_BEGROW TYPE I DEFAULT 2 NO-DISPLAY,
    P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
    P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK SCR1.
    AT SELECTION-SCREEN *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    *--- Validating file
      PERFORM VALIDATE_FILE USING P_FILE.
    START-OF-SELECTION
    START-OF-SELECTION.
    *--- Perform to convert the Excel data into an internal table
      PERFORM CONVERT_XLS_ITAB.
      IF NOT IT_DATA[] IS INITIAL.
    *--- Perform to delete Header lines
        PERFORM DELETE_HEADER_EMPTY_RECS.
      ENDIF.
    END OF SELECTION. *
    END-OF-SELECTION.
    *--- Perform to upload Material Master data
      PERFORM UPLOAD_MATMAS.
    Form : validate_input_file
    Description : To provide F4 help for file if read from PC
    FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = F_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
      ENDIF.
    ENDFORM. " validate_input_file
    *& Form CONVER_XLS_ITAB
    text
    FORM CONVERT_XLS_ITAB.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = P_FILE
          I_BEGIN_COL = P_BEGCOL
          I_BEGIN_ROW = P_BEGROW
          I_END_COL   = P_ENDCOL
          I_END_ROW   = P_ENDROW
        TABLES
          INTERN      = IT_INTERN.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--- Perform to move the data into an internal data
      PERFORM MOVE_DATA.
    ENDFORM. " CONVERT_XLS_ITAB
    *& Form MOVE_DATA
    text
    FORM MOVE_DATA.
      DATA : LV_INDEX TYPE I.
      FIELD-SYMBOLS <FS>  .
    *--- Sorting the internal table
      SORT IT_INTERN BY ROW COL.
      CLEAR IT_INTERN.
      LOOP AT IT_INTERN.
        MOVE IT_INTERN-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
        ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS> .
    *--- Asigning the field value to a field symbol
        MOVE IT_INTERN-VALUE TO <FS> .
        AT END OF ROW.
          APPEND IT_DATA.
          CLEAR IT_DATA.
        ENDAT.
      ENDLOOP.
    ENDFORM. " MOVE_DATA
    *& Form DELETE_HEADER_EMPTY_RECS
    To delete the Header and empty records
    FORM DELETE_HEADER_EMPTY_RECS.
      DATA: LV_TABIX LIKE SY-TABIX.
      IF NOT P_HEADER IS INITIAL.
        LOOP AT IT_DATA.
          IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
            DELETE IT_DATA FROM 1 TO P_HEADER.
    P_HEADER = 0.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
      CLEAR IT_DATA.
    *--- To delete the empty lines from internal table
      LOOP AT IT_DATA.
        LV_TABIX = SY-TABIX.
        IF IT_DATA IS INITIAL.
          V_EMPTY = V_EMPTY + 1.
          DELETE IT_DATA INDEX LV_TABIX..
        ENDIF.
      ENDLOOP.
      CLEAR IT_DATA.
    *--- Total no of recs in file
      DESCRIBE TABLE IT_DATA LINES V_TOTAL.
      IF V_TOTAL = 0.
        MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
        F_STOP = 'X'.
        STOP.
      ENDIF.
    ENDFORM. " DELETE_HEADER_EMPTY_RECS
    *& Form UPLOAD_MATMAS
    to upload Material Master data
    FORM UPLOAD_MATMAS .
      LOOP AT IT_DATA.
    Header
        BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
        BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
        BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
        BAPI_HEAD-BASIC_VIEW = 'X'.
        BAPI_HEAD-PURCHASE_VIEW = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW = 'X'.
        BAPI_HEAD-storage_view ='X'.
        bapi_head-mrp_view = 'X'.
        bapi_head-COST_view ='X'.
    Material Description
        REFRESH IT_MAKT.
        IT_MAKT-LANGU = IT_DATA-SPRAS.
        IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
        APPEND IT_MAKT.
    Client Data - Basic
        BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
        BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
       bapi_mara1-unit_of_wt = it_data-gewei.
        BAPI_MARA1-DIVISION = IT_DATA-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION = 'X'.
    Plant - Purchasing
        BAPI_MARC1-PLANT = IT_DATA-WERKS.
        BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
        BAPI_MARC1-PROFIT_CTR = IT_DATA-PRCTR.
        BAPI_MARC1-MRP_TYPE = IT_DATA-DISMM.
        BAPI_MARC1-AVAILCHECK = IT_DATA-MTVFP.
        BAPI_MARC1-LOTSIZEKEY = IT_DATA-DISLS.
        BAPI_MARC1-MRP_CTRLER = IT_DATA-DISPO.
        BAPI_MARC1-PROC_TYPE = IT_DATA-BESKZ.
        BAPI_MARC1-SM_KEY = IT_DATA-FHORI.
        BAPI_MARC1-PERIOD_IND = IT_DATA-PERKZ.
        BAPI_MARCX-PLANT = IT_DATA-WERKS.
        BAPI_MARCX-PUR_GROUP = 'X'.
        BAPI_MARCX-AVAILCHECK = 'X'.
        BAPI_MARCX-PROFIT_CTR = 'X'.
        BAPI_MARCX-MRP_TYPE = 'X'.
        BAPI_MARCX-MRP_CTRLER = 'X'.
        BAPI_MARCX-SM_KEY = 'X'.
        BAPI_MARCX-LOTSIZEKEY = 'X'.
       Storage Location.
        BAPI_MARDL-PLANT     = IT_DATA-WERKS.
        BAPI_MARDL-STGE_LOC = IT_DATA-LGORT.
        BAPI_MARDX-PLANT    = IT_DATA-WERKS.
        BAPI_MARDX-STGE_LOC = IT_DATA-LGORT.
    Accounting
        BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
        BAPI_MBEW1-VAL_CLASS = IT_DATA-BKLAS.
        BAPI_MBEW1-MOVING_PR = IT_DATA-VERPR.
       bapi_mbew1-std_price = it_data-stprs.
        BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
        BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
        BAPI_MBEWX-MOVING_PR = 'X'.
    *--- BAPI to create material
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
        HEADDATA = BAPI_HEAD
        CLIENTDATA = BAPI_MARA1
        CLIENTDATAX = BAPI_MARAX
        PLANTDATA = BAPI_MARC1
        PLANTDATAX = BAPI_MARCX
    FORECASTPARAMETERS =
    FORECASTPARAMETERSX =
    PLANNINGDATA =
    PLANNINGDATAX =
    STORAGELOCATIONDATA = BAPI_MARDL
    STORAGELOCATIONDATAX = BAPI_MARDX
    VALUATIONDATA = BAPI_MBEW1
    VALUATIONDATAX = BAPI_MBEWX
    WAREHOUSENUMBERDATA =
    WAREHOUSENUMBERDATAX =
    SALESDATA = BAPI_MVKE1
    SALESDATAX = BAPI_MVKEX
    STORAGETYPEDATA =
    STORAGETYPEDATAX =
        IMPORTING
        RETURN = BAPI_RETURN
        TABLES
        MATERIALDESCRIPTION = IT_MAKT
    UNITSOFMEASURE =
    UNITSOFMEASUREX =
    INTERNATIONALARTNOS =
    MATERIALLONGTEXT =
    TAXCLASSIFICATIONS =
    RETURNMESSAGES =
    PRTDATA =
    PRTDATAX =
    EXTENSIONIN =
    EXTENSIONINX =
        IF BAPI_RETURN-TYPE = 'E'.
          WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,
    IT_DATA-MATNR.
        ELSEIF BAPI_RETURN-TYPE = 'S'.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT          =
         IMPORTING
           RETURN        = BAPI_RETURN
          WRITE: 'Successfully created material' ,IT_DATA-MATNR.
        ENDIF.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT          =
        IMPORTING
          RETURN        = BAPI_RETURN
      ENDLOOP.
    ENDFORM. " UPLOAD_MATMAS

    the Profit center 1000/sslcommon  not created. first create the profit center and then upload your data.check tcode KE52 for created profit centers...

  • FBL1N: Profit center not dispalying

    Hi Experts,
    we are using ECC 6.0 and document splitting is activated.
    In FBL1N , profit center field is displaying blank in the output. In BSIK table also profit center field is showing blank.
    Is there any configuration settings to be done to display the profit center .
    My client is asking profit center wise vendor balances. I also checked sal0_52000888 , but this will not be helpful .
    Thanks & Regards,
    Raghul

    Hi Robert,
    Thanks for your reply, i know S_AC0_52000888 - payables : profit center report can be used to display vendor balance with profit center.
    But When i execute S_AC0_52000888 this report by giving vendor code , comapny code , selecting open items ( giving posting date ) and output type ( object list ( more than one lead column ) ) , output is displaying.
    In output G/l account , profit center , document number , vendor , year , amount  ...etc are dispalying . I checked in layout , there is no reference field ( xblnr) appearing to select and display.
    I want to add  reference field ( XBLNR ) in the layout of this report , is there any chance to add this field.
    kindly give me suggestions..
    thanks & regards,
    Raghul

  • Profit Center & Order no in FBL5N

    Dear All,
    I want to update the Profit cneter & Order no/Name in FBL5N report .
    Kindly suggest
    Regards

    Hello,
    Did you fill profit center or order no when you were posting data? Do you see this data on FB03 but not in FBL5N?
    If you want to assign profit center or order no to your FI document line items after posted document, it is impossible because of CO consistency. But you have entered profit center or order no while posting FI document and you can not see in FBL5N, please refer OSS Note "984305 - Line item: Definition of special fields (T021S)".
    I hope it helps to you.
    Regards,
    Burak

  • Profit Center message display in MV45AFZZ

    In include MV45AFZZ  USEREXIT_SAVE_DOCUMENT_PREPARE I have added code to display information message if profit centre is initial/blank for any line item.
    Suppose there are 3 line items for a sales order with line item 20 & 30 having profit centers as initial/blank. I get my information message displayed as Profit centre not maintained for line items: 20, 30. Then I press enter and it allows me to add profit centers for the missing line items.
    I assign profit centre for line item 20 only and for line item 30 I want it to be blank. Then I save it.
    Here comes my issue :
    Again information message displays as u201C Profit centre not maintained for line item 30u201D. Unless I enter profit center value in line item 30 the message displays. If I enter some value and save it then document is saved.
    I need the message to be displayed only once and user can enter missing profit centre for any line item & save it. Now its mandatory to enter profit center for all line items.
    IF FLAG IS INITIAL.
    LOOP AT xvbap.
      IF xvbap-prctr IS INITIAL.
         lv_posnr = xvbap-posnr.
         CONDENSE lv_posnr.
         CALL FUNCTION 'BKK_DELETE_LEADING_ZERO'
            CHANGING
              c_field       = lv_posnr.
          IF lv_text IS NOT INITIAL.
            CONCATENATE  lv_text lv_posnr into lv_text SEPARATED BY ','.
          ELSE.
            lv_text = lv_posnr.
          ENDIF.
      ENDIF.
      CLEAR lv_posnr .
    ENDLOOP.
    IF lv_text IS NOT INITIAL.
          fcode = 'ENT1'.
          CONCATENATE zmsg_txt lv_text INTO zmsg.
          message i000(ZZ) WITH zmsg.
             FLAG = 1.
             fcode = 'ENT1'.
             LEAVE TO SCREEN 4001.
       ENDIF.
    ENDIF.
    ~Arya
    Edited by: arya soumya on Feb 1, 2012 10:36 AM

    Hi Soumya,
    Giving a thought about the scenario you have explained, you need Message if profit centre is initial/blank for any line item.
    I would suggest you another approach i do not know how far will it suffice your requirement,
    Taking your example Suppose there are 3 line items for a sales order with line item 10, 20 & 30 having profit centers as initial/blank.
    You want to assign profit centre for line item 20 only but not for line item 30 since you want it to be blank.
    When you code anything with respect to the Profit Center of the Line Item, it will check for
    if PC is not initial immaterial whether you want it to be blank or not and in all cases it will give you the message
    Instead, create a program which will capture the Line Item number.
    1) Give the Line Item numbers to the new Z program, and inside the program export the values to a memory id.
    2) Import the same value in MV45AFZZ and then in XVBAP you already have the POSNR for which you want to SAVE inspite it is BLANK
    3) if xvbap-posnr = g_import_posnr
        then dont give the error message.
        else.
        give the error message.
        endif
    Revert for further clarification or is there any mistake in my understanding.
    Thanks
    Sri
    endif.

  • Profit Center Not coming in Vendor Line Item in MIRO

    Hi Experts,
    We are facing one problem when we are posting miro in one plant profit center is coming in vendor line item in miro. But when we are posting miro with the same material code but with different plant same company code. But in miro vendor line item profit center is not coming.
    What mistakes we have done in spro.
    Kindly help me out.
    Regards
    GR

    Hi
    Normally vendor line item will not carry profit center, hence I think this is populated through some enhancements.
    Hence you may need to analyze with the help of an Abaper.
    Regards

Maybe you are looking for