InfoPackage Selection - Logical OR

Is there any way to enable a Logical 'OR' in an InfoPackage on 2 fields? When both fields are populated by respective ABAP routines, the result condition turns out a Logical 'AND'.
I have two timestamp fields, in InfoPackage Selection TS1 and TS2 intervals. I have routines on both of them. How can I enable the system to generate my selection to be an OR meaning either TS1 interval OR TS2 interval. The way it is behaving now is TS1 interval and TS2 interval.
I am using BW 7.1 and DB Connect interface in this case.
Thanks.

I don't need this anymore but if anyone has ideas, please feel free to chime in as it can benefit the community.

Similar Messages

  • Routine in Infopackage selection

    Hi,
    We are using DB Connect and hence we need to write a routine in Infopackage selections to restrict the data to be extracted.
    In the source file, there is a field called " Time stamp".
    This is a Char 23 field with mm-dd-yyyy-hh.mm.ss.sssss format.
    My requirement is lookinto first 10 char ( only for date) and filter the records.  If the date = Sy-datum, then only, i want to extract the data in BI staging.
    Is it possible to write a routine in Infopackage ?   Can you pls help me ?
    Or do i need to take the whole data into PSA and then write a routine in transformation while uploading to Data Target ?
    Regds,
    BW Small

    Hi,
    See the below code for Including  0FISCPER dynamically, so in that way you can write code to get your selection or change the data formate etc.., show this code to ABAPer ask according to this code implement your logic.
    In below code I'm calculating  0FISCPER based on Sy-Datum using FM.
    program conversion_routine.
    * Type pools used by conversion program
    type-pools: rsarc, rsarr, rssm.
    tables: rssdlrange.
    * Global code used by conversion rules
    *$*$ begin of global - insert your declaration only below this line  *-*
    * TABLES: ...
    * DATA:   ...
    *$*$ end of global - insert your declaration only before this line   *-*
    *     InfoObject      = 0FISCPER
    *     Fieldname       = FISCPER
    *     data type       = NUMC
    *     length          = 000009
    *     convexit        = PERI7
    form compute_FISCPER
      tables   l_t_range      structure rssdlrange
      using    p_infopackage  type rslogdpid
               p_fieldname    type rsfnm
      changing p_subrc        like sy-subrc.
    *       Insert source code to current selection field
    *$*$ begin of routine - insert your code only below this line        *-*
      DATA: l_idx LIKE sy-tabix,
            zzdate LIKE sy-datum,
            zzbuper LIKE t009b-poper,
            zzbdatj LIKE t009b-bdatj,
            zzperiod(7) TYPE c.
      READ TABLE l_t_range WITH KEY
           fieldname = 'FISCPER'.
      l_idx = sy-tabix.
      zzdate = sy-datum - 1.
      CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
        EXPORTING
          i_date               = zzdate
    *             I_MONMIT             = 00
          i_periv              = 'V3'
               IMPORTING
         e_buper              = zzbuper
         e_gjahr              = zzbdatj.
    *           EXCEPTIONS
    *             INPUT_FALSE          = 1
    *             T009_NOTFOUND        = 2
    *             T009B_NOTFOUND       = 3
    *             OTHERS               = 4
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CONCATENATE zzbdatj zzbuper INTO zzperiod.
      l_t_range-low = zzperiod.
      l_t_range-option = 'EQ'.
      l_t_range-sign = 'I'.
      MODIFY l_t_range INDEX l_idx.
      p_subrc = 0.
    *$*$ end of routine - insert your code only before this line         *-*
    endform.
    Thanks
    Reddy

  • The fields of type Int 1  not appearing in Infopackage selection

    Hello Gurus,
    I have created a generic datasource on two tables .
    The fields that should be set as Selection fields for the DataSource are the following:
    -     field 1------type char
    -     field  2----
    type char
    -               field 3----
    type Int1
    -     field 4----
    type Int1
    Out of the above four table fields only the two fields  with char datatype are appearing in infopackage selection.
    The other two ie(field 3 and field 4) of datatype Int1  does not appear in infopackage selection.
    I have ticked the check boxes in the selection field of datasource.
    I also get all the four fields available for selection in RSA3(extractor checker tcode).
    Kindly help me in resolving this issue.

    Hi Amol,
    Can you please replicate DS once again and then try creating the infopacage
    Mann

  • *** Abap Routine in Infopackage selection ***

    Hi !!!
    I have the scenario below:
    I have created an infoobject called CAEMPFF. In the infopackage selection under field 0COMP_CODE I want to create an abap rotine to read all vaules filled in CAEMPFF.
    How can I do that using abap routine ?
    Thanks in advance,
    Leandro.

    Hi Leandro,
    In the infopackage, under 0comp_code (or probably field BUKRS if it's an ERP datasource), you should select ABAP routine (6) under Type field. Then, you'll be prompted to create the routine.
    There you should create a program that reads all the values of your infoobject master data table.
    Hope this helps.
    Regards,
    Diego

  • Infopackage Selections Tab-OLAP Variable/ABAP Routine

    Hi Experts
    In my Infopackage Selections Tab i had Cal Mon/Year field....
    As per my requirment i have to write a selection condion that when we execute info package (it is a monthly data load)  it will extract data only for the months greater than or equal to current month
    Please update me on how can i achieve this either by using OLAP Variable or ABAP Routine in infopackage...will be great if can provide the required ABAP Code
    Thanks in Advance

    here's an example that fills the fiscal year from last month (bold is customer code... the rest is standard):
      data: l_idx like sy-tabix.
      read table l_t_range with key
           fieldname = 'PARAM_P_GJAHR'.
      l_idx = sy-tabix.
      data:
      v_caldy type /BI0/OICALDAY,
      v_calmn type /BI0/OICALMONTH,
      v_calyr type /BI0/OICALYEAR.
      v_caldy = sy-datum.
    determine first day*
      v_caldy+6(2) = '01'.
    determine last month*
      subtract 1 from v_caldy.
      v_calyr = v_caldy(4).
      l_t_range-sign   = 'I'.
      l_t_range-option = 'EQ'.
      l_t_range-low    = v_calyr.
      modify l_t_range index l_idx.
      p_subrc = 0.

  • OLAP Variable with user exit for Infopackage Selection 0fiscper

    Hi Frds/ Guru's ,
                    I have a requirement to use a OLAP Variable for Fiscal year period 0fiscper(Characteristic ) in the Infopackage Selection. . I need to extract the data for Previous Year and Current Year , that is to be automatically selected with a OLAP Variable . The standard one's provided by SAP are not satisfying my requirement,as they are getting populated with SAP Exit and I am not getting the ranges .I am planning to create a variable and use the processing type as Customer Exit and Populate it with ABAP code in respective Enhancement RSR00001.
    Even Can I create a ABAP Routine ? Please suggest me which is better to do in respect to performance of dataload  , will be really glad if anyone can provide some code for doing this as u might have faced the situation sometime .
    I have checked with all the threads available , could get some idea but will be really thankful if u gimme some hints in writing the code , at Exit level and routine level .
    Thanks,
    Krish

    thnx

  • InfoPackage selection offset with OLAP variable

    Hi Bw Gurus,
    I have a requirement to load ODS with full upload everytime but in order to reduce repeated loads I am trying to use a DATE field which is not part of communication str. as a selection critera in InfoPacakge.
    I changed DS to include this field avaialable for selection and It's working fine when I input date to and from values hard coded in InfoPackage.
    Further I am trying to automate this InfoPackage scheduled weekly and I need to include date offset value for this DATE field to load for additional last 2 weeks every time to capture changes for already loaded data.
    I have created OLAP customer exit variable having Date interval for Date starting from last 3 weeks to Current DAte and included in InfoPackage selection for DATE field but it's not working. By the way if someone can explain what's meaning for two columns there for TYPE(Variable change to selection.....) and detail for type.
    Any clue for reason or any other way to accomplish this requirement?
    Thanks in advance,

    hi,
    can you explain me ,hw you solved the pbm,
    the same pbm i am facing.
    i am trying to load the data everyweek ( i have date field ),so i have selected OLAP Variable option -7 and there i have selected 0WEEK,but data is not comining from R/3,then i have selected the option -6 abap code,i have written code to get the date range,even though i am not able to retrive the data.
    can you suggest me
    Thanks
    Madhu

  • Unable to select logical relations in DataModeler version 4.1.0.866 Build 866 on Mac Yosemite 10.10.1

    Hi Team,
    I can not select logical and physical relations in DataModeler version 4.1.0.866 Build 866 on Mac Yosemite 10.10.1 (Java SDK 1.8). DataModeler does not allow me to select them. I mean the next scenario: I create two entities (or tables) and add a logical (or physical) relation between them. After this I can not select the relation in diagram window. Meantime I still can select the relation in browser window.
    Could you please suggest me is it a bug (maybe a platform specific problem) or did I miss something in software options?
    I found a topic about the same issue. It describes the same problem, though the topic is without an answer and was archived.
    New bug - Unable to select logical relations in version 4.0.2.15 Build 15.21 on Mac
    At the end, if this is a bug (even a platform specific one), where may I publish details about it to ask for a fix from Oracle team someday in future?
    WIth best regards,
    Kostyantyn

    Hi Philip,
    Thank you for the good hint about "default line width and colour".
    Meantime the option does not resolve the problem in my case.
    According to your suggestion I set maximal width for relation lines and I still can not pick (select) it in diagram window.
    I checked behaviour of DataModeler with next display resolutions on MacBook Pro (Retina, 15-inch, Mid 2014) in System preferences Displays: "Best for display"; Scaled "More Space", "Larger Text", and "Best (Retina)"... And the problem takes place in all these cases.
    Please see attached image - this is how I see the relation line. And I still can hit it!
    If I use the DataModler on a casual external monitor, the problem is absent (no matter what a width is). Also I believe the problem takes place only on mac retina displays. Therefore I think this is a platform specific bug.
    I do understand a root cause of the problem may have no direct relation with Oracle DataModeler source code.
    With best regards,
    Kostyantyn

  • " To Value " is  greyed out  in Infopackage Selection Tab ??????

    Infopackage Selection Tab has some <b>mandatory</b> selections to be fild in for loading.
    "From value" is excepting values but "To Value" is greyed out ???
    Its for a SAP extractor - FERC.
    Help SDNer's

    I see the Doc :
    Text
    Selection Options
    Definition
    Selection options that can be processed for a DataSource field.
    Note 1:
    The selection options defined here must be supported by the extractor.
    Note 2:
    If no other selection options are used for a DataSource field other than
    'EQ' and 'BT', no further definition is required. The value of the
    selection options can remain as the the default setting '0'.
    The selection option combinations are encoded into a binary string using the following schema and are saved as decimal figures:
    Selection option exponent (binary string)
    EQ 2^0
    BT 2^1
    CP 2^2
    GT 2^3
    GE 2^4
    LT 2^5
    LE 2^6
    NE 2^7
    NB 2^8
    NP 2^9
    Each character in the resulting binary string describes whether the corresponding selection option is allowed or not.
    That is:
    <b>
    1-allowed</b>
    <b>0-not allowed</b>
    For example:
    Selection options EQ and CP can be used to select in a field.
    The binary string is then: 0000000101
    The corresponding decimal value that sis saved as the DataSource definition is: 12^0 + 12^2 = 5
    <u>
    All the selections have 1 which is allowed but why To value is greyed out ?</u>

  • ABAP routine at Infopackage selection options

    Dear all,
    I need to write ABAP Routine at InfoPackage Selection Options.
    Requirement is to bring only the versions (contains 2 characters) starting with 'C'.
    Ex. I need versions CR, CP...
    Code template is the following:
    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = 'VERSB'.
    l_idx = sy-tabix.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Can anybody help me to resolve this?
    Regards

    Hi,
    here is an example:
      DATA: string(40) TYPE c.
      CONCATENATE 'C' '%' INTO string.
      SELECT *
      FROM /bi0/hwbs_elemt
      INTO TABLE lt_hwbs_elemt
      WHERE nodename LIKE string.
    Best regards,
    Frank

  • INIT InfoPackage Selections

    Hello,
    In an INIT Infopackage I want to make the following selections for extraction:
    Sales Org = 0003 through 0004
    Sales Org = Not Assigned (Blank)
    With these selections my goal is to get records for Sales Org 0003 and 0004 as well as the records that are not assigned to a Sales Org.  Specifically I am trying to avoid getting records for Sales Org 0005, but I want to make sure and get the records that have an unnassigned Sales Org.
    Is this possible?  I am mostly unsure of how to indicate in my selection criteria that "if the sales Org is unassigned then bring over the record".
    We are on BW 3.5
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

    Hello Jr. Roberto,
    Thanks for your reponse, I have some follow up questions.
    What sort of routine are you suggesting? 
    Also what do you mean by <b>F2</b> won't work in InfoPackage Selections?  What is <b>F2</b>?
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

  • Technical Design Review Question: InfoPackage Selection

    I got my hands on technical design documentation for a project on COPA budget. I came up with a few questions but I will post them separately for fast closing and awards:
    1. In the discussions of InfoPackage Selection, a statement
    “The budgets InfoSource will have full/Replace loads, based on plan version”
    Can you explain what this statement may mean? I am not sure I get it right.
    Thanks.

    Hi Caud !
    I think that thi statement refers to the possibility to delete the content of an infoprovider for the same selection criteria...so, in this case, you have to load budget data on the basis of the plan version and delete (replace) the already existing data for the same plan version loaded before !
    Hope it helps!
    Bye,
    Roberto
    http://help.sap.com/saphelp_nw04/helpdata/en/f8/e5603801be792de10000009b38f842/content.htm

  • Update data from ODS to ODS with infopackage selection

    Hi,
    I am trying to update data from one ODS to another ODS with selection criteria in InfoPackage which is created manually.For Full load I can give selection criteria in InfoPackage. When I initialize data Selection is greyed out even selections for Full load exists. Please advise me how to give selections for delta loads from ODS to ODS loads.
    Thanks in advance.
    Ram

    Once you started an ODS as destination in FULL mode from a DS you cannot get back.
    So if you want to update from ODS to ODS using Change Log but considering only some data records you could create an Update Routine with a Start Routine that DELETES undesired records (e.g. DELETE DATA_PACKAGE WHERE ...) and then start an Init-Delta Loading.
    Hope it helps
    GFV

  • Read Infopackage selection from a table using ABAP

    Hello Experts,
    I have a flat file consisting of 3 columns which I want to use as selection fields for the Infopackage. Now, is it possible to load this flat file to an ODS or a master data table and then write some ABAP  in the Infopackage to read the values of the columns and populate the selection fields.
    This is what I want: The columns of the flat file are  - Company Code, Doc number, Fiscal Year
    Now, I loaded this file into a tables (around 2 million records) and then use ABAP to populate the entire file into the selection tab of the Infopackage.
    What would be the best approach for this?
    Thanks in advance
    Vivek

    Hi,
    It's possible in theory. Just one thing, too many selections in an InfoPackage may not work (I remember about 1,000 or 10,000, not very sure).
    I'd like suggest loading a range rather than so many selections. For example, say you have below documents:
    1000
    1001
    1005
    1010
    Then just load from 1000 to 1010, and create a start routine in your update rule/transformation. There you can do this:
    1. select records from the table where you store flat file, using the same selection (1000 to 1010)
    2. For every records in DATA_PACKAGE, using READ TABLE statement to check whether that record exist in the table. If not exist then simply delete it from DATA_PACKAGE
    I think that would have much better performance. Let us know if you have further questions.
    Regards,
    Frank

  • Need to write ABAP Routine at infopackage Selection Options

    Hi All,
    I need to write ABAP Routine at Info Package Selection Options.
    Requiremnet i need to bring  some Sales Document Types (Sales Orders Types) only from R/3.
    Ex I need OrderTypes ZQT,ZSIV etc
    Can any body help to resolve this.
    Regards,
    P.C.V.

    Hi P.C.V,
    If the order type field is already available in the Data Selection Tab of the InfoPackage, then you just need to place your selections there (e.g. order type = ZQT, ZSIV) without the need to use ABAP routines.
    If ever you really need an ABAP routine, here is an example ABAP routine. The most important concept is to modify the range table l_t_range so that the selection reflect what you need.
    data: l_idx like sy-tabix.
    data: w_startdate like sy-datum,
          w_startweek like scal-week,
          w_maxdate like sy-datum,
          w_maxweek like scal-week.
      w_startdate = sy-datum.
      w_maxdate = w_startdate + 104 * 7.
    * Calculate horizon for extraction
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          DATE         = w_startdate
        IMPORTING
          WEEK         = w_startweek
        EXCEPTIONS
          DATE_INVALID = 1
          OTHERS       = 2.
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          DATE         = w_maxdate
        IMPORTING
          WEEK         = w_maxweek
        EXCEPTIONS
          DATE_INVALID = 1
          OTHERS       = 2.
              read table l_t_range with key
                   fieldname = 'CALWEEK'.
              l_idx = sy-tabix.
              l_t_range-sign = 'I'.
              l_t_range-option = 'BT'.
              l_t_range-low = w_startweek.
              l_t_range-high = w_maxweek.
              modify l_t_range index l_idx.

Maybe you are looking for

  • How can I sync my device calendar with the Windows Calendar on Vista?

    Hello, I have just got a PC running Vista (without Outlook) and am using the Windows Calendar and Addressbook. I seem to be able to sync the addressbooks, but my Blackberry Desktop isn't recognising the Windows Calendar application to allow me to syn

  • Issue with embedding and usage of worklist TF in ADF app

    In our application, we have embedded the worklist TF from "adflibTasklistTaskflow.jar" in our jspx page. Below is the page def binding for the TF <taskFlow id="taskListtaskflowdefinition1" taskFlowId="/WEB-INF/taskList-task-flow-definition.xml#taskLi

  • Creating PDF via Word Macro using Adobe Acrobat 9 Pro

    I've been trying to create a macro for Word documents that will write the document out as a PDF and named as C:\temp\temp.pd. My macro to date is below, but everything I've tried so far results in a .prn file, though it is named temp.pdf. Trying to r

  • Saving as a PDF with Active Web Links

    I need to save Word documents that have active web links in them to PDF files. When I save them to PDF, the links are no longer active. How can I save them with the web links in tact?

  • Problem in finding GHR.PLL

    Hi folks, I am having problem while opening FOrms in my client. So, i copied the mentioned PLL to the forms60_path and i dont find GHR.PLL in my linux server. Only i can see GHR.PLX I think I have to copy GHR.PLL to open template in my client. Can yo