PAI Screen Fields

Dear Guys
I have created few screen Fields which save the data in table when some one click Save Button. Note down that these are screen fields not dictionary fields.
The problem is that when user press enter all fields gets cleared from screen. I have also tried to make those fields dictionary fields but the problem is still there whenever user press enter all value gets clear from the screen.
User dont want that value gets clear untill or less he will press save button.
Pls explain.
Thnx

Hi
Probably you're clearing those fields in PBO, you should consider when the user press enter the PBO is processed again.
Max

Similar Messages

  • [PAI] Refresh a screen field within PAI

    Hi,
    During the PAI process, I would like to refresh the content of a screen field (so that it is calculated automatically from the value of another field).
    Indeed, the user would greatly benefit from this field condidering the checks performed during the PAI.
    I tried the FM 'DYNP_VALUES_UPDATE' but without success...
    Has someone another idea ?
    Thanks in advance.
    Best regards,
    Guillaume

    Hi,
    Thanks for your insights !
    I have 2 fields on the screen : <b>my_source_field</b> and <b>my_pourcent</b>.
    Here is the code :
    PROCESS AFTER INPUT.
      MODULE exit AT EXIT-COMMAND.
      CHAIN.
        FIELD my_source_field MODULE calculate_%.
      ENDCHAIN.
      CHAIN.
        ... lot of checks here, where the user requires the value of a % mininum
      ENDCHAIN.
    and in the calculate_% subroutine :
      IF my_source_field <> 0.
        CLEAR my_pourcent.
        my_pourcent = ( k_%_mini * 100 ) / my_source_field.
    *   Updating screen immediately
        CLEAR   : wt_update.
        REFRESH : wt_update.
        wt_update-fieldname    = 'MY_SOURCE_FIELD'.
        wt_update-fieldvalue   = my_source_field.
        APPEND wt_update.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname                     = sy-cprog
            dynumb                     = sy-dynnr
          tables
            dynpfields                 = wt_update
          EXCEPTIONS
            INVALID_ABAPWORKAREA       = 1
            INVALID_DYNPROFIELD        = 2
            INVALID_DYNPRONAME         = 3
            INVALID_DYNPRONUMMER       = 4
            INVALID_REQUEST            = 5
            NO_FIELDDESCRIPTION        = 6
            UNDEFIND_ERROR             = 7
            OTHERS                     = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    Any idea ?
    Best regards,
    Guillaume
    Message was edited by: Guillaume Garcia

  • Populating the screen field when the cursor moves to that field

    hi every one,
    I want to populate the screen field(MODULE POOL) When the cursor moves to that field.
    So can any one help me out with this.
    EXAMPLE..
    I want to populate 'S10_TOT_PRICE' (Total Price). When the fields like 'S10_PIECES' (Number of Pieces) will be entered. I want to populate 'S10_TOT_PRICE'  without pressing any button on the screen nor when enter is hit. When the field 'S10_PIECES''  will be entered with some value and the cursor moves to 'S10_TOT_PRICE' . The Total Price field should be populated. Please help me out with this.
    THANKS & REGARDS.
    Mahanta.
    POINTS WILL BE REWARDED.

    Sorry but look at this SAP documentation <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/54/0608162d0711d295520000e8353423/frameset.htm">User Actions on Screens</a>
    Extract :
    <i>User Actions on Screens
    There are various ways in which users can interact with screens.
    Filling Input Fields
    Users can enter values in any input field on the screen, or change the value using the mouse, in the case of radio buttons and checkboxes. The contents are placed in the corresponding screen field. Filling an input field does not normally trigger the PAI event. Exceptions to this are Checkboxes and Radio Buttons with Function Codes and input fields with Drop Down Boxes.</i>
    So, i fear that you cannot "take hand" when user fill a numerical field to perform calculations and update the screen.
    Regards

  • Holding the value in screen-field

    Dear All,
    I m facing the problem ,while i m putting the value in screen-field and then pressing enter,
    value in that screen-field is becoming null automatically.
    wht shld i do for holding the value even after PAI.
    Thanks in advance.

    Hi,
    You should define a corresponding variable for that screen field in your program.
    data: my_input_field type ... "same name and type as the one used in screen for field
    so when you enter data to that field and press ENTER, the data will be transported to that variable and in PAI you have its value there.
    Regards
    Marcin

  • RF Monitor -  add screen field

    Hi.
    Is it possible to add a field in the report and how? or is there any user-exit?
    Thx.

    If your client/employer allows CORE-MODS then go ahead and make the changes just as you'd change any screen field. If not, I suggest you look at GUIXT. This comes standard as part of 4.6 and up ...
    I suggest that you add this field (and necessary PBO/PAI logic) in custom tab and use GUIXT to display this field in whichever tab/screen you choose to.
    You can go to GUIXT.com and check out sample code on how to do this. Its very simple, you should be able to go through the tutorial and do it yourself.
    Raj

  • SCREEN field values

    Dear Sir,
            Can any body pls tell me how to pass screen field values generically in dialogue programming...the screen field values like input,output, group...
    Can we use the table 'SCREEN' in dialogue programming..?? & how???
    Regards,
    Rushikesh

    Hi Rushikesh,
    What exactly is your requirement....?
    You can use the table SCREEN for modifying the screen element attributes at runtime...
    Suppose for example , when I click on a button, I want a button to be displayed...It can be done , but only in the PBO event....
    Initially , go to the screen attributes and make it invisible...
    Now in the program, you can do like this
    1) Declare a global variable (say flag initialized to zero).
    2) In PBO event
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'FIELD1' and FLAG = 1.
    screen-invisible = 0.
    modify screen.
    endif.
    endloop.
    3) In PAI event.
    case sy-ucomm.
    when 'CLICK'.
    flag = 1.
    endcase.
    This is one example , you can have any number of situations.
    Regards,
    SP.

  • Screen field value under POV event

    Hi All,
    I have one issue...please suggest me solution for this.
    In module-pool program i have one screen(1000) which has one field(hrname_1000).
    Under this event:
    PROCESS ON VALUE-REQUEST.
    FIELD hrname_1000 MODULE hrname_1000.
    under this module hename_1000 i have used F4IF_INT_TABLE_VALUE_REQUEST to put a search help for field hrname_1000.
    after that i am trying to retrive HR related stuff's based on the field on module-pool i.e i am using hrname_1000 in the where condition.
    but problem is that im not getting value for hrname_1000 which im giving in the module-pool screen.
    thats y my select query is not working.
    Where as im getting values for the hrname_1000 under PBO & PAI.
    It will look like below.
    PROCESS ON VALUE-REQUEST.
    FIELD hrname_1000 MODULE hrname_1000.
    (under the above module)
    SELECT DISTINCT ename plans FROM pa0001 INTO CORRESPONDING FIELDS OF TABLE itab WHERE stell = '50001026'.
    LOOP AT itab INTO wa WHERE ename = hrname_1000.
    ENDLOOP.
    Please suggest
    Thanks & regards
    Ansumesh

    Hi,
    I guess you don't get back value from function F4IF_INT_TABLE_VALUE_REQUEST to your global data object hrname_1000, althought it is returned from search help back to screen field.
    See this thread. I explained there [how values are returned from screen field to a variable|https://www.sdn.sap.com/irj/scn/profile?userid=3509696]
    You may also try with FM DYNP_VALUES_READ for reading dynpro fields values in POV.
    Regards
    Marcin

  • Module-pool screen field value under POV event

    Hi All,
    I have one issue...please suggest me solution for this.
    In module-pool program i have one screen(1000) which has one field(hrname_1000).
    Under this event:
    PROCESS ON VALUE-REQUEST.
    FIELD hrname_1000  MODULE hrname_1000.
    under this module hename_1000 i have used F4IF_INT_TABLE_VALUE_REQUEST to put a search help for field hrname_1000.
    after that i am trying to retrive HR related stuff's based on the field on module-pool i.e i am using hrname_1000 in the where condition.
    but problem is that im not getting value for hrname_1000 which im giving in the module-pool screen.
    thats y my select query is not working.
    Where as im getting values for the hrname_1000 under PBO & PAI.
    It will look like below.
    PROCESS ON VALUE-REQUEST.
    FIELD hrname_1000  MODULE hrname_1000.
    (under the above module)
      SELECT DISTINCT ename plans FROM pa0001 INTO CORRESPONDING FIELDS OF TABLE itab WHERE stell = '50001026'.
          LOOP AT itab INTO wa WHERE ename = hrname_1000.
          ENDLOOP.
    Please suggest
    Thanks & regards
    Ansumesh

    In some of the cases the screen field is present in the screen but not holding the value in the required structure or field.
    so here u need to check the option of reading the screen field values explictly..
    //once u hit an enter and do the f4 i think the value will be there ...but if u dont hit enter and do an F4 the value cannot hold and i think u r in this case ..
      1.Fill the screen field name in the structure dynpread.
    DATA: BEGIN OF DYNP_VALUES OCCURS 10.
            INCLUDE STRUCTURE DYNPREAD.
    DATA: END   OF DYNP_VALUES.
    DYNP_VALUES-FIELDNAME = 'HRNAME_1000'.
      APPEND DYNP_VALUES.
    * read screen values
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME     = HELP_REPID  "call the repid of ur prog
          DYNUMB     = HELP_DYNNR "pass the screen number
        TABLES
          DYNPFIELDS = DYNP_VALUES
        EXCEPTIONS
          OTHERS     = 1.
    now dynp_values hold the field name and field value of the screen .
    now
    SORT DYNP_VALUES BY FIELDNAME.
        READ TABLE DYNP_VALUES WITH KEY 'HRNAME_1000' BINARY SEARCH.
        IF SY-SUBRC EQ 0.
          HELP_XXXX = DYNP_VALUES-FIELDVALUE. "store the value into a variable
          TRANSLATE HELP_XXXX TO UPPER CASE.               
        ENDIF.
    Now check the code with the value if its getting populated which once there will make ur select work ..
    Vijay..

  • How to access screen field value in a module pool programming?

    Hi Experts,
       I have create a module pool program SAPMYDLG. It contains two screens 100 and 200.
       The first screen contains Employee_ID field. This field is not a dictionary field.
       In the second screen 200, I want to access the value of Employee_ID field from first screen.
       For this I created a global variable v_empid in TOP include.
       Then in the PAI of the screen 100 I have assigned the screen field value to global variable.
       v_empid = Employee_ID.
       But this gives an error saying " Field  Employee_ID not defined".
       What am I doing wrong? How can I access the screen field value?
    Thanks
    Gopal

    Hi,
    Employee_ID field also must u define in the top include when u define that 100 screen and 200 screen will access.
    regards,
    muralii

  • Module Pool Programming - Radio Buttons & Screen Field Invisible or Display

    Hi,
    I have 2 radio buttons in my screen and both of them are checked or on. Not sure how to make one of them is on and other is off at a time. If A is off, i need to make few screen fields invisible or display. if A is on, i need to make the screen field invisible or input enabled.
    Can  you please suggest me a suitable way to accomplish this task.
    Appreciate Your Help in Advance.
    Thanks,
    Kannan

    hi
    try this
    go to SE38 create a program of type M
    go to SE51,give a screen no (ex : 0800) and click on create
    then click on Layout in se51
    in the Layout select the Radiobutton icon and drag/drop it on the layout
    Define them as by double clicking on the radiobutton icon
    First Radiobutton name : RB1, Groups : u can see 4 boxes,in the first box give group as G1
    do the same for the Second Radiobutton RB2.
    Now select both the radiobuttons RB1,RB2 both at a time and right click the cursor
    Radiobutton - Define.
    Then drag and drop a i/o field name : wk_name. save & activate the layout.
    in se51
    PBO
    Module_status_0800.
    Module_screen_modif.
    PAI
    Module_user_command_0800.
    in se38
    data : wk_name(10) type c.
    data : rb1,rb2.
    Module_screen_modif_o/p.
    if RB1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'WK_NAME'.
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    if RB2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'WK_NAME'.
    SCREEN-INPUT = '0'.
    SCREEN-INVISIBLE = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    endmodule.
    Module_user_command_0800.
    case sy-ucomm.
    when 'EXIT' or 'BACK' or 'CANCEL'.
    LEAVE PROGRAM.
    endcase.
    Endmodule.
    Regards

  • Module pool screen field should default without pressing enter

    Hi
    I have got a main module pool screen which has a tabstrip with four tabs.
    There are 2 fields in the main screen when we select from F4 for the first field then the field 2 should default in case of a condition.
    This happens only when i press enter. I want the second field to change  as soon as the first field is selected.
    How do I trigger the PAI as soon as the field 1 is selected.
    eg:                           Field 1 :  i/p
                                    Field 2 : display
                                   Field 3 : i/p
    On F4 for field 1  say i select value 'A' then the valu for field 3 should default to value 'B'.  Also field 2 should be displayed based on combination  of field 1 and field 2. But now it does it only on pressing enter.
    How do I solve this problem?Also if i select field 1 value A and dont press enter and go to the subscreen tab then it does not do any thing. It allows to go on the subscreen tab. But actually it should default the field 3 value. It does it only when I press enter.
    Also the F4 is from dictionary that is the screen fields are from dictionary. I have not created any F4 for the fields.
    Please help me solve this problem
    Regards,
    mozila

    Hi
    You can achieve this using List Box only not by Input Field. Since Input field doesn't trigger automatic PAI/PBO
    Go through the below thread
    populate drop down menu based on entry in another field
    or an alternative is--> In PBO use POPUP_GET_VALUES Fm to get the First input field based on that you can enter further values
    unicode error
    Cheerz
    Ram

  • Disabling single Screen field

    Hi Friends,
    Plz help me how to disable single Screen field in Module pool.
    I have a scenario where One of the field is drop down box,in that options if i select 1 option the next Input/outputfield and Group of radio buttons(2buttons) should be disable.
    PlZ help me with the solution

    hi
    it may help u.
    in drop down box each option should have function code.
    now in pai
    use
    case ok_code.
    when 'option 1'
    loop at screen.
    if screen name = 'group1' or screen name = ' input field name'.
    screen input = 0.
    modify screen.
    endif.
    endloop.
    endcase.
    or
    if ok_code = 'option1'.
    loop at screen.
    if screen name = 'group1' or screen name = ' input field name'.
    screen input = 0.
    modify screen.
    endif.
    endloop.
    regards
    anil

  • MB_MIGO_BADI - Not able to bring data to screen fields

    Hi there,
    I'm trying to add a new tab in the item level in the MIGO screen. In the new tab, I am placing a custom screen with some fields containing purchase order details. I am using the BADI MB_MIGO_BADI for this task. Now I'm able create a new tab and place the screen inside. But I'm not able to place bring the data to the screen fields in the new tab. I'm writing the code for including the screen in the method PBO_DETAIL. And this method do not have any parameters of purchase order details.
    Have any one of you came across such situation??? If any one of can give a solution to work out this problem, it will be very helpful.

    Under PAI method declare the field to u2018Xu2019. 
    Under the line modify method declare a flag and set to u2018Xu2019 checking for material document number by which we can set the fields to be in display mode when we open MIGO for display of material document created after doing goods receipt.
    Under the POST_DOCUMENT method write the code for appending the value to Z table along with the values of the line item (In this case production order number, material, u2026u2026.). For these values to be available here in this method use the memory concept u201CExport to memory idu201D in the method LINE_MODIFY. 
    In order to do any validations to the custom fields, go to transaction SE80 and mention the program Name created and in PROCESS ON VALUE_REQUEST create a module and provide the validations required for those custom Fields.
    In order to make the fields to be in display mode during the display of material document, create a module under PBO and import the flag value and the production order number details in the method LINE_MODIFY and if that flag = u2018Xu2019, use  
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'XXXXXX'.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.Retrieve the values from the Z table matching the key field (production order number) and pass the value of the custom field on to the screen. 
    Thanks,
    Shailaja Ainala.

  • How to skip the mandatory field validation for clearing the screen fields

    Hi Friends,
      I have created a module pool screen, and made some fields mandatory. after entering some fields, if i try to clear the fields, am unable to clear. Its throwing the error "Enter all required fields"., since some mandatory fields are there. But i could able to navigate through other screen. Both the "CLEAR" and "NEXT" command are given in the at-exit command only. Next is working but clear is not working.
    Please  provide me the solution.
    Thanks
    Karthikeyan.L

    Hi,
    To avoid automatic input checks you have to assing function type - E to appropriate screen field, which is not to be checked.
    These function codes don't trigger PAI processing, instead they go directly to
    MODULE mod AT EXIT-COMMAND.
    ..placed in PAI of the screen. In this way you can ommit automatic checks performed by system on mandatory fields. Please ensure you have assing E type to next and clear functions in GUI status.
    Regards
    Marcin

  • Difference between At selection-screen  and At selection-screen field

    I need to know the difference between
    Difference between At selection-screen  and At selection-screen field
    Regards
    Shashi

    Hi,
    AT SELECTION-SCREEN is the event triggered in the PAI of the selection screen.
    AT SELECTION-SCREEN on field field_name is the event specific to the field and is triggered when u press enter in that field.
    AT SELECTION-SCREEN selscreen_event.
    Effect
    This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
    Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
    AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
    SELECTION-SCREEN FIELD SELECTION
    FOR {NODE|TABLE} node [ID id].
    Effect
    This statement defines a node node in the structure of the logical database for field selection. If a node belongs to type T, you can use the TABLE addition instead of NODE. The statement cannot be used for type C nodes. .
    If a node is defined for field selection, you can use an executable program linked to the logical database in the GET statement to control which fields in the node are to be read by the logical database. If you use the function module LDB_PROCESS, the FIELD_SELECTION parameter must be specified accordingly.
    for more details check this link...
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
    Regards,
    Priyanka.

Maybe you are looking for

  • Is there a way to put borders in Iphotos?

    I have an older mac with Photoshop that won't transfer to my Macbook with Snow Leopard. Can trundle over pix or email them to edit but trying simpler moves with ImageTricksLite, Quartz and Iphotos. Can do some edits I want but in none can I find a wa

  • Custom UserManager and Enterprise Manager administration

    Can Enterprise Manager be used to Add/Remove Users and Groups for a Customer UserManager? I remember reading somewhere that Add/Remove only worked for the XML-file based implementations. Now I can't find where I read that.

  • Flex2 Newbee Help

    I have been trying to populate a combo box from a HTTPservice bound to an .asp file, it works great for a list box, this has given me a bad beating! I will purchase Flex as soon as this is resolved. Here is some code starting with the .asp. Thanks in

  • SunMC db access

    Does anyone know how to get access to the oracle db in sunmc 3.5.1u1a? Looking at /etc/shadow it looks as if the smcorau does not have a pwd and the oracle(assuming running ./es-inst created it) account I have no idea what the pwd is. I've been runni

  • Monitor won't install on Windows Server 2003

    Trying to install GW Monitor 7.0.3 on Windows 2003 Standard Edition SP2 with all the latest updates. First, I got the message about the missing .DLL's. Installed the NetWare client 4.91SP4 (4.91.4.20070720) and those error's went away. Now, the insta