Get menu label on a form

I wanna get the label of the menu and populate it on the form that will open.
I saw there is the function, but what is the menuitem_id MenuItem I have to inform?
FUNCTION GET_MENU_ITEM_PROPERTY(menuitem_id MenuItem, property NUMBER);

Hi,
this is a sample code from Forms help:
** Built-in: GET_MENU_ITEM_PROPERTY
** Example: Toggle the enabled/disable status of the menu
** item whose name is passed in. Pass in a string
** of the form 'MENUNAME.MENUITEM'.
PROCEDURE Toggle_Enabled( menuitem_name VARCHAR2) IS
mi_id MenuItem;
BEGIN
mi_id := Find_Menu_Item( menuitem_name );
IF Get_Menu_Item_Property(mi_id,ENABLED) = 'TRUE' THEN
Set_Menu_Item_Property(mi_id,ENABLED,PROPERTY_FALSE);
ELSE
Set_Menu_Item_Property(mi_id,ENABLED,PROPERTY_TRUE);
END IF;
END;
To find the Label you need something like this:
** Built-in: GET_MENU_ITEM_PROPERTY
** Example: Find the LABEL property
** Pass in a string
** of the form 'MENUNAME.MENUITEM'.
FUNCTION get_menu_item_label( menuitem_name VARCHAR2) IS
Return varchar2
mi_id MenuItem;
menu_label varchar2(50);
BEGIN
mi_id := Find_Menu_Item( menuitem_name );
menu_label := Get_Menu_Item_Property(mi_id,LABEL);
return(menu_label);
END;
Hope this helps,
Hugo

Similar Messages

  • How to get the label on selectOneMenu selected item??

    Hi,
    I'm not able to get the label of the selected item in a selectOneMenu. The code I use to fill it is:
    <h:form id="formNacion" name="formNacion">
    <h:selectOneMenu value="#{modelRtbBean.nacion}" id="selectNacion" onchange="this.form.submit();">
    <f:selectItems value="#{dataRecoveryBean.naciones}" id="idItemsNacion"/>
    </h:selectOneMenu>
    </h:form>
    The dataRecoveryBean has this method to fill the content of the component (basically it creates an arrayList of selectItems by recovering data from a database):
    public ArrayList<SelectItem> getNaciones() {
    if ((naciones == null ) || (naciones.isEmpty()) ){
    naciones = new ArrayList<SelectItem>();
    HDBGeografico hdbGeo = new HDBGeografico();
    SqlMadd sqlmadd = new SqlMadd();
    try {
    AccessBD sscm = new AccessBD( );
    sscm.table(hdbGeo.getSqlNaci());
    // The AccessBD object has a reference to the resultset:
    ResultSet rs = sscm.getRS();
    while (rs.next()) {
    naciones.add(new SelectItem((String) rs.getString(1), (String) rs.getString(2)));
    sscm.Close();
    } catch (Exception e) {
    System.out.println(e.toString());
    return naciones;
    the modelRtbBean setNacion recovers the value, but I need its label too, because it's a kind of description that I use later.
    In the modelRtbBean setNacion method I'm able to access the UISelectItems object, but I cannot get the selected item itself
    public void setNacion(String nacion) {
    FacesContext fc = FacesContext.getCurrentInstance();
    if (fc != null) {
    UIViewRoot viewRoot= fc.getViewRoot();
    System.out.println(viewRoot.getViewId());
    HtmlSelectOneMenu selNac = (HtmlSelectOneMenu)viewRoot.findComponent("bodySTB:formNacion:selectNacion");
    if (selNac != null) {
    System.out.println("Nacion value-htmlSelectOneMenu :" + selNac.getValue() );
    System.out.println(selNac.getAccesskey() + selNac.getTitle() + selNac.toString());
    UISelectItems uis = (UISelectItems)selNac.findComponent("idItemsNacion");
    if (uis != null) {
    System.out.println("I have the element...");
    this.nacion = nacion;
    How could it be accessed this selected item label ??

    I finally did it as you suggest, but I found another way to access the label (I don't know if it could be useful for anybody but here it is) :
    In the setter method linked to the SelectOneMenu, you can put in this code:
    FacesContext fc = FacesContext.getCurrentInstance();
    if (fc != null) {
    UIViewRoot viewRoot= fc.getViewRoot();
    System.out.println(viewRoot.getViewId());
    HtmlSelectOneMenu sel = (HtmlSelectOneMenu)viewRoot.findComponent("viewName:formName:selectOneName");
    if (sel != null) {
    UISelectItems uis = (UISelectItems)sel.findComponent("idItemsName");
    if (uis != null) {
    ArrayList<SelectItem> listElem = (ArrayList<SelectItem>) uis.getValue();
    You could put in in the value item of each SelectItem it's index position in the list, so in the setter method
    of the bean linked to the selectOneMenu you would get the index of the selected item as the parameter of the method
    int index = 1; // For easyness in this example
    System.out.println("Label: " + listElem.get(index).getLabel() + " Value: "+ listElem.get(index).getValue());
    Thanks !!!

  • What is the code to get the  Label of  radio button item at runtime?

    Hi All
    I am working on forms 10g(version 10.1.2.0.2 ) with Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on windows 2000 platform.
    My requirement is to dynamically get the label of the radio button item in a radio group.I am able to get the label of the radio group as shown below
    Item :Radio group
    Label : Gender
    IF m_type = 'RADIO GROUP' THEN
         m_label:=Get_Item_Property(m_Item ,label);
    END IF;
    There two Radio buttons inside this radio group which are
    item     : Radio button
    Label : Male
    item :Radio button
    Label :female
    What is the code to get the label of radio button(i.e) male and female ?
    How will I get the count of radio buttons in a radio group at runtime?
    Regards
    Mohan

    But you have to provide the button name which cannot be get at runtime.
    This is a lack of information that the Dev team would correct !
    Francois

  • Shipping label using ADOBE FORM

    Hi All,
    I have to design the shipping label using adobe form,
    please see the design details and the layout.
    kindly help me with the step by step procedure to succeed the same with the program.
    1. Design Details
    A output type ZLAB will be maintained for delivery document in SAP. The fields that needs to be captured has been mentioned above. The Logic for picking the values in SAP are,
    Sl.No
    Label in the form
    Logic
    1
    Shipper Release
    LIKP-VBELN
    2
    Customer Part Number
    Based on the VKORG, VTWEG, KUNNR and MATNR as in the VBAK/VBAP pass the values in KNMT and get the Value of field KDMAT
    3
    Engine Manufacturer
    Fixed Value
    4
    Engine Group or Model Number
    MATNR from VBAP. Get the sales order number from table VBPA by passing the LIKP-VBELN.
    5
    Engine Serial Number
    Get the OBKNR value by giving the input to LIEF_NR as LIKP-VBELN. Input the OBKNR value in Table OBJK and get the SERNR values.
    6
    Engine Build Date
    Get the field VGUID by passing the LIKP-VBELN to the table VLCDELIVERY
    7
    Engine Family Name or Number
    Pass the VBAP - CUOBJ in FM VC_I_GET_CONFIGURATION and get the Engine family code value.
    8
    Certified Gross Engine
    check kW always
    9
    Emission Control Label Affixed
    always check yes
    10
    Labeled for Replacement Engine in US
    Need to check with Onsite
    11
    Convert the Customer Number + Delivery document number as Bar
    code.
    Regards,
    Lakshmi Narayanan V

    Do you need the image to be a part of the file (ie, embedded on the page), or just as an attachment to it? The latter is easily done, the former not so much.
    Either way it requires that the file be used in either Acrobat or Reader XI, though.

  • Extension of Knowledge Class - Breaks the String Displays (Labels) on Knowledge Form

    Hi,
    A strange issue - hopefully others have encountered this and not just me:
    I'm in the process of adding an additional custom DatePicker to the Knowledge Form (KnowledgeMainForm).
    When the Knowledge Class (System.Knowledge.Article) is extended, and a new custom property is created - it breaks the
    default binding for all the Form's labels (Title, Description, Comments etc).
    The normal behaviour is that the default Labels on a form initially appear as:
    [Title:],
    which then dynamically update to Title: - without the '[]' brackets.
    In my case, these fields remain with the '[]' brackets - see img below:
    *edit = unable to post images - the img link is:
    https://www.dropbox.com/s/u976gj4qqoyf7zy/kaexample01.jpg
    This only occurs when a new property is created in the Knowledge Class (string, datepicker, boolean, anything).
    Scenario:
    - Create new MP to host Knowledge Article (KA) Class extension in Authoring Tool
    - Extend the KA class (System.Knowledge.Article / Knowledge Article) to that new MP
    - Save new MP
    - Create new property in new MP
    - Save new MP and Seal MP
    - Upload Sealed MP into SCSM 2012
    I've been able to replicate this in 3 different instances of SCSM 2012
    Has anyone encountered this and if not, is anyone able to replicate this:
    I've included the new KA Class extension mp below.
    The only customisation was to add an additional String property: Property_23.
    <ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Manifest>
    <Identity>
    <ID>SCSM_INT_KM_Classes</ID>
    <Version>1.0.0.2</Version>
    </Identity>
    <Name>SCSM_INT_KM_Classes</Name>
    <References>
    <Reference Alias="System">
    <ID>System.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Console">
    <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Alias_a3476d86_9ec5_4f6b_96b4_4d80e9d8bf69">
    <ID>System.Knowledge.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    </References>
    </Manifest>
    <TypeDefinitions>
    <EntityTypes>
    <ClassTypes>
    <ClassType ID="ClassExtension_46440273_5853_4402_9ed7_2b8cfbf1819a" Accessibility="Public" Abstract="false" Base="Alias_a3476d86_9ec5_4f6b_96b4_4d80e9d8bf69!System.Knowledge.Article" Hosted="false" Singleton="false" Extension="true">
    <Property ID="Property_23" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    </ClassType>
    </ClassTypes>
    </EntityTypes>
    </TypeDefinitions>
    <Categories>
    <Category ID="SCSM_INT_KM_Classes.Category" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
    <ManagementPackName>SCSM_INT_KM_Classes</ManagementPackName>
    <ManagementPackVersion>1.0.0.0</ManagementPackVersion>
    </Category>
    </Categories>
    <LanguagePacks>
    <LanguagePack ID="ENA" IsDefault="true">
    <DisplayStrings>
    <DisplayString ElementID="SCSM_INT_KM_Classes">
    <Name>SCSM_INT_KM_Classes</Name>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    <LanguagePack ID="ENU" IsDefault="false">
    <DisplayStrings>
    <DisplayString ElementID="SCSM_INT_KM_Classes">
    <Name>SCSM_INT_KM_Classes</Name>
    </DisplayString>
    <DisplayString ElementID="ClassExtension_46440273_5853_4402_9ed7_2b8cfbf1819a">
    <Name>Extension of Knowledge Article</Name>
    <Description>Extension of class Knowledge Article</Description>
    </DisplayString>
    <DisplayString ElementID="ClassExtension_46440273_5853_4402_9ed7_2b8cfbf1819a" SubElementID="Property_23">
    <Name>Property_23</Name>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    </LanguagePacks>
    </ManagementPack>

    Looks like you've found a legit form design bug in the KA form. I'm just guessing here, but I suspect that the form strings builder is choking on the extended class name.
    Report it in connect
    so we can <strike>blackmail</strike> ask the product team to try to get it fixed.

  • User  getting multiple labels in one copy instead of one label.how to solve this issue?

    user getting multiple labels in one copy instead of one label.
    The detail is unexpectedly prints several labels.The amount is variable, may be 10 or 20 such tags.
    any solution for the above issue?

    Hi sriram,
    may i know,Adjusting the SAPscript form will resolve the issue?
    device details:
    access method is "S"
    Thanks,
    Prasad.

  • How to enable File- Export  menu item in custom Form

    I have created a custom form.The File->Export menu item is disable by default.how can i enable this menu item? I have tried
    APP_SPECIAL.ENABLE('FILE.EXPORT',PROPERTY_ON) at block level (when-new-block-instance ) and form level trigger(when-new-form-instance) but not able to enable the same.
    plz suggest way to get this functionality in custom form.

    Hi,
    check below documents can help
    Unable To Export From Files => Export menu option in Applications 11i [ID 275224.1]
    Unable To File > Export Data From A Form [ID 552268.1]
    Unable to Open or Save Export to a File [ID 218209.1]
    Export Menu Item Under File Menu Is Not Bringing Up Dialogue Box Or Openning Up Document [ID 263348.1]
    Regards

  • How to use Ajax Get Multiple Values in Tabular form?

    Hi All-
    I am trying to use AJAX to get multiple values in tabular form by using Denes Kubicek's example in the following link -
    http://apex.oracle.com/pls/otn/f?p=31517:239:9172467565606::NO:::
    Basically, I want to use the drop down list to populate rest of the values on the form.
    I have created the example(Ajax Get Multiple Values, application 54522) on Oracle site -
    http://apex.oracle.com/pls/apex/f?p=4550:1:0:::::
    Workspace: iConnect
    login: demo
    password: demo
    I was able to duplicate his example on page 1 (home page).
    However, I want to use system generate tabular form to finish this example, and was not able to populate the data correctly.
    Page 2 (method 2) is the one that I am having trouble to populate the column values. When I checked application item values in Session, and the values seems to be populated correctly.
    This is what I have done on this page:
    1. Create an Application Process On Demand - Set_Multi_Items_Tabular2:
    DECLARE
      v_subject my_book_store.subject%TYPE;
      v_price my_book_store.price%TYPE;
      v_author my_book_store.author%TYPE;
      v_qty NUMBER;
      CURSOR cur_c
      IS
      SELECT subject, price, author, 1 qty
      FROM my_book_store
      WHERE book_id = :temporary_application_item2;
    BEGIN
      FOR c IN cur_c
      LOOP
      v_subject := c.subject;
      v_price := c.price;
      v_author := c.author;
      v_qty := c.qty;
      END LOOP;
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
      HTP.prn ('<body>');
      HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
      HTP.prn ('<item id="f04_' || :t_rownum || '">' || v_subject || '</item>');
      HTP.prn ('<item id="f05_' || :t_rownum || '">' || v_price || '</item>');
      HTP.prn ('<item id="f06_' || :t_rownum || '">' || v_author || '</item>');
      HTP.prn ('<item id="f07_' || :t_rownum || '">' || v_qty || '</item>');
      HTP.prn ('</body>');
    END;
    2. Create two application items - TEMPORARY_APPLICATION_ITEM2, T_ROWNUM2
    3. Put the following in the Page Header:
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular2(pValue, pRow){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular2',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM2',pValue)
    get.add('T_ROWNUM2',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM2','null')
        gReturn = get.get('XML');
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
                var l_ID = l_Opt_Xml.getAttribute('id');
                var l_El = html_GetElement(l_ID);   
                if(l_Opt_Xml.firstChild){
                    var l_Value = l_Opt_Xml.firstChild.nodeValue;
                }else{
                    var l_Value = '';
                if(l_El){
                    if(l_El.tagName == 'INPUT'){
                        l_El.value = l_Value;
                    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
                        l_El.parentNode.innerHTML = l_Value;
                        l_El.parentNode.id = l_ID;
                    }else{
                        l_El.innerHTML = l_Value;
        get = null;
    </script>
    Add the follwing to the end of the above JavaScript:
    <script language="JavaScript" type="text/javascript">
    function setLOV(filter, list2)
    var s = filter.id;
    var item = s.substring(3,8);
    var field2 = list2 + item;
    f_set_multi_items_tabular2(filter, field2);
    4. Tabular form query:
    select
    "BOOK_ID",
    "BOOK",
    "SUBJECT",
    "PRICE",
    "AUTHOR",
    "QTY",
    "BOOK_ID" BOOK_ID_DISPLAY
    from "#OWNER#"."MY_BOOK_STORE"
    5. In Book_ID_DISPLAY column attribute:
    Add the following code to element attributes: onchange="javascript:f_set_multi_items_tabular2(this.value,'#ROWNUM#');"
    Changed to -> onchange="javascript:setLOV(this,'f03');"
    Now,  T_ROWNUM2 returns value as f03_0001. But, TEMPORARY_APPLICATION_ITEM2 returns as [object HTMLSelectElement]...
    Please help me to see how I can populate the data with this tabular form format. Thanks a lot in advanced!!!
    Ling
    Updated code in Red..

    Ling
    Lets start with looking at what the javascript code is doing.
    function f_set_multi_items_tabular(pValue, pRow){
      /*This will initiate the url for the demand process to run*/
      var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
                              'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
      if(pValue){
        /*If there is an value than submit item name with value*/
        get.add('TEMPORARY_APPLICATION_ITEM',pValue)
        get.add('T_ROWNUM',pRow)
      }else{
        /*Else set the item TEMPORARY_APPLICATION_ITEM to null*/
        get.add('TEMPORARY_APPLICATION_ITEM','null')
      /*Submit the url and te returned document is of type XML*/
      gReturn = get.get('XML');
      if(gReturn){
        /*There is something returned*/
        var l_Count = gReturn.getElementsByTagName("item").length;
        /*For all elements of the tag item*/
        for(var i = 0;i<l_Count;i++){
          /*Get the item out of the XML*/
          var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
          /*Get the id of the item*/
          var l_ID = l_Opt_Xml.getAttribute('id');
          /*Get the element in the original page with the same id as
          **the item we have in the XML produced by the ondemand process
          var l_El = html_GetElement(l_ID);
          /*Now get the value of the item form the XML*/
          if(l_Opt_Xml.firstChild){
            var l_Value = l_Opt_Xml.firstChild.nodeValue;
          }else{
            /*There is no value*/
            var l_Value = '';
          if(l_El){
            /*There is an element with the same id as the item we are processing*/
            if(l_El.tagName == 'INPUT'){
              /*The element is an input item just set the value*/
              l_El.value = l_Value;
            }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
              /*If it is a span elment and has the class grabber
              **Then set the innerHTML of the parent to the value
              **and the id of the parent to the id
              l_El.parentNode.innerHTML = l_Value;
              l_El.parentNode.id = l_ID;
            }else{
              /*Else set the value as innerHTML*/
              l_El.innerHTML = l_Value;
      get = null;
    Now where it went wrong in your initial post
    The XML that was returned by your XML process would be something like
    <body>
      <desc>this xml genericly sets multiple items</desc>
      <item id="f02_1">CSS Mastery</item>
      <item id="f03_1">22</item>
      <item id="f04_1">Andy Budd</item>
      <item id="f05_1">1</item>
    </body>
    When you don't use apex_item to create your tabular form a item in the table will look like
    <input id="f02_0001" type="text" value="CSS Mastery" maxlength="2000" size="16" name="f05" autocomplete="off">
    Notice the id's f02_1 and f02_0001 don't match.
    So to make it work the XML would have to look like
    <body>
      <desc>this xml genericly sets multiple items</desc>
      <item id="f02_0001">CSS Mastery</item>
      <item id="f03_0001">22</item>
      <item id="f04_0001">Andy Budd</item>
      <item id="f05_0001">1</item>
    </body>
    To do that simply use lpad in the ondemand process like
    HTP.prn ('<item id="f02_' || lpad(:t_rownum,4,'0') || '">' || v_subject || '</item>');
    HTP.prn ('<item id="f03_' || lpad(:t_rownum,4,'0') || '">' || v_price || '</item>');
    HTP.prn ('<item id="f04_' || lpad(:t_rownum,4,'0') || '">' || v_author || '</item>');
    HTP.prn ('<item id="f05_' || lpad(:t_rownum,4,'0') || '">' || v_qty || '</item>');
    Keep in mind that the above is based on your original post and #ROWNUM# not being lpadded with zero's.
    Nicolette

  • How do I add mutiple horizontal submenus to one menu label.

    For Muse, how do I add mutiple horizontal submenus to one menu label. In other words, I have Interior,Graphic and Web as one menu. Under Interior I want a horizontal submenu with Kitchens, bathrooms, closets,etc. Then under Kitchens I may want Bars, Islands and pantries.. Windows 7.

    In plan view drag all of the pages you want in a submenu under the page you have set for the top level menu. So in your situation you would want kitchens, bathrooms, clostets etc under the interior page in plan view.

  • How do I get the values from a form?

    How do I get the values from a form?

    You can try using request method..
    request.getParameter("yourFormInputName");
    Try this.

  • Getting the values of a form (JSP, JavaScript involved)

    Hi, basically I want to read the values from one page to another one, but I have found that when call the jsp from a javascript function it does not work!!! ... if I call the page "getValues.jsp" directly from the <form action>, everything works perfectly ...
    ... does anyone know how to read the values without putting the jsp directly into the <form action>?
    In asp i used to get the values from the form with a "Request.Form('fieldName')" method, and i could call the asp from any javascript function. Does jsp has anything similar to that?
    ----- fillValues.jsp ----
    <script language="JavaScript">
    function doSomething(){
    // do something else
    window.document.location="getValues.jsp";
    </script>
    <html>
    <body>
    <form method="post" action="javascript:doSomething()" name="x">
    <input name="fldSubject" type="text">
    </form>
    </body>
    </html>
    ------- getValues.jsp ---
    <%@ page import="java.lang.*" %>
    <%@ page import="java.util.*" %>
    <jsp:useBean id="_mb" class="MyBean" scope="session"/>
    <%
    _mb.setSubject(request.getParameter("fldSubject"));
    %>
    <html>
    Subject <%= _pr.getSubject() %><br>
    </html>

    I dont know what the problem in your code is but the following works:
    <script>
    function foo()
    document.myForm.action="getValues.jsp";
    </script>
    <form name="myForm>
    <input type="submit" name="submit" onClick="foo()">
    </form>

  • Good morning a few weeks ago  I send the request for the replacement program of my ipod nano 1st generation and they sent me the shipping box but I did not get the label to go back,  and I can not  return it , i need to you sent me again the box for retu

    Good morning a few weeks ago  I send the request for the replacement program of my ipod nano 1st generation and they sent me the shipping box but I did not get the label to go back,  and I can not  return it , i need to you sent me again the box for return the ipod

    Best thing would be to call Apple up again, and let them what has happened and they'll help you!

  • Unable to get User Information in infopath form hosted on sharepoint online(2013)

    Im trying to retrieve user information (department, Manager, Work E- Mail, Etc..) into an infopath form hosted in sharepoint online using "/_vti_bin/UserProfileService.asmx"
    web service. But it returns me an error when im opening the form as :
    An error occurred while
    trying to connect
    to a
    web service. Error ID 5566
    Any idea about how to get those  information into a form which hosted in Office365 environment?
    Thanks.

    I believe this is a known issue:http://support.microsoft.com/kb/2674193/en-us

  • How to get field label in downloaded file

    Hi,
    How to get filed labels, when we download a report to an Excel sheet?
    Thank U

    HI,
      Hoping that you are using the 'GUI_Download'  FM to download. Then you the
      following code
    TYPES : BEGIN OF type_xlhead,
              colname TYPE char50,
            END OF type_xlhead.
    data: type_t_xlhead     TYPE STANDARD TABLE OF type_xlhead,
         CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = v_file
            filetype                = c_asc
            write_field_separator   = c_x
          TABLES
            data_tab                = rt_rec_result
            fieldnames              = type_t_xlhead
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
    In the table rt_xlhead pass the name of fields.
    DATA : s_xlhead TYPE type_xlhead.
      CLEAR s_xlhead.
      REFRESH  type_t_xlhead .
      s_xlhead-colname = 'Company Code'(116).
      APPEND s_xlhead TO  type_t_xlhead .
      CLEAR s_xlhead.
      s_xlhead-colname = 'Main Asset Number'(117).
      APPEND s_xlhead TO  type_t_xlhead
      CLEAR s_xlhead.
      s_xlhead-colname = 'Sub Number'(118).
      APPEND s_xlhead TO  type_t_xlhead
      CLEAR s_xlhead.
    Rewards points if useful

  • Labels in adobe forms

    Hi
    Does anyone has nice easy and elegant solution to print  labels in adobe forms ? , solution such as the "Envelopes an Labels" in Microsoft WORD.
    My particular problem is to print 8 labels in page (with 2 columns) from internal table witch contain the data.
    Thanks

    Hi ,
    For this, in the layout part of the form you must define 8 content area into the master page .
    Then for each record of your internal table on pagination tab you must set to go to next content area at end of record.
    I'll do it for a QM forms and it works
    There's a sample of this solution in SAP, have a look at QM_SAMPLE_LABEL1.
    Regards

Maybe you are looking for