Position a UI element or container on a specific position in webdynpro ABAP

Hi All,
How can we positioned different UI elements on a specific location?. I mean whenever we drag and drop them on a view they seem to take their place automatically. Is there a way to give them a shape ( vertical/horizontal ) & position explicitly . I’ll appreciate a quick reply from you people.
Regards,
Laeeq.

Hi Laeeq,
There is no way to absolute position something in Webdynpro ABAP (at least not that I've found), but there are some ways you can get things relatively in the way you want them.  Try looking at the samples (SALV_WD_DEMO_TABLE*) and you'll see how they use a combination of transparent containers, groups, and the matrix layout to get things into position.
It does not allow for very fine grained control, but you should be able to achieve the look you are going for.

Similar Messages

  • How to create a element that contain a element generated in another document

    Hi,anybody.
    I want to create a element that contained a element generated in another document.The following is my coding:
    doc1 = new XMLDocument();
    ele1 = (XMLElement)doc1.createElement("AAA");
    doc2 = new XMLDocument();
    ele2 = (XMLElement)doc2.createElement("BBB");
    ele2.appendChild(doc2.createTextNode("bbb"));
    XMLNode ele = (XMLNode)ele2.cloneNode(true);
    ele1.appendChild(ele);
    but there is a DOMException,Node doesn't belong to the current document.
    Thanks in advance.
    null

    Hi Marc,
    it is currently not possible to check for values in other tables within different repositories (main tables).
    If you want to check for values in flat lookup tables, use the "Fields" menu in the expression editor. You will get sth like this:
    IS_NULL(Category.Item)
    whereas "Category" could be a lookup table (flat, hierarchy, taxonomy) and "Item" a field in it.
    Checking across qualified lookup tables is only possible in a very restricted manner.
    Hope that helps.
    Christian

  • How to change the element of container in the task

    Hello,all.
      I am new for workflow,today i find a new problem:when i finish a activity in the template,the element of container in the task can not be changed. Why? And how to change?
      Thanx,

    Hi Nemo,
    What I understood from your query is as follows -
    You have worked with Task activity in a workflow template. Now you want to change the element in Task Container, which you are not allowed to do so.
    If above is your query, kindly find following solution -
    1. You must have used some BOR object in your task activity.
    1. If you have used automatic binding between the method of BOR and workflow task then automatically the container elements are created. Now if you want to change these container elements then recommended is to change them first in method of BOR and again link the method. Let these elements generate automatically as part of binding.
    2. If you don't have any binding between your BOR method and Task container then, you don't have any elements created automatically. So you can directly create new elements inside task.
    Hope this helps you.
    PS If the answer solved your query, plz close the thread by marking it solved and rewarding each reply.
    Regards

  • On-Enter action/ event on UI Elements Transparent Container/ Tray

    Dear Experts,
    Is there any way to implement the On-Enter action/ event on the UI Elements Transparent Container/ Tray?
    Thanks.
    Tee

    Hi Tee,
    As such there is no OnEnter event for either tray or transparent container but tray has some other events like onToggle associated with it.
    Refer this online help: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/42/b6836382323122e10000000a1553f7/content.htm
    I hope it helps.
    Regards
    Arjun

  • OnSelect event for a Drop down UI Element in Webdynpro ABAP Select Options

    Hi Experts
    We have built our UI based on the webdynpro ABAP Select Options. We have a requirement that, when we change the value of a drop down box in the UI, I need to hide some fields. Can anybody help me out in handling of OnSelect event of a drop down box built using webdynpro ABAP Select Options. We are on SAP Netweaver 7.0 EHP1.
    Rrgards,
    Srikanth.
    Edited by: Srikanth Kancherla on Apr 29, 2010 10:43 PM

    Hi Srikanth,
    as you seem to be already aware, the component is dynamically built.
    so you would have to enhance the code that builds the element and insert a reference to a new action (enhancement) that could handle the onSelect event.
    What is it about this that you particularly want help with?
    Cheers,
    Chris

  • Error  Parameter WI_ID contains an invalid value  in webdynpro abap

    Hi Experts,
    i am working with webdynpro abap and using work flow in my component , here i am getting error and the error is
    Parameter WI_ID contains an invalid value .
    its showing the error in windows parameter : wi_id  and the wi_id is type sww_wiid
    and the same parameter i am using in application parameter .
    can u suggest me how to use this parameter wi_id in window parameter and application parameter and what the type should be for wi_id parameter.and what the value should be for application parameter wi_id.
    her i am giving the complete error  details.
    please give me the requried information if u porvided screen that will be very useful
    The following error text was processed in the system RD1 : Parameter WI_ID contains an invalid value .
    The error occurred on the application server S0164SAPDEV2_RD1_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: HANDLESTART of program /1BCWDY/BP6P95H8W6B71I7VVRPR==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/BP6P95H8W6B71I7VVRPR==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP
    Method: DISPLAY_TOPLEVEL_COMPONENT of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Thanks & Regards.
    khanna

    Hi Nawal Kishor Mittal,
    thanks for the reply,
    i have given the application parameter wi_id with type string also but in 120 client (development) is working fine. when i test in 130 client( testing) its going to dump.
    what should be given to application value i given parameter wi_id and what the value should be there.
    waiting for reply.
    Thanks & Regards.
    Khanna.

  • Result element of Container Operation

    Hi Guys,
        When I was learning the workflow template of "Absence Notification", I have a question with the step 'Container Operation'. The result element 'Flag' can be selected from the workflow container when using F4,but I can't find the 'Flag' in the container of this work flow template.
    Can anyone explain this to me? Thanks a lot.

    I think you need to create the workflow container for paratmeter FLAG...
    Please create it and do the neccesary binding....
    Then try F4 in container operation
    Edited by: Swaminathan PJ on Jan 30, 2010 1:17 PM

  • BPM Container Element and Container in UDF Relation

    Hi,
    I am creating a BPM with container elements. Can I access this container variable value in a Java based mapping User Defined Function. If so, can you please let me know how can I do that.
    Thanks,
    -Padmaja

    Hi Padmaja,
    q1 -Is the target message same in all the cases with different values?
    q2 - Also, after this message(with different content based on the where it is created from) is created is sent out or is it used some where further again in the BPM?
    i am also assuming you are above SP16..
    If the answer is yes to q1 and no to q2, you can achieve this quite easily.....from each of the 3 places(success,failure and deadline)....have a send step each with the source message...in the send step you should have the "ConversationID" field filled with values which distinguishes the place from it is is send....now in the interface determination attach one mapping and in that mapping using a UDF you can access the Conversation ID from mapping variables....and you can manipulate your output message..
    I have made lots of assumptions without knowing your scenario..check it out if it helps...
    Thanks & Regards,
    Renjith

  • BPM. Creating element in container that references the sync. interface

    I couldn't select  synchronous, abstract interface for container element.
    i see only async interfaces.
    How to get sync interfaces there?

    sorry, problem is solved.
    help is not correct on this link
    http://help.sap.com/saphelp_nw70/helpdata/en/43/6211331c895f6ce10000000a1553f6/content.htm
    wrong line is:
    In the Synchronous Interface field, select the <b>container element</b> that references the synchronous, abstract interface for sending the request message and receiving the reply message.

  • How to associate an xml from httpservice to datagrid if the xml element name contains periods in it

    Following is the xml from an http service, how to associate
    this xml to a data grid (employee name, number) since it contains
    periods(dots) in xml element name.
    An early help is appreciated.....
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <com.companyx>
    <person>
    <employee.data>
    <employee.name>mrx</employee.name>
    <employee.number>1001</employee.number>
    </employee.data>
    <employee.data>
    <employee.name>mry</employee.name>
    <employee.number>1002</employee.number>
    </employee.data>
    <employee.data>
    <employee.name>mrz</employee.name>
    <employee.number>1003</employee.number>
    </employee.data>
    <page>0</page>
    </person>
    </com.companyx>
    Thanks,
    Vijay Karthik

    HI
    GOOD
    IT IS POSSIBLE IN ABAP
    Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.
    XSD->
    XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents. in more detail.
    XDS->
    XDS can process data images from CCD-, imaging-plate, and multiwire-detectors in a variety of formats. Detector specific Input file templates greatly simplify the use of XDS; they are provided as part of the documentation.
    XDS runs under Unix or Linux on a single server or a grid of up to 99 machines of the same type managed by the MOSIX system; in addition, by using OpenMP, it can be executed in parallel on up to 32 processors at each node that share the same address space.
    http://www2.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2926
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    THANKS
    MRUTYUN

  • Specifying an element attribute containing a colon not possible

    Hello everybody
    Might be a stupid question... I'm trying to define a datatype in XI (3.0 SP16) integration repository. This datatype has one root element and some child elements. The root element requires some attributes, one named "xmlns:xsi". Unfortunately this is not accepted from XI! The colon is not accepted.
    So how do I specify such attributes in XI datatype elements?!?
    Thanks for some guidance / help!
    Kind regards,
    Renaud

    Hi Renaud,
    indeed, this is a sophisticated problem. Indeed, the xsi:schemaLocation-attribute, according to the xsd-specification may occur in every instance document. Therefore it is not necessary to describe it in the schema. Indeed, the xsd specification explicitly forbids to have this attribute specified in your schema.
    Hence, there is no way to specify in a XSD file that a receiver <b>expects</b> the occurance of this attribute. As the graphical mapping tool of XI totally relies on XSD there is currently no easy way to tell the mapping-tool that it has to produce this attribute.
    In a first glance I would view it as an inappropriate restriction from a receiver that it forces the sender to send this attribute. As XSD does not provide a possibility to specify this restriction it, in my opionion, contradicts the sence of XSD to require it.
    Anyway, if there is no other way, you may manually extend the XSD such that it contains the reference to that attribute. Formally the result would be no correct XSD anymore, as the XSD specification prohibty to model this special attribute. However, this restriction is currently not checked by XI. Hence, you could upload this file as External Definition anyway. Then the mapping-tool could be forced to produce that attribute.
    Note, that the mapping-tool might use another namespace prefix for the namespace "http://www.w3.org/2001/XMLSchema-instance" (not necessarily xsi). But, as I have indicated in this forum once and again, the string used as namespace prefix should not matter.
    Anyway, this is a workaround, and it probably requires some knowledge on XSD to perform it. Thus, the preferable solution would be to convinve the receiver, not to require that attribute.

  • E4X : How to get elements that contain a string pattern in the node name?

    Is there a way to extract children from an XMLList where the node name of a child contains a string pattern?
    For example :
    <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>
    How to get the elements of record that have a node name that contains the string "blah"?

    var rec:XML = <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>;
    var r:RegExp = /blah/;
    var elems:XMLList = rec.children().(localName().search(r)>-1);
    trace(elems.toXMLString())

  • Setting Element in Container

    I am using the folloiwng code to set elements in a workflow container then triggering an event.  The workflow is being triggered and the container is being created but my elements are not being set.  Can someone see the error in my code?
    include
    <cntn01>.
    DATA Container
    define swc_container.
    data begin of &1 occurs 0.
      include structure swcont.
    data end of &1.
    end-of-definition.
    swc_container chkreq.
      swc_create_container chkreq.
             BREAK-POINT.
      checkkey = zcheckrequest-belnr.
      object_key = checkkey.
      chkreq = zcheckrequest-belnr.
      swc_set_element chkreq 'PurchaseType' zreqtype.
      swc_set_element chkreq 'subspubsnumber'  znumber.
      call function 'SWE_EVENT_CREATE'
       exporting
          objtype                       = 'ZREQCHECK'
          objkey                        = object_key
          event                         = 'park'
        tables
          event_container               = chkreq.
      commit work.

    CLaudio,
    I did a debug on the program to see the container elements and they appear to be populated.  But when the workflow starts, the container is empty.  See the bold items below.  Those are the values that I am expecting to see but they are not set in the workflow container.
                                                                                    Table       CHKREQ                                                                 
      Table Type  Standard Table[9x5(297)]                                               
        LineELEMENT[C(32 )]TAB_INDEX[N(6 )]ELEMLENGTH[N(3 )]TYPE[C(1 )]VALUE[C(255 )]    
            VENDOR         000000          010              C                            
        1   AUTHPURCHASE   000000          001              C                            
        2   CONSULTANT     000000          001              C                            
        3   DATASYSTEM     000000          001              C                            
        4   EMPMORALE      000000          001              C                            
        5   FISCYR         000000          004              N          2010              
        6   FOOD           000000          001              C                            
    7   PURCHASETYPE   000000          005              C          RFC
    8   SUBSPUBSNUMBER 000000          005              N          00041
        9   VENDOR         000000          010              C

  • ERECRUITMENT - Making Container element in Container Sequence mandatory

    Flexibilization within container elements are working fine. However, we need the option to make some container elements as mandatory. For example - We do not want external candidates to submit an application without completing the Work Experience container element. I have made vertain fields within the Work Experience container element as mandatory and this works, but the issue is when the candidate totally skips this container element and submits the application.
    I did not find any IMG option to do this, is it possible only within the BSP? Any ideas?
    Thoughts appreciated.
    Regards, Sunil

    Hello Sunil,
    this is a functionality many customers would like to have. The work experience might be not the best example as there are really applicants who apply for their first job and could never fill this container but from a general point of view the requirement is valid.
    Unfortunately there is no possibility within the standard delivery to check required fields outside of the container at the end of the application wizard. We discussed this with SAP and we got the answer that they can't change the system behavoir due to some architecture issues.
    The only option I currently see would be trying a modification to check your required inputs on the "Submit" button of the application wizard. Of course this might get very tricky if you use different contexts with different sets of required fields.
    Best regards
    Roman Weise

  • Get element from container

    I have created a container which contains numbers and strings elements. I would like to pass the element one by one to a vi. But I don't know how to extract the element respectively.
    Is there a way to get the container's element one by one? Something like: Array[1], Array[i+1] will simply work for array, but what about container? I can't do Container[i]. It will return error.
    Thanks a lot in advance!
    Solved!
    Go to Solution.

    Hi 
    By using your way I get the correct element number and element name. That's a great help. Thanks a lot!
    But regarding the element value you were saying to use "locals.x = cont.name". The problem is that the name I get from "GetNthSubPropertyName" is a string. Then if I pass cont.name into locals.x, locals.x gets the string value "cont.name" rather than the real value of the container's element. It could be, in my case, a number or a string. 
    Is there a kind of function like "GetNthSubPropertyValue" which could obtain the value of a local container, or do you have another way of achieving this?

Maybe you are looking for