Change Dialog Screen Field Position Dynamically

Hi
Can I change screen field position at runtime?
I saw that in the SCREEN Structure there aren't any fields to set the position. Is there a Function Module or a Class to do that?
Thanks,
Eyal

Hi Eyal,
Good Question.
1. R/3 abap does not allow this facility.
2. However, if we use a custom control /container,
   then there one property LEFT, TOP,
  which is avaialbe in the OO hierarchy.
  CL_GUI_OBJECT  1 
  CL_GUI_CONTROL 2  <----
  ... CL_GUI_ALV_GRID, ETC. ETC.
3. This 2 has got this property
4.  we can use like this.
  CALL METHOD grid->set_top
    EXPORTING
      top        = 1500
    EXCEPTIONS
      cntl_error = 1
      OTHERS     = 2.
5. I tried but i don't know why its not working.
regards,
amit m.

Similar Messages

  • Changing Screen field position dynamically

    Hi,
    Is there a way to change the position of screen fields dynamically in a module pool program?
    My requirement is that based on the value of a variable, I need to arrange a few input and text fields on a subscreen in different order.
    Points will be rewarded for helpful answers..
    Regards
    Abhishek

    Hi,
    For this what I can think of is that u need to create the fields multiple times on the same screen and then using SCREEN variables, u need to make them visible/invisible.
    e.g. Say, u want Matnr at first position at one time and 6th position at another. In that case, what u can do is create the field MATNR twice and them hide/unhide it depending upon the condition.
    Hope this helps.
    Regards,
    Himanshu

  • Problem in Screen field position ( Module pool )

    Hi Experts,
    We changed the screen field position ( GUI ) of SAP standard module pool program.  we had taken the access key from SAP and modified the layout.
    Our Problem :   We had transported  these change request to Quality and Pre Production. The changes are transferred correctly in Quality .  when coming to Pre Production the changes are not visible on  the screen.
    Checks Performed :  1. We had analyzed the Transport request - They are imported correctly.
                                        2. We had rechecked the layout that we had changed its good and correct.
    Can you experts help me out in identify the exact solution for this problem.
    - Best Regards,
    Sudhakar Puppala
    Edited by: CRM Sudhakar on Sep 16, 2010 11:25 AM

    Hi, no idea can be given without having a look..
    but just check the screen layout in the pre-production itself..instead checking transport..

  • Dialog screen fields: Can I name them dynamically in the modules?

    Hi.
    I am using dialog screens for my program.
    I need to dynamically refer to the screen fields on my dialog screen.
    I tried the following, but encountered errors:
    DATA: TXT_FILE(10) TYPE C VALUE 'TXT_FILE1'.
    MODULE GET_FILE10.
        (TXT_FILE) = XFILETABLE-FILENAME.
      ENDIF.
    ENDMODULE.            
    Error encountered: Field "(TXT_FILE) is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

    Try using field symbols here.
    DATA: TXT_FILE(10) TYPE C VALUE 'TXT_FILE1'.
    MODULE GET_FILE10.
    Field-symbols: <fs>.
    assign (txt_File) to <fs>.
    <fs> = XFILETABLE-FILENAME.
    ENDMODULE.
    Regards,
    Rich Heilman

  • Re: Changes to screen field date was not updated

    Hi,
    I had a dialog screen showing a valid from date as 10.10.2007. I changed it to 15.10.2007 and click on other details tab. when I returned, it is still showing the old values.
    When I did a DEBUG, upon changing and hitting enter key, the new dates for the screen field is not changed. it is still showing the old date for the screen field.
    why is it so?
    I think this is the cause of why the old values is still displaying. How can I get the field updated to my internal table. It need to be filled with the new values before I can updated to my internal table and then re-displayed again.
    How to get the new values into the screen field?

    Hi..
    As i understatnd this field is in TABLE Control.
    In that case you must Update the Internal table in the PAI .. Inside LOOP .. ENDLOOP.
    Process After Input.
      LOOP AT ITAB.
       Module Update_itab.  "Calling the module
      ENDLOOP.
    <b>In Module pool</b>
       Module Update_itab INPUT. 
        modify itab from wa index TABCON-CURRENT_LINE.
       ENDMODULE.
    Note: Here WA is the work area of the Screen fields and TABCON is the Table control variable.
    <b>Reward if Helpful.</b>

  • Can't initialise dialog screen fields with values

    Hi.
    I have a dialog screen with 10 fields named
    TXT_FILEDESC1, TXT_FILEDESC2, ...TXT_FILEDESC10.
    I tried to initialise these 10 fields with the following codes, but I got an error message:
    DATA: TXT_FILENAME TYPE ZDM_OF-FILE_NAME,
          TXT_FILEDESC TYPE ZDM_OF-FILE_DESC.
    FIELD-SYMBOLS: <FS_TXT_FILENAME>, <FS_TXT_FILEDESC>.
    MODULE PBO_9000 OUTPUT.
      SET PF-STATUS 'STATUS_9000'.
      SELECT FILE_NAME FILE_DESC FROM ZSCSDM_OF INTO TABLE SCREEN_INIT.
      LOOP AT SCREEN_INIT INTO SCREEN_INIT_LINE.
        SCREEN_INIT_NO = SY-TABIX.
        CONCATENATE 'TXT_FILEDESC' SCREEN_INIT_NO INTO TXT_FILEDESC.
        ASSIGN (TXT_FILEDESC) TO <FS_TXT_FILEDESC>.
        MESSAGE E002(ZMSGGARY) WITH TXT_FILENAME.
        <FS_TXT_FILEDESC> = SCREEN_INIT_FILEDESC.
        ENDLOOP.
    ENDMODULE.                    "PBO_9000 OUTPUT
    Runtime Error - A new value is to be assigned to the field "<FS_TXT_FIELDDESC>", although this field is entirely or partly protected against changes...
    Could anyone share why I got the above error message when i try to run the program (Execute --> In A New Window)? Thanks.
    null

    I got the reason for the error. It's because I did not clear the contents of TXT_FILENAME before the next loop.
    LOOP AT SCREEN_INIT INTO SCREEN_INIT_LINE.
    <b>TXT_FILENAME = ''. ==> This solves the problem.</b>
    CONCATENATE 'TXT_FILEDESC' SCREEN_INIT_NO INTO TXT_FILEDESC.
    ENDMODULE. "PBO_9000 OUTPUT

  • How to change the screen field text in runtime

    Hi ,
      I want to change the screen button text in runtime IN ABAP dynpro screens. if anybody know this please post some helpful answer
    Regards,
    Anil kumar G

    Hi Anil..
    We can change the Text of a Pushbutton dynamically.
    For this:
    1. Declare a Global variable with the Same name as the Button in TOP include
      Eg:   Data: Button1(30).
    2. In the PBO module of the Screen assign the Text to this variable:
       Eg:
        Module set_text OUTPUT.
            Button1 = 'This is the text'.
        ENDMODULE.
    <b>REWARD IF HELPFUL.</b>

  • Hide or Show the Dialog Screen Field in a SAP Transaction

    Hi All,
    I am working on a SAP Upgrade Project (4.6C to ECC 5.0). In VA03 Transaction, There is a Filed Name VBAK-KTEXT with Field Text as “Description” appears in 4.6C. But it does not appear in ECC 5.0. I checked the screen Layout in 4.6C as well as ECC 5.0 and noticed that VBAK-KTEXT is available in the Layout of ECC 5.0 but does not appear in the Transaction VA03.
    I was told that there is a way in Customization to Hide or Show a Screen Field for any Transaction. Can any one please guide me through this? I need this help as soon as possible.
    Thanks,
    Kannan.SA

    Hi,
    I am not sure if there's a tcode using which you can configure all the screens the only tool I know that can do this is GUIXT. Regarding the configuration some of the fields are configurable based on document types you should check with SD functional person regarding this. Unfortunately I don't have R/3 access right now, but you can look under SPRO in SD and look for document type.
    thanks

  • How to change Table Cell Field Type Dynamically?

    Hi All,
    I am fetching some news data from backend DB and displaying them in a WD Table. Now one News Item may or may not have a URL behind it. If I find the URL as null then I want to display the news as simple TextView otherwise as LinkToUrl. How can I change this input type dynamically for each row in the runtime?
    If I use LinkToUrl all the time then the items which has URL as null gets displayed as normal text, but they are of very faint color and I can not change the text design. Whether if I user TextView I can set some text design like Header2, Header 3 etc.
    Can anybody please help with some code block? My main requirement is how to change the table cell input type dynamically.
    Thanks in Advance.
    Shubhadip

    Hi Shubhadip,
    This is the sample code for creating and adding a table cell editor table dynamically.
    public static void wdDoModifyView
    (IPrivateDynamicTableCreationView wdThis, IPrivateDynamicTableCreationView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    //@@begin wdDoModifyView
    /*** 1.Create Table **/
    IWDTable table =
    (IWDTable) view.createElement(IWDTable.class, "table1");
    table.setWidth("100%");
    table.setVisibleRowCount(data.length);
    /*** 2.Create nameColumn **/
    IWDTableColumn nameColumn =
    (IWDTableColumn) view.createElement(IWDTableColumn.class, "Name");
    IWDCaption colHeader =
    (IWDCaption) view.createElement(IWDCaption.class, "NameHeader");
    colHeader.setText("–¼‘O");
    nameColumn.setHeader(colHeader);
    IWDTextView nameViewer =
    (IWDTextView) view.createElement(IWDTextView.class, "NameViewer");
    nameViewer.bindText(nameAtt);
    IWDTableCellEditor editor = (IWDTableCellEditor) nameViewer;
    nameColumn.setTableCellEditor(editor);
    table.addColumn(nameColumn);
    IWDTableColumn nationalityColumn =
    (IWDTableColumn) view.createElement(
    IWDTableColumn.class,
    "Nationality");
    IWDTableCellEditor nationalityEditor =
    (IWDTableCellEditor) nationalityViewer;
    nationalityColumn.setTableCellEditor(nationalityEditor);
    table.addColumn(nationalityColumn);
    /** 3. Bind context to table **/
    table.bindDataSource(nodeInfo);
    //@@end
    Bala
    Kindly reward appropriate points.

  • How could I modify change ESS screen fields?

    How could I modify the labels, of a webdynpro from ess. For Example in ESS's option "Working time" in the menu "Leave Request", we want to change the label "Type of Leave" for "Type of Abscense".
    thanks

    Hi, by using iview Personalization:
    Go to Content Admin > Portal Content, look for your iview. Open in preview mode and press Ctrl + Right Click under the field to change its properties.
    Regards

  • Screen Field Text Modification

    Hi,
         How can I change the Screen Field Text dynamically? Is there any attribute like Name for Text in the SCREEN table?
    ex: on certain condition, the text should be "Override Assignment" and another the text of the field should be "Manual Assignment"
             Please help me in this regard.
    Thanks,
    V.Nagaraju.

    Hi,
    Try the code given below.
    Regards,
    Wajid Hussain P.
    DATA:   g_atwrt TYPE atwrt.
    PARAMETERS: p_text(15).
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: COMMENT 1(15) g_text FOR FIELD s_vbcod .
    SELECT-OPTIONS: s_vbcod FOR g_atwrt.
    SELECTION-SCREEN:  END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
      g_text = p_text.
      s_vbcod = g_text.
      LOOP AT SCREEN.
    " Do the following when your condition is satisfied
        IF screen-name CS 'S_VBCOD'.
          screen-name = g_text.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • Dynamic field positions

    Hi Friends,
    I have a requirement of Dynamic change of field positions,I have to write the Material number field positions dynamically,suppose the material is Eight characters after removiing leading zeros, I have add some empty spaces infront of it to make it as 20 characters for all the materail numbers.
    Can you please provide me a solution.
    Regards
    Dinesh

    Hi,
    Use the below statement.
    shift lv_matnr RIGHT DELETING TRAILING space
    Thanks,
    Srini.

  • How to change screen field value.

    Hi Experts,
             I like to change the screen field MSAUS(check box) of program SAPLIQS0 in one of the exit.But if I use
    (SAPLIQS0)VIQMEL-MSAUS = 'X'. its showing compile error.Please tell me how can i change this field in this exit.
    Regards,
    Ajish.

    try something like this:
    create field symbol
      FIELD-SYMBOLS: <fs>.
    Assign value of variable from calling prog to field symbol
      ASSIGN ('(SAPLIQS0)VIQMEL-MSAUS' ) TO <fs>.
    <fs> = 'X'.
    Regards,
    ravi

  • Dynamic screen field label

    HI Experts,
                    How can I change the screen fields label name on basis of some conditions. Lets say for 1 condition it shows
    :Code       :
    for condition 2, it wil show
    :Company :
    I mean it should be dinamic.
    Thanks.
    Khan.

    Hi,
    See the following code.
    write this  module FIELD_STAUS_9010  in PBO of the screen number.
    *&      Module  FIELD_STAUS_9010  OUTPUT
          text
    MODULE field_staus_9010 OUTPUT.
      LOOP AT SCREEN.
    field name
        CASE screen-name.
          WHEN 'WA_LC_BG_HDR_ELBCNOT'.
            CASE g_security.
    Set the title
              WHEN 'LC'.
                wa_lc_bg_hdr_elbcnot = 'External LC number'.
              WHEN 'BG'.
                wa_lc_bg_hdr_elbcnot = 'External BG number'.
            ENDCASE.
        ENDCASE.                      " CASE wa_LC_BG_HDR-suity.
      ENDLOOP.
    ENDMODULE.                 " FIELD_STAUS_9010  OUTPUT
    Regards,
    Raju.

  • Change screen field network and upload additional wbs network activity

    Dear All,
    1st. How can i change the screen field company code in network header (assignment tab) to input or required. I tried OPUA but it doesnt show company code. In default  it shows that network header (company code) in display mode.
    2nd. How can i add additional WBS,network and activity using additional enhancement for easy use method. Or in other word, is there any enhancement program..not cj20n / cj20?
    really appreciate.
    nies

    Hi
    2nd. is there any other solutions? users donot convinience to use cj20n / or copy from template? is there badi /program upload to be used? in other words, users can maintain it in excel then upload it..
    Use this BAPI to create WBS elements
    BAPI_BUS2054_CREATE_MULTI
    Sorry for the my last post on the point 1
    The company code for network order is coming from thw WBS element, that you cannot change in network order. This is standard setting.
    Thanks
    S.Murali

Maybe you are looking for

  • File formatting using File adapter

    Hi we are using a sender / receiver file adapter to recive file from source and post file to the target location This is the expected format in the target system <?xml version="1.0" encoding="utf-8"?> <YYY_TIME_XML> <YYY_TIME_DATA> <CLIENTID>1</CLIEN

  • Add Attachments button not working

    Hi, I have added an attachmentTable item to my OAF region. I have followed step 1, 2, 3, 4, 6, 7, 8 in the OAF user guide section "Enabling the Attachments feature for an Entiry". When I test my page, the attachmentTable renders fine on my page. Howe

  • HT1338 Not able to attach any files ?

    Not able to attach any files over gmail, hotmail or even mail from past 2 days ?

  • Ipad - Display more than 8 columns in OWL

    Hi All, Currently iPad player will only display the first six columns of the OWL in portrait mode and the first eight columns in landscape mode. Can we display more than 8 column(s) in the OWL either in Potrait or Landscape mode ? Thanks, Rajesh Nimm

  • Locked Up Installing Windows 7

    I tried to use a full install 32 bit dvd to install Windows 7 on my vintage 2007 Core 2 Duo iMac AL and am in trouble.  The iMac has SL 10.6.8  installed and a full software update was performed before starting the W7 exercise.  The W7 installation f