How to get dynamic paramete value in the context node?

Hi, experts,
There are some attributes in the node context(ee_node) that contained the attribute named "ANSSA" in the view(test_view) in the WDA for abap. In the method WDDOMODIFYVIEW of the view(test_view), there is dynamically string , ex."ANSSA". How can I get the value of the "ANSSA" from the node(ee_node)?
I try to use the following code to get the value in the method WDDOMODIFYVIEW of the view(test_view):
Method wddomodifyview.
*importing   para    type   string.
  data:
    Node_Ee_Address                     type ref to If_Wd_Context_Node,
    Elem_Ee_Address                     type ref to If_Wd_Context_Element.
navigate from <CONTEXT> to <EE_ADDRESS> via lead selection
  Node_Ee_Address = wd_Context->get_Child_Node( Name = IF_ADDR_AUTO_DISP_VIEW=>wdctx_Ee_Address ).
get element via lead selection
  Elem_Ee_Address = Node_Ee_Address->get_Element(  ).
get single attribute
  Elem_Ee_Address->get_Attribute(
    exporting
      Name =  para
    importing
      Value = ??? ).
But I don't know how to replace the "???"   .
endmethod
I don't know how to replace the "???"  in the method wddomodifyview? Do you give me some hint for it?
You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
Thanks.
Best regards,
tao

Hello Neha,
Thank you for your help in advance.
I am very sorry that the above method name ought to be "modifyview", not "wddomodifyview"(I write the error word in the question so that I am very sorry.). I am very sorry the error method name occuring your misunderstand.
The "para" is the transfered parameter that it is supposed to represent the name of "ANSSA". Actually, the "para" may represent other attribute in the node context, ex. "ENDDA"(date type) attribute.
I don't write such code in the method modifyview: lv_anssa like ls_ee_node-anssa. Because I am not sure that the  "para"  represent the name of "ANSSA", and the "para" may represent other attribute in the node context, ex. "ENDDA"(date type) attribute.  The  "para" is only the transfered parameter from other method for representing the name of attribute.
Method modifyview.
*importing para type string.
DATA:
lo_nd_ee_node type ref to if_wd_context_node,
lo_el_ee_node type ref to if_wd_context_element,
ls_ee_node type wd_this->element_ee_node.
I cann't write such code. Because I am not sure that the para represent the name of "ANSSA"******************
data lv_anssa like ls_ee_node-anssa.
lo_nd_ee_node = wd_context->get_child_node( name = wd_this->wdctx_ee_node ).
lo_el_ee_node = lo_nd_ee_node->get_element( ).
lo_el_ee_node->get_attribute(
exporting
name = para
importing
value = ??? ).
endmethod.
I don't know how to replace the "???". Do you give me more hints?
Thanks a million.
Regards,
Neha

Similar Messages

  • How can i dynamically assign values to the tld file

    How can i dynamically assign values to the tld file

    In the tld you write for the tag handler mention the following sub tags in the attribute
    <attribute>
    <name>xyz</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    import the packagejavax.servlet.jsp.tagext.DynammicAttributes;
    add the method
    public void setDynamicAttribute(String rui, String localname, Object value) throws JspException
    <Your Required task>
    Its better if you SimpleTagSupport class to be extended.

  • How to show a parameter value in the paper layout

    Hi,
    I have a paper parameter form. I need to show the value of the parameter at the top of my report as part of the title. Any ideas?
    Thanks,

    It should display the parameter value in the field you created in the paper layout.
    Make sure you selected the source of the field.
    From the property inspector of the created field go to the source property and select the parameter name from the pop-up list.
    Regards
    Mostafa Abolaynain

  • How to hide dynamic parameters values in the URL with Reports 6i

    Hi,
    I want to know a way of hiding the parameters values when asking for a report through the web.
    Now I'm using the Reports 3.0.5.8 with a Cartridge defined in the Oracle Web Application Server 3.0.1.0.1. When you ask for a report with the parameters DESTYPE = cache and DESFORMAT = pdf, it is fully generated and in the Address or Location box of the browser, you can see http://webserver/cache/report.pdf (where cache is the virtual directory defined in the OWAS in which the .pdfs are cached). So, users cant see the Url used to generate the report.
    Im trying to upgrade this configuration to Reports 6i with Cgi in a web server. I generate reports with no problems. The problem I have is I cant find how to hide the parameters values as before. I mean, when I ask for a report, once its generated I can see http://webserver/cgi-bin/rwcgi60.exe?server=ServerName&report=report.rdf&userid=user/pass@connection&destype=cache&desformat=pdf&P1=value1&P2=value2 in the Location box. It allows user to ask for another report changing the values of the parameters. I use these parameters to execute some query written in the Data Model. For example, imagine that the P1 represents the company id, the user (that is supposed to see only data of its company) can change this id, ask for a new report and see data of another company.
    Ive already tried to use the key mapping option, but its not useful to me because the parameters values are dynamic and its impossible to define different entries in the cgicmd.dat for each possible value. The option of loading the parameter form before running a report is not useful to me either, because there exists specific screens for this purpose.
    Is there any solution?
    Thank you.
    Marma Bonfiglio.

    Hi Rakesh,
      I am using BI  7.0
    The last option I have is 'Hide' for 'Calculate single values as' .
    I have the below options  for 'Calculate single values as'
    1. Normalise  according to Next group  level  Resul.
    2. Normalize according to  Overall Result
    3. Rank number
    4.Olympic Rank Number
    5.Maximum
    6. Minimum
    7.Counter for all detailed values
    8.Counter for all detailed values that are non zero
    9.Moving average
    10.Moving average  That is  Not zero ,null or Error
    11. Hide.
    So could you please tell me where i can find 'suppress result' option for the keyfigure .
    Many thanks

  • How to get a field value in the report

    hi all :-
    i need to get the field value in the formate trigger inside a specified field in the report?

    please post your request in the report category forum

  • How can I dynamically pass values to the DayOfWeek array given below?

    I have this below code:
    var onMondayAndTuesday = DailyTimeIntervalScheduleBuilder.Create()
    .OnDaysOfTheWeek(new DayOfWeek[] { DayOfWeek.Monday, DayOfWeek.Tuesday });
    var trigger = TriggerBuilder.Create()
    .StartAt(DateBuilder.DateOf(StartHour, StartMinute, StartSeconds, StartDate, StartMonth, StartYear))
    .WithSchedule(onMondayAndTuesday)
    .WithCalendarIntervalSchedule(x => x.WithIntervalInWeeks(Int32.Parse(nWeekInterval)))
    .EndAt(DateBuilder.DateOf(0, 0, 0, EndDay, EndMonth, EndYear))
    .WithIdentity(triggerKey)
    .Build();
    Here depending on the days users have selected any weekday would be passed in to the DaysOfWeek array. It might be just monday or monday
    and friday etc. How can I achieve this? Please advice.
    mayooran99

    Try this:
    DayOfWeek[] days = new DayOfWeek[7];
    days[0] = DayOfWeek.Friday;
    days[1] = DayOfWeek.Monday;
    days[2] = DayOfWeek.Saturday;
    var onMondayAndTuesday = DailyTimeIntervalScheduleBuilder.Create()
    .OnDaysOfTheWeek(days);
    also you can use it as a list:
    List<DayOfWeek> d = new List<DayOfWeek>();
    d.Add(DayOfWeek.Friday);
    Fouad Roumieh

  • How to get procedure paramater value dynamicly ?

    How to get procedure paramater value if the parameter name is stored in a text variable?
    example:
    create or replace circle_area(p_par1 varchar2, p_par2 varchar2) IS
    begin
    for v_col in (select * from USER_ARGUMENTS where OBJECT_NAME = $$plsql_unit order by position) loop
    DBMS_OUTPUT.PUT_LINE('column_name : ' || v_col.ARGUMENT_NAME);
    --v_col.ARGUMENT_NAME contains the parameter name.
    Q1: how to get value of the parameter dynamicly?
    Q2: how to get value of procedure parameter which name is stored in a text variable?
    end loop;
    end;
    thanks for help
    Cecak

    Let me explain it again what I need using different words.
    I need to write an universal code which will be able to identify name and value of parameters of called procedure/function.
    It means I do not want to hardcode the list of all procedure/function parameters into one command DBMS_OUTPUT.PUT_LINE('p_par1 is '||p_par1||', p_par2 is '||p_par2.....) placed as first statement of a monitored procedure/function.
    If a new verison of the same procedure/function having one additional parameter is compiled I would not need to modify the first command of the procedure/function to show name and value of the additional parameter because it would be done dynamicly.
    SQL> create or replace procedure procedure1(p_par1 varchar2, p_par2 varchar2) IS
    2 begin
    3 for v_col in (select * from USER_ARGUMENTS where OBJECT_NAME = $$plsql_unit order by position)
    loop
    4 DBMS_OUTPUT.PUT_LINE('column_name : ' || v_col.ARGUMENT_NAME);
    5 end loop;
    6 end;
    7 /
    Procedure created.
    SQL> set serveroutput on size 10000
    SQL> begin
    2 procedure1('par1','par2');
    3 end;
    4 /
    column_name : P_PAR1
    column_name : P_PAR2
    PL/SQL procedure successfully completed.
    How can I get value of the procedure parameters if the parameter's names are stored in a text variable?
    My DB version is:
    SQL> select * from v$version;
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Thanks
    Cecak

  • Dynamic Tables: TableCellEditor depending on Context node value

    Dear community,
    I'm creating a dynamic table containing all the neccessary fields to display my context node in Java code but I have one requirement that I can not resolve by myself:
    Depending on the value of a cell the TableCellEditor should be of type IWDTextView or LinkToURL. So if the context node value is e.g. the String "abc" I want to display a LinkToUrl containing a Target - such as http://www.abc.com - depending on the value, if the context node value is "def" I want to do nothing but display the value in a TextView.
    As I am creating the dynamic table in advance and binding my Context node to it later, I don't know how to change the TableCellEditor at that point of time.
    Right now I have the choice to either display all cells of the column as LinkToUrl TableCellEditor or display all cells as TextView - the dynamic table generation itself is no problem for me.
    Does anyone have an idea on how to do that? Maybe it is not possible in WDJ right now?
    regards,
    Christian

    Hi Christian
    Try this:
    IWDTable theTable=(IWDTable)view.createElement(IWDTable.class,"table");
    IWD TableColumn aColumn=(IWDTableColumn)view.createElement(IWDTableColumn.class,"col");
    if(str.equal("abc"))
    IWDTextView aField=(IWDTextView)view.createElement(IWDTextView.class,"TextView");
    aField.bindText(str);
    aColumn.setTableCellEditor(aField);
    else if(str.equal("def"))
    IWDLinkToURL aField=(IWDLinkToURL)view.createElement(IWDLinkToURL.class,"LinkToURL");
    aField.bindtarget("http://www."str".com");
    aColumn.setTableCellEditor(aField);
    theTable.addColumn(aColumn);
    Best regards,
    Sangeeta

  • How to select and store the dynamically clicked values in the checkboxes?

    Hi Gurus
    How to select and store the dynamically clicked values in the checkboxes?
    Scenario:-
    I am having a tree structure but I am not getting that user has clicked the which nodes.
    So how to do it.
    Pls.

    Hi,
    Once again, this is dependent on what your implementation expects. It would seem that your implementation is expecting all of the API to be coded in Java Card so it would make sense that you would load these packages like any other package. Loading an applet is not a special case, it just has an extra step of installing instances of it (and can actually be installed). Any other Java package just needs to be loaded. As such, just load your CAP files for each package of the API before loading any code that depends on it.
    Cheers,
    Shane

  • Problem getting parameter  values at the service end point

    I am having problem getting parameter values at the service end point. I created service end point and this method is having 35 parameters and then i created test client file using Sun One Studio 5. but when i run this test client and make a call to service it sends wrong value to first three parameters to the service end point. I tried all the way round but it gave me same sort of problem. I change the order of parameters change the names of parameters but it didn�t work. And then i started chopping of parameter from the left side. And my problem is solved when my parameter list reached to 12 from 35. So is it a bug or some problem with my configuration or some thing else.
    I am using sun one studio 5 with sun one app 7. My service end point does very simple thing. It only takes out put of the parameter to the server log file. And my wsdl file seems all right. There is no conflict with the count and data type of the parameter information it contains.
    �     Service End Point Definition (in EJB)
    public java.lang.String setNewAddress(java.lang.String propertyName, java.lang.String status, java.lang.String PMSCode, java.lang.String streetNumPrefix, int streetStartNum, java.lang.String streetStartNumSuffix, int streetEndNum, java.lang.String streetEndNumSuffix, java.lang.String streetName, java.lang.String streetType, java.lang.String streetSuffix, java.lang.String localityPrefix,java.lang.String localityName, java.lang.String postcode, java.lang.String stateCode, java.lang.String countryCode, java.lang.String description, java.lang.String coordinateAccuracy, int longitude, int latitude, java.lang.String planNumber, java.lang.String lotPrefix, int lotNumber, int siteID, java.lang.String countryName, java.lang.String parishName, java.lang.String section, int portionNum, int crownAllotNum, int titleVol, java.lang.String folio, java.lang.String esa, int aliasID, int aliasTagID,String ID) {
    System.out.println(propertyName);
    System.out.println(PMSCode);
    System.out.println(streetNumPrefix);
    ........ taking printout of all the paramters
    �     This is my WSDL file
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="NMService" targetNamespace="urn:NMService/wsdl" xmlns:tns="urn:NMService/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="NMServiceServantInterface_setNewAddress">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/>
    <part name="String_4" type="xsd:string"/>
    <part name="int_5" type="xsd:int"/>
    <part name="String_6" type="xsd:string"/>
    <part name="int_7" type="xsd:int"/>
    <part name="String_8" type="xsd:string"/>
    <part name="String_9" type="xsd:string"/>
    <part name="String_10" type="xsd:string"/>
    <part name="String_11" type="xsd:string"/>
    <part name="String_12" type="xsd:string"/>
    <part name="String_13" type="xsd:string"/>
    <part name="String_14" type="xsd:string"/>
    <part name="String_15" type="xsd:string"/>
    <part name="String_16" type="xsd:string"/>
    <part name="String_17" type="xsd:string"/>
    <part name="String_18" type="xsd:string"/>
    <part name="int_19" type="xsd:int"/>
    <part name="int_20" type="xsd:int"/>
    <part name="String_21" type="xsd:string"/>
    <part name="String_22" type="xsd:string"/>
    <part name="int_23" type="xsd:int"/>
    <part name="int_24" type="xsd:int"/>
    <part name="String_25" type="xsd:string"/>
    <part name="String_26" type="xsd:string"/>
    <part name="String_27" type="xsd:string"/>
    <part name="int_28" type="xsd:int"/>
    <part name="int_29" type="xsd:int"/>
    <part name="int_30" type="xsd:int"/>
    <part name="String_31" type="xsd:string"/>
    <part name="String_32" type="xsd:string"/>
    <part name="int_33" type="xsd:int"/>
    <part name="int_34" type="xsd:int"/>
    <part name="String_35" type="xsd:string"/></message>
    <message name="NMServiceServantInterface_setNewAddressResponse">
    <part name="result" type="xsd:string"/></message>
    <portType name="NMServiceServantInterface">
    <operation name="setNewAddress" parameterOrder="String_1 String_2 String_3 String_4 int_5 String_6 int_7 String_8 String_9 String_10 String_11 String_12 String_13 String_14 String_15 String_16 String_17 String_18 int_19 int_20 String_21 String_22 int_23 int_24 String_25 String_26 String_27 int_28 int_29 int_30 String_31 String_32 int_33 int_34 String_35">
    <input message="tns:NMServiceServantInterface_setNewAddress"/>
    <output message="tns:NMServiceServantInterface_setNewAddressResponse"/></operation></portType>
    <binding name="NMServiceServantInterfaceBinding" type="tns:NMServiceServantInterface">
    <operation name="setNewAddress">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:NMService/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:NMService/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
    <service name="NMService">
    <port name="NMServiceServantInterfacePort" binding="tns:NMServiceServantInterfaceBinding">
    <soap:address location="http://localhost:80/NMService/NMService"/></port></service></definitions>
    �     I followed steps given this example. http://developers.sun.com/prodtech/javatools/jsstandard/reference/docs/s1s5/stockapp.html.
    If some one know what is wrong. Is it me or some thing wrong with the method I followed. But I am sure that I followed exactly the same method as it given in examples. So if some one can guide me
    Thanks

    I just found that there is a bug with Sun One Studio 5. It creates faulty JSP file to test the client for the web services. With above problem I tested my web services using different developing environment such as Jdeveloper 10g. I created client stub using wsdl file generated by sun one studio. And made call to my web service and all the parameter reached perfectly at service end point. And then I used stub class created by sun one studio for the client and made the same call. And it also went well. So the problem is with the test application (JSP File) sun one creates for my web service.
    This is the majore problem i faced during the development. But still there is many problem along with this which is not seriouse enough but requires attension. I would like sun developers to make sun one studio IDE simpler and handy .

  • Getting QM parameter values for Raw Material on the basis of goods receipt

    Hi All,
    I have requirement, while generating inspection lot these  tables MCXD&MCXA should update.
    when we need a QM parameter value for the month, It should be the average of all the inspection lot generated for the month.
    Thanks in advance
    Regards
    Hanamanta

    Ok.. I assume your talking about the actual test result value.  These do not roll up into the QM LIS structures used in transactions MCXA or MCXD.
    You might be able to create your own structures and have them updated but you would have develop that.
    You can create run charts for various MIC's and utilize the SPC functionality if you need monthly averages and trends.
    If your batch managed you can easily get reports of batch values via the CL30N transaction.  You'll want to make sure you have a characteristic for batch production or receipt date so you can sort and select by date.  These can then be loaded to Excel for summing and averaging.
    Craig

  • How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amo

    How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0

    Hi,
    Is your formula attached to basic salary element or some other element? You need to make sure that basic salary element has some value and is processed before this formula is called. Are you able to see value for basic salary element after payroll run?
    Regards,
    Pawan

  • How to get a parameter without name in JSP?

    hi everyone, My question is how to get a parameter without name in JSP? I have two pages, 1.html and 2.jsp.
    in 1.html, I embeds some Javascript codes in HTML contents like below ( changed < to ( , > to )):
    function toSubWin( obj )
    window.open('test.jsp?'+obj.firstChild.toString(),'sw');
    (a onClick='toSubWin(this)'style="background:green")focus(/a)
    How can I get the parameter in 2.jsp?
    THANK YOU IN ADVANCE!!

    Does obj.firstChild.toString() evaluate to a "name=value" type of String ?
    Or better what does obj.firstChild.toString(),'sw' evaluate to ? It has to end up in a name=value format, else its just gibberish appended to the url.
    In the jsp, you have to obviously know the name to get the parameter. There's a getParameterNames() method which returns you a Collection of parameter names as Strings, you could probably use that to retrieve the param values.
    Then there's a getParameterMap() method which returns an immutable Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
    However to what ends you employ them in a program which doesnt know its inputs is a different story.
    cheers,
    ram.

  • How to get a check box on the selection screen

    Hi all
    can any body tell me how to get a check box on the selection screen

    parameter: pa_check   as checkbox.
    To define the input field of a parameter as a checkbox, you use the following syntax:
    PARAMETERS <p> ...... AS CHECKBOX ......
    Parameter <p> is created with type C and length 1. In this case, you may not use the additions TYPE and LIKE. Valid values for <p> are ' ' and 'X'. These values are assigned to the parameter when the user clicks the checkbox on the selection screen.
    If you use the TYPE addition to refer to a data type in the ABAP Dictionary of type CHAR and length 1 for which 'X' and ' ' are defined as valid values in the domain, the parameter automatically appears as a checkbox on the selection screen.
    REPORT DEMO.
    PARAMETERS: A AS CHECKBOX,
    B AS CHECKBOX DEFAULT 'X'.

  • How to change timeout parameter value in Oracle 10g R2

    Anyone knows how to change timeout parameter value in Oracle 10g Database R2?

    Waheed Azhar wrote:
    actually i am getting ORA-01013 exception which directly relates to the timeout value but i think it's hidden parameter...What makes you think it's a hidden parameter?
    A search of MetaLink for that error turns up a number of hits, most of which a very situational specific. Exactly what are you doing when you get this error? Are you connecting over an ODBC connection? Are you getting it on a connection request? At db shutdown? During a long-running query?

Maybe you are looking for

  • How to download a csv/excel file stored in a server using OA Framwork

    Hi All, We have a requirement where we have to generate a CSV file using PL/SQL block and the user shoul download that csv file to his client machine whenever it requirs to him. We have generated csv file and save the same in a particular location in

  • Iomega 360 GB external hard drive startup

    How do I install OS X.6 onto my external hard drive? Can I just drag the SYSTEM folder from my intel-based iMac into the external drive? I think I may be missing some install OS X CD's -- for the iMac. I have the iMac OSX Install disc 1 -- and -- OSX

  • Not able to edit Promotions PMDL rule through ACC

    Hi All, Not able to edit PMDL rule(Condition and Offer property) for the existing promotions through ACC.It says "This version of PMDL not supported. Thanks Siva

  • How to call a function of a system library

    I'd like to check the login ID of the current system user. Therefor I tried via System.loadLibrary("NETWIN32") to load the requested DLL and to call the functions NWDSCreateContext and NWDSWhoAmI. After the funktion call I got the exception java.lang

  • Problems with DirectPrinterDemo: java.lang.NoSuchMethodException

    Hello, our environment is oracle forms10g Version 9.0.4.0.19. i have tried to run the directprinterbean from casey bowden, but i had no luck. i forced forms to use the jre 1.5.06. instead of the jinitiator but i get error messages like these.. java.l