Calling different elements in RVADOR01

Hey guys,
So I created a copy of RVADOR01 and called it ZRVADOR01. I also went to the sapscript layout and added a new window that will contain the item line element. I am having problems calling this element in this new window from the print program (ZRVADOR01). I tried changing the code to:
CALL FUNCTION 'WRITE_FORM'
      EXPORTING
             window = 'ITEMDATA'
             type      = 'BODY'
             ELEMENT = 'ITEM_LINE' .
ITEMDATA is the name of the window that contains the element script. If I change the window to MAIN it works because the original element section existed there, but for some reason I can't call my new element in the new window.
Any ideas or clarifications?
Thanks in advance,
Kas

Ok so I checked out the page but it doesn't seem to answer my problem.
I have a window called ITEMDATA.
Inside this window I have specified the following:
/E ITEM_LINE2
IL  &VBDPA-POSNR&.......
Inside my program: ZRVADOR01, I have changed the original code:
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
           ELEMENT = 'ITEM_LINE2' .
to....
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
           ELEMENT = 'ITEM_LINE2' .
           WINDOW = 'ITEMDATA'.
It tells me ITEM_LINE2 is unknown . it is neither in one of the specified tables nor defined by a "DATA" statement

Similar Messages

  • 'CO Area 0001 and SHCA have different elements'

    Hi friends,
    I am trying to copy the number range from 0001 to my controlling area (SHCA) in KANK. However, I am getting the following message: <b>"CO Area 0001 and SHCA have different elements"</b>
    Have I missed something?
    Thanks in advance!

    This symptom is caused due to the fact that the required transactions are not contained in Table TKA04.
    Please fallow the below steps
    1. Run Transaction OKC1 to check which business transactions must exist. OKC1 shows these in a list.
    2. Check Table TKA04 using Transaction SE16 (general table display) Specify the controlling area. Compare the result here with the result from step 1. If not all business transactions from step 1 exist for the controlling area, you must generate the missing
       entries.
    3. Call up Report RKTKA04C using Transaction SE38. Read the  documentation. The report creates the entries that are misiing.
    Regards
    Siva

  • Copy CO Number Ranges : "CO area 2833 and 1753 have different elements

    Hi
    Need help
    I am trying to copy CO number ranges (t.code KANK)
    When I click on the copy icon and enter the source and target co area, I get this messgae "CO area 2833 and 1753 have different elements"
    regards
    Kiat

    Hi ; will do that;
    1. Run Transaction OKC1 to check which business transactions must
    exist. OKC1 shows these in a list.
    2. Check Table TKA04 using Transaction SE16 (general table display).
    Specify the controlling area. Compare the result here with the
    result from step 1. If not all business transactions from step 1
    exist for the controlling area, you must generate the missing
    entries.
    3. Call up Report RKTKA04C using Transaction SE38. Read the
    documentation. The report creates the entries that are misiing.
    Nice.

  • Calling different pages in a single sap script based on conditions?

    Hi All,
             Can anyone please give me an example of how to call different pages in a single sap script based on condition. Eg., i need to call 5 differnet pages from a single sap script based on 5 company codes.
    Please help
    Regards
    Priya

    This approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
    SAPscript -
    /: Perform get_date in program z_at_date
    /:    using &p_year&
    /:    changing &new_date&
    /: endperform.
    program z_at_date -
    form get_date TABLES rec_in  STRUCTURE itcsy
                                    rec_out STRUCTURE itcsy..
    DATA:
       v_year type char10.
    sap script and subroutine uses itcsy structure to transmit parameters
    first parameter is incoming while second parameter is out going
    their function is like an internal table with header line
    all data types between SAPscript and subroutine are string.
    so, you might need additional conversion.
    read incoming parameter with exact name from SAPscript
      READ TABLE rec_in WITH KEY name = 'P_YEAR'.
      IF sy-subrc EQ 0.
        v_year = rec_in-value.
      ENDIF.
    to return value, use the exact name on the second structure
        CONCATENATE v_year v_year INTO v_year.
        READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
        IF sy-subrc EQ 0.
          rec_out-value = v_year.
          MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
        ENDIF.
    endform.
    Hope this helps =)

  • Xslt: mapping different elements onto instances of an unbounded element

    How can you map different elements onto sequential elements of an unbounded type? For example:
    <record>
    <tag1>abc</tag1>
    <tag2>def</tag2>
    <tag3>ghi</tag3>
    </record>
    onto
    <properties>
    <property name="tag1" seq="1">abc</property>
    <property name="tag2" seq="2">def</property>
    <property name="tag3" seq="3">ghi</property>
    </properties>
    The mapping onto the first property will always be from tag1, etc. However, in the schema for <properties>, <property> only appears once:
    <xsd:element name="property" type="NormalizedString" minOccurs="0" maxOccurs="unbounded">
    Can this be mapped using JDeveloper? Can it be mapped by hand?
    If so, how?
    Thanks!

    Hello user,
    I think you will have to do this manually. It's been way too long since I was doing any serious XSLT hacking, and I don't have your schemas, but this may give you a starting point for your transformation;
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns0="http://www.w3.org/2001/XMLSchema"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/Transformation"
    exclude-result-prefixes="xsl ns0 ns1 xref xp20 bpws ora ehdr orcl ids hwf">
    <xsl:template match="/ns1:TransformationProcessRequest/ns1:record">
    <xsl:for-each select="*">
    <xsl:element name="ns1:property">
    <xsl:attribute name="name"><xsl:value-of select="name()"/></xsl:attribute>
    <xsl:attribute name="seq"><xsl:value-of select="position()"/></xsl:attribute>
    <xsl:value-of select="current()"/>
    </xsl:element>
    </xsl:for-each>
    </xsl:template>
    <xsl:template match="/ns1:TransformationProcessRequest">
    <ns1:properties>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest/ns1:record"/>
    </ns1:properties>
    </xsl:template>
    <xsl:template match="/">
    <ns1:TransformationProcessResponse>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest"/>
    </ns1:TransformationProcessResponse>
    </xsl:template>
    </xsl:stylesheet>
    Regarding validation to XSD, I guess that's just a matter of specifying the right namespaces and elements...?
    Regards,
    Rune

  • Map several records to different elements in the same xml node

    Hi,
    I am trying to map data from relational tables to elements as per my xml schema. One of my tables has several records that I need to map to different elements in the same xml node.
    For example:
    Customer_Id | Param_Id |Param_Name
    212 | 1 |State
    212 | 2 |Country
    212 | 3 |ZipCode
    I can not change the structure of this existing table and need to work with it.
    How do I map the different params for a specific customer to my Customer node in the schema?
    One option is to join on the parameters table several times, but there ought to be a better way!
    PLEASE HELP!!!
    Thanks,

    First I question the design that contains/allows 600 attributes on an element. They sound like they really should be elements in the XML.
    Regardless, the following (NOT TESTED) should work for you (assuming you want to write one SQL with 600 columns)
    CREATE OR REPLACE VIEW APPLICATION_XML
    OF XMLTYPE
    Element "LOAN_APPLICATION"
    with object ID
    substr(extractValue(object_value,'/LOAN_APPLICATION/APPLICATION_DATA/@CallID'),1,5)
    AS
    WITH parm_tb AS
    SELECT MAX(DECODE(prv_valu, 1, prv_value)) BusinessType,
           MAX(DECODE(param_id, 2, prv_value)) Product,
           MAX(DECODE(param_id, 3, prv_value)) SomethingElse
      FROM parameter_details
    WHERE prv_pmh_header_id = 1
    SELECT xmlElement
       ("APPLICATION_DATA",
         xmlAttributes
          p.prv_detail_id as "CallID",
          p.PRV_PRM_PARAM_ID as "RandomID",
          p.prv_value as AppInitDate
         xmlElement
         ("PRODUCER_DATA",
           xmlAttributes
            parm_tb.BusinessType as "BusinessType" ,
            parm_tb.Product as "Product"
      FROM parameters_table p
    WHERE p.PRV_PMH_HEADER_ID = 1

  • I'm using a 1D Arrary with 27 different elements and would like to send those data over UDP Write and UDP Read functions.

    I'm using a 1D array with 27 different elements. I would like to transfer that data over a UDP connection, and read it back by using UDP connections.
    But I would like to read 3 elements at a time (On read side) and send those to 9 different ports.
    Note: the data will go to only one PC with one Network Address)
    * 1st elements (0,1,2) and send to port #XXX to see those 1st 3 elements.
    * continue until the elements reaches up to 27
    This is what I have done but I'm finding myself in pitfalls...
    Send side:
    I'm using a UDP Open connection on send side to send my data. So with selected a Source Port, I have created a UDP Op
    en connection. I�m using only one source port to send all the data across the channel. I would like to read 1st 3 elements and send those data across with an assigned Destination port. I would like to do that for 9 times b/c there are 27 elements in the array. So I�m using a For Loop and setting N count to 9. So I�m not getting any errors when I execute and no answer on the other side at all.
    Read side:
    I�m using a UDP Open connection to read in the data with port #. I�m using while loop to with Boolean inside by making a true all the time. Inside that While loop, I�m using For Loop to read the 3 elements data a time and send to a right port address. (As start out I was just trying to see if it works for only one port).
    Attachments:
    UDP_SEND_1.vi ‏40 KB
    UDP_READ_1.vi ‏31 KB

    You are not getting any errors because UDP is a connectionless protocol. It does not care if anyone receives it. Your example will work fine with the following considerations.
    (1) Don't use the generic broadcast address (255.255.255.255).
    (2) You are listening on port 30000. So why are you sending to port 1502, nobody will receive anything there.
    The destination port of the outgoing connection must match the server port of the listener. (The source port is irrelevant, set ot to zero and the system will use a free ephemeral port).
    (3) On the receiving side, you are not indexing on the received string, thus you only retain the last received element. Then you place the indicator outside the while loop where it never gets updated. :-(
    (4) Do yourself a favor and don't micromanage how the data is sent across. Just take the entire array, flatten it to string, send it across, receive it, unflatten back to array, and get on with the task.
    (You can do the same with any kind of data).
    I have modified your VI with some reasonable default values (destination IP = 127.0.0.1 (localhost)), thus you can run both on the same PC for testing "as is". Just run the "read" first, then every time you run "send", new data will be received.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    UDP_READ_1MOD.vi ‏29 KB
    UDP_SEND_1MOD.vi ‏27 KB

  • Use enum or subclassing to differentiate between different elements?

    Hello all,
    I have a design decision to make.
    I have two different Elements with everything the same except the name.
    So I have two ideas on how this can be solved.
    1. Through subclassing.
    2. Through enumeration.
    I have tried to make two examples of this so you can recommend 1 or 2 only on a conceptual level not implementation.
    Sub classing
    public class Element {
         //Methods     
    public class A extends Element {
         //Nothing
    public class B extends Element {
         //Nothing
    public class Main {
         public static void main(String[] args) {
              Element elm = new A();
              if (elm instanceof A){}
              else if (elm instanceof B){}
    }Enumeration
    public class Element {
         public enum Type {A, B}
         private Type type;
         public Element(Type type) {
              this.type = type;
         public Type getType() {
              return type;
         //Methods
    public class Main {
         public static void main(String[] args) {
              Element elm = new Element(Type.A);
              switch(elm.getType()) {
                   case A:
                   case B:
    }Thanks /Farmor
    Edited by: Farmor on Dec 15, 2009 3:14 PM (Spelling error)

    Thanks for the answers.
    Then I will go with the enum solution that will give me a lot of free things.
    Such as I can limit the API user to only choose between my predefined values and the use of my API will be much easier when used in a good IDE.
    /Farmor

  • Is it possible to call different queries in a report whn called from a form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    hello,
    not sure i understand what you are trying to achive. you can change the SQL statement at runtime by using e.g. lexicals in the SQL statement.
    w.r.t. changing the browser title, check the report level properties that define the pre- and post HTML code that is generated into the output.
    regards,
    philipp

  • Different elements of different levels of hierarchy

    Hi experts,
    I have a question about hierarchies obiee 11g.
    I need to do a table that contains (plain text, without '+' to drill-down) different elements of different levels of hierarchy
    I have a hierarchy Account like this:
    Level1
    -----Level2
    -------Element1Level2
    -------Element2Level2
    ------------Level3
    --------------Element1Level3
    -------Element3Level2
    My assignment is to do a table like this
    Level1---------------
    Element2Level2--
    Element1Level3--
    Element3Level2--
    So I don't want to drill-down on Element2Level2 to see Elements of Level3...
    How can I achieve this??
    Thanks!

    If I a not wrong, you basically want to flatten out a hierarchy. You should be able to do it using the Parent-child hierarchy concept newly introduced in OBIEE 11g where the RPD generates the DDL and DML for you, but you might have to build out an intermediate table to source the final flattened hierarchy table. Refer to this link which has a great example. ( http://prasadmadhasi.com/2011/11/15/hierarchies-parent-child-hierarchy-in-obiee-11g/ )
    Thanks,
    -Amith.

  • Calling different pages in smartforms

    Dear Friends,
    I need one solution in smartforms, i need to print the different labels in my smartform. For example i have to print three labels
    and one normal layout. Three labels means having some fixed data of three rows maximum and these labels repetatively i need to print based on some conditions those conditions i am doing in driver program itself.
    For example assume first label i need to print 2 times,second 2 times and third 14 times then final layout contains header and items  section as usual.
    So here in the first page only i need to print first label then i have to call the new page to print second label then i have to call the
    new page to print third label as there are 14 labels in third page i have to print 9 labels and in the fourth page i have to print remaining  5 labels and i need to call new page to print the last section, the last section is like normal layout there mainwindow and everything is there.
    Please help me to handle this scenario.
    Any help will be highly appreciated.
    Thanks a lot in advance.

    This approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
    SAPscript -
    /: Perform get_date in program z_at_date
    /:    using &p_year&
    /:    changing &new_date&
    /: endperform.
    program z_at_date -
    form get_date TABLES rec_in  STRUCTURE itcsy
                                    rec_out STRUCTURE itcsy..
    DATA:
       v_year type char10.
    sap script and subroutine uses itcsy structure to transmit parameters
    first parameter is incoming while second parameter is out going
    their function is like an internal table with header line
    all data types between SAPscript and subroutine are string.
    so, you might need additional conversion.
    read incoming parameter with exact name from SAPscript
      READ TABLE rec_in WITH KEY name = 'P_YEAR'.
      IF sy-subrc EQ 0.
        v_year = rec_in-value.
      ENDIF.
    to return value, use the exact name on the second structure
        CONCATENATE v_year v_year INTO v_year.
        READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
        IF sy-subrc EQ 0.
          rec_out-value = v_year.
          MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
        ENDIF.
    endform.
    Hope this helps =)

  • Calling different views at runtime based on my condition abap webdynpro

    Hi friends,
    Could you pls help me in this issue.
    I am new to webdynpro abap.
    I have an action on my first view.
    basically its a sales order linktoaction.  when i click it, i have to check a condition.
    if  process type = A,
    then navigate to view 2(different abap webdynpro component's view)
    elseif process type = B,
    then navigate to view 3(different abap webdynpro component's view)
    endif.
    I only have experience in calling one view for a action, so i dont have much idea on this how to acheive.
    I have this IF condition, on action event.ON that i need to call view of another application.
    thanks in advance,
    Niraja

    Hi Niraja,
    If you want to pass parameters to a WDA application you can pass them by URL link.
    Example: http://...?pass1=value1&pass2=value2 In this case you pass two parameters to the application.
    In WDA application you can control parameters in windows, you can add parameters in the plug 'Startup' which names are same as URL parameters, and then you can create notes/attributes in the context of windows then map them to the context of view. In the method of startup plug you can pass the parameters to the context of windows. You can search WDA help by WDA application parameters.
    You can check this [link |http://****************/Tutorials/WebDynproABAP/DynamicViews/Window.htm]for dynamic view navigation in a window. And no its a pdf file. It takes you to another website where they have explained it with step-by-step screenshots.
    You may also be interested in checking out this [link |http://****************/Tutorials/WebDynproABAP/views/navigation.htm]where they have explained Navigation from one View to other View along with parameters using Plugs with out using Component Controller context. It too isn't a pdf & does take you to another website.
    Hope these help.
    Regards,
    Uday

  • In Po, How to call different language form ?

    Hi Experts
      For our Japan/China Po form, it has different language. When we create Po and get the output type, How to control which language form it will call?  Since on different language form, some words language is different .
    THanks
    ALice

    Hi greetings
    In general, the Purchase order from will br triggered in the Vendor communication language. ( Maintained in vendor master-General date-Address) provided the Form has been maintained in the specified language in the configuration of output type.
    Gobinathan G

  • Transforming xml file with different elements into HTML

    hi all !
    i have an xml object that has been generated from database using java. the xml file has numerous elements that have been merged into single file. all elements have been got from different table :-
    <?xml version = '1.0' ?>
    <ROWSET>
    <ROW id= "1">
    <EMPID>1</EMPID>
    <EMPADDRESS>H 3 STREET 4</EMPADDRESS>
    <EMPPHONE>98764653</EMPPHONE>
    </ROW>
    <ROW id="2">
    <EMPID>5</EMPID>
    <EMPQUAL>GRADE 12</EMPQUAL>
    <EMPGRADE>A</EMPGRADE>
    </ROW>
    </ROWSET>
    (its just a sample data, might not be wel formed)
    as it shows that each element "ROW" has data corresponding to different employee and with different details. actually these elemnt are the updates in an employee profile that have to be communicated to a distant located database. what i need is a tranformation into HTML so that the recieving user can view this file as html with relative headings of corresponding tables.
    (the schema at both ends is exact replica)
    any help in this regards would be obliging.

    thank you bro!
    the xml file has been created by importing multiple files resulted from XSU into a master file in java. we are running a web based project in a distributed environment. so i would need to make this page appear in a web browser with ACCEPT and REJECT command buttons as the receiver is the approving agent. what all i have thought of so far is to create a style sheet with templates of all heading of each table from where the data is coming from and then run a check on what table the data is from and place that specific heading on the entry. the style sheet would be placed at both ends so only the xml file will be transported and transformation would be done auto.
    i hope it works. but am not sure wether its the right approach or not.

  • Different Element Names

    I think the solution to my problem is very easy, but i couldn't fint it :(
    So, here is:
    I have an XML which have a list of elements with different names, but in sequence.
    An example:
    <DOC>
    <DOC_OBL_1>
      <TIP_DOC_OBL>1</TIP_DOC_OBL>
    </DOC_OBL_1>
    <DOC_OBL_2>
      <TIP_DOC_OBL>2</TIP_DOC_OBL>
      </DOC_OBL_2>
    <DOC_OBL_3>
      <TIP_DOC_OBL>3</TIP_DOC_OBL> 
    </DOC_OBL_3>
    </DOC>So, i have 3 elements: DOC_OBL_1, DOC_OBL_2 and DOC_OBL_3. And yes, there could be number 4, 5, 6, etc.
    As you can se, all 3 have the same elements inside(actually, they have a lot of them, but arent important righ now), and I thinked i could declare a general type which could validate this kind of documents.
    How can i validate this with an Schema???
    I know its a very ugly XML (maybe it isnt standard, please tell me, i dont know), but It's not my concern to build this document. I just have to parse it, validate it and transform it.
    You can just link to the solution, any help will be wellcome.

    Ok, thank you all.
    I've done this, finally:
      <xsd:element name="DOC_OBL">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="DOC_OBL_1" type="DocOBLType" minOccurs="1" />
            <xsd:element name="DOC_OBL_2" type="DocOBLType" minOccurs="0" />
            <xsd:element name="DOC_OBL_3" type="DocOBLType" minOccurs="0" />
            <xsd:element name="DOC_OBL_4" type="DocOBLType" minOccurs="0" />
            <xsd:element name="DOC_OBL_5" type="DocOBLType" minOccurs="0" />
            <xsd:element name="DOC_OBL_6" type="DocOBLType" minOccurs="0" />
            <xsd:element name="DOC_OBL_7" type="DocOBLType" minOccurs="0" />
            <xsd:element name="DOC_OBL_8" type="DocOBLType" minOccurs="0" />
            <xsd:element name="DOC_OBL_9" type="DocOBLType" minOccurs="0" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>with this:
      <xsd:complexType name="DocOBLType">
        <xsd:sequence>
          //elements..
        </xsd:sequence>
      </xsd:complexType>It works, for now. ^^
    (No, no, no.. i cant change the document formart, its not my concern!!)

Maybe you are looking for