Adding Business Area to S928 Table on ECC

Hi,
I have a requirement where i have to add the field Business Area (GSBER) to the standard ECC table S928 and populate it for every sales document. I know how to add it but dont know how to populate the field, can someone guide me through the process of how to go about this
Thanks
Rashmi.

Hi,
you said that you know how to add the field. Now, After the field GSBER (Data Element GSBER) is added in extractor, goto CMOD and copy the below code. GSBER data, for given VBLNR which is coming from Extractor along with MATNR, will be maintained VBAP table. Hence here is your full code.
*&  Include           ZXRSAU01
CASE i_datasource.
  WHEN <Data Source Name>.
Local Types
    TYPES : BEGIN OF lty_vbap,
             vbeln TYPE vbeln_va,
             matnr TYPE matnr,
             gsber TYPE gsber,
            END OF lty_vbap.
Local Internal Table
    DATA : lit_vbap TYPE TABLE OF lty_vbap,
           lit_dp   TYPE TABLE OF <Extractor Name>.
Local Field symbols
    FIELD-SYMBOLS : <lfs_dp>   TYPE <Extractor Name>,
                    <lfs_vbap> TYPE lty_vbap.
    CHECK c_t_data[] IS NOT INITIAL.
    lit_dp[] = c_t_data[].
    SELECT vbeln
           matnr
           gsber
      INTO TABLE lit_vbap
      FROM vbap
       FOR ALL ENTRIES IN lit_dp
     WHERE vbeln = lit_dp-vbeln AND
           matnr = lit_dp-matnr.
    IF sy-subrc = 0.
      SORT lit_vbap BY vbeln matnr.
      LOOP AT lit_dp ASSIGNING <lfs_dp>
                         WHERE vbeln IS NOT INITIAL.
        READ TABLE lit_vbap ASSIGNING <lfs_vbap>
        WITH KEY vbeln = <lfs_dp>-vbeln
                 matnr = <lfs_dp>-matnr
        BINARY SEARCH.
        IF sy-subrc = 0.
          <lfs_dp>-gsber = <lfs_vbap>-gsber.
        ENDIF.
      ENDLOOP.
    ENDIF.
    REFRESH : c_t_data[].
    c_t_data[] = lit_dp[].
    REFRESH : lit_dp[].
  WHEN OTHERS.
Do Nothing
ENDCASE.
Thanks,
Saru

Similar Messages

  • Report Writer report required by Business Area GSBER  for table GLPCT  ECC6

    Please help,
    I have a requirement for report writer report by Business Area (GSBER) for table GLPCT.
    I am using Libruary PCA which has GSBER already activated
    In report I am able to select GSBER in General Data Selection and generate.
    However when I execute report I get error message GR410 "Characteristic GSBER cannot be combined with key figures" .
    I have looked at SAPnotes 929889 1155524 and 358251, which describes solution to add field to CCSS table (structure CCR1S) however I cannot work out what structure to change for table GLPCT used in my report.
    Steve
    Solution was to use Libruary 8A3
    Edited by: Debra Dunford on Jun 29, 2011 10:34 AM

    Hi ,
    If you are using the cube: 0FIAP_C20, then i guess you are using the standard extractor 0FI_AP_20 . One thing which i remember that there is a standard view in ECC : LFC1_AEDAT.
    This view has two tables : LFC1 and BWFI_AEDA2.
    LFC1 - Vendor master (transaction figures)
    BWFI_AEDA2 - BW FI: Log Table for Changed Transaction Figures
    This standard extractor uses table LFC1 to show vendor balances.
    And the table BWFI_AEDA2 contains the log of the changes that has taken place business area wise and account no of the vendor wise .
    Please check the view definition to confirm the same . Once you will see the joining conditions in this view you will get a clear picture of the above point .
    So for your issue, you can do datasource enhancement of 0FI_AP_20 .
    The logic will be based on LIFNR,BUKRS,GJAHR available from the datasource , fetch the business area from this view and populate it in your datasource .
    But first check in the table BWFI_AEDA2 whether for the field BWFI_AEDA2-TABNAME= lfc1 , business areas are maintained .
    Hope the above reply was helpful.
    Thanks & regards
    Edited by: DEADLOCKS on Apr 23, 2011 10:52 AM

  • Change of business area in direct table entry

    Hello All,
                 We are trying to change the business area in table MSEG by direct table entry through se16n.
                 But i am getting the error "GL account XXXXXXX not fouind in table SKA1."However when i check the table SKA1,entry XXXXXXX exists in table SKA1.The company has decided to change its policy and therefore they want to change the business area..Please tell me the procedure so that i can change the business area.
    Thanks,
    Saurabh Kumbhare

    Hi Pravin,
    First of all, do not change the values directly in tables.
    You want to change Business Area in MSEG but at the time document entry there may be other tables where this entry might have gone. So you need to identify all the tables before you do the change. Hence it is better to consult FI/CO team to find the solution from funtional side.
    However, still if you need to change the value then look for the GL A/C in table SKB1. Since SKB1 is company code dependent data you have to check if the said GL exists or not in company code contained in MSEG.
    Regards,
    Firoz.

  • How do I see the tables in an existing business area and add tables to it

    Hi
    I am having a business area which contains a number of business folders.
    I am creating a new custom folder in it but i dont know if the table exists in the business area or not. How can I see the lisst of tables which are being used by the business area.

    Hi,
    Easiest way is to look at the folder properties using the administrator tool, you can see there the objects the folder is created on.
    Another way is to create a SQL to query your needs.
    You can find here in the forum several SQL regarding the connection between folders and BA.
    In the folders table you will be able to see the source of it.
    Of course that for custom folder you will need to see the SQL to get your requirment.
    Tamir

  • Not posted Treasury transactions- problem with new Business area (NewGL)

    Hi all,
    I have to change the Treasury account assignment objects due to a restructure. Currently, all TR transactions are assigned to one business area only.
    In future, there will be 3 (different) business areas.
    I have added new products, transaction tpyes etc and I have made further customising
    settings. It looks ok and I can enter new transactions, settle and post them.
    Problems I do have with already existing deals (fixed term and Forex transactions).
    In here I get posting errors with message:
    Balancing field "Business Area" in line item 001 not filled
    Message no. GLT2201
    I have added additional account assignment references for the new Business Areas
    and assigned to product types and account assignment
    What happens when I create a deal?
    Is that information (product type/ transaction/ account assignment) alreaedy stored in a table and used, when processing the deal further?
    Can I somehow change that original assignment per deal now?
    I think my problem lies in that the system wants to use the old assignment but also the new and it comes to conflict in field business area.
    Any hints much appreciated and will be reqarded as usual.
    Thanks
    Hein

    Assign Business area in the following step (ECC 6.0)
    SPRO - Financial Supply Chain Management - Treasury and Risk Management -  Transaction Manager - General Settings - Accounting - Link to Other Accounting Components - Allocate Additional Account Assignments to Account Assignment References
    Kalyan

  • Replacement tables in ECC 6.0

    Hi All,
    What are the replacement tables in ECC 6.0 for the following 4.6 c tables.
    ADRCMAT
    ADRCMX
    ADRCWO
    AUCTIONBIDDER
    AUCTIONBIDDERDET
    AUCTIONCATEGORY
    AUCTIONCATEMAP
    AUCTIONITEMS
    AUCTIONITEMSMAP
    AUCTIONITEMSMAPO
    AUCTIONITEMSOLD
    AUCTIONPAYMENT
    BC430PERS
    BDNODE
    BKORA
    BPOBREL_LO
    CCCEXITCHK
    CCCFINI
    CCCHECK
    CCOBJS
    CCRFCTABS
    CCSTAT
    CSDIALOG
    CSDIALOGS
    CSDIALOGT
    CSDLGITM
    CSDLGITMCP
    CSDLGITMT
    CSDLGSCR
    CSDLGSCRCP
    CSDLGSCRT
    CSMBK_QUA
    CSOBJECT
    CSOBJECTCP
    CSOBJECTT
    CTRLCOMP
    Regards,
    Sudheer.

    Hi
    FAGLFLEXT and FAGLFLEXA are the two important tables updated for New GL functionality in ECC 6.0.
    Hope this might be of some help to you.
    Good Luck
    Hari

  • Business area cannot be selected at discoverer plus??

    hai,I have create one EUL and i have created one business area with one table from database at Discoverer adminstrater.
    Problem is i cant get selected this business area at discoverer plus even i get connected with same database user..
    Plz can any one help me out of this..do i have to set any configruation on this..or any permission setup for this..
    ITs urgent now..
    ck

    Log into Discoverer Plus, cancel through the Create Workbook page and then choose Tools/Options, EUL tab and ensure that you are connecting to the correct EUL.
    Also, in Disco Admin, ensure you have granted the Disco Plus logon account access to the Business area.

  • Business Area field are mismatch.

    Dear Gurus,
    We are getting wrong business area in certain documents and blanks business area in certain document. This is resulting mismatch of business area wise Trial Balance. Maximum problem are created from cross company transactions.
    Document reversal is not possible. So, we are trying to correct it by editing Business Area field in Tables.
    Please let me khow which all Tables are updated when the Business Area fields has an entry.
    With regards,
    Uttam Maity

    Hello,
    it will not be shown in KE53, it will be shown in KS02
    Regards,
    Ravi
    Edited by: Ravi Sankar Venna on May 6, 2009 4:02 PM

  • Business Area protected in KO02 ( change Order ) : How to enable it ? :-)

    Hi all,
    I've a question.
    For some reasons, some Internal orders have been created without business area.
    How can I correct them ? ( because the field is protected in KO02 )
    Bonus question : How to make this field mandatory at the Internal Order creation ?
    Thank you
    Erwan

    Hi,
    Identify W/O Business Area IO through Table : COAS
    Update BA through LSMW / BDC,
    Slecect Field status as a Required in Order Type T.Code: kot2_opa
    Regards,
    Viswa

  • Proper use of one table in different business areas

    Hi
    We will be using certain DB tables in several business areas and we are more than one person to define them.
    If a table is loaded from the database for each of the business areas it will be numbered 'table 1, 2...' which does't seem very desirable. Also I'd rather define hiearchies only once and for all.
    If a table is loaded only once and used for all the business areas all the joins which are necessary in the different business areas are shown. This will be confusing. If one of us considers a certain join unnecessary he might accidentially delete the wrong one belonging to a different business area.
    Exporting the business areas including the joins regularly is probably not a great help if afterwards new joins for other business areas were added.(?)
    Am I misunderstanding the concept of Discoverer?
    How do you handle such a situation?
    Advice appreciated
    Franziska

    Hi Michael, et al,
    I'm just planning my EUL and your comments in the last post seem relevant.
    My general plan is as follows:
    (1) Create a BaseMaster BA which is used to bring and tables/views from the database into disco. The folders in here will be created with "New Folder from database" and be fairly straightforward, with only very simple calculations and no aggregations in calculations. The joins will echo the joins in the underlying database. This is not shared with Users.
    (2) Create a CustomMaster BA which contains Custom Folders which consist of various SQL views of the database. The SQL in these may use have some more complex calculations and these calculations may include aggregation. This will not be shared with users.
    (3) Create a CentralMaster BA which contains Complex Folders which are assembled from items from the BaseMaster BA and the CustomMaster BA. These folders may include more complex calculations and the calculations may include aggregated items.
    (4) Create a number of User BA's. Using Manage Folders, share the relevant Folders from the Central Master.
    I've got a few questions relating to this.
    (a) Custom Folders based on Folders
    It would seem nice to me if it were possible to create Custom Folders which were based on other Folders, rather than Database Views. Then, even if you need a view and a complex transformation of that view in your business area, you still only have one place where the EUL brings that view into disco. My understanding is that this is not possible. Am I right? I suppose there could be an argument that complex transformations should be pushed back to the DBA but it seems reasonable to me that sometimes this sort of thing could be within the remit of the disco admin?
    (b) SQL Efficiency
    Am I right in thinking that generally a complex folder is usually not much less efficient than using a base folder because the SQL interpreter ends up optimising the SQL?
    And a last question which has turned out rather complex - by all means ignore it if you like - it's me getting to grips with the process.
    (c) Nested Complex Folders
    I presume that if a transformation is needed which would in a normal database environment would need a mainquery and a subquery, then this could be done in a
    number of ways (adhering to the above methodology) by:
    (i) Get the DBA to write a view which does both mainquery and subquery and then bring into the BaseMaster and then straight into the CentralMaster folder.
    (ii) Get the DBA to write the subquery, bring this into the BaseMaster and then implement the mainquery in the CentralMaster.
    (iii) Create a Folder in CustomMaster which implements both mainquery and subquery and then bring this into the CentralMaster folder.
    (iv) Create a Folder in the CustomMaster which implements just the subquery and then implement the main query in the Central Master.
    If you've got this far - thankyou for baring with me.
    Perhaps there's something written about this sort of thing or maybe it's just a matter of practice!
    Any thoughts on all this would be much appreciated.
    Kind regards
    Suhada

  • Capture DB Table and column comments when creating new Business Area/Folder

    Does anyone know if it is possible to pull the DB table and column comments into Discoverer when creating new Business Area/Folders? Our developers take the time to put the information in the Db data dictionary and we would like to leverage it (reduce need for manually adding descriptions) ... has anyone done this?
    If there isn't a way to automatically do it, would there be any harm in using a sql script to populate the description fields from the DB data dictionary directly into the EUL tables appropriate?
    I have been searching through documentation and forums for information - with no luck at this point.
    Thanks!

    Hi Seymour
    You can add column comments to views as well, as this example will show:
    CREATE OR REPLACE FORCE VIEW MY_SEQUENCE
    (SEQ_ID, SEQ_NAME, SEQ_NEXTVAL)
    AS
    SELECT "SEQ_ID","SEQ_NAME","SEQ_NEXTVAL" FROM EUL5_SEQUENCES;
    COMMENT ON COLUMN MY_SEQUENCE.SEQ_NAME IS 'The sequence';
    So you could add the comments at the view level and then refresh Discoverer.
    Best wishes
    Michael

  • How to hide columns that are getting added dynamically to UI Element 'Table

    In SRM 7.0 while displaying a RFx, click on "responses and awards" button.
    In the response comparision tab once the user selects response number and clicks on "compare all responses".
    Item details table is displayed with fields item number,internal number,item description,........,Price etc.
    Requirement is  to hide the price column from the table.
    The UI element type is 'Table'.
    But the catch is there is no column price visible at layout design level.
    This field is getting added dynamically at run time.
    When i right click and see the 'more field help' at the front end i get the field id as 'GRP_1_COL_3_TXTV'.
    lo_table ?= view->get_element( id = 'ITEMS_TABLE' ).
    lo_column = lo_table->get_column( id = 'GRP_1_COL_3_TXTV').
    ASSERT lo_column IS NOT INITIAL.
    lo_column->set_visible( EXPORTING value = '01' ).
    I had written the above code in the pre-exit of WDDOMODIFYVIEW.
    But i am getting dump as assertion failed.it says no column by name 'GRP_1_COL_3_TXTV'.
    Please help me inhow to hide fields or buttons getting generated dynmically.
    Regards,
    Venkat Raghavan.

    Hi Anitha,
    What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
    Any how i am giving solution in this way.
    If both inputs are given proper table output is displayed
    Write your below logic in the WDDOMODIFYVIEW )
    Here i am assuming that you already have a table element in the view.
    Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
    but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
    You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
    data:lr_table type ref to cl_wd_table,
           lr_column type ref to L_WD_TABLE_COLUMN.
    lr_table ?= view->get_element( 'TABLE1' ).
    CALL METHOD LR_TABLE->REMOVE_COLUMN
        EXPORTING
          ID          = 'TABLE1_color'
         INDEX      =
        RECEIVING
          THE_COLUMN = lr_column.
    i want to hide some empty rows also at runtime based on inputs.
    Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
    delete itab from wa where key1= "12" and key2="abd".
    Now bind the internal table to context node.
    LO_ND_hcm->BIND_TABLE(
          NEW_ITEMS            = it_final
          SET_INITIAL_ELEMENTS = ABAP_TRUE ).

  • Two fact tables in one business area

    Hi,
    Would there be problem if two fact tables, one flat, one with hierarchy, in one business area. Both fact tables are joined to same set of dimension tables except one: region_1 to fact_1, region_2 to fact_2. The consistency check is fine. But I get error in Answers. I don't have the exact error with me, but it is complains about fact_1 is not linked region_2.
    Any suggestions ?
    Thanks.

    Thank you, Stijn, Ced for your kind reply.
    I did not explain it clearly.
    The fact_1 (flat) table has data in all levels (detailed and aggregated). For example, it has % sales to planned from city, state to national (we were not provided with numberator and demoninator to aggregate the detailed data). The fact_2 table has only city level data and have a dimension region_2 with city, state and national hierarchy. For data in Fact_1 table, we simply want to show them in reports. For data in Fact_2 table, reports can drill-down.
    In Answers, the error is "Incorrectly defined logical table source ( for fact table Fact_1) does not contain mapping for region_2.state_id".

  • Table name having relationship between Business area and Profit Center

    Hi guys,
    Can you tell me the table name showing the relationship between Business area and Profit Center in fb60  transaction.
    thnx
    hema

    HI.
    BSEE u2013GSBER  Business area.
    BSID-PRCTR Profit center
    Regards.
    jay

  • Folders/tables in a new business area

    I4m creating a new business area, so in the second step of the
    wizard I select a user from which I want to take the folders,
    then in the third step I click on the user to see the tables I
    could put in the business area but nothing happens, only that
    after some seconds the sign (+) near to the name of the schema
    dissapears and no tables appear.
    This is a problem with this user, I have done it before with
    other users and i didn4t have any problem.
    How should I solve this problem.
    Thanks in advance.

    This sounds like a simplistic question but are you sure you have
    access to the tables in the schema? Can you describe the tables
    in SQL*Plus?

Maybe you are looking for