PSA Data in Update Rules

I want to get at some data in the PSA table from within an update rule.
Can anybody tell me how I can access the current request that is being loaded?
The communication structure does not contain the request and it is possible that the data I want was in more than one request.

hi Stuart,
it's good you gave us the 'whole picture', now we understand it's dealing with crm complaints data, my suggestion is fill the header status for item data in crm side (see my reply in your previous posting). there i gave you an overview logic, will need go to system for the details - field name of header status data etc, i guess the table is crmd_orderadm_h for header and using header guid (guid) should get it done - meanwhile perhaps somebody with crm system will help.
hi Stuart, i was late again, after post the above message, i saw your last reply. still i think better you do it in crm side, i believe later your user will ask for new information that not exist in business content, by that time you have to enhance datasource.
Message was edited by: A.H.P

Similar Messages

  • Access master data in update rules

    Hi,
    I try to calculate a weight in my update rules. Therefore I need the product weight and the number of peaces. I try to read the product weight from master data. The problem is, that it always calculates zero as the result. Is it possible to read master data in update rules?
    If I try to calculate the weight in the transfer rules, I get the message in the monitor, that the transfer rules don't finish. Do you have an idea what to do?
    Regards,
    Gabi

    Hi Robert,
    here is my code in the update rule.
    fill the internal table "MONITOR", to make monitor entries
      DATA: l_s_errorlog TYPE RSMONITOR.
      data: temp_prod_weight type /BIC/PZL2_P_ID.
    general values
      RESULT = COMM_STRUCTURE-/BIC/ZL2_POTMW.   "weight
      UNIT = COMM_STRUCTURE-UNIT_OF_WT.
      RETURNCODE = 0.
      ABORT = 0.
    calculate weight from master data, if it is zero
      IF COMM_STRUCTURE-/BIC/ZL2_POTMW = 0
      or COMM_STRUCTURE-/BIC/ZL2_POTMW = '0'
      or COMM_STRUCTURE-/BIC/ZL2_POTMW is initial.
        select single /BIC/ZL2_NETW UNIT_OF_WT
        from /BIC/PZL2_P_ID
        into corresponding fields of temp_prod_weight
        where /BIC/ZL2_P_ID = COMM_STRUCTURE-/BIC/ZL2_P_ID
        and objvers = 'A'.
        if sy-subrc <> 0.
          l_s_errorlog-MSGTY = 'I'.
          append l_s_errorlog to MONITOR.
          RESULT = 0.
    abort, if calculation is not possible
          ABORT = 1.
        else.
          RESULT = temp_prod_weight-/BIC/ZL2_NETW
    COMM_STRUCTURE-/BIC/ZL2_POTMQ.
          UNIT = temp_prod_weight-UNIT_OF_WT.
        endif.
    ENDIF.
    convert unit
      CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
        EXPORTING
          INPUT                      = RESULT
        NO_TYPE_CHECK              = 'X'
        ROUND_SIGN                 = ' '
          UNIT_IN                    = COMM_STRUCTURE-UNIT_OF_WT
          UNIT_OUT                   = 'KG'
        IMPORTING
        ADD_CONST                  =
        DECIMALS                   =
        DENOMINATOR                =
        NUMERATOR                  =
          OUTPUT                     = RESULT
        EXCEPTIONS
          CONVERSION_NOT_FOUND       = 1
          DIVISION_BY_ZERO           = 2
          INPUT_INVALID              = 3
          OUTPUT_INVALID             = 4
          OVERFLOW                   = 5
          TYPE_INVALID               = 6
          UNITS_MISSING              = 7
          UNIT_IN_NOT_FOUND          = 8
          UNIT_OUT_NOT_FOUND         = 9
          OTHERS                     = 10
      IF SY-SUBRC <> 0.
        l_s_errorlog-MSGTY = 'I'.
        append l_s_errorlog to MONITOR.
        UNIT = COMM_STRUCTURE-UNIT_OF_WT.
        RESULT = COMM_STRUCTURE-/BIC/ZL2_POTMW.
      ELSE.
        UNIT = 'KG'.
      ENDIF.
    I'm loading via PSA, but I have problems to debug the code. If I set a break point in my code (command break-point), I can't stop at it.
    Thanks,
    Gabi

  • How to look up master data in update rule

    Hi Friends,
    I want to Fill a characteristic of an info cube using the attribute value in a master data in Update rule.
    Eg: I want to fill a field in cube 0PM_C01 that is got from Master data 0PM_ORDER. I have to do this in upate rule. Can anyone help me.
    Joe

    Eugene, Atlaj
    Your answers were very useful.
    Eugene as you said,
    I read the link you mentioned and I can use code
    like this
    DATA: mat LIKE /BI0/PMATERIAL-MATERIAL.
    SELECT SINGLE MATERIAL FROM /BI0/PMATERIAL INTO mat
    WHERE EANUPC = COMM_STRUCTURE-EANUPC AND OBJVERS = 'A'.
    IF SY-SUBRC = 0.
    RESULT = mat.
    RETURNCODE = 0.
    ELSE.
    RETURNCODE = 8.
    ENDIF.
    But for each record of comm structure the selection quer y will touch the Data base. As Atlaj said, can I fill the internal table in the start routine and look it up in the update rules. I think the performance willbe increased. Could you give me code sample or link?
    Thanks in ADV
    Joe

  • Extraction time while updating the data from update rule

    Hello Friends,
    Can you please tell me that why it is taking more time while updating the data from update rule to data target.
    I believe that it is taking 40% of total extraction time.
    Is there any specific reason for it?
    Prompt reply will be appreciated.
    Regards,

    hi,
    check if you have complex transformation in that update rules, like calculation, read from other tables, etc.
    take a look 'bw loading performance and analysis' doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
    and bi performance tuning knowledge center
    Business Intelligence Performance Tuning [original link is broken]
    there e-learning for bw performance
    hope this helps.

  • R/3 extraction - Missing Messages:No data from Update rules

    Hi SAP Gurus,
                  I'm into the process of R/3 extraction into BW for 0PUR_O01 . The Datasource we r using is 2LIS_02_ITM. The Sceduled infopackage still runs for over 12 hrs. We are getting the typical Missing Messages error. Its in the yellow status with one out of 3 data packets showing Everythin OK.While the other two are "Warning Received".
    PSA and Transfer rules have all the records . But Update rules show 11339 --> 0 records. Please suggest what has to be done to move forward. We have checked and there is no dump in ST22. Also its shows 11339 to 0 in start routine of Update rules. I m giving out all possible hints so that it might help giving in a wide variety of suggestions . Please do suggest a way forward.

    Hi,
    Try if this works for you.
    In this case you can execute the LUWs to get the missing data into BW. Here is the procedure.
    1. Go to manage data target  Monitor OR directly go to Monitor for request that failed
    2. Select: Environment  Transact RFC  In the Data Warehouse
    3. Enter the selection criteria Date and User TCODE and execute
    4. Select EDIT  Execute LUW
    This will restart the loading process only for the data package that failed because of space issues or some server problems thereby avoiding the necessity of reloading the entire request.
    Hope this info helps you.
    Regards,
    Yogesh

  • About data transfer/update rules setup

    Hi All,
    After this BW loading project, I am wondering if anyone can confirm with my issues.
    --What is the difference between'initail load & full load'? Examples to use them, please.
    --If i use V3 to update, can I choose weekly? some expert told me that i can change the setting in OMO1 after first time loading. I tried it and it didn't work. Why???
    --If we loaded into ODS and re-loaded to Cube, should I have the same loading schedules(update rules) for ODS and Cube?? (ex: both full load and weekly)?
    --The update rule in OMO1 is for transfer datasource to BW and is nothing about ODS and CUBE loading, Am I right?
    --Should I have the same keys for ODS and Cube?
    --How can system not replicate loading? EX: every month sales order loading.
    Thank you for helping me to understanding data loading in BW.

    Hi John,
    Here are the answer
    --What is the difference between'initail load & full load'?
    Ans:-Initial load means initialization which is one time activity if you do not provide any selection criteria while initialization ( this will take your all data to BW depends on extractor you are using ) once that is successful you need to switch your load to delta when you do this only records which are changed will be fetched.
    Full load means al records will be fetched and will be aggregated whether you should go for initialization or full load depends on your data requirement.
    --If i use V3 to update, can I choose weekly? some expert told me that i can change the setting in OMO1 after first time loading. I tried it and it didn't work. Why???
    Ans :--> I think if you are using Lo then you can change this in LBWE job control . OMO1 is if you are using LIS and you want to switch your update in LIS delta tables then the procedure is to go in LBW0 first deactivate your delta mechanism by putting your infostructure name then go to OMO1 and change your control parameter to schedule your delta mechanism on.
    --If we loaded into ODS and re-loaded to Cube, should I have the same loading schedules(update rules) for ODS and Cube?? (ex: both full load and weekly)?
    Ans:--> Not compulsory but good to have same schedule I mean as soon as ODS is loaded successfully start the load for cube.
    --The update rule in OMO1 is for transfer datasource to BW and is nothing about ODS and CUBE loading, Am I right?
    Ans -->yes you are right but let me make some correction
    in OMO1  update parameters are for switching of delta tables of LIS .
    --Should I have the same keys for ODS and Cube?
    Ans--> Not compulsory depends on your business logic.
    --How can system not replicate loading? EX: every month sales order loading.
    Ans--> question not clear for me.
    Hope this will help you .
    Suneel

  • Loading time-dependent master data using update rules/transformations

    Hi
    I am trying to load time-dependent master data to an infoobject. It seems that I get an error message on duplicate records if I use a transformation or update rule. Does this only work with direct update ?

    In the DTP you have the option to ignore duplicate records....
    Just select that and then load data...

  • 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

  • For 0PS_C02  cube  Project System - Dates update rules not activated!!

    Hi All,
    When we are trying to install update rules from the BI content for PS module  for the cube "0PS_C02  Project System - Dates",  the
    update rules are not activating. under the cube when BI content activation. What is the issue in activating the update rules from BI content. From BI content the available version objects only will be activated i think. Please rectify and resolve the same at the earliest friends.
    thanks,
    Sakali

    Hi,
    Try to activate through program RSAU_UPDR_REACTIVATE_ALL.

  • Master data attributes declaration in update rules

    Hi Everyone,
    can any one tell me, How do we use attributes of master data in update rules..need syntax for using attributes of customer.... like comm_structure-/bic/......etc
    post code is attribute of customer, How do I use it in update rule
    thanks
    Siri

    Hi!
    if you have customer as attribute in your Infosource and Postcode as acharecteristic in your data target then you just need to select ther 3rd type of update rule "MAster data attribute of" and specifxy 0Cusotomer beside
    with regards
    ashwin

  • Psa data error

    hi
    while trying to load data to infocube ..i am getting errors .it is showing errors in PSA “ undefined characteristics found for the characteristic 0incoterms.”.it is entered as hamm.
    in place of hammenburg. how to correct the record.
    not only hamm all the characteristics in 0incoterm are found error.
    it is giving the message”hexadecimal characteristic found in the 0incoterm field”..
    please tell the solution

    Hi,
    There are 2 basic solutions
    1. In the maintenance screen of the infoobject, click the checkbox for lower case letters
    2. using transaction RSKC you can enter the unpermitted characters.
    3. Also Unpermited char can be made permited by tcode RSRV
    4. you can correct the data manually in PSA or write logic to correct the data in update rule
    reward if you find it useful
    regards,
    Naveen

  • Types of update rules

    Hi experts,
    What are the types of update rules?
    Regards,
    Siva

    Hi......
    Yes either you can say what are the different update types.........that Praveen has already ansered..............or you can say.........
    You can say what are the diffrent types of update routines...then the answer is :
    1) Start Routine in Transfer Rules
    2) Transfer Routine in Transfer Rules.
    3)Start Routine in Update Rules
    4)Update Routine in Update Rules.
    The routines that you write in transfer rules are applicable to all the Data targets that get the data from that particular Infosource, when you are going to write some code in Transfer rules, you have to understand that you are going to manupilate the data that is going to get into BW .
    If you are going to write in Update Rules , then that logic is going to apply only for that particular Data target .
    Eg : Let suppose I have a Flat file that gets data from 3 countries, US, Canada and Mexico.
    Now I have prepared the data source for the same . But I dont want to have the data of Mexico in to BW itself.
    So I will write a Start routine at TR to eliminate the data of Mexico.
    My Next step is I want the data of US into one ODS and Canada data in to another ODS.
    For this I handle the dataflow at Start routine in Update rules, to eliminate Canada data for US ODS and Vice Versa.
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    Regards,
    Debjani...........

  • Start routine and update rules

    Hi,
    What is accessed first:-
    Start Routines or Update Rules?
    What is the use of global variables in start routine?
    Please reply.
    Thanks.

    Hi......
    You have different types of Routines in BW .
    1) Start Routine in Transfer Rules
    2) Transfer Routine in Transfer Rules.
    3)Start Routine in Update Rules
    4)Update Routine in Update Rules.
    The routines that you write in transfer rules are applicable to all the Data targets that get the data from that particular Infosource, when you are going to write some code in Transfer rules, you have to understand that you are going to manupilate the data that is going to get into BW .
    If you are going to write in Update Rules , then that logic is going to apply only for that particular Data target .
    Eg : Let suppose I have a Flat file that gets data from 3 countries, US, Canada and Mexico.
    Now I have prepared the data source for the same . But I dont want to have the data of Mexico in to BW itself.
    So I will write a Start routine at TR to eliminate the data of Mexico.
    My Next step is I want the data of US into one ODS and Canada data in to another ODS.
    For this I handle the dataflow at Start routine in Update rules, to eliminate Canada data for US ODS and Vice Versa.
    Global variables in Start routine
    You can have global variables, internal tables populated by the
    startup routine. This data will be available to the field
    routines. Create yourself a start routine, declare some
    variables in the global section, and then create a field
    routine. You will be able to use the globally declared objects
    in the field routine
    Please check below help link for routines in sap netweaver 2004s
    http://help.sap.com/saphelp_sem60/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/frameset.htm
    How to guide "How to transformations routines".Please check the below link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/dc1d9990-0201-0010-16aa-db3c4eb8b642
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    Hope this helps you..........
    Regards,
    Debjani.........
    Edited by: Debjani  Mukherjee on Oct 1, 2008 4:58 PM

  • SAP BW UPDATE RULE  ROUTINE

    Data is coming from one cube to another cube.
    How to restrict the data in update rule by using routine , which is not require in to another Cube.
    Thanks,
    Asit

    Hi Asit,
    You are on which system BW 3.5 or BW 7.0?
    If you are on BW 7.0, there are various way of doing this.
    1> Using DTP: If you have definite filter criteria while loading data from Infocube 1 and Infocube 2, you can use it in DTP.
    for eg. while doing data loads, exclude records where material group is blank. While creating DTP, you can specify required filter criteria.
    2> using start routine: You can use start routine as well to exclude all those records which you don't want to load to target infocube.
    For eg. Delete all records from source package where case ids are blank.
    use below statement to code it:
    Delete source_package where <fieldname> = <some values>.
    Regards,
    Nilima

  • How to access basic cube data as part of update rule routine?

    Dear colleagues:
    I am developing a routine as part of the update rule to define a characteristic value to feed an infocube. However, I need to peek up a data that is available on another infoprovider, in this case a basic cube.
    So far, I have done that by peeking up data form ODS as part of the update routine, but this is the first time I need to peek up a data from a basic cube.
    <b>Does that works the same way as ODS?</b>
    Best regards
    Waldemar

    Hi Krzysztof Konitz:
    I have posted an inquire about getting that from the PSA. By mistake I have posted that once before your reply and another after that. Then I red you reply.
    However, you replay solved the problem.
    Best regards
    Waldemar

Maybe you are looking for

  • COPA derivation rule for GL fields

    we are using Transaction type (BSEG_BEWAR) to store additional information for our Sales reporting. During the GL entry this field is update. I have created Derivation rule in COPA using table look up. The table I am using is BSEG. I have characteris

  • Is there a way to simulate a mouse click anywhere on a screen in Dictate ?

    I'm using Dictate because of hand problems. Unfortunately, it does not seem to have the ability as supplied to simulate mouse clicks anywhere on the screen as Dragon Naturally Speaking does on the Windows side.( I do not mean by this the ability to s

  • 10.0.10 Update and Facebook App

    I justed updated my OS to 10.0.10.90 via OTA/wifi and now my Facebook integration with the Hub is completely gone. It is no longer even in the settings for me to add it back. I've tried uninstalling it and reinstalling it to no avail. Did the usual b

  • Why do my banner ads look so crappy? (Illustrator)

    I've tried creating banner ads in Illustrator. They look great! But when I save them for web, they look awful. I've tried to create these ads several way. For example, let's say I'm making a 300x250 ad. Here are the ways I've done so: 1, make the doc

  • Ipod not charging or syncing

    My ipod touch 3rd gen 8gb is not charging or syncing to itunes.  ALL i get is a red battery when I plug it in and then the apple sign, but never charges or syncs.  What can I do and what is wrong with this?  thank you