Want to change the text of a coloumn dynamically in module pool program

Hi to all experts,
I need to change the text in a table control( of a column)of a module pool program dynamically ....depending on the company cod e.

Hi,
In program depends on the condition you can access the table_control-cols-name and modify it accordingly.
Eg:
CONTROLS TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.
you can access the control like:
TABLE_CONTROL-COLS[1]-SCREEN-NAME
and modify the same dynamicaly
cheers
shibu

Similar Messages

  • How to change the text of a button dynamically in module pool

    hi gurus,
    how to change the text of button dynamically

    Hi ,
    Declare a variable in TOP Include with your button name.
    Example : P_BUTTON(20) TYPE C.
    Place button with name P_BUTTON on you screen. Do not forget to mark it as "Output Field". [ Double click on button, Attributes --> Program tab --> tick "Output Field".
    In you PBO / PAI , whereever you want to change your text -
    Assign value to P_BUTTON.
    Example -
    iF COND1..
    P_BUTTON = 'EDIT'.
    ELSEIF COND2.
    P_BUTTON = 'DISPLAY'.
    ENDIF.
    Regards,
    Mohaiyuddin

  • How to deactivate the screen fields dynamically in Module Pool Program?

    Hi guys,
         How to <b>activate & deactivate the screen fields</b> of a <b>module pool program</b>
    <b>dynamically</b> through program. Like Change mode and display mode in a single
    screen.

    Hi,
    Make use of a Variable,say gv_flag, for both Activate and Deactivate functionalities. As many times you hit the same button, change this variable value. For example, let us say first time you hit this button, assign value 'X' to this variable. Second time you hit this button, assign value ' ' to this variable. In PBO based the variable value  you have to Activate and Deactivate.
    PBO.
      if gv_flag = 'X'.  " Activate
        loop at screen.
          if screen-fname = 'ITAB1-MATNR'.
             screen-input = '1'.
             modify screen.
          endif.
        endloop.
      elseif gv_flag = ' '.   " Deactivate
          if screen-fname = 'ITAB1-MATNR'.
             screen-input = '0'.
             modify screen.
          endif.
        endloop.
      endif.
    PAI.
      case sy-ucomm.
         when 'ACDC'.   " Activate/Deactivate
             if gv_flag = 'X'.
               gv_flag = ' '.
             else.
               gv_flag = 'X'.
             endif.
      endcase.
    thanks,
    sksingh

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • I want to change the text of the button 'go to checkout' in shopping basket

    Hi experts,
    After I put some products into shopping basket in Webshop(E-commerce B2C) in Japanese Version, when I want to do the checkout for those products, I found the text of the button 'go to checkout' was not correct in japanese language, so I want to change it into correct japanese language, Could you please give me some advices where I can find it's configuration location?
    Thank you very much.
    Quanyin

    Hi,
    Start your application with appending ?translate.show.key.only=99 at the end of the url.
    This will give you the key corresponding to "Go to checkout" text.These keys are maintained in langauage
    properties files which you can find under this path /web-inf/classes.You can easily change the key/text value pair here.
    Regards,
    Arshi
    Edited by: Arshi Arshi on Aug 19, 2009 9:40 AM

  • Is there a way of just changing the text to the main menu..but not the submenus?

    Is there a way of just changing the text to the main
    menu..but not the submenus?
    Also i have looked at in the browser and when i glide over
    the menu catergories or click on them they dont show the
    submenu...what can i do to solve this?

    Does the example described at
    http://labs.adobe.com/technologies/spry/articles/menu_bar/index.html
    work for you?
    What are you doing that's different from the example?
    When you say you just want to change the text of the main
    menu without changing the submenus, do you mean you want to do so
    dynamically, at some later stage after the page has loaded?
    If so, you could try retrieving the main menu elements you
    want to update from the DOM and updating them from your script's
    event handler for whatever event it is that you want to update them
    in response to. This presumes the widget will detect this and
    update appropriately, which I can't say for sure since I haven't
    actually tried it.
    Hope that helps!
    Rob

  • How can I change the text in toolbars ("Forward" to "Fwd", etc)

    I want to shorten the text for items in my toolbar because the address box is way too short. I know how to change the items for items on the second row toolbar (right-click>properties), but I want to change the text for items in the top row. Right click does not show a property option for the items in the top row. For example, I want to change "Back" to "Bk", "Forward" to "Fwd". Two of the items are way too long ("Google Shortcuts v" and "Downloads"). I want to change these to "Gogl extr" and "DnLds". I want both text and the icons.
    By any chance, if the above can not be done, can I create custom icons? I'd take the current icon (where are they stored?) and add my own text into the icon, then tell firefox to show the icon.
    I'm using Firefox 22.0

    Have you considered using Icons ''(only)'' instead of Text and Icons in the Customize Toolbars dialog box?

  • How do I change the text of a specific MESSAGE field for a specific Alert

    I want to change the text for the "Message" field (10.2.0.5 OEMGC) for the "Blocking Session Count" alert that shows up in Notifications.
    Does anyone know where the text is stored? I do not find it in Preferences>Rules in the Console nor in any obvious views or tables in the OMS.

    What is the Agent version monitoring the Database for which this alert is raised?
    You need to apply the fix for Bug : 9110313 to the Agent on the database machine.
    Refer to Note 9110313.8: Bug 9110313 - Metric clear alerts reported when warning and critical threshold are crossed

  • How to change the text for the tabs of a tabstrip control dynamically

    Hi Guys,
        I am having two screens in a transaction.
    1. 1st screen has material number as an input and submit push button
    2. 2nd screen has two tabs in a tabstrip control.
        I want to display material description and plant number as heading for the two tabs based on the material number entered by the user in the 1st screen. Means i want to change the text dynamically. Is there any possible way? If it is there please help me. Very urgent...
    Thanks in advance
    James.

    Hi,
    If you set the "Output field" attribute for a pushbutton/tab, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton/tab. You must then assign the required text to the field before the screen is displayed.
    For example define a global field in your program called MATNUM(20) and use this as the name for the material number tab on the tabstrip. Then you can assign a text MATNUM = 'Material Number' and this will appear as the tab title. Don;t forget to set the "Output field" attribute on the tab.
    Hope it helps

  • How to change the text of item's displaying in the folowing ALV.

    Hi Experts,
    I want to change the text of item's displaying in the folowing ALV.
    Go to ME23N->Click 'Messages'->Click 'Further Data' -> Click 'Displ.Originals'.
    Here one small ALV grid is appearing.
    Currently it is showing same name's under the 'Title' column of that ALV. My requirement is to change the text coming under the column 'Title' in that display.
    Can any one throw some light in the issue.
    Thanks&Regards,
    Anversha

    Hi Anversha ,
    i think you need to use Enhancement point for it.
    check the program DV70AF0A-->ARCHIV_ANZEIGE(Subtoutine).
    i had similar kind of requirement ,while attaching the supporting documents to FI document , i need to update title field with File name , so i used EP and BADI to do so.
    regards
    Prabhu

  • How to change the text of a standard iview

    Hello,
    We are implementing ESS on ERP 2005 in an Irish client, and there is no Irish version of the webdynpro iview to change Personal data. So we follow the IMG docu and use the GB iview and works fine.
    The problem is that the text on one of the fields comes as "Nat. Ins. No.", and that is an English expression. Here they use something called "PSS number". No need to say that Irish are not too kin on using English expressions.
    So the question is: how can I change that text without having to create a new iview?
    Please help.... Thanks,
    Andres

    Hi Andres,
         If you want to change the text in webdynpro iview:
    1. Open the package Explorer view and expand your src/packages
    2. Copy the .xlf file (___.wdview.xlf) which contains the field "Nat. Ins. No." and rename it (add "_en" before ".xlf" or ISO standard for irish english)
    3. Translate the renamed "_en.xlf" files.
              Double click the xlf file and it is displayed in S2X editor.
             On the tab header, change the source language to British-English. (There is only American English and British English options in the source language)
             Switch to tab "Resource Text" and translate "Nat. INs. No. to PSS number.
              Had it been any other language, it is bound to work for sure. However i find no Irish English in webdynpro source options...
    Hope this helps
    Sumathi

  • How to change the text of a tabstrip?

    Hallo Experts,
    There are 3 tabstrips in Screen Painter with the name tabstrip1, tabstrip2 and tabstrip3. The default text ist: customer_fields1, customer fields2, customer fields3.
    Now I want to change the text of tabstrips in real time. E.g. text of tabstrip1 should be "Financial Data".
    How can I do it?
    Thanks,
    Rujing

    Well, I've tried out some possible solutions, but none of the worked, I could not change the text dynamically during runtime.
    You have some alternate solutions: create more tabs, and show hide them during runtime. For this you can use the dynpro's PBO event, and within the LOOP AT SCREEN... ENDLOOP. statements.
    And an another one (that's absolutely not an elegant soluton
    - create a DDIC structure (in SE11 transaction), with a field, like ZMYSTRUCTURE-ZMYFIELD. This field should refer to a data element, like ZMYDATAELEMENT. Here you can set a default text for this data element.
    - assign this ZMYSTRUCTURE-ZMYFIELD field to the name of your tabstip's tab.
    - when you wanted to change the text, you have to change the text, you update the text of your data element ZMYDATAELEMENT, in the table DD04T.
    This might work... I'm not sure about it, but you might give it a shot.
    Regards
    Tamá

  • Change the Text in Linked TFL on the fly

         I have 3 TFL fields on the stage. They are linked so the text overflow from the first spills into the subsequent fields 2 and 3. I want to change the text dynamically but when I do the overflow text do not "overflow" into the other fields. It is as if they were not linked at all.
    For instance, when I call:
    textField1.htmlText = "bla bla bla......" 
    the first text field displays the text just fine but the "overflow" does not display in textField2 and textField3 eventhough they are linked on the stage and the initial text displays just fine.
    Can this be done?
    \\Nick

    Do you mean TLFTextField in Flash pro? If you are talking about TextField, there is nothing about TLF.
    TextFlow can flow through linked containers. You can make it on linked Sprite. TLFTextField is a kind of Sprite. You need not to use TLFTextField to implement such a feature.
    Sample code:
        import flash.display.Sprite;
        import flashx.textLayout.compose.StandardFlowComposer;
        import flashx.textLayout.container.ContainerController;
        import flashx.textLayout.conversion.TextConverter;
        import flashx.textLayout.elements.TextFlow;
        import flashx.textLayout.edit.EditManager;
        import flashx.textLayout.container.ScrollPolicy;
        public class ContainerControllerExample1 extends Sprite
            private const textMarkup:String = "<flow:TextFlow xmlns:flow='http://ns.adobe.com/textLayout/2008' fontSize='8' " +
                    "textIndent='10' paragraphSpaceBefore='6' paddingTop='8' paddingLeft='8' paddingRight='8'>" +
                "<flow:p paragraphSpaceBefore='inherit'>" +
                    "<flow:span>There are many </flow:span>" +
                    "<flow:span fontStyle='italic'>such</flow:span>" +
                    "<flow:span> lime-kilns in that tract of country, for the purpose of burning the white" +
                        " marble which composes a large part of the substance of the hills. Some of them, built " +
                        "years ago, and long deserted, with weeds growing in the vacant round of the interior, " +
                        "which is open to the sky, and grass and wild-flowers rooting themselves into the chinks" +
                        "of the stones, look already like relics of antiquity, and may yet be overspread with the" +
                        " lichens of centuries to come. Others, where the lime-burner still feeds his daily and " +
                        "nightlong fire, afford points of interest to the wanderer among the hills, who seats " +
                        "himself on a log of wood or a fragment of marble, to hold a chat with the solitary man. " +
                        "It is a lonesome, and, when the character is inclined to thought, may be an intensely " +
                        "thoughtful occupation; as it proved in the case of Ethan Brand, who had mused to such " +
                        "strange purpose, in days gone by, while the fire in this very kiln was burning.</flow:span>" +
                "</flow:p>" +
                "<flow:p paragraphSpaceBefore='inherit'>" +
                    "<flow:span>" +
                        "The man who now watched the fire was of a different order, and troubled himself with no " +
                        "thoughts save the very few that were requisite to his business. At frequent intervals, " +
                        "he flung back the clashing weight of the iron door, and, turning his face from the " +
                        "insufferable glare, thrust in huge logs of oak, or stirred the immense brands with a " +
                        "long pole. Within the furnace were seen the curling and riotous flames, and the burning " +
                        "marble, almost molten with the intensity of heat; while without, the reflection of the " +
                        "fire quivered on the dark intricacy of the surrounding forest, and showed in the " +
                        "foreground a bright and ruddy little picture of the hut, the spring beside its door, the " +
                        "athletic and coal-begrimed figure of the lime-burner, and the halffrightened child, " +
                        "shrinking into the protection of his father's shadow. And when again the iron door was " +
                        "closed, then reappeared the tender light of the half-full moon, which vainly strove to" +
                        "trace out the indistinct shapes of the neighboring mountains; and, in the upper sky, " +
                        "there was a flitting congregation of clouds, still faintly tinged with the rosy sunset, " +
                        "though thus far down into the valley the sunshine had vanished long and long ago.</flow:span>" +
                "</flow:p>" +
            "</flow:TextFlow>";
            public function ContainerControllerExample1()
                // create the TextFlow, containers, and container controllers
                var textFlow:TextFlow;
                var container:Sprite = new Sprite();
                var container2:Sprite = new Sprite();
                var controllerOne:ContainerController = new ContainerController(container, 200, 210);
                var controllerTwo:ContainerController = new ContainerController(container2, 200, 220);
                // import the text flow from markup using TextConverter and assign a StandardFlowComposer
                textFlow = TextConverter.importToFlow(textMarkup, TextConverter.TEXT_LAYOUT_FORMAT);
                textFlow.flowComposer = new StandardFlowComposer();
                addChild(container);
                addChild(container2);
                container.x = 25;
                container.y = 100;
                container2.x = 280;
                container2.y = 100;   
                // add the controllers to the text flow and update them to display the text
                textFlow.flowComposer.addController(controllerOne);
                textFlow.flowComposer.addController(controllerTwo);
                textFlow.flowComposer.updateAllControllers();
                textFlow.interactionManager = new EditManager();
                //controllerTwo.verticalScrollPolicy = ScrollPolicy.ON;

  • How do you change the text of a JButton?

    This question probably has a simple answer. If I've already created multiple JButtons with no text inside them and I want to change the text inside them later, what method do I call?

    ksg089 wrote:
    This question probably has a simple answer. If I've already created multiple JButtons with no text inside them and I want to change the text inside them later, what method do I call?Someone will give you the direct answer, but the best answer is this: learn to read the API. This is a skill that will help you immensely more than my just telling you the method. It's a "set" method, I believe that it is in one of JButton's ancestors (AbstractButton?), and when you see it, it will be obvious to you that this is the solution. Good luck!
    the link is [here.|http://java.sun.com/javase/6/docs/api/javax/swing/JButton.html]
    Edited by: Encephalopathic on Mar 28, 2008 10:25 PM

  • How can i change the text of inbox?

    Hello SRM friends
    I use SRM Server5.5. (Classic scenario)
    I want to change the text of inbox.
    We have the following process for GR.
    1.     Vendor request confirmation (GR) in SRM.
    2.     Approver approves the confirmation on approval menu.
    As you know that standard text is “Approve Confirmation no. 1000000166 from Local vendor test “ in approval list. 
    “Approve confirmation no. <Confirmation number> from <vendor name>.”
    I think that confirmation number and vendor name are variable.
    I want to change this text such like “Approve GR for PO no. <PO number> from <vendor name>”
    How can I change this text of inbox?
    Is there any BADI or function?
    Thank you
    Best regards,
    SH

    Hi Andy
    2) Enter Worklfow: WS10400020 ( check whether this wokflow is active for GR )
    --> Yes.
    3) Go to the Task TS10407924 and double click
    or 1) Go to pftc_dis - > give task TS10407924
    --> Yes. I changed text "Approve GR For PO number &PROCCONFIRMATION.PURCHASEORDER&from&DOCUMENTCREATOR&
    But Approver can see the text " Approve GR For PO number"
    But i go to BBP_PD, I can see the worlflow text " Approval GR for PO number  from VENDOR2"
    Is there additioanl step to activate the changed text?

Maybe you are looking for