Populate new fields in DSO (DBTable) with ABAP routine

Hi,
I've added a couple of fields to a DSO. The DSO contains a large number of records (60m+) and I have a tight window to cutover so the activation time would be an issue if I use a loop transformation. Therefore, I am looking to populate the additional fields directly in the Active table using an ABAP routine.
One of the fields is a key figure to be derived from an existing CHAR field so would need to apply some logic during update, such as IF <CHAR_FIELD> CA 'ABC'. <KYF_FIELD> = 1 etc.
Aside from fairly basic Start Routines my ABAP is very poor so was wondering if anyone can help me with the syntax or, preferably some sample code to achieve this.
Thanks in advance,
Ad

Hi,
   In transformation of the cube, choose routine  for char E.
   There you can assign value in RESULT field. Actually RESULT field is assigned to E, find the code below,
*--  fill table "MONITOR" with values of structure "MONITOR_REC"
*-   to make monitor entries
... "to cancel the update process
   raise exception type CX_RSROUT_ABORT.
... "to skip a record
   raise exception type CX_RSROUT_SKIP_RECORD.
... "to clear target fields
   raise exception type CX_RSROUT_SKIP_VAL.
  (* insert your abap code here to find the value of E*.)
     RESULT =                     * assign the value you got for E here.
rgrs,
v.sen

Similar Messages

  • How do I click a key and have Firefox populate a field I am in with specified text?

    I provide online assistance for a specific group of clients. I am finding myself repeatedly writing almost the exact same paragraphs. Which Add-on would allow me to simply populate a field on a page with the exact text -- I'm hoping to set up 20 or 30 responses that I can just select instead of having to retype everything. Thanks for any guidance.

    Nailed it cor-el!!!!! I am so delighted! It's exactly what I've been looking for. I gave you a SOLVED with pleasure.

  • How to map new field in DSO

    I have added a new field to the dso and i have replicated the datasource as well which is showing the new field newly added in ecc. how can i map the new keyfigure in the transformation between the datasource and ods. its showin in the ds, can u pls tell me how to map now.

    Ya but the problem is I have an infosource in between and its not showing in the transformation between the dso and infosource.....nor the infosource and the datasource. But its there in the first transformation on the dso side, not on the inforsource side..... but how to get that field in the infosource side...so that i can map the field between both the transformations....between infosoucre and dso and infosouce and ds.....You know what I mean. the zfield is showin in the dso field structure in the first level mapping between dso and infosouce....but where do i map it.
    Edited by: Daniel on Nov 28, 2011 9:59 AM

  • Have to populate new field in pexr2001 idoc type (out going payment order)

    Hi All
    I want to populate extra field( internal sap generated invoice number) in the PEXR2001 IDOC TYPE.But I dont know which user exits i have to use. program we are using wasRFFOEDI1
    was it
    EXIT_SAPLIEDP_901
    EXIT_SAPLIEDP_902
    EXIT_SAPLIEDP_903
    or
    Do I have like i have to use user exit <b>EXIT_SAPLIEDP_002</b>
    I could nt find where it is called in the program RFFOEDI1. Could you help me where to find this.

    Hi,
    It is quite deep ...  but please check this.
    1. Go to SE37 and enter FM FI_EDI_PAYEXT_PEXR2001_OUT.
    2. Double click on FORM FILL_IDOC_PAYEXT (include program LIEDPF2F).
    3. Double click on FORM HEADER_PAYEXT (include program LIEDPF28).
    4. Double click on any FORM FILL_SEGMENT_*. (i.e FILL_SEGMENT_IDKU1).
    5. Then double click on FORM  STORE_PEXR_SEGMENT (include program LIEDPF15).
    6.  In here, you should be able to link to FM EXIT_SAPLIEDP_002 using CALL CUSTOMER-FUNCTION '002'.
    Regards,
    Ferry Lianto

  • New field MCH1 or MCHA with  VL31n/VL32n

    hi experts,
    my problem is using Vl31n Create Inbound Delivery, when create a batch,  i need to populate one of the Characteristics.
    I used exits
    EXIT_SAPLV01Z_014 ( problem: the Characteristic isnt there...)
    i think i need to populate 1st the MCH1-z*
    can you help me?
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Mar 14, 2011 3:34 PM

    Hi,
      V02V0001 Sales area determination for stock transport order
    V02V0002 User exit for storage location determination
    V02V0003 User exit for gate + matl staging area determination (headr)
    V02V0004 User Exit for Staging Area Determination (Item)
    V50PSTAT Delivery: Item Status Calculation
    V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 Collective processing for delivery creation
    V50R0002 Collective processing for delivery creation
    V50R0004 Calculation of stock for POs for shipping due date list
    V50S0001 User Exits for Delivery Processing
    V53C0001 Rough workload calculation in time per item
    V53C0002 W&S: RWE enhancement - shipping material type/time slot
    V53W0001 User exits for creating picking waves
    VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
    Regards

  • New field to be filled by update routine

    Deltas are running, and added a new char to the cube and written update routine to fill the new char. How should i fill this new value for history. I don't want to reshedule the job from r/3. Will i be able to do from reconstruction (i doubt since our PSA Data is deleted every week). there is no ods between. What are options available.
    Kunal

    Hi Kunal,
       If data is available in BW then you can write some coding(routine) to fill the data for history data you have to loop back(CUBE to CUBE) to CUBE.
    Have a look:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f421c86c-0801-0010-e88c-a07ccdc69601
       Provide some more details. Which character, is available as attribute of any object...etc..
    Hope it Helps
    Srini

  • Help with ABAP Routine

    Hello All!
    I am getting data from Oracle into BW. One of the tables has 7 Objects. I am creating Info Objects as data targets and using the update rules to map the description of each of the object. For example:
    Zip Code (With master data and no text)            State    (With no master data but with text- 0TXTSH)
    Country  (With no master data but with text-0TXTMD)
    I am able to to load this fine as there are only two objects with description. The problem is when I have 6 objects with description and I can only map 3 of them to 0txtsh, 0txtmd,and 0txtlg.
    How do I write the routine so that I can map all the descriptions of respective objects to 0TXTMD.
    Please suggest.
    Thanks for everybody's time.

    You don't necessarily have to use the 0TXT* objects as source. You could add your own objects (e.g. CTXT*) to the InfoSource and map these to the texts for the different InfoObjects correspondingly.
    If for some reason you don't want to do that you could still create 6 different DataSources (reading from the same table) and do all the mapping independently (which is a worse solution compared to the above but still possible.)
    Regards, Klaus

  • Report Painter Library: troubles with new field in the additional structure

    Hi, ALL!
    I'm  creating a new field in the Report Painter table  GLFUNCT. Do do it I created my field in the additional structure GLDBZ  for GLFUNCT and create an row in the T804C table for new field.
    Who has expirience in customizing using T804* tables? What tables should be used and how? I have the following troubles:
    - I do not see the new field as characteristic in the library - I don't know the customizing table to set fields from additional structure as characteristic
    - in the generated Report Painter program  my new field exists  but call of filler routine is always disabled
    Thanks
    Tatiana

    Hi Shabitha,
    just wondering if you ever found an answer to this, as i'm searching for info on same matter.
    Thanks, Regards,
    Okan Yarligan

  • Using an event in table maintenance view to populate a field

    I have a table maintenance view, and I would like to populate one field of the table with derived data. I am trying to do this by coding a routine for one of the events, but so far no luck. I have been able to chege the data in the TOTAL table, but still it does not populate the field on the screen.
    Note this is not for one row as it is entered, but I want all rows of the table displayed to show this field with derived data.
    So the question is: what is the correct event to use, and what is the correct internal table to update? Can I make changes to EXTRACT or TOTAL to do this?
    Kind Regards,
    Tony.

    Hi Rob,
    Sorry for being lazy; I'll close this and off and search :-}
    BR,
    Tony.

  • Add a new field to vtts

    How to add a new field to VTTS? With an append?
    Thank you

    Append is to ADD fields.
    you can do this via SE11.
    1. go to SE11.
    2. key in Table name VTTS
    3. click on the Button Append Structure....
    4. Key in the name of you append starting with letter 'Z'.
    5. Add fields whcih you want.
    6. Activate the table.
    Cheers
    Amandeep

  • Loading Historical data to the new field without deleting the data in cube

    Dear BI Experts,
    I have enhanced a new field to the Generic data source in BI 7.0 .
    I need to load historical data to the newly  appended field.
    As we are having very huge data it is not possible to delete and do init again.
    Is there any  other possibility to load the historical data for the new appeneded field without deleting the old requests?
    Thanks for your Kind  help.
    Kind Regards,
    Sunil

    Dear Sushant,
    Thanks for your reply.
    But I am just wondeing if there is any possibility of loading historical data for new field using Remodelling  concept
    with out deleting old requests.
    I do not know about Remodelling conept but heard that it is not recommeneded to use.
    Can you please suggest and help.
    Thanks and Regards,
    Sunil Kotne

  • ABAP routine in DTP

    hi,
    I need some help withe ABAP routine in the DTP selection
    I have requirement to load the data for specific company codes on a specific days.
    If the current date is monday then it should pick Taiwan  or
    if the current date is Tuesday the it should pick Australia and Korea or
    if the current date is sunday then it should pick CHINA and Vietnam.
    I want to use only one DTP for this requirement. Please help me with the code for Info Object 0COMP_Code.
    Regards,
    Raghu

    hi,
    I have tried the code and it is not populating any value in the selection.
    Please check
    data: l_idx like sy-tabix.
    data: day like SCAL-INDICATOR.
    *Finding out the day
      clear day.
      CALL FUNCTION 'DATE_COMPUTE_DAY'
        EXPORTING
          DATE = sy-datum
        IMPORTING
          DAY  = day.
      read table l_t_range with key
           fieldname = 'COMP_CODE'.
      l_idx = sy-tabix.
    case day.
        when 1.                                 "Monday
          l_t_range-low = '0711'.
          l_t_range-high = ' '.
          l_t_range-option = 'EQ'.
          l_t_range-sign   = 'I'.
          modify l_t_range index l_idx.
        when 2.                                 "Tuesday
          l_t_range-low = '0355'.
          l_t_range-high = ' '.
          l_t_range-option = 'EQ'.
          l_t_range-sign   = 'I'.
          modify l_t_range index l_idx.
        when 3.                                 "Wednesday
         l_t_range-low = '0211'.
          l_t_range-high = ' '.
          l_t_range-option = 'EQ'.
          l_t_range-sign   = 'I'.
          modify l_t_range index l_idx.
       when 4.
       when 5.
       when 6.
       when 7.
         l_t_range-low = 'China'.
         l_t_range-high = ' '.
         l_t_range-option = 'EQ'.
         l_t_range-sign   = 'I'.
         modify l_t_range index l_idx.
    endcase.
    p_subrc = 0.

  • ABAP ROUTINE AT INFOPACKAGE FOR DATE RANGE

    hi all,
    I want to Schedule my infopackge with selection options 
    0DATE  infoobject with First date of current month( 01.02.2008)  to last date of current month ( 29.02.2008).
    this i have to get automatically bcoz i have to use this in process chain.
    so I want to write a routine for this at the infopackage level with ABAP Routine -6 option.
    So please suggest me how to write the code for this case.
    thanks,
    kiran manyam.

    Hi Kiran,
    Please paste the following code there and also check for syntax error.
    data first_date type d.
    data last_date type d.
    first_date = sy_datum.
    first_dat+6(2) = '01'.
    CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
    Exporting
    DAY_IN = first_date
    Importing
    LAST_DAY_OF_MONTH = last_date.
              read table l_t_range with key
                   fieldname = 'DATE'.
               if sy-subrc = 0.
                   l_idx = sy-tabix.
                   l_t_range-sign = 'I'.
                   l_t_range-option = 'BT'.
                   l_t_range-low = first_date.
                   l_t_range-high = last_date.
                   modify l_t_range index l_idx.
                else.
                   move 'DATE' to l_t_range-fieldname.
                   l_t_range-sign = 'I'.
                   l_t_range-option = 'BT'.
                   l_t_range-low = first_date.
                   l_t_range-high = last_date.
                   append l_t_range.
                   endloop.
                endif.
              p_subrc = 0.

  • Extractor (2lis_11_vaitm) does not takes new field created with new domain

    Hi,
    I created a new data element and domain in ECC
    Source system ECC:
    1. I created a new Z data element and Z domain (char 60) in ECC.
    2. I created a new Zappend Strcuture and added a new field with the above data element to a extract structure of 2LIS_11_VAITM.
    3. In RSA6, I unchecked hide column and checked Field column.
    4. I wrote an ABAP code in CMOD to populate tis field.
    5. I can see the data in that field in RSA3 of this extractor.
    BI side:
    1. I replicated the datasource.
    2. I could see that field in the fields tab of the datasource. (NOTE: In the field tab, against the column u201Ctransferu201D that field value is unchecked.)
    3. When I check the PSA table, I donu2019t see this field.
    4. Plus I donu2019t see this field in the right hand side of the update rule also (3.5 flow) or in the transformation (7 flow).
    I unchecked the field column and activated the datasource in RSA6 and replicated it in BI. Then also the same problem.
    Is there anything that needs to be done for this Datasource so that I can get this field in the update rule and transformation.

    Hello.
    I was checking this issue, and all the enhancements with fields need to have a customer-exit to populate this fields,otherwise they will come BLANK.
    As those fields are not delivered by SAP and are not in the original datasource(RSA5) from Business content, this is related to customer's enhancements.We can only see these fields in the datasource enhanced by customer(RSA6).
    To have the proper values assigned to those field, you should write an User Exit program. This program must be created to fill the enhanced fields as they are not filled in the same way as the SAP delivered
    fields.More details about this process you can check note 576886.
    576886-Change to user-defined fields not extracted.
    This note is an example for some datasources regarding what need to be done.
    Thanks.
    Walter Oliveira.

  • Process to populate the new field added by AET in Sales Order item

    Hi
    We are on CRM 7.0 , EP1.
    I have added a new field in Sales order item view (UI comp : BT115IT_SLSO  , View :Items).
    The field is called MTO (made to order), it should be populated based on settings in material master.
    I would like to know how can I populate this field with custom logic.
    Thanks
    Swapnil

    Dear Swapnil,
    You can use the following steps to set the default value in field Made To Order:
    1. Enhance Component BT115IT_SLSO and View Items
    2. Redefine method DO_PREPARE_OUTPUT method of the View Controller Class and implement the following sample code:
    super->do_prepare_output( ).
    if iv_first_time = abap_true.
    lr_ent->set_property_as_string( iv_attr_name = 'ZXXX'    " Attribute Name
                             iv_value        = 'YYYY'  )     " Value to be set
    endif.
    This will make sure that the logic to set the value in this field is called only once and not after every event.
    You might not like to redefine the Getter and Setter method because these methods will be triggered after each event in that view.
    Hope this helps.
    Thanks
    Vishal

Maybe you are looking for

  • Problems with opening Adobe Reader 9 or pdf files

    Hi, Can someone please help me resolve this problem?  I had no problem using Adobe Reader 8 but since removing Adobe Reader 8 and download the updated Adobe Reader 9, I cannot open any pdf files or the Adobe Reader 9 (on desktop) without receiving th

  • Set textSelectionColor of itemrenderer in my combobox

    Hi all, First of all, all apologies if this question were already discussed around. I serached and found nothing. On the web, all that I have found didn't really help. I defined an itemRenderer for a combobox <mx:VBox xmlns:mx="http://www.adobe.com/2

  • Error Message on Mac Installation of Studio 8 "Flash Player" could not be launched

    When I try to install Studio 8 on a new MacBook with Mac OS/X software, I get the following error message: "Flash Player" could not be launched because of a shared library error <Flash Carbon Player> Please help me get past this. Thanks.

  • Find method with dates

    Hellow , I want to create a find-method that should represent following statement : select * from emp where date > to_date( '24/01/2002', 'dd/MM/yyyy' ); I defined in my EJB-home-method something like this ... public Collection findByStukEname( Strin

  • OM Actions - PP03 Next Record Button is Disabled (Shift + F7) ?

    Hi In PP03 - OM actions After exceuting 1001 and 1001 next i want to skip 1007 infotype but Next record button is disabled. when i hit back button it behaves as next record button(Shift +F7) can anyone throw light on this please. Edited by: raj sap h