How to change the attributes of GUI CONTROLS in my own program.

hi all,
i just want to change the attributes of GUI CONTROLS in my own program.
for example `
How to set an ICON on my GUI BUTTON in the program?
so what's the mapping between CONTROL in the SCREEN PAINTER and variable in the program?

Hi Chao Liu,
Ya , u first find out the PF-STATUS of the screen and goto that status and now u can modify the ICON u want .
Finding the GUI status of the screen
Goto that  TRANSACTION CODE or SCREEN
On the Standard Menu bar Goto ( Menu path) System --> Status
Now u get a pop-up System :status in that in SAP Data block u can find GUI Status. Now Double Click on that Status. It takes u to the Status of that screen.
Now click on the Display --> Change Button on the application tool bar.
If it is a standard GUI-status then it asks for the ACCESS KEY.
if it is a custom defined GUI Status  then u can change the status .
reward if helpful
raam

Similar Messages

  • How to change the attribut of Form in Review Form in ISR

    Hi,
    We have to change the attributes of text fields of form ( e.g disabling the text field ) once user hits the Review Form button on MSS page
    Please let me know how to do it .
    Thanks
    Manish

    Hi Manish,
    You may write the Formcalc scripting for the respective field.
    //Check ISR control parameters for read/write access
    if($record.CONTROL_PARAM.ISR_MODE == "DISPLAY" |
       $record.CONTROL_PARAM.ISR_FORM_VIEW =="ISR_APPROVE" | <b>$record.CONTROL_PARAM.ISR_REVIEW == "true" )</b>
    then
         this.access = "readOnly"
    else
         this.access = ""
    endif
    Hope this helps.
    Thanks and Regards,
    Anto.

  • How to change the attribute name for a relation

    When the Data Modeler engineers a logical model into a relational model it create table columns for the relations. The names of the generated columns are listed in the attributes list in the properties dialog of the relation. The actual name of the attribute gets calculated by the attribute name of the entity which is part of the relation. This is okay, if there is only one relation between two entities. But when there are two relations between two entities the second attribute gets a stupid number suffix. This makes it impossible to give the attribute a useful semantic meaning.
    When I engineer the model into a relational model I can change the column name in the relational model. Changing the column name in the relational model is not perfect but it would be okay for me, if it would not be overwritten during the next engineering run.
    So I have two questions:
    How can I change the attribute name in the attributes section of the properties dialog of a relation? See here for screen shot:
    http://public.ceving.de/2012050300/relationattribute.png
    And if it is not possible:
    How can I preserve any changes on column names in the relational model during a re-engineering run?
    Edited by: 931739 on 03.05.2012 08:07

    Hi,
    I've logged an Enhancement request on this.
    I don't believe it's possible to change it from the Entity or Relationship dialog, as it's not updatable in these dialogs.
    What you can do is change it in the Relational Model, and then reverse engineer the change back to the Logical Model.
    David

  • How to change the  attribute of screen field to drop down list dynamically

    Hi All,
      Col X                   Col Y
      A                        input field
      B                       drop down list
    This is a tabular disply where the Screen field attribute for Col y  is NO DROP DOWN BOX.
    My requirement is to change the attribute of COl Y to DROP DOWN list depending on the value of
      COL X  dynamically.

    Dear Ajay,
    Actually this requirement is to enhance the standard screen for Tcode :EHSVU21.
    So depending on the 1st Column(Test no)  value ,i have to change the 3rd Column(Low.norm.result)
    property either to DROP Down or not.
    So in the PBO only the changes to be made and there is no field in SCREEN internal table for changing the attribute to DROP down. I checked SCREEN internal table where the field VALUE_HELP and REQUEST is useful but not  suitable for my case.
    Any solution available?

  • How to change the attributes of screen fields dynamically

    <b></b>
    well i have created a table by name empmaster_data with following fields.
    *emp_id.
    *emp_fname.
    *emp_lname
    *dob.
    *doj.
    *dept.
    *desig.
    now using a single screen i want to create,change and display the information.even i am using save and exit button.
    now i want to change the attributes of screen fields dynamically like active,input,output,invisible.

    Hi,
    Have Different Radio Buttons for the purposes what you have and use AT Selection Screen Output, Under the event Use loop at screen and with continue with your requirement.
    Hope This Info Helps YOU.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav

  • How to change the attributes of an XML file

    hi peeps 'ope you can help me here i need to change the attributes of an xml file, i parse it first using a DOM parser but i cant find a way to change the attributes in the XML file, setAttribute() works only at runtime and doesn't change the attribute in the file itself. I can't find a method that will answer my question. I've searched through the forum and found similar threads....they say in order to write and change the attribute i must use the write() method of the XmlDocument class defined in com.sun.xml.tree.XmlDocument. But, i found another thread, and it says that com.sun.xml.tree.XmlDocument is not safe to use and i should use org.apache.crimson.tree.XmlDocument.....i can't find the XmlDocument class and the API for this package so i really dont know where to start...hope you guys can help me! thnx

    thanks for responding roland....i already found the solution...i didn't use the XmlDocument class because i can't find any documents about it except for JAXP 1.0 here is my code snippet...i used the TransformerFactory and Transformer class to write
    import org.w3c.dom.*;
    import org.w3c.dom.traversal.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Document doc = null;
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    dbf.setValidating(false);
    doc = db.parse(fileGetFile); //this is the XML file
    n1 = (Node)doc.getDocumentElement();
    e1 = (Element) n1;
    NodeList nodeList = doc.getElementsByTagName ("File");
    //just insert whatever you want to do with the XML...parse it..set/change the attribute..etc....sample snippet below changes the attribute downloaded to "no"
    for(int iWriteFailed = 0; iWriteFailed <nodeList.getLength() ; iWriteFailed ++){     
    n2 = nodeList.item(iWriteFailed);
    e2 = (Element) n2;          
    e2.setAttribute("downloaded", "no");}
    try{
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    transformer.transform(new DOMSource(doc), new StreamResult ( new FileOutputStream ( fileGetFile) ) );}
    catch(Exception trans){}
    thanks for responding and keeping the information interchange alive here in the forum...
    Pau

  • How to change the Purchase requisition when control key is PP02

    Hi Exports:
      I want to change the  purchase requisition which was created after  production order was  released . The  control key is  pp02.
      I  changed the purchase requisition in OPJP .but I got an error .
      the error message is
      " Acct. assign. cat. "Q" for purchase req. Project Stock does not exist. "
      I don't know what should I do . would you like to give me some advice? thank you  very much.

    Hi, Umesh:
         Picture1 is  my OPJP initial screen ,I want to change to be Picture B . but I got an error .
         In fact , I  don't have project stock . but I have sales order stock.
         I try to change 'Q' to other option . but I got the same error.
    picture 1
    picture 2

  • *How to change the Valuation Category & Price control in material master*

    Hello SAP Gurus,
    I have a requirement to change the valuation category from 'X' to '  ' in accounting view of material master.
    -> I have cancelled all the open PO's & SO's for the material
    -> I have ensured that there is no stock for the material in that valuation area.
    But still I get an error message that batch already exists for the material. When I check entries in MCHB I find that there are previous entires in MCHB with zero stock.
    I have gone through the SAP note 155874 which recomends the archiving the effected objects.
    Please let me know is there any work around to change the valuation category from 'X' to '  ' & price control 'V' to 'S'. I also need to change from '  '  to 'X' for a few materials.
    Thanks for your advise.
    Best Regards,
    Narayan.

    Note 155874 cleary describes what has to be done to be able to change.
    There is no workaround, and if you change anything in the tables directly, then this will cause inconsitencies, as described in this note as well.

  • How to change the attribute of process instance by PAPI web service

    Is it possible to change the value of the attribute of one process instance by PAPI web servcie?
    thanks!

    That information is stored in the table PPROCINSTANCE in the engine database in the column instancedata, it is a blob.
    HTH

  • Can we change the attributes of table control wizard once it is created?

    hi,
    i hav created table control using wizard......now i hav to change attributes of that table control.......how to do it ?
    can anyone help me in this...............

    HI,
    Double click on the screen Number in whcih Table control is placed.
    Then Select the ELEMENT List Tab->place the cursor on the Table control and select the Atributes button in the Application toolbar.

  • How to change the attribute names of viewobj dynamically?

    I have a table with columns eg.:
    productlineID, month1, month2, month3....
    Then I have a view object created for this table, and I would like the column names month1, month2,... to be changed dynamically from another query to get the current month (eg. 200011), such that month1 becomes 200011, month2 becomes 200012, month3 becomes 200101 etc... to make the jsp page for browsing and editing the records display the column name correctly, and also the element tag of the XML output by XMLData bean. I'm using JDev 3.1.1.2. Thank you in advance.

    five years after nobody has solution to this and I am posting same question.... interesting...

  • How to change the default currency in CJ32 and CJ33

    Dear all,
    As required by the user, I want to know how to change the default currency from controlling area currency to object currency in TCODE CJ32 and CJ33. Currently, the controlling area currency will be defaulted in the field "Views in".
    Could any one help me? Points will be awarded.
    Thank you.
    Christina.
    Edited by: Virendra Pal on May 5, 2010 8:34 AM

    Hi Christiana ,
    Once you are in tcode CJ30 / CJ32 , Enter either Project definition or WBS element and this shall take you to the Budget screen and once you are here you can find a drop down with two options .One is Controlling are currency and the other one is Object currency.
    Since the Currency is set to Object currency in OPS9, System shall allow the budget values in Object currency and if the user wants to see the same values in Controlling are currency ,then the user needs to view the values in Controlling are currency using the drop down .
    Regards
    Judy

  • How to change the width of a switch control?

    If I set long on&off texts, they can't be fully displayed. How to change the width of this sap.m.switch control?
    P.S., "width" attribute doesn't work here.

    Hi Jocy,
    A switch is just a simple boolean control : true/false, yes/no, on/off. Other possibilities are not possible.
    If you to need to choose between, say, black/white, then a switch is *not* a good choice; nothing stops you from adding yellow/red/blue to the mix as well.
    If you *do* have a strict boolean choice (again, only rue/false, yes/no, on/off) then I would suggest adding a descriptive label with the simple, short switch control.
    Otherwise, I would strongly advice using a different type of control (RadioButtonGroup, DropdownBox)

  • How to change the Short text of a GUI Status .

    Hi Guys ,
       Can any one guide me on how to change the short text of an already existing GUI Status .
    I have already tried doing these :Opened the GUI Status in change mode and changed the short texts of the Application tool bar ,
                               Menu Bar ,
                               Function Keys ,
    thinking that this will update in the Short text .. but that didnt happen ...
    Below is what I need ...
    Requirement :
    GUI Status : Status_001 .
    Short Text :  New GUI Status .
    Change the Short Text to " Changed GUI Status ' . 
    Regards,
    Ranjita

    Hi Ranjita,
    Do this...
    go to SE80
    Open the program.. open node GUI Status
    Double click on the status you want to change
    go to menu GOTO>ATTRIBUTES>STATUS
    click on continue or simply enter
    Here change the short text and continue or enter
    activate it
    Hope this helps..
    Regards,
    Kinshuk

  • How to change the size of control´s prompt?

    No matter the size of data to be displayed in the view suface prompt, the controls have the same size.
    Does anyone here know how to change the size of control in surface prompt?

    HI,
    In order to change the size of a radio button... one way you may consider is to Customise the Radio Button.
    Place a Radio Button (RB) on the FP of a VI, Right-Click the RB > Advanced > Customise...
    Click the Mode Button (most Left button) for Edit Mode
    Right-click the radio button (the round image) now, you will see a list of actions i.e. Copy to clipboard, import picture ...You will see Four images under the 'Picture Item', those are the images that you will need to replace.
    Prepare Four Images of the similar but larger expected size
    *** Copy the 1st new image to clipboard. Back to the Picture Item and select 1st image. Then, select Import Picture (to replace the existing image)
    Repeat *** for all four images.
    Once done, change the mode back to original. Save the *.ctl
    You are now ready to use the customised radio button!
    Quick sample attached (sorry for the poor images created )
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    IFK_RButton_Large.ctl ‏11 KB

Maybe you are looking for