How to get center alignment of Input/Output field in Module Pool

Hi Friends,
I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
Thank U in advance.
Mahender.

Hi,
Use syntax "Centered".
take one variable push into the field
write w_variable1 to w_variable2 centered.
next push the varaible to Destination screen input/output Field .
Make sure the Field the Character Type.
Prabhud@s

Similar Messages

  • How to get calender in f4 helpfor select options in module pool (urgent)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi,
    Check this Example..
    Tables:Mara.
    Select-options:s_matnr for mara-matnr.
    Types:Begin of i_mara,
           matnr like mara-matnr,
           end of i_mara.
      data:it_mara type standard table of i_mara.
      At selection-screen on value-request for s_matnr-low.
      Select matnr from mara into table it_mara.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'MATNR'
        PVALKEY                = ' '
         DYNPPROG               = SY-REPID
         DYNPNR                 = SY-DYNNR
         DYNPROFIELD            = 'S_MATNR-LOW'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = IT_MARA
        FIELD_TAB              =
        RETURN_TAB             =
        DYNPFLD_MAPPING        =
       EXCEPTIONS
         PARAMETER_ERROR        = 1
         NO_VALUES_FOUND        = 2
         OTHERS                 = 3

  • How to pass the Data to sclect option field in module pool??

    Hai Experts,
                         I have Created the Select-Options using Sub screen its working fine for me.
    But the problem is when i pass the data to one of the my select options field its not  showing  in display mode..
    please me this
    i created select option slike this,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS : s_kunnr  FOR wa_zcodntr-fin_kunnr,
                                  s_altkn FOR wa_zcodntr-altkn.
    SELECTION-SCREEN END OF SCREEN 400 .
    Thanks ,
    Adv.

    Thanks SAP_wiz kick replay,
    Actullay in my module pool screen i have to select option field like F1 and F2
    any one filed give the input and excute pick the coresponding data for F2 (select option) field and  display  and vice -versa.

  • How to keep f4 help for a particular field in module pool problem-urgent

    hi all,
    i am displaying output using alv list display. here i am showing my pf status here. in this status i have one button called position. when i click this button it is showing pop up inside this pop up  i am showing appln
    for this i need keep f4 help. anybody can tell me how to keep f4 help fo this field.
    thanks,
    maheedhar.t

    Hi Maheedhar,
    You need to use function module POPUP_GET_VALUES.
    If you want see sampl eprogram for this check the program RSSPO410.
    Execute this program and input Example2 = X in the selection screen.
    Code from the above Program:
    DATA: BEGIN OF FIELDS OCCURS 1.
            INCLUDE STRUCTURE SVAL.
    DATA: END OF FIELDS,
          RETURNCODE(1)       TYPE C,
          POPUP_TITLE(30)     TYPE C.
      POPUP_TITLE       = 'Nachrichten anzeigen'(200).
      CLEAR FIELDS.
      FIELDS-TABNAME    = 'T100'.
      FIELDS-FIELDNAME  = 'ARBGB'.
      FIELDS-FIELDTEXT  = 'Arbeitsgebiet'(202). "Text nicht aus DTEL
      APPEND FIELDS.
      CALL FUNCTION 'POPUP_GET_VALUES'
           EXPORTING POPUP_TITLE     = POPUP_TITLE
           IMPORTING RETURNCODE      = RETURNCODE
           TABLES    FIELDS          = FIELDS.
      IF RETURNCODE = 'A'.
        If Cancel is clicked
      ELSE.
        If OK is clicked.
        Table FIELDS congtains the input data.
      ENDIF.
    Thank you
    Ramakrishna

  • How to get check box in alv output

    hi gurus
    can anyone explian me how to get check box in alv output
    it should not be a pop up window
    i want to get in output itself
    tahnk you
    regards
    kals.

    Hi
    by using rs_selfield
    ty to call dynamic subroutine..
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield. "#EC CALLED
    read table rs-selfield with key cond = 'X'
    endform.
    see the below example
    REPORT Z_GET_REFRESH no standard page heading.
    type-pools : slis.
    tables : makt,
    mara.
    data : i_fieldcat type slis_t_fieldcat_alv.
    CONSTANTS :
    gc_refresh TYPE syucomm VALUE '&REFRESH'.
    data : begin of i_makt occurs 0,
    matnr like makt-matnr,
    maktx like makt-maktx,
    end of i_makt.
    data : v_repid like sy-repid,
    g_user_command type slis_formname value 'USER_COMMAND',
    g_status_set type slis_formname value 'SET_PF_STATUS',
    lt_event_exit TYPE slis_t_event_exit,
    ls_event_exit TYPE slis_event_exit.
    DATA:LC_GLAY TYPE LVC_S_GLAY.
    select-options s_matnr for mara-matnr .
    start-of-selection.
    select matnr maktx from makt into table i_makt
    where matnr in s_matnr.
    end-of-selection.
    Fill the fieldcatlog
    perform fill_field.
    Call the FM
    perform call_fm.
    *& Form fill_field
    text
    --> p1 text
    <-- p2 text
    FORM fill_field.
    data wa_fieldcat type slis_fieldcat_alv.
    clear : wa_fieldcat.
    wa_fieldcat-tabname = 'I_MAKT'.
    wa_fieldcat-fieldname = 'MATNR'.
    wa_fieldcat-outputlen = '18'.
    wa_fieldcat-seltext_l = 'Material #'.
    wa_fieldcat-col_pos = '1'.
    append wa_fieldcat to i_fieldcat.
    clear : wa_fieldcat.
    wa_fieldcat-tabname = 'I_MAKT'.
    wa_fieldcat-fieldname = 'MAKTX'.
    wa_fieldcat-outputlen = '40'.
    wa_fieldcat-seltext_l = 'Material Desc'.
    wa_fieldcat-col_pos = '2'.
    append wa_fieldcat to i_fieldcat.
    ENDFORM. " fill_field
    *& Form call_fm
    text
    --> p1 text
    <-- p2 text
    FORM call_fm.
    v_repid = sy-repid.
    LC_GLAY-EDT_CLL_CB = 'X'.
    CLEAR ls_event_exit.
    ls_event_exit-ucomm = gc_refresh. " Refresh
    ls_event_exit-after = 'X'.
    APPEND ls_event_exit TO lt_event_exit.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = v_repid
    I_CALLBACK_PF_STATUS_SET = g_status_set
    I_CALLBACK_USER_COMMAND = g_user_command
    I_CALLBACK_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    I_STRUCTURE_NAME =
    I_BACKGROUND_ID = ' '
    I_GRID_TITLE =
    I_GRID_SETTINGS = LC_GLAY
    IS_LAYOUT =
    IT_FIELDCAT = i_fieldcat
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS =
    IT_EVENT_EXIT = lt_event_exit
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IT_ALV_GRAPHICS =
    IT_ADD_FIELDCAT =
    IT_HYPERLINK =
    I_HTML_HEIGHT_TOP =
    I_HTML_HEIGHT_END =
    IT_EXCEPT_QINFO =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = i_makt
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " call_fm
    FORM USER_COMMAND *
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield. "#EC CALLED
    data i_RSPARAMS like RSPARAMS occurs 0.
    CASE R_UCOMM.
    WHEN '&IC1'.
    read table i_makt index rs_selfield-tabindex.
    SET PARAMETER ID 'MAT' FIELD i_makt-matnr.
    if not i_makt-matnr is initial.
    call transaction 'MM02' and skip first screen.
    endif.
    when '&REFRESH'.
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
    EXPORTING
    CURR_REPORT = v_repid
    IMPORTING
    SP =
    TABLES
    SELECTION_TABLE = i_RSPARAMS
    EXCEPTIONS
    NOT_FOUND = 1
    NO_REPORT = 2
    OTHERS = 3
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    submit z_get_refresh with selection-table i_RSPARAMS.
    rs_selfield-refresh = 'X'.
    ENDCASE.
    MOVE '&REFRESH' TO r_ucomm.
    ENDFORM.
    FORM set_pf_status *
    FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
    DELETE Rt_extab WHERE fcode = gc_refresh.
    SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'
    EXCLUDING Rt_extab.
    *SET PF-STATUS 'STANDARD' EXCLUDING rt_extab.
    SET TITLEBAR sy-tcode.
    ENDFORM.

  • How can i make the input/output field to a multiple lines in ModulePool...

    hi all...
    can any one please let me know, is there any possibility thru Module Pool program where i can make the input/output field to a multiple lines...
    say, when we drag & drop the input/output field on the screen - it'll come with single line display. so, how to make the same field to multiple lines field.
    rather i can say my question like, how to increase the height of the input/output field.
    Desired Functionality:
    • The user wants to display a long text.
    • now the input/output field should not display the record as a single line, now the field has to display the text in multiple lines (something like wrap option in ms excel).
    hope u got my question...
    please help me in this regards...

    hi Rengith, i'm not using Text Field, i'm using Inpu/Output Field to display the long text.
    If u mean text field as input/output field then can u let me know the process for this, how to do the same thru module pool program...
    Edited by: murashali on Mar 18, 2008 1:36 PM

  • How to change height of Input/output field in dialog program

    How to change height of Input/output field in dialog program.
    I want to big message text box like e-mail message box.
    so could anybody help me on this please
    Thanks
    Basu

    Hi,
        This is not possible directly.Place the icon button in the table field.when u click on that button a popup window will appear in that window place the text editor there u can write text and u can save it ok..
    Award points if helpful.
    Kiran Kumar.G.A

  • How to get organization id as input in oracle alerts

    Hi,
    How to get organization id as input in oracle alerts
    Following is the my sql script
    SELECT
    poh.segment1
    ,pv.vendor_name
    ,poh.end_date
    ,flv.description
    ,flv.tag
    INTO
    &po_num
    ,&vendor_name
    ,&end_date
    ,&to_mail
    ,&cc_mail
    FROM
    po_headers_all poh
    ,po_vendors pv
    ,hr_locations hrl
    ,org_organization_definitions ood
    ,fnd_lookup_values_vl flv
    WHERE
    poh.vendor_id = pv.vendor_id
    and poh.type_lookup_code in ('CONTRACT','BLANKET')
    and poh.attribute2 = 'Contracts, Services'
    and hrl.ship_to_location_id = poh.ship_to_location_id
    and hrl.inventory_organization_id = ood.organization_id
    and ood.organization_code = flv.lookup_code
    and flv.lookup_type='NGHA_EAM_ORG_EMAIL'
    and flv.lookup_code = 'RCE'
    and to_char(poh.end_date, 'dd-mm-yyyy') = to_char(sysdate+180, 'dd-mm-yyyy')
    Here i did organization code as hard code , but i want here organization code dynamically.
    Hanimi.

    Can you not use the function FND_PROFILE.VALUE ('ORG_ID') or something similar ?
    See ML Doc 289563.1 (Unable To Use More Than 16 Functions Calls In Alert Definition) as an example.
    HTH
    Srini

  • I get more and more "input/output error" I erased and reinstalled

    I am getting more and more "input/output error" on a multitude of subjects . I cannot repair the problem even though I have done a complete erase and instal.
    I have a core duo intel based unit with 4 GB ram running 10.6.7.

    It sounds like your hard drive is failing. If you haven't already done so, back up as much data as you can, then take the unit to an authorized service provider for testing.

  • How to have default value in an output field?

    Hi,
    I am working on module pool program and want the initial value for a numeric data to appear by default in an Input/Output field.
    How do I achieve the same?
    Thanks.

    Hi,
    You have to write the code in PBO module.
    or In the field attributes if check the from dictionary option it will display initial value by default.

  • Radio Buttons + Required Input/Output Fields in Dialog Programming

    Hi All,
    Please find the below issue.
    I have 2 Radio buttons
    RB1 and RB2 defined in group RG.
    And by default RB1 is selected.
    I also have 3 Input.Output Fields.
    F1 , F2  & F3.
    Now before displaying the Screen for the end user,
    I need to display as follows:
    A)   
    RB1 = X -
    > Selected.
    RB2  = Space -
    >Not Selected.
    F1 -
    > Visible.
    F2 & F3 -
    >Invisible.
    B)
    RB1 = space -
    > Not Selected.
    RB2  = X -
    >Selected.
    F1 -
    >Invisible.
    F2 -
    >Visible.
    F3 -
    >Visible.
    When i am debugging, the value of RB1 is not X though it is selected on the screen (by default due to Radio Button Group) & hence the below code is not working.
    *_PBO:_*
    LOOP AT SCREEN.
    IF RB1 = 'X' AND ( SCREEN-NAME = 'TXT2' OR SCREEN-NAME = 'TXT3' ).
             SCREEN-INVISIBLE = 1.
    ELSEIF RB1 = 'X' AND ( SCREEN-NAME = 'F2' OR SCREEN-NAME = 'F3 ).
             SCREEN-ACTIVE = 0.
    ENDIF.
    Modify Screen.
    ENDLOOP.
    But when i select RB2 = X on the screen.
    Value is getting populated .
    Waiting for your hints/ideas/suggestions
    Thanks
    Sri.

    Alright, you defined the radio buttons and grouped them. Did you also assign Fcode to the radio button group? if not already assigned the assign something to FctCode to the radio button. If you can double click on one and assign a name, this will automatically assign to other one. If you already did that... just ignore it.
    Next, by defualt, RB1 will not be having 'X' though it shows selected but you can always make it by just writing the following statement in PBO (If you dont want to mislead anybody)
    if RB1 = space and RB2 = space.
      RB1 = 'X'.
    endif.
    If you have already done that the next step would be.... Assign a screen group value to the fields F1, F2 and F3.
    for example, double click on the field F1, add GR1 in groups in first box and do the same for field text/label if any. Same way, assign GR2 to F2 and F3.
    Then add the following code in PBO. (Someone or you can write it better. This is just an example)
      LOOP AT SCREEN.
        if RB1 = 'X'.
           if screen-group1 = 'GR2'.
              screen-input = 0.
              screen-invisible = 1.
           endif.
        endif.
        if RB2 = 'X'.
           if screen-group1 = 'GR1'.
              screen-input = 0.
              screen-invisible = 1.
           endif.
        endif.
        MODIFY SCREEN.
      ENDLOOP.
    Good luck... It is working code.,

  • How to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?

    hi frnds.
    My problem is in module pool screen how to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?And how to do GUI STATUS and GUI TITLE? IN SE80.
      ITS URGENT.POINTS WILL BE REWADED.THANKS  IN ADVANCE.

    Hi,
    Go through this thread.
    [expand and collapse|expand and collapse]
    Cheers,
    Simha.

  • Regarding input output field of the screen painter

    Hi Experts,
    I want to increase the height of the input output field in the screen painter.
    ie, multiline input output field.Is there any means?
    Or is there any alternative other than the input output field?
    Thanks & Regards,
    Soumya.

    hi,
    when u drag n drop some fields in the screen goto to one of the corners of dat fields drag to the extend u want to increase.
    or in attributes section  for u length n width of dat fields are available just increase to your wish.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Setting value of input/output field of screen in abap program

    I have a screen.I have added a input/output field in my screen.The purpose is i just want to display a text in that field upon PBO through my abap program.I m a newbie.PLS help me
    Also can i use textfield instead of input/output field for this purpose.if so then wats the difference between both of them

    Hi
    To display a text in I/O element, go to the PBO of this screen and
    assign the text to your I/O element.
    Lets say if TEXT_IO is the name of ur UI element, and you want to display "Hello" into it, do it as follows:
    TEXT_IO = 'Hello'.
    Must ensure that the type of this UI element is CHAR type and you define its lenght properly.
    to display "Hello", length would be 5.
    Hope it will solve ur query.

  • How to get 2 maximum salary from salary field?

    how to get 2 maximum salary from salary field data?
    like 1000
           5000
            8600
              2000
              3000
    u want 8600 in ist place and 5000 in second place ?
    cud u plz suggest me any query?

    Hi,
    If already data is in internal table then
    DATA : v_cnt TYPE i.
    SORT ITAB BY salary DESCENDING.
    LOOP AT ITAB.
       v_cnt = v_cnt + 1.
      IF v_cnt > 2.  
          EXIT.
      ENDIF.
    MOVE : itab-salary  to ITAB1.
    ENDLOOP.
    if you want extract data from database table then slect the data inot internal table and do like above.
    Pls. reward if useful...

Maybe you are looking for

  • Report background engine

    hi i am using reports6i. every time i run a report, the report background engine appears in my task bar. By closing the report, it still persists in the task bar, and i have to close it manually. Is there any way that by closing the report, the repor

  • Family Sharing Bugs - Anyone else getting this

    Hi all, Like many of you, I excitedly reset my entire family's universe of iPads & iPhones to take advantage of Family Sharing when iOS 8 was launched. We previously shared one master id for iTunes and iClouds (sharing photos, storage and iTunes purc

  • How to get norton off my iMac

    how do you get norton off my imac

  • Do I need another RMA? N560GTX Ti Twin Frozr II/OC

    Hey folks. Hi Svet. Question: So, uh, is there something wrong with 560 GTX Ti based cards?! I bought the card in February. It went flaky and was RMA'd in June. Thread here: https://forum-en.msi.com/index.php?topic=149374.msg1109239#msg1109239 They s

  • Archiving of Object PA_TIME

    Hi All, We are currently working on Archiving of Data Object PA_TIME. This is first time I am working on archiving of HR Module. Any one who worked on this Object? Please help........ Thanks a ton in Advance. Best Regards, Dhaval.