Adding few fields to the ODS based on a condition

Need suggestions in adding few fields to the ODS based on a condition.
The following is the requirement.
Do a calday and 'Sales Org' based selection:
0CALDAY=20041101-99991231; All Sales Orgs except AM01
0CALDAY=20030701-20070930; All Sales Orgs except AM01

Hi Dolly,
               You can do this by writing a simple end routine in your transformation rules.It is just an  conditional statement.
In that statement write
If <RESULT_FIELDS>CALDAY EQ 20041101-99991231 and If <RESULT_FIELDS>Sales Org NE AM01
<write the statements which populate the fields>
endif.
In the same way you can write the code.
Hope this helps
Regards
Karthik

Similar Messages

  • Start routine to update some fields of a ODS based on the another ODS

    Hi I know i have to do abap coding at the start routine to update a ODS based on another ODS. I have tried doing the code for quite some time now and i have not been successful. I think I havenu2019t followed the definition required for this routine.
    I have 2 ODS, ODS1 has 3 key fields and ODS2 has 1 key field
    I have to map the ODS based on a 1:3 relation.
    I am writing this start routine for the update rules from ODS2 to ODS1.
    The logic is if the key field of ODS2 is equal to either Key field 1 or Key field 2 or Key field 3 of ODS1 then that record from ODS2 has to be updated to the corresponding matching record of ODS1, else no update. The 3 key fields of ODS1 have different character length and character types and the key field of ODS2 has a different character length and type when compared to the any of the key fields of ODS2 can match any of those.
    Like key field 1 of ODS1 has length 10. Key field 2 of ODS1 has length 10 and key field 3 of ODS1 has length 20 and all these fields are not alpha converted, but the key field of ODS2 has length 60 and it is alpha converted.
    Can anyone please help me in this code.
    My Code is as below.
    ITAB1-T_BOL = DATA_PACKAGE-/BIC/ZLBOL.
    ***********NISTEVO SELECT******************************
      SELECT /BIC/ZLBOL FROM /BIC/AWLONST0100 INTO ITAB1-T_BOL
                  WHERE /BIC/ZLBOL = ITAB1-T_BOL .
    **************R/3 SELECT*******************************
        SELECT /BIC/ZLRDELNU /BIC/ZLRSHIPNU /BIC/ZLREXTID
                  FROM /BIC/AWLOR3O0400
                  INTO CORRESPONDING FIELDS OF ITAB1
                  WHERE
                  /BIC/ZLRDELNU = ITAB1-T_BOL OR
                   /BIC/ZLRSHIPNU = ITAB1-T_BOL OR
                   /BIC/ZLREXTID = ITAB1-T_BOL .
          SORT ITAB1 BY T_DELNU T_SHIPNU T_EXTID .
          LOOP AT DATA_PACKAGE.
            READ TABLE ITAB1 WITH KEY T_DELNU = DATA_PACKAGE-/BIC/ZLBOL.
            IF SY-SUBRC = 0.
              EXIT.
            ENDIF.
            READ TABLE ITAB1 WITH KEY T_SHIPNU = DATA_PACKAGE-/BIC/ZLBOL.
            IF SY-SUBRC = 0.
              EXIT.
            ENDIF.
            READ TABLE ITAB1 WITH KEY T_EXTID = DATA_PACKAGE-/BIC/ZLBOL.
            IF SY-SUBRC = 0.
              EXIT.
            ENDIF.
            DELETE DATA_PACKAGE .
          ENDLOOP.
        ENDSELECT.
      ENDSELECT.
    Points will be awarded.
    Edited by: satish rajaram on Nov 6, 2008 4:51 PM
    Edited by: satish rajaram on Nov 7, 2008 11:40 AM
    Edited by: satish rajaram on Nov 7, 2008 11:43 AM

    The logic is if the key field of ODS2 is equal to either Key field 1 or Key field 2 or Key field 3 of ODS1 then that record from ODS2 has to be updated to the corresponding matching record of ODS1, else no update. The 3 key fields of ODS1 have different character length and character types and the key field of ODS2 has a different character length and type when compared to the any of the key fields of ODS2 can match any of those.
    Can you try below logic :
    Below is not code it needs to be manipulated as per requirement.
    ODS2 ---> ODS1
    SELECT <key fields of ODS1>
    FROM /BIC/A<ODS1>00
    INTO ITAB
    FOR ALL ENTRIES IN DATA_PACKAGE
    WHERE
    keyfield1 = data_package-key1
    or
    keyfield2 = data_package-key2
    or
    keyfield3 = data_package-key3
    **Now itab has all entries which neednot be deleted from data_package.****
    if sy-subrc=0.
    ***Check Itab and delete only those records not present in itab from data_package****
    endif.
    Hope this helps.

  • Adding Custom Fields to the Recipe Management Workbench

    Hi Experts
    I'm trying to add fields to the Quatities Tab of the recipe dependent and the stage dependent formulas
    in RMWB (Recipe Management Workbench).
    I've added other fields to the Input and output tab by appending the frmls_iot_scr structure and then doing the layout setup
    in SPRO but where and how do I go about adding fields to the Quantities Tab and is there a BADi that can then be used to fill
    those additional fields.
    Any help would be much appreciated.
    Regards
    Vic

    Hi Vic,
    There are no exits or BAdI for extending the fields for the view quantities. New fields must be added at the structure FRMLS_TOTALS and added into the customizing table FRMLC32 as col_id. Then the processing of the fields is still to be programmed. The function group is FRML600.
    You can use also a copy of the group group.
    Best regards,
    Roland

  • In BDCs, after adding one field to the screen, which one is the better proc

    Hi,
    My client requirement In BDCs, after recording the legacy data by using MM01, After some time adding one field to the screen, How can we record the  for the new field.
    If any one knows pls help me total process.
    Warm regards,
    Venkat.

    Identify the screen in which this new field is added and simply add one more line to add the bdc record for this field in that screen.
    If the screen is also entirely new, then you have to identify the previous screen, the okcode to go to this new screen and finally the next screen and the okcode to go to the next screen along with the field BDC record.
    I don't think it is necessary to redo all the recording as long as you can follow the existing code.

  • Questions on adding z fields to the standard extractor, Please reply !!!

    We have 0material, 0customer in our daily process chains where we do full loads daily, now we need to make that delta loads so that we can reduce the time of the execution of the pc. I know that these extractors can be delta enables but the problem is we have a few z fields for these extractors, like 20 fields for 0material and 3 fields for 0customer and currently we are doing full loads for these 2 infobjects. I want to know if these can be delta enabled so that zfields will be delta enabled. I mean in short if we make these delta enabled, will the z fields will come along with the standard fields since we are adding the z fields to the standard tables. Do we need to handle the code separately or is their any complicated code written along with it in the CMOD or just adding the zfields will bring the delta to BI. Please provide some links or any information on this regard. Please let me know if you need any other information. Thanks in advance.

    Hi Daniel,
    Deltas would be extracted based on some specific fields such as timestamp, dates or some kind of numeric pointer.
    In your case, lets say if you have some date field for eg. Changed on in your table on which delta would be picked up then that delta should also fetch up changes related with address.
    If this address field is directly present into your main talbe then changes would be directly picked up without any need of logic because table containing changed on date <your delta relevant field> also contains this address field.
    But if this address is coming up from some other table then some sort of logic should be written to populate the changes in address field with respect to that "changed on" date field.
    Rgrds,
    Nilima

  • Fields missing in SM30 after adding new fields to the table

    Hi ABAPers,
    I added a new field & marked another field as primary key in the table. Then I generated the table maintenance view for the table in SE55 and adjusted Database utility SE14.
    When i saw the table in SM30. The number of fields in the overview screen of SM30 shows less field then existing in table. i.e in my table i have 10 fields(3 primary). in SM30 it shows only 5 fields(3 primary + 2 normal fields)
    In SE51, the overview screen of the table show less fields in the field list..
    I want all the fields in the Table maintenance overview screen. Please suggest me a way forward friends..
    Note: the system is 4.0B.
    Thanks...Suresh Kumar

    Hi
    You have to re-generate your dialog for SM30 by table maitenance generator.
    - From Se11 go to table maitenance generator
    - Choose update icon
    - Set flags for NEW FIELD
    - Go to expert
    - Set flag to re-generate dynpro
    Message was edited by: max bianchi

  • Adding new fields to the data flow

    Hi,
    I am currently planning to add some new fields in one DSO and map it (with info source) in the update rules.
    Will adding new fields to Info source - Comm. structure affect all the update rules connected to it?
    The info source is connected to multiple DSO.
    (The data source is currently under enhancement for these fields). Once this is done, we have to replicate it to BW.
    Thanks,
    Naveen

    yes.
    Once the enhancement is done for data source in r/3 side, you will have to replicate the datasource in BW.
    Adding new fields will deactivate the update rules. You have to map the same in update rule and activate the same.
    This will require activation of  transformations, update rules, etc for related DSOs. Try to find out the where used list for the DSO where you want to add the new objects. Then check each objects whether these are activate after the changes. If these are inactive, you will have to activate all the objects.
    Cheers
    Chanda

  • Adding new field to the page when the field source not available

    Hi,
    I have a requirement to add vendor_serial_number (manufacturer's serial number) to the page /oracle/apps/csi/instance/general/webui/InstanceDetailsPG. This column is available in mtl_serial_numbers_all_v table. I don't see any VO in that page has access to this. What is the best approach to add this field in the page.
    Create a new VO with the query to get the vendor_serail_number based on the item_number, serial_number.
    Attach the VO to the AM InstanceDetailsAM or create a new custom AM as we can't attach the new VO to the seeded AM.
    Add a item to the page that gets the column value from this new VO.
    Please suggest.
    Thanks,
    HC

    1. Create the textfield item using personalization.
    2. Create a View Object to get the field
    3. Extend the InstanceDetailsCO and attach the VO to AM programatically in the extended CO.
    Any suggestions.
    Thanks,
    HC

  • Adding custom fields to the condition table in CRM

    Hi all,
    Our requirement is to download the sales conditions type from R3 to the CRM system. In one of the condition table we are trying to add shipping point( VSART ) and Special processing indicator (SDABW).
    For that we have added the fields in the structure CND_MAPT_ACS_REM_CUST (Comm. Structure Condition Exchange Customer Exit R/3 Fields) and we have added the fields in the field catelog in transaction ( /SAPCND/CTCT - Maintain Condition Tables). Then we have mapped these fields in the view V_CND_MAP_CNVFLD.
    Finally we run the adapter object of that particular table to download the details from R3, but the condition table in CRM is not getting activated, so the adapter object is giving the error.
    Please help in this.
    Thanks & Regards,
    Raghuram.

    Hello Raghuram,
    I feel that your issue is similar what i have faced, refer to my post:
    Link: [Issue in customer specific price;
    For solving this you can refer to detailed steps in,  Note 514952 - Download of customer-specific tables.
    Also additionaly you may need to run the report /sapcnd/rv12n001, as i also had to do so.
    If not solved then let me know the relevant message in SLG1
    Regards

  • Adding new fields in the layout.

    Hi gurus,
    I have a requirement in which i need to change the layout of a report v.25 through transaction VOKF. Actually i have added one field VDATU in the table VBMTV and the fields of this table are getting displayed in the output but not all fields. so through the transaction VOKF a variant has been created with some fields and there is also option for additional fields addition. But the field which I have added new through append structure doesnt appear in the possible value fields.
    So do anyone have any solution for this or if anyone has ever encountered this type of issue.
    Thanks in advance.

    I have added the field VDATU in the Structure VBMTV and the structure is active. This field is getting filled in the my Standard report and and is displayed only when change the layout after displaying the output.My requirement i need this field by default in the output.
    Thanks in advance.

  • Adding Special Field in the line item display

    Dears Through SPRO settings, I added the field 'Group Account Number' (ALTKT) for the GL line item display.
    It is now transported to Quality.
    When I try to see that field in the change line item layout, I could not find that field for inclusion.
    However, in the SPRO of Quality, I find that field already appearing.
    Why it is not appearing in the FBL3N special field screen ?

    Hi Niki,
    I am not sure how you have added this filed but if you follow these steps you will have it.
    1- Run FBL3N and make your settings and execute it (F8).
    2- Go menu Settings > Special fields (You can run it by t code OBVU out of FBL3n also)
    3- Add a new entry, select your field (BSEG ALTKT Group account number) and save it
    4- Back one step (F3) and select "Change layout..." icon.
    Now you have the field in "Hideen fields" column. Just select it as "show selected fields"
    Regards,
    Omid

  • Adding new field in the table for Output

    Hi ,
    I need to add a field catalogue as Payment method in the condition table for Output, but the payment method field does not exist in the table. Can this be done?
    regards,
    Ragu

    Hi Refer below link on sdn for adding new Field
    Adding New Field to Catalog
    Adding New fields to field catalog

  • URGENT:: regarding adding new field in the info type0002

    Hi,
    I have added tax number in the 0002 info type through pm01 and CI include and then i creatad a sub module to calll the TAX NUMBER.
    the added field is appearing in T588M table for that screen, but it is not appearing when i tryed to open a emploee that new field is not coming in the info type screen.
    do i need to call this sub screen some where else.. if so please help wherei  need to do what...
    Please help on this...
    Thanks suresh

    Hi suresh,
    You should also add the field into the screen through program MP .. 0002.
    I advise you to add it from the P0002 structure which is the red dotted icon on the top part of screen maintenance screen.
    Regards,
    Dilek
    P.S. Please reward if helpful

  • Adding new field in the TCode FBL3N

    Hi folks,
              We want to add New filed (Vendor Name) in the final output of TCode FBL3N. We added field in the 'Change Layout' option in the application tool bar. Now the field is coming on to the output, but with no data. What to do to get data into the Vendor Name field in the output. My doubt is whether it is Functional Consultant's work (Configuration work) or Abaper's work....pls help me regarding this...Thanks in advance....
                Santosh.

    Hi any answers to the above Question.
              Thanks,
              Santosh

  • Adding a field to a form based on a table

    Hi
    I am unable to make the following scenario work.
    I have a form which is called from a report. The report passes in an ID parameter. This form field then displays the text associated with this ID because it has a LOV attached to it.
    However, the user is able to select other values from the LOV, which then renders the form useless.
    Is there a way of:
    - disabling the LOV?
    - adding a separate text field to the form where I can display the value I want with no LOV?
    Thanks

    As part of my attempts to make this work, I added a field to a form, with the intention of passing a value into it using the link to the form. But the field does not appear in the list of parameters available to the link.
    why is that?

Maybe you are looking for

  • WSRM Configuration Issue

    Dear Experts, We have a requirement to setup WSRM between TM and ECC. We have followed the guide from SAP note 1978857. we have completed SRT_TOOLS and SLD registration. we have configured central system configuration as per the link http://wiki.scn.

  • Topdown JAVA WS and xsd:anyType

    Hi, I am developing a JAVA webservice using the Top-down method. I have created the code using the JDeveloper File -> New -> Java Web Service From WSDL Part of the reply payload is a general xml message and I have used xsd:anyType in the WSDL I have

  • Travel Mgmt Implementation business process

    Hello SAP gurus, Hope you all doing fine.                           I am new to SAP Travel Mgmt module and looking for implementation process/business requirements/configuration/ suggestions/advise and documents. Please let me know and your valuable

  • Special effects guru wanted

    Massachusetts based feature length independent seeks someone to advise on the best way to accomplish the special effects in our story.  Theme of movie is gothic / halloween / action / adventure.  Fame and/or fortune are negotiable. Thank you.

  • BAM Installation steps

    Hi, Please provide BAM Installation steps and pre-requisities. Thank You, Ramana.