How to bind the attribute in the context to a dynamic created element?

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 modifyview of the view(there is a transfered parameter that represent the name of "ANSSA")
I want to create a dynamic element(inputfield) in the test_view. The element need bind the context attribute (ANSSA).Through the transfered parameter(para), I only know the name of the attribute binded. 
How can I bind the attribute of the context in the following code?
METHOD modifyview .
*importing para type string.
*importing m_view type ref to  if_wd_view.
data wd_inputfield type ref to cl_wd_input_field.
create one element automatically in the view.
  wd_inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
                                    view = m_view
                                    id = para
                                    BIND_VALUE = ???
ENDMETHOD.
I don't know how to replace the "???" in the method modifyview? 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

Hi, Suresh,
Thanks a lot for your help.
The last mail have some errors. Now, I modify my code error. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
Now, I modify my code. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
METHOD wddomodifyview .
importing view   type ref to if_wd_view.
  DATA      transparent_container           TYPE REF TO cl_wd_transparent_container.
  DATA      inputfield                      type ref to cl_wd_input_field.
  transparent_container ?= view->get_element( `TRANSPARENT_CONTAINER` ).
  transparent_container->set_visible(
    EXPORTING
      value = if_wdl_core=>visibility_visible ).
wd_this->SET_DYNAMIC_INPUT(
   EXPORTING
     inputfield_ID =  'ANSSA'
   IMPORTING
     INPUTFIELD    =  inputfield
**************The web page will occur error when running the WDA as soon as I write the code.***********
  transparent_container->add_child( THE_CHILD = inputfield ).
ENDMETHOD.
The following is the code of the SET_DYNAMIC_INPUT method.
method SET_DYNAMIC_INPUT .
*importing
*INPUTFIELD_ID    type STRING
*exporting
*INPUTFIELD    type ref to CL_WD_INPUT_FIELD
Data binded_context       type string.
concatenate 'ADDR_AUTO_DISP_VIEW.EE_ADDRESS.' INPUTFIELD_ID into binded_context .
inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
id = inputfield_id
read_only = abap_true
BIND_VALUE = binded_context
endmethod.
When I run the WDA, The web page occuring the error information:
Note
The following error text was processed in the system DEV : Access via 'NULL' object reference not possible.
The error occurred on the application server devserver_DEV_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
But when I delete the code of the wddomodifyview, and create a inputfield in the layout of the view, and bind the "ANSSA" to the "value" property in the layout, the WDA is running correctly.
Do you give me some hints?
Thanks a million.
Best regards,
tao

Similar Messages

  • How to get the Attributes of the UNIX  file Directories  ?

    Hi Guru,
    How to find of the Attributes of the UNIX  file Directories in sap  TC  :-   u2018 *ZZWT*u2019   .
    The file attribute details need to show in the report.
    I try on FM : EPS_GET_FILE_ATTRIBUTES
                       /SDF/GET_FILE_INFO
    But not getting the attributes details.
    If any idea plz. Help me.
    Regards,
    Subash

    Which basis release do you use?
    From 7.0 you have [GET DATASET|http://help.sap.com/abapdocu_70/en/ABAPGET_DATASET.htm] statement
    Before, you may only get what you see in AL11 : mimic what is in program RSWATCH0
    Or you may register and use [UNIX commands (SM69 transaction / SXPG|http://help.sap.com/saphelp_nw70/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm]) and get the results
    Edited by: Sandra Rossi on Aug 2, 2009 12:39 AM

  • How to activate camera attributes in the MAX / LabVIEW

    Hello,
    I have created an icd file for a VieWorks camera. Therefore I used the camera file generator tool of NI. In this tool I can setup camera attributes. After creating the file, I opened the MAX and selected the camera in the IMAQ devices. The attributes I generated where correctly shown. The question now is how to activate the attributes. For instance I created an attribute to activate / deactivate the FAN. When I select the attribute in the MAX and set the value to ON, nothing happens.
    This also fails when I use the SetCameraAttributes.vi in labview. I use LV2009 and IMAQ 4.6.1
    Does anyone have any suggestions?
    Regards,
    Marc Vanmaris

    Hello,
    Just check in MAX that the "Serial Enable" is selected. It seems that the serial command is not send to your camera.
    Hope this helps

  • If I use a LDB in the Attributes of the Program what happens?

    Hi friends,
                   I have to modify a standard program RFRECPSFA410. which i need to add some more fields in the output layout. It is a standard program. In the attributes of the program he used the LDB name RECN. And while debugging i found that the program is calling logical database. How it is calling I could not understand. And I need to add the fields in the Output Lay out. How can I add?

    Hi
    LDB - Logical Database are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs. They provide selction-screen, authority-check etc.
    For detailed information see the following links:
    Overview:
    http://help.sap.com/saphelp_nw04/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
    Using Logical Databases:
    http://help.sap.com/saphelp_nw04/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
    Regards
    Surya.

  • CRM function module to update the attribute in the classification TAB of BP

    Hi All,
    Can any body let me know if there is any functionmodule to update the CRM function module to update the attribute in the classification TAB of BP tcode.
    I have searched a lot i get FM to update the marketing attribute and not the attributes in the classification tab.
    Thanks in Advance
    Edited by: Sharath Kumar on Dec 2, 2010 4:48 PM

    For material bom: CSAP_MAT_BOM_CREATE
    and CSAP_ORD_BOM_CREATE for Order BOM.
    Regards,
    Ravi

  • The attributes of the user are inconsistent or not defined. See PPOMA_BBP

    Hi all,
    I created a free text SC and after approval by the manager, the SC was routed to the Sourcing cockpit as I had activated sourcing for the product category that was ordered.
    Now in the SOCO, when I select my SC and click on the 'Next' button, I get an error : "The attributes of the user are inconsistent or not defined. See transaction PPOMA_BBP."
    I have defined the following attributes for my purchaser
    Acct assgnmnt Categry --- (Cost centre)
    Acct system for vendor --- (ECC logical system)
    Company code --- (XXX)
    Cost centre --- (XXXXX)
    Del address --- (XXXXX)
    Doc type in R/3 --- (ECPO)
    Local currency  --- (EUR)
    Mov type --- (201)
    System Alias --- (ECC logical system)
    System alias for accounting system --- (ECC logical system)
    System alias for vendor --- (ECC logical system)
    User role --- (employee/op purchaser/st purchaser)
    Which other attribute do I need to define? Is there something that I have missed?
    Strangely it works fine if I give my user SAP_ALL profile!!
    Regards

    Hitesh & Velu,
    I did regenerate the role and it is in green now. Still it does not work.
    However I noticed that when I ran the attribute check for Purchaser's position, I got the following errors.
    Application 'RFx': Assign purchaser PURCHASER1 to a purchasing organization
    Message no. BBP_ATTR_CHECK151
    Diagnosis
    User PURCHASER1 has a purchaser's authorizations but is not assigned to any purchasing organization.
    System Response
    Purchaser PURCHASER1 (position S 50000015) cannot run the EBP applications RFx without encountering errors.
    Procedure
    Assign a purchasing organization to purchaser PURCHASER1 (position S 50000015). Select an organization unit above the purchaser and select the property 'purchasing organization' on the 'Function' tab.
    I have already done the above, all org units have a function that links them to backend ECC. Why is it still prompting me with the same error?
    Regards

  • Can we change the attribute once the cube is live

    Hi:
    i was wondering whether can we change the attributes once the cube is live?
    kedar

    If the Cube is LIVE with data ,we can turn ONN the NAV attribute for the cube as per the post above.
    1)Do i need to delete and reload data in the cube for the navigational attribute changed inthe cube??history data
    2)Will my deltas be affected which are live and running??
    3)will update rules deactivated be a problem when we transport to production??
    4)If we make changes to existing data model like adding infoobjects and want to have history data modified to that object ,than Can FULL REPAIR load work ??
    or making a copy of the cube ,generating export DS..loading ..the olad traditional way is the option

  • How to read the attribute in another context node from setter method

    Hi,
    As part of the  requirement
    i need to read the STRUCT.E_MAIL ( attribute ) present  in  INDEPENDANTEMAIL context node  from  the SET_S_SRUCT method of the context node  HEADER.
    I tried th following but it didnt work out....
    Get the Custom Controller Path
    *lr_cuco ?= controller->get_custom_controller( controller_id = 'BP_HEAD/IndComm').
    *IF lr_cuco IS BOUND.
    Get the Entity
    *lr_entity ?= lr_cuco->typed_context->independantemail->collection_wrapper->get_current( ).
    *ENDIF.
    *CHECK lr_entity IS BOUND.
    Get the Trade Event Type.
    *lv_email  = lr_entity->get_property_as_string( 'E_MAIL' ).
    also i tried ...
    data:
    *lv_value type string,
    *lr_property type ref to if_bol_bo_property_access.
    *lr_property = collection_wrapper->get_current( ).
    *lv_value = lr_property->GET_PROPERTY_AS_STRING( importing iv_attr_name = 'E_MAIL'
                                                returining  ev_result    = lv_email ).
    but it didnt workout ......
    Any suggestions   ...................
    Regards,
    Sijo...

    Hi,
    Both Context node are available in view then refer this link.
    Reading Attributes from different context nodes in the same view
    Relationship name for context node INDEPENDENTMAIL is 'BuilIndependantEmailRel'
    Regards
    Gaurav

  • How to read the attribute of the xml file using jaxb

    Thanks,
    Buddy as i have a issue i have to read the xml file using jaxb and xml file contains this data and i have read the attribute like name , desc and action for a particular menu name pls tell the code how to do this it will be a great favour to me
    thanx in advance
    Rasool
    <contextmenu>
    <menu name='Lead' >
    <menuitem name='newlead' desc='New Lead' action='/leads.do?dispatch=insert' />
    <menuitem name='editlead' desc='Edit Lead' action='' />
    <menuitem name='leadinfo' desc='Lead Information' action='' />
    </menu>
    <menu name='Cases' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    <menu name='Contact' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    </contextmenu>

    What my program do is to get the encoding of XML files and convert them to UTF-8 encoding files, while I need this "encoding" information of the original XML document thus I can convert...
    After reading specifications and JDOM docs, the truth turns to be disappointed, no function is provided to get this information in JDOM level 2(the current released one), while it's promissed that this function will be provided in JDOM level API....
    Thanx all for your help and attention!!!

  • How to add Custom Attributes in the SOAP header for OWSM

    Hi,
    I like to know how to add the Custom Attributes in the SOAP header for OSWM username token authentication.
    Currently we are getting the header element like
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    here we need to add the attribute "soap:mustUnderstand="1" , so the element will look like
    <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    Any info on this will be helpful.
    Thanks,
    ArunM

    Hi Jay, you can make it in more than 1 way.
    I suggest you the following:
    - create an URL iview that points to any URL you want.
    - define a Resource that points to the iview (with a window name, to open in new window)
    - define an Area that points to the resource
    - add your new Area to the your current Area Group
    Regards!

  • How to populate the attribute of the characteristics in Contract?

    Hi Experts,
       I need to populate the attribute "Truck Net Value" of the characteristics during the Contract creation with reference to Sales Order. Brief description of the scenerio:
               We are using  a variant material in the Sales Order. This material has different attributes which the end user need to populate during the SO creation. Now I have to create a Contract with reference to Sales Order. While creating the Contract with reference to Sales Order I want to populate the attribute "Truch Net Value" of the Sales Order with some value and update the Sales Order.  So to update the attibute of the Sales Order during Contract Creation. Is there any function module that I can use for this purpose? I know where to write the code in the standard program? But I don't know how to populate the attibute?
    Thanks
    MAN

    Hi,
    Welcome to SCN!!!
    After the contract is created, you can call the BAPI BAPI_SALESORDER_CHANGE along with COMMIT to change the order texts. Alternatively you can use FMs SAVE_TEXT and COMMIT_TEXT to change any kind of texts.
    You can check the parameters to be passed by placing the breakpoints in these FMs, change and save the text manually from VA02 in the sales order.
    Thanks,
    Vinod.

  • How to include Navigational attribute in the selection screen

    Hello All,
    Can any body please tell me how to include a navigational attribute in the selection screen in BEX?

    Let´s go step by step.
    In your example, you mentioned the characteristic called 0MAT_PLANT.  Its navegational attributes are allocated in the same dimension the main characteristic belongs.  So 0MRP_CONTRL, as a navegational attr. must be allocated in the same dimension as 0MAT_PLANT.
    1) In query designer in Bex (left pane) find the dimension where 0MAT_PLANT is allocated.  Find the navegational attr. in the same dimension, 0MRP_CONTRL.  Pls verify you are looking to a navegational attribute, activate technical names and the name of the attr must be 0MAT_PLANT__0MRP_CONTRL.
    2) Below the attribut (still left pane) you will find a Variable icon (yellow).  If you see the "+" symbol, it means that at least one variable exists (standar or not).  Open it and check if the variable suits your requeriment to set it in selection screen.  If not, create a new one (let me know if you need help with this task).
    3) Once you have your variable for the navegational attribute, drag and drop it to the design area (row, column, filter).
    4) Verify the order you want this variable to appear from the menu bar: Query properties -> Sequence of Entry Variables.
    Hope this helps.  Leticia
    Edited by: Leticia Laura Locatelli on Oct 1, 2008 10:41 PM

  • BC: How to set an attribute in the validateEntity method

    Hi All,
    a little question that hopefully someone knows the answers to.
    We override the validateEntity() method in our Entity Objects to perform validation. During our validation based on the value of a (bound to a database column) attribute, we conclude that another attribute (bound to another database column) needs to be set to a specific value.
    For example: we have a table with columns A and B. The user can edit both, but when the value of column A is set to 'value1' the value of column B is set to '0' in the validateEntity() method. (When the value of column A is something different the user may fill anything in column B).
    Because all our validation and logic is centralised in the validateEntity() method we would also like to have this logic in there.
    However we face some problems:
    If we use setAttribute() or setAttributeInternal() the validation is run again (and again, and again, eg a loop). I can get out of the loop, but i really don't want the validation to be done again.
    So i looked up the documentation on oracle.jbo.server.EntityImpl and i specifies that i should use populateAttributeAsChanged().
    I have tried that, but now the user gets to see 'JBO-25014: Another user has changed the row...'. The same result with populateAttribute().
    I tried to change the attribute to refresh after insert/update, but that doesn't help.
    Can anybody help?
    Thanks in advance.
    Regards,
    Robert

    What if I wanted to "reset" one attribute when validation fails, I can do this but I don't see the error message.
    my method looks like this:
    public boolean validateDatumEffectueringAlsStatusIsDrie() {
    if (new Number(3).equals(getStatus()) &&
    getDatumEffectuering() == null) {
    setStatus((Number)getPostedAttribute(STATUS));
    return false;
    return true;
    This probably fires the method twice when status was set to 3, and the second time it does not fail because status is set back to the value that was not 3, so I don't see the error message that was shown the first time.
    So how is this done properly?
    The reason I do this is because DatumEffectuering is readonly when status is 3 so when the page refreshes after the validation the empty date field is readonly.... I need the status to be reset after validation of the entity fails.
    Thanks in advance!

  • How does the attribute gets the data from R/3 field?

    Hi Experts,
    It could be silly Q.  IO has attributes x, y, z.......  When we map r/3 field to IO, and it is added to the cube and when we create a report, how does the attribute gets data?  I've been working in BW and suddenly I got confused.  Someone please provide me some info
    Thanks,
    Radha

    X,Y,Z being attributes of an info object A.
    When A gets loaded it will be loaded with X,Y,Z.
    If A is a cube and if you wish you can bring X,Y,Z also in the cube in one or more dimensions.
    If you keep X,Y,Z as vag attributes rather than in te cube as dimensions, then , the system will generate SIDs for them.
    Ravi Thothadri

  • How to bind an IIS to the enterprise portal installed on a linux machine

    Dear all,
    I am very new to the topic of Enterprise Portal.
    Our intention is, to develop .NET IViews and deploy them in the Enterprise Portal.
    The Enterprise Portal Server is set up on a linux machine.
    The Guy who did install the Portal Server, has no idea how to "integrate" the Microsoft IIS to the Portal.
    After deploying my .net Component, i tried to view this component in the portal (by right clicking the mouse on the Component in in the .NET Solutions Explorer).
    This gives me the following error:
    Portal Runtime Error
    An exception occured while processing a request for:
    iView:N/A
    Component Name: N/A
    Could not find portal application com.sap.portal.dotnet.framework.
    Exception id: 02:06.......
    See the details for the exception ID in the log file
    I think that this has something in common with integrating the IIS on the Linux Machine, and maybe additionaly installing the pdk.net on the IIS webserver machine which should be used.
    Thank you for your help.
    Regards

    Hi,
    Welcome to the world of Enterprise portal
    Seems to me like you are trying to use the PDK for .NET. If so - Please read the overview section in the documentation to get a general idea of how it works (for example - IIS is not used at all!).
    See the Visual Studio integrated help or click this https://media.sdn.sap.com/html/submitted_docs/dotnet/index.htm
    there go to "Getting Started" and mostly "Overview".
    Anyway, It seems like the problem is that you didn't deploy the 2 required SDA's to the portal. You should also take a look at the "installation and configuration" guide. Download it here: https://www.sdn.sap.com/sdn/developerareas/dotnet.sdn?contenttype=url&content=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/pdk for .net administrator guides.zip
    Good luck,
    Ofer

Maybe you are looking for