Read attribute value of a master data object's master data object

Hi Guys,
I have a peculiar condition where I need to read attribute value of a master data object's master data.
Requisition (ZREQUI) is linked to Candidacy (ZCDCY) by object called Recquisition.
Candidacy  (ZCDCY) is linked to Candidacy Activity (0CDCY_ACT) by object called Candidacy.
I want to populate attribute called due date in ZREQUI by reading lowest value of due date value of 0CDCY_ACT. There can be multiple hits.
If I can get the code to do this, I would really appreciate it.

Here is the outline of the code ,as per my understanding..chk if it can help u
In start routine write a select statement to pick all the data from 0cdcy_act.
select 0CDcY_ACT ZCDCY  DuE_DATE from /BiC/P0CDCY_ACT
into table itab1
for all entries in source_package
where ZCDCY = source_package-ZCDCY.
as you need the lowest due date, sort the iTAB1
sort itab1 by due_date  ZCDCY.   (default is acending order)
In the field routine of your due date
Read table itab1tnto wa_itab1 where
ZCDCy = source_fields -ZcDcY.
now duedate = wa_itab1-duedate.

Similar Messages

  • Issues In Reading Attribute Values From Master Data

    Hi All,
    I have a requirement where, i need to read an attribute value from master data. I have a characteristic YCSTATMCG (AT Cost Group Code) which is the master data from where i have to read the attribute, 0PROFIT_CTR (Profit Center). The attribute thus read, has to be populated into another characteristic, YPROFIT_C.  But YCSTATMCG referes to another characteristic, YCSTCG. Here is the FOX Code I wrote with YPROFIT_C as the changing characteristic and 0AMOUNT as keyfigure.
    DATA V_ATCP TYPE YCSTATMCG.
    DATA V_PROFIT TYPE YPROFIT_C.
    DATA V_PROFITC TYPE YPROFIT_C.
    DATA V_AMOUNT TYPE F.
    V_ATCP = OBJV().
    MESSAGE I020(YCO_CFT) WITH V_ATCP.
    V_AMOUNT = {0AMOUNT,  # }.
    V_PROFIT = ATRV('0PROFIT_CTR' , V_ATCP).
    MESSAGE I020(YCO_CFT) WITH V_PROFIT.
    {0AMOUNT, V_PROFIT} = V_AMOUNT.
    But this is not working. The ATRV() function is not reading the attribute values at all. Any solutions and suggestions is highly valued.
    Thanks in advance
    Swaroop

    Hi,
    even i have the same situation.
    i just want the attribute value of a char to be populated into another characteristic in the planning query.
    my question is whether i should populate the keyfigure field also in the FOX code.
    if so should i populate both 0amount and 0quantity fields as i have 2 keyfigure fields.
    Thanks for your help
    Nishanth

  • Function Module to Read attributes value from Classification tab

    Dear Experts ,
    We are using material classification in the material master. Under classification tab of material master , we are maintaining certain characteristics and their corresponding values.
    I want to read those values and use those in one of the report.
    Can you please help me in identifying Function Module which will return the values of all the attributes of that material.
    Thanks in advnce,
    Regards,
    Nikhil

    You can check those details using CT06 transaction.
    FM CLAF_CLASSIFICATION_OF_OBJECTS can be used to retrive the data using program.
        CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
          EXPORTING
            class              = gc_class
            classtext          = 'X'
            classtype          = gc_classtype
            clint              = gc_mmpsk
            features           = 'X'
            language           = sy-langu
            object             = l_object
            key_date           = sy-datum
            initial_charact    = 'X'
            change_service_clf = ' '
            inherited_char     = 'X'
          TABLES
            t_class            = lt_class
            t_objectdata       = lt_objectdata
          EXCEPTIONS
            no_classification  = 1
            no_classtypes      = 2
            invalid_class_type = 3
            OTHERS             = 4.

  • Not able to read attribute value

    Hello Experts.
    I have child WD component say u201CBu201D,  in this created node (Name : B) with one attribute (Name : Test) and selected as interface node.In this component I am setting the value for attribute (Name : Test).
    I have added above WD component u201CBu201D  in the parent WD Component u201CAu201D as Used Webdynpro Component. So I got node (Name : B)  in the component parent  Component u201CAu201D.
    When I am trying to read attribute (Name : Test) it is coming empty in Parent Component u201CAu201D.
    I have verified all the binding and basic things  everything looks fine but I am getting empty value in Parent Component u201CAu201D.
    Thanks in Advance.
    BR
    - CW

    I  want to access Attribute 'TEST 'of the Component B in Component A. Normally it should come if node is exposed as interface BUT It is not coming.
    Carlin,  you will get the TEST attributes value in Component 'A' only if the value for 'TEST' attribute is set in Component 'B'.
    in Component A, if you try to read the value of TEST attribute before its value been set in Component 'B' then you will get empty value only.
    in some way you need to tell the component 'B' to set the value for 'TEST' Attribute before accessing it in Component A.
    one way is to expose the SET_ATTRIBUTE method and calling the same from Component A
    another way is to embed the B's interface view into A's view and then explicitly clicking on the buttons in B's interface view.
    Unless the value is not set by Component B, if you it access in Component A, you will get initial value only.
    Hope its clear.
    BR,
    Saravanan

  • No Source Fields(But wants to read attributes of another master data infoob

    Hi
    Im planning to use the 2LIS_03_BF datasource. I have two master data infoobjects(0PRODVERS_ATTR, 0MAT_PLANT_ATTR).
    Im loading data from 2LIS_03_BF in DSO . But this datasource doesn't contains the source fields for master data infoobjects 0PRODVERS_ATTR, 0MAT_PLANT_ATTR.
    So hw can i read the attributes of these master data infoobjects. please let me know
    kumar

    Hi
    You can write a routine for this purpose we call it lookup in bw terms ie if the field isnt present in the source then you can take the values from the other targets may it be ods or master data and the selection is based on the keyfields in both the targets ie source field and the target from which the field has to be picked.
    lets say i want customer Number  from the MD Customer and i dont have customer number in the souce field so i will write a routine in the start routine to select customer number from customer master data put the field in the internal table and then write a update routine in the field customer number that reads the values into the work area from the internal table and then put the result in the result field from work area.
    below is the syntax.
    TYPES:BEGIN OF t_custnumber,
    ***declare the fields u will be using including the keyfileds in the souce**
    customer number type /bic/0customer number
    END OF t_custnumber.
    ........internal table to read data into......
    DATA : i_custnumber.TYPE STANDARD TABLE OF t_custnumber.
    work area to read data from internal table
    DATA : wa_custnumber   TYPE t_custnumber,
    select
    customer number
    x
    y
    from table customer
    into i_custnumber
    where
    x= x of data package ie below ods (source)
    y = y of data package ie below ods (source)
    The above routine comes in the start routine
    Now for the update routine
    read table i_custnumber into wa_custnumber with key
    x= x of comm_strucute ie below ods (source)
    y = y of comm_strucute ie below ods (source)
    Result =wa_custnumber-customer number
    in start routine the souce table is called as data package but in case of update routine the same souce table is termed as communication structure thus comm_strucuture.
    hope this is handy information assign points if applicable
    thanks
    puneet

  • No Master Data Attributes Value Loaded

    Hi
       I have a custom Master Data Info Object which gets it feed for a simple master data attribute data source.
        However none of the Master Data Attributes actually are populated though my request load is successful.
        I get 144913 records transferred but only 78596 added. Despite this I have not a single attributes value populated.
        Could the reason the data is dropping because I have 3 key fields in my datasource VIEW but only 1 Key defined in the Update Rule ? If yes, how can I change the Update Rule to include more Key Fields ?

    Hi Chris
    I request you to check the transforamtion between your data source and data target once again.
    When loading to data target, according to your transformation only the records will be updated to your data target. But all the records will get populated.
    Yes, Key fields are also one reason, if the duplicate rows being populated.
    Compare your data target data & RSA3 Extractor checker.Whether the duplicate records being added together or not
    Regards
    Saravanan.ar

  • Sort of attributes objects in master data

    Hi,
    I have a question regarding the attributes of master data info objects.
    What is the best way to sort the order of the info objects attributes?
    We want the order of the attributes will be set in our local language alphabetically,
    and not as a defualt language as set now in English.
    The order of the attributes as showen in the WEB (as set on local language) is not alphabetically.
    Thanks,
    Yossi

    I'm going to make some assumptions:
    1)     The Attribute key values are written in your language's Latin equivalents, but you want to sort them by your language's alphabetic order.
    2)     The Attributes have not text in your language
    Create a data source from your master data values into master data text, hard coding your language set. Set the Attributes in your query to display text, not key values.
    Good luck,
    John Hawk
    Phone: (408) 550-9484
    Mobile: (209) 324-0436
    http://www.linkedin.com/in/johnbhawk

  • How to convert  unit of measures in bex on master data attribute values

    Hi All,
    i need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'. this is attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight.
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there procedure in formula variable it self to convert unit of measure before replacing the values.....
    or is there any other  solution to  this Problem...
    Thanks in advance..
    regards
    ravi.p

    Hi
    Have you tried to create a variable for ths kf with exit. I thnk it is possible here
    Assign points if useful
    Regards
    N Ganesh

  • Assign Master data Attribute value to PARENTH1

    Dear All,
    I have the requirement to load Employee master data from BI to BPC system using data manager package.
    Dimension Name (BPC)            InfoObject  Name(BI)
    Employee                                      0EMPLOYEE
    In Employee master data there is an Attribute, now need to assign this Attribute value to PARENTH1 in BPC.
    Waiting for your valuable answers

    Hi Edwin,
    After making the changes as u suggested, i tried to activate the transfer rule, but Iam getting the following eerror msg
    Error generating program
    Message no. RSAR245
    Diagnosis
    An error occurred in the program generation:
    Program / Template:   RSTMPL80
    Error code / Action: 6
    Row:        6,083
    Message:    Statement is not accessible.
    Procedure
    If the problem occurred during the data load or transport, activate the transfer rule.
    If the problem persists, search in the SAP note system under 'RSAR 245'.
    How can Iresolve this?/ Why is this happening??
    DV
    Any Help???
    null

  • Which master data table to be used to get attribute value

    Hi all,
    I am writing  routine in update rule to get data for one master data attribute of master data 0customer.
    But I am cofused in choosing master data table to get data.
    There are two master data table in master data tab of  0customer characteristics.
    1. View of MstrDtaTbls  :-  /BI0/MCUSTOMER
    2. Master data tab          :-  /BI0/PCUSTOMER
    Suggest me which one to take .
    Although I have tried with 2 one and it is working fine.

    Hi,
    If the attribute is not time-dependent please use  /BI0/PCUSTOMER, else use /BIC/QRCOSTCTR.
    Just remember P table and Q table.
    Regards,
    Frank

  • Assign master data attribute value to Time Infoobject in Transfer Rule Rout

    Hi Experts,
    I want to assign value for Time Infoobject ZTIME from a Master data Infoobject's attr.  The value for this ZTIME exists as an attr of Infooject ZMMM. I want to do at Transfer Structure level so that the assigned value can be used for another calculation in the update rule..
    Any help on the routine is highly appreciated.
    Thanks,
    DV

    Hi Edwin,
    After making the changes as u suggested, i tried to activate the transfer rule, but Iam getting the following eerror msg
    Error generating program
    Message no. RSAR245
    Diagnosis
    An error occurred in the program generation:
    Program / Template:   RSTMPL80
    Error code / Action: 6
    Row:        6,083
    Message:    Statement is not accessible.
    Procedure
    If the problem occurred during the data load or transport, activate the transfer rule.
    If the problem persists, search in the SAP note system under 'RSAR 245'.
    How can Iresolve this?/ Why is this happening??
    DV
    Any Help???
    null

  • Info-object Maintenance -- Master Data/Texts Tab options

    Hello Bi Gurus,
    In BI 7.o:
    Path:
    Info-object Maintenance -->Master Data/Texts Tab -->Master Data infoSource/Data Taget/Infoprovider/Master Data Read Access.
    Scenario 1:
    1. Master Data Access - Own Implementation
       Name of Master Data Access -
    CL_RSMD_RS_SPEC     class for accessing generic Bw special info objects
    CL_RSR_XLS_TABF4     Table Master Data Read Class
    CL_RSROA_LOCAL_MASTERDATA     Master Data for Virtual Characteristics
    CL_RSMD_RS_BW_SPEC     Base class for accessing Bw special info objects
    CL_RSMD_RS_SPEC_TXT     Class for Accessing Generic BW-Specific InfoObjects
    Under what scenairo we go for this option?
    Any body used this option?
    Scenario 2:
    1. Master Data Access - Direct Access
       Name of Master Data Access - CL_RSR_REMOTE_MASTERDATA
    Under what scenairo we go for this option?
    Any body used this option?

    Hi,
    With Master Data:
    If you set this indicator, the characteristic may have attributes. In this case the system generates a P table for this characteristic. This table contains the key of the characteristic and any attributes that might exist. It is used as a check table for the SID table. When you load transaction data, there is check whether there is a characteristic value in the P table if the referential integrity is used.
    With Maintain Master Data you can go from the main menu to the maintenance dialog for processing attributes.
    The master data table can have a time-dependent and a time-independent part.
    In attribute maintenance, determine whether an attribute is time-dependent or time independent.
    With Texts:
    Here, you determine whether the characteristic has texts.
    If you want to use texts with a characteristic, you have to select at least one text. The short text (20 characters) option is set by default but you can also choose medium-length texts (40 characters) or long texts (60 characters).
    Helpfull link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/71/f470375fbf307ee10000009b38f8cf/frameset.htm
    Regards,
    Suman

  • Updating an attribute value in a custom Configuration Object

    I created a custom configuration object, and have two attributes which should hold date values. One attribute will contain a null value and one attribute will contain a date value by default. Now, when i enter date values on an end user form and press continue, the user entered values have to be updated in these fields in the configuartion object. The attrib1 null value has to be updated with the corresponding value entered on the userform and the attibute2 ( which already has a default value) has to be overwritten with the date value selected(date selected with the date picker) on the enter user form.
    I used checkout object, a script to get the value from the form and a checkin object to perform the above operation, but the value is not being updated in the configuration object. Any suggestions for the above problem would help me a lot!!

    Have you tried accessing the object from a rule using 'getObject' (you might need to use 'getExtension' also).
    Try gettting the object directly from a rule, and use a 'set' to set the object key. I am not sure, but you might need to 'dumpMap' to actually convert the object to a Map structure before you can modify it.
    IC.

  • How to get attribute value from an object inside an object in Xpress

    Does anyone know how to get an attribute value from an object in Xpress in a workflow? I have an object structured as follows:
    <ResourceInfo accountId='mj628' tempId='3483372b787ce7dd:-5d99a0c5:130cb238483:-3600'>
    <ObjectRef type='Resource' name='Google Apps'/>
    </ResourceInfo>
    I need if possible to get the name='Google Apps', which is inside the ObjectRef, so I guess its an attribute value of an object inside an object.

    If the ResourceInfo object is accessible in a variable, i.e. named "myResInfo", you just have to check the Java API and call the relevant method:
    <invoke name='getResourceName'>
      <ref>myResInfo</ref>
    </invoke>

  • How to read the value of OLAPDataGrid cell/s from external object

    Hi,
    I have an OLAPDataGrid control in an Adobe flex application,
    and I am using the cutom renderer to render the cells of the
    OLAPDataGrid ,
    any Idea how I can read the value of each cell at the
    renderer , so I will be able to decide about the actions for each
    cell at the renderer?

    "j_shawqi" <[email protected]> wrote in
    message
    news:gkqgdl$539$[email protected]..
    > Hi,
    > I have an OLAPDataGrid control in an Adobe flex
    application,
    > and I am using the cutom renderer to render the cells of
    the OLAPDataGrid
    > ,
    > any Idea how I can read the value of each cell at the
    renderer , so I will
    > be
    > able to decide about the actions for each cell at the
    renderer?
    I'm thinking that you'll need to look at the listData
    property. I'm not
    sure what you get in an OLAP Grid that orients you to your
    cell position,
    but I'd set a break point in the listData override of your
    renderer and see
    what you actually have, or look at the docs for the data type
    of the
    listData object that the default renderer expects to get.
    HTH;
    Amy

Maybe you are looking for

  • Where can I download a Windows 8.1 iso for Bootcamp?

    I bought Windows 8.1 Pro Retail, but my MacBook Pro doesn't have a DVD drive, and on Microsoft's website I could only find a download section for users who are already on Windows and want to upgrade. I got a valid key, I just need the iso for Bootcam

  • [Solved]D-bus problem's after upgrade hal to 5.13 and xorg-server.

    Hello Toaday I upgraded my system to following packages. startx and I got freeze Hal restart fail. Dbus restart. Fail. Error: Failed to start message bus: Error in file /etc/dbus-1/system.d/xorg-server.conf collumn 1 line 0 elemnt not found I seen th

  • "Lost connection to Firewall" message in ASDM Device Dashboard and Firewall Dashboard

    Question: I see this message for CPU,MEMORY,TRAFFIC,INTERFACE Stats.Any ideas ?Eveything is working except I see this message. It has ASA 5540 VER 8.2 and ASDM 6.2 Thanks

  • Don't have permissions to restore

    I installed Snow Leopard from scratch. I have been able to restore all of my files and shared files with no problem. However, when I try to restore my wife's files into her profile, I get an error message saying I don't have the permissions to do so.

  • IOS 6.0.1 iMsg Photo not sending

    I was so happy when i got another iPod touch in July, after the 4th Gen one i got for christmas got stolen in January. I have the same exact one i did, 4th Gen 32gig iPod touch. I upgraded to iOS 6 right after it came out, not even thinking about the