Restrcitions at Infopackage level

Dear All,
There is an Info package where we have an Infoobject Posting level. We need to restrict some of the postings levels data when coming from the Source cube to the target cube.
For eg: we have posting level 00,01,02,10,12,20,22. We need to restrict 02,12 and 22 from coming to the Target cube. Can I restrict these at the infopackage level?
Please suggest.
Thanks Rama.

If u use infoapck selections, then enter values other that restriction 02, 12, 22...
U have to write a routine to restrict at infopackage level....  Check following sample code
data L_S_MC11VA0ITM like MC11VA0ITM,
L_tabix like sy-tabix.
case i_datasource.
when '2LIS_11_VAITM'.
loop at c_t_data into L_S_MC11VA0ITM.
l_tabix = sy-tabix.
if L_S_MC11VA0ITM-SPART ne '10'.
Else.
delete c_t_data index l_tabix.
continue.
endif.
modify c_t_data from L_S_MC11VA0ITM index l_tabix.
endloop.
Endcase.

Similar Messages

  • Error in infopackage level routine

    hi guys
    I am trying to write a infopackage level routine for dynamic flatfile selection.Im getiing error:Error 1 while loading external data.
    I did like this:
    I am accessing one external harddisk having BW-R3 software installed in it through VM Ware from my laptop.here I saved one flatfile with name DFF_10.10.2009.csv  in D drive.so path becomes  -- D:\DFF_10.10.2009.csv
    then in my infopackage...i wrote code ..here it is
    DATA: XFILE LIKE P_FILENAME .
      CONCATENATE 'D:\DFF_' SY-DATUM '.csv' INTO XFILE .
    P_FILENAME = XFILE .
    now tried to schedule infopackage....to see if it worksand loads data from flatfile.....but it throws error....Error1 while loading external data....
    how can I fix this?
    Thanks in adv,
    Rgds,
    S

    DATA:
      ch1(32) TYPE x VALUE
      '00200120022003200420052006200720082009200A200B200C200D200E200F20',
      ch2(32) TYPE x VALUE
      '10201120122013201420152016201720182019201A201B201C201D201E201F20',
      ch3(60) TYPE c VALUE
      '¿ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¡ ¯ ® ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ '.
    DATA:
      ch4(90) TYPE c VALUE
      'ø ÷ æ ß  ? ? ? ? ? ? ? ? ? ? ? ! ~ `  #'.
    FIELD-SYMBOLS:  TYPE c.
    DATA: l_ZPWRKCTY TYPE /BIC/OIZPWRKCTY,
          l_ZPSTNAMe TYPE /BIC/OIZPSTNAME.
    l_ZPWRKCTY = SOURCE_FIELDS-FIPS_NAME.
      translate l_ZPWRKCTY to upper case.
         RESULT = l_ZPWRKCTY.
      CONDENSE RESULT.
    Exclamation mark is not permitted as a first symbol of the field
    content
      IF RESULT(1) = '!'.
        RESULT(1) = ' '.
      ENDIF.
      CONDENSE RESULT.
    The only # sign is not permitted
      IF STRLEN( RESULT ) = 1.
        IF RESULT(1) = '#'.
          RESULT(1) = ' '.
        ENDIF.
      ENDIF.
    Replace Invalid Characters by SPACE
      ASSIGN ch1 TO .
      TRANSLATE RESULT using ch3.
      TRANSLATE RESULT using ch4.
      CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
        EXPORTING
          INTEXT                  = RESULT
       IMPORTING
         OUTTEXT                = RESULT.
    Remove leading and trailing blanks if any
      CONDENSE RESULT.

  • Routine at the Infopackage level-Urgent

    Hi,
    My requirement is I need to write an routine at the infopackage level for the fiscal period which should have the low value as the current period and the high value as current period +12 months.
    For example.
    As per the system date the
    low value should be 2007.09
    and the high value shoudl be 2008.09.
    Could anyone help me with the ABAP code.Points would be assigned.
    Regards,
    vamsi

    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = 'FISCPER'.
              l_idx = sy-tabix.
    data: l_year                like T009B-BDATJ,
          l_period              like T009B-POPER,
          today                 like SY-DATUM.
    data: l_fiscperlow like l_t_range-low.
    data: l_fiscperhigh like l_t_range-high.
          today = SY-DATUM.
            CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
              EXPORTING
                I_DATE               = today
              I_MONMIT             = 00
                I_PERIV              = 'Z1'
              IMPORTING
                E_BUPER              = l_period
                E_GJAHR              = l_year
            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 l_year l_period+1(2) into l_fiscperlow.
          l_t_range-low = l_fiscperlow.
          l_t_range-high = l_fiscperlow+12.
          l_t_range-option = 'BT'.
          l_t_range-sign = 'I'.
          modify l_t_range index l_idx.
          p_subrc = 0.
              modify l_t_range index l_idx.
              p_subrc = 0.
    This is the code which i had written but when i execute the infopackage i am aboe to see only the low value 200709 in the infopackage selections and unable to see the high value,Could any one suggest me if i missed something in the code.
    regards,
    Vamsi

  • Change the packet size at infopackage level

    Hi, Experts:
    All loads (full or delta) in the system can split data into small packets expect for one full load, which has almost 2 million records into 1 packet. It overflows the memory and fails.
    I found the following settings for this datasource when click from menu "Scheduler"->"DataS. Default Data Target":
    "Maximum size of a data packet in kByte" = 20000
    "Number of Data Packets per info-IDoc" = 10
    "Number of Data Packages per Delta Request" = 0
    "Update Method" - full Upload
    It seems to me that the load should split data into small packets.
    Can someone please tell me why only this load still puts all 2 million records in one big packet?
    Thanks,
    Jenny

    Some update on more information:
    The datasource is 0FI_GL_8, a standard SAP datasource for transaction data. I think it is an old datasource because I can not find any on-line document for its details from SAP help website. I was told that this datasource is not Delta capable. That is why full load is used.
    I also tried to reduce the package size settings for this datasource from "Scheduler"->"DataS. Default Data Target". But whatever I changed did not affect the way that this load is putting all records in one big data package.
    I assume the set up in Transaction RSCUSTV6 is for every infopackage across the whole system unless setup differently at infopackage level? I checked in RSCUSTV6, it is set up as the following:
    FrequencyStatus-IDOC = 10
    Package size = 30000
    Partition size = 1.000.000
    I also checked in ECC system with transaction SBIW for the control parameters for data transfer from the source system. It has the following set up for the source system:
    Max. (kB) = 20000
    Max. lines = 0
    Frequency = 10
    Max. Proc. = 3
    Max. DPs = 0
    From all the checked results, I still don't get why every other datasource loading can split data into small data packages, but only this one datasource can not. And why whatever I changed from the infopackage to reduce the size did not affect how it is splitting the data package.
    Any more inputs?
    Thanks,
    Jenny

  • Skip a record at Infopackage level

    Hi all
    I need to skip a record at infopackage level due to a problem in processchains and we dont wont this to be repeated again, could someone help me with the code for this
    Will  definetely assign points
    Chris

    Hi,
    you can actually select the record that u want to filter in the <u>transfer rules maintainance screen</u>. once u have selected these records , those records will be displayed in infopackage screen.
    hope this helps!
    Ravi

  • Selection at infopackage level

    HI Everybody,
    Is it possible to have selection at infopackage level.
    Regards,
    BPNR.

    Hi ,
    yes .it is possible to have selection at infopackage level.
    at infopackage level you can have three options for selection criteria.
    type-5--- free temporal selection (for as many fields as you like)
    type-6 ---ABAP routine
    type-7---OLAP Variables.
    Regards
    upen

  • Selected period data extraction at infopackage level

    Hi All,
    I am trying  to Extract data from APO Demand Planning Cube to BW.
    In BW how to extract data for Specified Date.
    To extract specified current month plus -4 months and +4 months of data per extraction.
    Do I have to write routine at infopackage level for calculating specified period.
    Please help to solve this.
    Thanks in advance

    hi Brinda,
    take a look sample code if you use routine
    routine as selection in infopackage
    Dynamic selection
    abap routine
    hope this helps.

  • Selection field not coming at Infopackage level

    Hi All,
    I am facing a strange problem.There is one field which is marked for selection at the datasource level.In the R/3 side we are getting that field as selection if we go for t-code RSA3.
    But in the BW system when we create an Info-package we do not get the same field under Data selection tab.We have tried to change the data type of that field and replicated the datasource but still it didnt worked.
    Please suggest on this issue as it a very high priority issue for us.
    Thanks in advance.
    Regards,
    Kshitij

    Hi Naveen,
    1) This is not a standard datasource.
    2) In RSA2 that field is marked for selection and it is showing for selection if we go for RSA3.
    3) Could you please elobrate more on what do you mean by 'attribute column'.???
    In R/3 system we have the same field for selection ( this field is related to 'no of days'=zdays[info object name]) but at Info package level in BW system it does not appear for selection.
    If you have time can we call you.Please pass on your number to me.
    Regards,
    Kshitij

  • Data Source Error in infopackage level

    HI experts,
    Please guide me to resolving this issues.
    When I am trying to load CSV dta through infopackage and when i clicked preview button , it is throwing an error.
    Error : Data source DS_PROFIT not available in source system of Avtive Version A.
    This data source created by me.
    Please help me.
    Regards,
    subhendu

    pls activate your data source first then try to preview the data...........
    Edited by: JAIGUPTA on Jan 12, 2012 10:16 PM

  • Data selection at InfoPackage Level

    HI Experts,
    This is related to 0vendor.
    0vendor is 10 digits in BI.
    At the ECC side, there are some vendors with 7 digits (e.g 1834710).
    When i pull vendor's using a IP into BI, I miss these records.
    To pull these records, I need to Manually put the Selections at the IP by making them 10 digits (e.g 0001834710).
    What can be done to avoid this selection.
    Please Help.
    Thanks,
    Max.

    Hi,
    You need to use the conversion for this.
    Use this piece of code in your infopackage routine.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = value_without_zeroes
          IMPORTING
            OUTPUT =value_with_leading_zeroes.
    This conversion exit will automatically add leading zeroes to the value as per the length of the object.
    Regards,
    Joe

  • Datatargets not finding in infopackage level.

    hi ,
        i can see the datatargets in infopackage but in processing tab i cant find psa and datatargets parallel.so please give solution for this.

    Please make sure that the transfer rules are set to "PSA" and not "IDOC". (R/3 to BIW)
    Also, are you going from 1 BIW target to another? If so, you need to do some data mart setup. (BIW to BIW)
    Cheers!
    /smw

  • Infopackage-Load Many Files from Application Server and later Archive/Move

    Hi All..
      I have a doubt,   I have a requirement of take many files to load into BI 7.0..  I used the infopackage before with option:
    Load Binary File From Application server
      I load information successfully... only with one file ...but If I can load many files (with different names) like the next list.. I think it's not a good idea modify the file name (path) on infopackage each time).. :
    *All of this files will be on one server that itu2019s map into AL11.. Like
    Infopfw
    BW_LOAD_20090120.txt
    BW_LOAD_20090125.txt
    BW_LOAD_OTHER_1.txt
    u2026.
    Etc..
    This directory it's not in BW server.. It's other server..but I can load form this location (one file by one)
    Could you help me with this questions:
    -     How can I Use an infopackage with routine that take all the files..one by oneu2026 in order of creation dateu2026and load into Target? Is it possible?.. I have some knowledge of ABAP.. but I don´t know exactly how I can say to system this logicu2026
    -     In addition is it possible move this files to other locationu2026 like into Infopfwarchive u2026 just to have an history of files loaded.
    I saw that in infopackage you have an option to create a routine.. in ABAP codeu2026 Iu2019m a little bit confused because I donu2019t  know how I can specify all the path..
    I try with:
    Infopfw
    InfopfwFile.csv
    Infopfw
    This is the abap code that automatically you see and you need to modifyu2026
    Create a routine for file name
    This routine will be called by the adapter,
    when the infopackage is executed.
              p_filename =
              p_subrc = 0.
    Thank you for your ideas or recommendations.
    Al

    Hi Reddy, thank you for your answer
    I have some doubuts.. when you explain me the option:
    All the above files are appending dates at the end of the file....
    You can load the files through infopackage by using Routines and pick the files based on date at the end of the file..***
    I need to ask you if you think that when you know the date of the file and the infopackage pick each file... thi can work for many files??... or how it's possible control this process?
    About this option, I want to ask you If when you menction Unix code... where it's programed this code?.. in the routine of BW Infopackage??
    ****Or
    Create two folders in your BW in Application server level, in AL11 (ask Basis team)
    I call it is F1 and F2 folders.
    First dump the files into F1 I assume that the file name in F1 is "BW_LOAD_20090120.txt", using Unix code you rename the file and then keep in the same foleder F1 or move to F2.
    Then create InfoPackage and fix the file name (i.e. you renamed), so you don't need to change everyday your file name at infopackage level.Because in AL11 everyday the file are overwrite.
    To I get BW_LOAD_20090120.txt file in F1, then I renamed to BW_LOAD.txt and loaded into BW, then tomorrow I get BW_LOAD_20090125.txt in F1, then I renamed to BW_LOAD.txt....
    so in this way it will work.You need to schedule the Ubix script in AL11.
    This is the way how to handle the application server...I'm using the same logic.
    Thank you soo much.
    Al

  • Routine for multiple selection in infopackage???

    hello guys
    I thought of creating one routine for Multiple selections aT Infopackage level....in Selections screen in infopackage,I found one option 'Use Conversion routine' with a check box and it is inactive.....Is it here I need to write my routine inorder to get multiple selection for a infoobject....or is it somehwhere else?How to activate thisoption?
    Thanks,
    Regards,
    S

    Hi,
    Conversion routines are used in the BI system so that the characteristic values (key) of an InfoObject can be displayed or used in a different format to how they are stored in the database. They can also be stored in the database in a different format to how they are in their original form, and supposedly different values can be consolidated into one.
    This will be there at info object level.
    Eg : ALPHA: Fills purely numeric fields from the left with zeroes (0).
    For multiple selections at info package , in data selection tab under type , u need to select 6 and write the code to select the value.When info package runs it takes the value from routine dynamically and extracts the data based on selection.
    Eg: There is a field FISCAL PERIOD For data selection, if u write the code to select current fiscal period. then whenever info package runs it extracts the data for current fiscal period from data source to PSA.
    Thanks,
    Joseph.

  • Data selection in infopackage to exclude 3 values

    Hi,
    I want to exclude 3 values for ZCOUNTRY field in the data selection of an infopackage. I don't want to do this using start routine(in transfer structure or update rules). I just need to do the coding in infopackage level. Can anybody plz tell me the ABAP coding for this in detail?
    Thanks,
    Chandan

    Hi,
    correct, but once you have defined an ABAP routine in your IPack for the country (select type 6 "ABAP" in the IPack selection of the country) why not to exclude the countries directly?
    I've never had this req but the hereunder should work (it should exclude countries US and CA from the selection)
    data: wa_range LIKE rssdlrange.
    READ TABLE l_t_range with key fieldname = 'COUNTRY'.
    MOVE l_t_range-iobjnm TO wa_range-iobjnm.
    MOVE l_t_range-fieldname TO wa_range-fieldname .
    MOVE 'E' TO wa_range-sign.
    MOVE 'EQ'    TO wa_range-option.
    MOVE 'US' TO wa_range-low.
    CLEAR l_t_range-high.
    APPEND wa_range TO l_t_range.
    MOVE 'CA' TO wa_range-low.
    APPEND wa_range TO l_t_range.
    p_subrc = 0.
    hope this helps...
    Olivier.

  • 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.

Maybe you are looking for