Update rules of  infoobject ( Infopackage flexible)

Hello, my name is Arkaitz. I have a problem with a update rules of one infoobject. The <b>infopackage is flexible</b>. I use this routine but not charge the new record created.
$$ begin of routine - insert your code only below this line        -
DATA: l_s_datapak_line type TRANSFER_STRUCTURE,
       l_s_errorlog TYPE rssm_s_errorlog_int.
  data: i_tabla type table of TRANSFER_STRUCTURE with header line.
  data: i_record type i.
  loop at datapak into l_s_datapak_line.
      move-corresponding l_s_datapak_line to i_tabla.
      append i_tabla.
      clear i_tabla.
    if l_s_datapak_line-fikrs = 'JCYL'.
      move-corresponding l_s_datapak_line to i_tabla.
      i_tabla-fikrs = 'CONS'.
      append i_tabla.
      clear i_tabla.
    endif.
  endloop.
  refresh datapak.
  loop at i_tabla.
    move-corresponding i_tabla to l_s_datapak_line.
    append l_s_datapak_line to datapak.
  endloop.
abort <> 0 means skip whole data package !!!
  ABORT = 0.
$$ end of routine - insert your code only before this line         -

In start routine simple write:
delete data_package where 0REASON_REJ is not initial.
This will remove from load all rejected orders.
Hope it helps.
Regards

Similar Messages

  • Look up InfoObject's attributes in update rule

    Hello Gurus!!!
    I have an update rule that looks up for an InfoObject's attributes to update some fields of an InfoCube. Is there another way to do this look up than load all InfoObject attributes into an internal table from the start routine? I tried to read the attribute's table directly from the routine but it takes very very long time.
    Thanks for your help!!

    Hi:
    I think you made good progress with Viren's advice.
    Your statement looks fine. Now, I think you should play with some settings.
    1) Try reading a sebset without too many AND statements. I cannot tell you which ones are important.
    Look at it this way, if you get 1 million by htis complex Select, try to get 1.5 mil by simplifying the statement since you don't have memory problems anymore.
    If you are reading my Master Data table, why don't you read by KEY, Active Data and just one more FIELD (you pick the field which will give you least values).
    E.g.
    SELECT * FROM /bic/pzdocument
       INTO TABLE it_document
       FOR ALL ENTRIES IN DATA_PACKAGE
       WHERE
       /bic/zdocument = DATA_PACKAGE-ac_doc_no AND
       objvers = 'A' AND
       item_num = DATA_PACKAGE-item_num.
    Another one is that there is a good chance your DATA_PACKAGE-ac_doc_no  is there Multiple times. Now your Select Statement will read the DB table Multiple Times. So, you can do this:
    DATA_PACKAGE_1 like DATA_PACKAGE.
    DATA_PACKAGE_1 [] =DATA_PACKAGE [].
    DELETE ADJACENT DUPLICATES FROM DATA_PACKAGE_1
                 COMPARING ac_doc_no.
    Then, write your Code.
    SELECT * FROM /bic/pzdocument
       INTO TABLE it_document
       FOR ALL ENTRIES IN DATA_PACKAGE_1
       WHERE
       /bic/zdocument = DATA_PACKAGE_1-ac_doc_no AND
       objvers = 'A' AND
       item_num = DATA_PACKAGE_1-item_num.
    Its difficult to tell which one is more efficient. Your best bet is to spend soem time on these Codes and get the Statistics. Also, take an ABAPers help if available.
    Good luck,
    Forget: Its a good time now to play with your Laod Tansfer Settings (do it at the InfoPackage Level so that you don't change others' load)
    Go to InfoPackage, Sechduler from Menu, Data Transfer Settings for Max Size, no. of data packets.
    Ram C.
    Message was edited by:
            Ram Chamarty

  • Infopackage name in update rule

    Hi everyone,
    is there a way within an update rule start routine to find out the technical name of an infopackage where a load originated, maybe via the request number?
    Thanks for your ideas,
    Tilman

    Hi,
    try table rsreqdone.
    regards
    Siggi

  • Infopackage details in Update Rules

    Hi All.
    I need the InfoPackage name of a data mart in the update rules of the cube being updated by this data mart. There are two InfoPackages for this data mart, both updating the same cube. Depending on which one is being executed, different code will be executed in the update rules of the cube. In the transfer rules the InfoPackage name is available, but not in the update rules as far as I can see.
    Can anybody please help?
    Regards,
    Johan Loock

    Hi Sri,
    Have you tried searching the forum... I think there was a discussion on this not very long ago.
    This is the one I was talking about:
    Re: Update Rule
    Not exactly your scenario, but reading through it may help you.
    Message was edited by: Bhanu Gupta

  • Problem with routine and it's infoobject (update rules)

    In Metadata Repository my comm structure doesn't have an infoobject that is there in Adm. Workbench. That infoobject was included in a routine in update rules for other infoobject that was removed from the cube. In Metadata Repository the routine is still present in update rules, but not in Adm. Workbench. That makes me unable to remove it from the comm structure and of course delete the object.
    How can I remove this routine? How can I make changes in Metadata?
    BD - TRules - URules - Cube
    A(numc) - A(numc) - B[routine converting A(numc to date)] - B

    Jerry,
    I had two objects:
    ZDWIP_AUX is in comm structure and datasources
    ZDWIP_REM is in Cube and Update Rules (the routine mentioned ZDWIP_AUX)
    I deleted ZDWIP_REM from the cube and from catalogue.
    Automatically removed in update rules.
    ZDWIP_AUX is unmovable from comm structure and can't be deleted because it says that is in use by a routine that I can't see.
    By recreating IObject do you mean, recreate all the scenario and remove in a different, like first the clean the recreated routine?!

  • Authorization Check for Update Rules Modify during Scheduling of InfoPackag

    Hello Everyone....
    We have recently upgraded our Testing Environment to NW2004s SP10, and the system is currently Non-Changeable and all the other changes have been brought in via transports.
    After SGEN has completed, when I try to open up an existing InfoPackage and click on the "Start" button it gives me the "You have only authorization to display the "InfoProvider" name".
    If it is the load into DSO it complains about Activity 23 not available for the Subobject UPDATERULE of the object S_RS_ODS and if it is an InfoCube it complains about Activity 23 again for the Subobject UPDATERULE of the object S_RS_ICUBE.
    Which doesn't really make sense as the Activity 23 would allow the change to the Update Rules for the InfoProviders.
    Please advice if there is any other Role or Profile which needs to be maintained or a system setting to avoid this Auth Check.
    Also, the same when repeated in the Development environment shows the message "Generating the Update Program" in the status bar below and once that has completed, the extract works fine.
    Please advice......
    Any help would be really appreciated as we are kind of stuck on this issue.
    Thanks
    Dharma.

    Hi,
    You should use transaction ST01 then you can see the objects asked for with the value needed. Also transaction SU53 gives you information about the object you want to use. The new transaction RSECADMIN with the tab analyses gives you information that is not in SU53 and releated to the data selection. If it is an analyses authorization problem add authorization object 0BI_ALL to a role in the autorisation object S_RS_AUTH. I think you can get the information you need this way.
    Bye Jan

  • Can't see Update rules and infopackage in the transport connection

    Hello, experts!
    I need to transport newly created (and activated) update rules and infopackage from Dev to QA environment.  When I open transport connection and select infosource, I don't see new update rules and infopackage.  There are few update rules for different source systems in this infosource and I can see all of them in the transport connection except for this new one.
    Your help is appreciated.
    Thanks, Alina.

    in Transport connection please select ur higher level Object say Infocube...and collect data flow before then you will ur Update rules and IP

  • What is the Relationship between Update Rule and Infopackage/Transfer Rules

    Hello Experts,
    can you help explain these scenarios to me:
    What is the relationship between update rules and infopackges?
    What is the relationship between transfer rules and infopackges?
    What is the relationship between update rules and transfer rules?

    Hello,
    Info-packages trigger the data load into BW system from the source system. An info-package is created for a specific data source and info source combination.
    1) When you trigger the info-package it sends an request to the source system to start the extraction process and this corresponds to the step "Data Request Received" in monitor under details tab. It is the first step.
    2) Then the selections specified in the info-package are transferred to the source system to select the requested data from BW system. Then it is sent back to BW system.
    3) Once it reach BW, it gets into the PSA and then it gets updated into the data target (depends on what settings are made in IP). No rules (Transfer rules / update rules) comes into picture when data is stored in PSA. Only the transfer structure is used to map the BW info-objects with the source system fields.
    4) After data is stored into PSA, the update into the data targets begins. First the transfer rules are applied -> data then flows through the communication structure -> update rules are applied and finally the records gets updated into the data target. 
    The extraction flow is: -
    Source System (DS) -> PSA -> Transfer Rules -> Communication Structure -> Update Rules -> Data target.
    Info-package actually triggers the whole data flow in BW system.
    Hope it gives you a clear picture.
    Thx,
    Soumya

  • Fields missing in Update rules

    I am creating snap shot DSO for inventory management and after that i created the update rules for it linking it to the info source 2LIS_03_BX. When i do this i am missing the info objects that i created to include in the DSO. How do i solve this issue as those info objects are very important and i have to create the routines for it.
    I have got the units for those fields and they are mapped but the info objects itself are missing.
    Thanks for any help in advance
    Naveen

    HI Naveen,
    Yes, you can include the missing infoobject in DSO. for that you need to follow bellow steps:
    a). Delete the data from DSO.
    b). you have to include the infoobject in DSO.
          Double click on  DSO>select chage mode->select keyfield /data field node--->right click select Infoobject Direct Input.
    c). Activate the DSO
    Brief Description about 2LIS_03_BX :
    The 2LIS_03_BX is used to extract an opening stock balance on a detailed level (material, plant, storage location and so on). At this moment, the opening stock is the operative stock in the source system. "At this moment" is the point in time at which the statistical setup ran for infosource 2LIS_03_BX.Loading the opening stock balance InfoSource 2LIS_03_BX into data target.In the InfoPackage, choose the upload mode u201CCreate opening balanceu201D.
    Regards,
    Suman.

  • Error while transporting update rule.

    Hi experts
    I am trying to transport one update rule to production..
    But it is ending with error code 8 n it is giving me following error :
          Errors when activating update rule XXX
          IC=0PP_DS03 IS=0CO_OM_OPA_6 error when checking update rules
    Kindly tell me what need to be done now.
    Regards
    Swati

    Hi  Swati,
    Before transporting the update rule, in the present scenario, you have to transport the infosource which contains the corresponding "0recordmode".
    Whenever you transport anything into the quality or production, the list should be as followed in the given manner : 
    Seq No     Objects in Request
    1     Package(DEVC), InfoArea(AREA), Application Component(APCO)
    2     Function Modules
    3     Keyfigure Catalog(IOBC), Keyfigures(IOBJ), Units(IOBJ)
    4     Characteristic Catalog(IOBC), Characteristic Infoobjects(IOBJ)
    5     Infosources (ISCS, ISTD, ISMP, ISTS, ISFS, ROUT) and
                    Generic Data Sources(DataSrce Active Version(OSOA), ISMP, ISTS,DataSourceReplica (ISFS) 
                    and Tables (TABL)
    6     Infoproviders(ODS(ODSO), Cube(CUBE), Infoset(ISET))
    7     Update Rules(UPDR, ROUT)
    8     Infopackages(ISIP)
    9     Queries(ELEM)
    10     Webtemplates(TMPL, BLTM, BPTM)
    Just transport all your things in the above sequence, and it will be done successfully.
    Also, remember  there should not be any data in the corresponding infoprovider while you transfer the update rule, else it will fail.
    Hope it helps,
    Regards,
    Neha.

  • Why data in PSA doesn't  change when update rule routine is modified?

    Hello guys,
    why data in PSA is not changed after I modifiied the update rule routine. I created a infopackage which is only to PSA, but it shows me any change. If I changed this infopackage to the one which is assigned to "PSA firstly, and then to Infoobject", then I saw the changes in infoobject, but in PSA, still nothing changed.
    I can't figure out the reason. Any hint is welcome!
    Thanks in advance.
    Regards,
    Liying

    HI..
    1) PSA data is like of source system data
    2)Update rules are how you update your keyfigures to Data Tragets.
    Since you have put upto PSA that is the first data staging in BW so there wont be any change of the data even if you write routines at update rules.
    Hope it is clear
    Reg
    Ram

  • Table name to know the infoobject is flexible or direct.

    Hi,
      Please let me know the table name where we can know whether the infoobject is flexible or direct update.
    Thanks in advance!
    Best regards.

    In RSD1 check if the IO is also InfoProvider or not: if it is it can support also flexible update, othervise not.
    For the InfoSource it is better to right mouse click on it and then show data flow to check if there are Update Rules on it. But it is all related to Flag in Master Data Settings of the IO.
    Also have a look at this:
    http://help.sap.com/saphelp_nw04/helpdata/en/86/cade377806e664e10000009b38f842/frameset.htm
    Hope it helps.
    Regards.

  • Infosource & Update Rules puzzle

    Hi Experts,
    I was told that Direct Infosource does not have Update Rules tied to it to update Master data. How true is it? When I update master data, I had generated update rule on the master data object. So, is the 1st statement correct?
    Flexible Infosource can contain master and transaction data. Does this mean I can load in one-shot, master and transaction data into the 1 Infosource for both data. That is, same Infosource. And then use update rules (1 per data target) to update the data targets of either cube or master data table? Or is it that u must use 2 infosource?
    Are there only 3 types of transfer rules that can be used per infoobject in the communication structure? What about formula, is it considered one of the types?
    regards,
    bworbust

    bworbust,
    1. you must have created a flexible infosource for your master data - direct ones do not have update rules.
    2. to my understanding, yes, but i believe it is more common to use one infosource updating multiple "recipients", with update rules for each.
    3. well, there are supposed to be 4 for each item in the transfer structure - read this one:
    http://help.sap.com/saphelp_bw33/helpdata/en/80/1a62bfe07211d2acb80000e829fbfe/content.htm
    hopefully this helped, though i might have been vague on these. sorry.
    ryan.

  • Transport Failure - (Infocubes & Update Rules collection)

    Hi SDners,
    While i transporting the Request (which contain Infocubes and relevant update rules only)from develpment system to quality, the request was failed due to following Errors given below.
    Start of the after-import method RS_CUBE_AFTER_IMPORT for object type(s) CUBE (Activation Mode)                
    Error/warning in dict. activator, detailed log    > Detail                                                     
    /BIC/L100146 (specify a primary key)                                                                           
    Table /BIC/L100146 could not be activated                                                                      
    Return code..............: 8                                                                               
    DDIC Object TABL /BIC/L100146 has not been activated                                                           
    Error when activating InfoCube 100146                                                                          
    Error/warning in dict. activator, detailed log    > Detail                                                     
    /BIC/L100146 (specify a primary key)                                                                           
    Table /BIC/L100146 could not be activated                                                                      
    Return code..............: 8                                                                               
    DDIC Object TABL /BIC/L100146 has not been activated                                                           
    Error when activating InfoCube 100146                                                                          
    Error/warning in dict. activator, detailed log    > Detail                                                     
    /BIC/V1001042-0NETPRICE (combination reference table/field /BIC/V1001042-0LOC_CURRCY does not exist)           
    /BIC/V100104H-0NETPRICE (combination reference table/field /BIC/V100104H-0LOC_CURRCY does not exist)           
    /BIC/V100104I-NETPRICE (combination reference table/field /BIC/V100104I-LOC_CURRCY does not exist)             
    /BIC/V100104J-0NETPRICE (combination reference table/field /BIC/V100104J-0LOC_CURRCY does not exist)           
    /BIC/V100104M-0NETPRICE (combination reference table/field /BIC/V100104M-0LOC_CURRCY does not exist)           
    /BIC/V100104T-NETPRICE (combination reference table/field /BIC/V100104T-LOC_CURRCY does not exist)             
    Table /BIC/V1001042 could not be activated                                                                     
    Table /BIC/V100104H could not be activated                                                                     
    Table /BIC/V100104I could not be activated                                                                     
    Table /BIC/V100104J could not be activated                                                                     
    Table /BIC/V100104M could not be activated                                                                     
    Table /BIC/V100104T could not be activated                                                                     
    Return code..............: 8                                                                               
    DDIC Object TABL /BIC/V100104T has not been activated                                                          
    Error when activating InfoCube 100104                   
    Can any one suggest the solution.
    Thanks,
    Satya
    Edited by: satya prasad on Jan 15, 2010 11:48 AM

    Hi,
    Create two transport requests -
    TR1) Collect the InfoObjects (If newly creted or activated from the Business Content), InfoProviders and the Queries if created.
    TR2) Collect the Datasource, Infopackages, Transfer Rules, InfoSources, Update Rules, Transformations and DTPs
    Transport TR1 followed by TR2.
    Regards,
    Geeta

  • Problem when creating update rules

    Hi Friends..
                I'm actually having a problem when I'm creating update rules from my cube to my Infosource. This infosource is created by Dierct update of Master data (ZXXXX) Infoobject. the error which is popping up is ,
    Data source ZMMOBJ1 not maintained (check your entries)
    Message no. RSAU252
    Diagnosis
    The data source is not active
    Can some one guide me, How I can resolve this error.??
    and where the problem must have been??
    Thanks alot in advance,

    Hi,
    Check the infosource you are using for the cube. you cant use direct update infosource.
    'Direct update of master data' infosource updates into the infoobject.
    you will not have update rules for this direct update.
    you use update rules only when you use flexible update infosource.
    hope its clear.
    shylaja.

Maybe you are looking for