Home > Default > Adding Business Area to S928 Table on ECC

Adding Business Area to S928 Table on ECC

November 30Hits:0
Advertisement
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.

Answers

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

Read other 3 answers

Tags:

Related Articles

  • Adding Business Area to S928 Table on ECCNovember 30

    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 proce

  • How to update a Z-table in ECC for the data coming from CRMOctober 11

    Hi Experts, I need to store the industry code and description from customer master from CRM into a Z-table in ECC.I have checked the BDOC segments is already there in CRM.This Z-table has to be updated each time when the user save the customer master

  • Code To Update the Table in ECC from WebdynproOctober 11

    Hi All, I want to know, the table is dispalyed in the webdynpro browser when we calls the Adaptive RFC Model. after i want to add one more row in the webdynpro and just clicking on add button the row will be updated in the ECC server(backend) for tha

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

    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

  • I want to make a business place in the table whose name is J_1BBRANNovember 30

    Hi Expert~ I want to make a business place in the table The table's name is J_1BBRAN. where should i make that above? what['s transaction code? please help~ Edited by: jake on Jan 7, 2009 1:20 AM Edited by: jake on Jan 7, 2009 1:21 AM Edited by: jake

  • How to update the Z table in ECC using CRM standard fieldsNovember 30

    Hi Experts, I need to store the industry code from customer master from CRM into a Z-table in ECC.I have checked the BDOC segments is already there in CRM.This Z-table has to be updated each time when the user save the customer master.This Z-table wi

  • Adding Sum Totals from Multiple Tables in A single DocumentOctober 11

    Hello All, I'm having trouble adding sum totals from multiple tables I've created in a Pages 09 doc. I putting together a spreadsheet for cost projections for a house remodel. I created tables for each room of the house. At the bottom of the document

  • Error while adding user fields to user table using vb6.0October 11

    Hi, I am adding a user tables using vb6.0 using DIAPI. I am able to add the user table successfully. I am getting the following error when i am adding the fields to the table. "The metadata object for this object cannot be updated, since it's ref cou

  • Adding a record in a table from a workflow processOctober 11

    Hi all, I need to add a recod in a table using a workflow. Here the scenario: A user add a record into table A, when done MDM trigger the workflow in Visio. The workflow has to add a record in table B coping some values of table A. Thank in advance f

  • Replacement tables in ECC 6.0October 11

    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 BC430P

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 1.211 s.