Selection screen fields in which values have been entered

Hi All,
Is there any standard function module which enables us to determine which fields on the selection screen have values entered for them. In other words, I wish to determine which selection screen fields are no longer initial.
Thanks and Regards,
Vidya.

Hi,
Why cant you simply use in this way?
if sel_screen_field1[] is not initial.  "for selet-options
endif.
if sel_screen_field1 is not initial.  "for parameters
endif.
is it not suitable for your case?
//Kothand

Similar Messages

  • Selection screen field is not populated without pressing "Enter"

    Hello All,
    I am calling a report from module pool using SUBMIT statement. I have defined a selection screen as subscreen on module pool screen. On this selection screen i have a select option S_BUKRS. When I input company code 1000 and just press execute button on module pool, it is taking me to the report output. But S_BUKRS is not filled before the submit statement and hence report is executing as if S_BUKRS is initial.
    I put a breakpoint and saw that the field S_BUKRS is not filled before calling the repot.
    I re-ran the transaction (module pool) and this time after inputting 1000 in S_BUKRS I pressed enter and then pressed execute button. Now the value is transferred to report since S_BUKRS[] is filled.
    Do I need to press enter key after inputting the values on the selection screen everytime; before pressing the execute button?
    What could be the issue and how can I resolve it?
    I am calling the report in PAI of module pool using statement SUBMIT ZREPORT1 WITH s_bukrs IN s_bukrs AND RETURN.
    Thanks,
    Sandeep

    sandeep akula wrote:
    Hello All,
    > I am calling a report from module pool using SUBMIT statement. I have defined a selection screen as subscreen on module pool screen. On this selection screen i have a select option S_BUKRS. When I input company code 1000 and just press execute button on module pool, it is taking me to the report output. But S_BUKRS is not filled before the submit statement and hence report is executing as if S_BUKRS is initial.
    > I put a breakpoint and saw that the field S_BUKRS is not filled before calling the repot.
    > I re-ran the transaction (module pool) and this time after inputting 1000 in S_BUKRS I pressed enter and then pressed execute button. Now the value is transferred to report since S_BUKRS[] is filled.
    > Do I need to press enter key after inputting the values on the selection screen everytime; before pressing the execute button?
    > What could be the issue and how can I resolve it?
    > I am calling the report in PAI of module pool using statement SUBMIT ZREPORT1 WITH s_bukrs IN s_bukrs AND RETURN.
    > Thanks,
    > Sandeep
    I believe, you should be able to caputre the value of S_BUKRS in AT SELECTION-SCREEN event even if the user executes the program with out hitting Enter key. Make sure that you are including the CALL SUBSCREEN <area> statement in the PAI as the first statement.
    -Rajesh.

  • Clear selection screen fields on using value help on another field

    Hi Experts,
    I have 3 fields -  reason1, reason2, reason3.
    Now i want to clear fields reason2 and reason 3 when i use value help for reason1.
    How do i go about it.
    Thanks & Regards
    Gaurav Kumar Raghav

    Hi,
    You use the function module 'DYNP_VALUES_UPDATE', here is a code extract showing its use..
    *&      Form  f4_laufd
    form f4_laufd .
      data: ls_laufk type ilaufk,
            lt_laufk type table of ilaufk.
      ls_laufk-laufk = space.
      ls_laufk-sign  = 'I'.
      append ls_laufk to lt_laufk.
      call function 'F4_ZAHLLAUF'
        exporting
          f1typ = 'D'
          f2nme = 'F110V-LAUFI'
        importing
          laufd = p_laufd
          laufi = p_laufi
        tables
          laufk = lt_laufk.
      perform set_selection using 'P_LAUFI' p_laufi.
    endform.                                                    " f4_laufd
    *&      Form  set_selection
    form set_selection  using    value(i_field)
                                 i_value.
      data: ls_dynpfld type dynpread,
            lt_dynpfld type table of dynpread.
      ls_dynpfld-fieldname  = i_field.
      ls_dynpfld-fieldvalue = i_value.
      append ls_dynpfld to lt_dynpfld.
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = sy-repid
          dynumb     = sy-dynnr
        tables
          dynpfields = lt_dynpfld.
    endform.                    " set_selection
    Darren

  • How to assign maintenance view to a selection screen field in a program.

    Hi Experts,
    I have created a custom table. Now, I have a program where there is a selection screen field for example "Load". After entering a value in the selection screen, and press enter, the user must be redirected to the maintenance view of the custom table to modify the specifed record.
    Can anyone help me on how to do that?
    Thanks a lot for ur precious help.
    Regards,
    Aksh

    Hi,
    What is the need to search for a program.
    Use transaction SM30 or SE16 to create or maintain entries in the table.
    e.g. if the Maintenance view is created on table A, then Goto transaction SM30 or SE16 and give the table name as A and proceed. This will automatically take u to the maintenance view on tha table A.
    Regards,
    Himanshu

  • How to populate f4 values to standard pnp selection screen fields

    Hi Experts,
    my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my  f4 values in the selection screen

    Hi Venkat,
    To put ur own values in the F4 help of any field...all u have to do is.
    1st fetch all the records that u need to display in F4 help list...in one internal table.
    and then use the function module  'F4IF_INT_TABLE_VALUE_REQUEST'
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield =
    value_org =
    tables
    value_tab =
    return_tab =
    exceptions
    parameter_error = 1
    no_values_found = 2
    others = 3.
    where retfield is the field for which u need to give the F4 help.
    and valu_tab is the internal table in which u have the list of records to be displayed.
    this would do the work...
    I dont have the system in front of me...as soon as i have...will try to send a piece of code, to make ur work easy.
    Till then hope this helps u...all the best
    Regards,
    Radhika

  • Default value for selection screen field

    Hi all,
      I am using LDB PNPCE. I want to give default value for field Personnel area on selection screen.
    How can I do it?
    Thanks
    Rahul

    Hi Rahul,
    In the INITIALIZATION event we can set the default values for selection screen fields.
    INITIALIZATION.
    loop at screen.
    if screen-name = 'S_MATNR-LOW'.
    CLEAR S_MATNR.
    s_matnr-low = '1234'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr.
    CLEAR S_MATNR.
    s_matnr-high = '5678'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr
    clear s_matnr.
    endif.
    endloop.
    Hope it helps.
    Mark if useful
    Regards,
    Saumya

  • Regarding Search help on selection-screen field

    Hi there,
    I am working on custom tables.
    I have a requirement to maintain search pattern on a selection-screen field.
    selection-screen parameter: p_name which is company name filed from Z table.
    By giving a string like Holl* and by  pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
    Thanks in advance.
    -Tulasi

    Hi
    Go through the link given below :
    How to create a search help for my own fields in selection screen
    F4 search help on report selection screen
    also try :
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'VKORG'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_VKORG'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'C'
    TABLES
    VALUE_TAB = T_TABLE1
    FIELD_TAB = field_tab
    RETURN_TAB = RET_TAB
    DYNPFLD_MAPPING = DYN_TAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    With Regards
    Nikunj shah

  • Selection screen field problem

    Hello experts..
    i have a selection screen , in that i have a field   s_bwart for mseg-bwart.
    some times the user will input the data in the field and sometimes he wont. we have fixed movement types combination like
    11-21 , 13-24 , 13-56 , 101-543 , 101-544 etc.
    if the user did not input any thing in the selection screen , i am populating s_bwart in at-selection screen event with all the mvt types. after executing the report when user presses the back button to come to the selection screen, there the s_bwart field is containing all the mvt types in single values ie in the select options screen. So the user dont want that, if he comes back nothing should be there in the selection screen field s_bwart if he has not inputted anything. if he inputs only 11 mvt type then when he comes back after executing the report he should see only 11 in the select screen field ie s_bwart. Please send the replies on how to solve the problem.

    hi,
    in ur program try to display values for users in START-OF-SELECTION event as it triggers after the selection screen displayed for users. if user doesn't give any input then display default values in this event. and also create a variable
    for ex:
    data: ws_flag type c,
             p_value type i.
    after u display default values for users in selection screen assign the flag as ' X '
    ws_flag = 'X'.
    before leaving ur program based on flag try to do like this.
    if ws_flag = ' X '.
        clear s_data. // s_data is the select options for u.
    else.
         s_data = p_value. // the value which user gave in selection screen as i/p.
    endif.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • How to link a search help to a selection screen field

    Hi All,
    I am using field PKWRG from PA0017 table in selection screen. I need F4 help there as in Tcode PA30 . But this field does not have value table or check table. However, it has a search help attached 'TRV_PKWRG' .
    But, I donot know how to assign a search help to a selection screen field. Please help.
    Regards,
    Nibha

    Hello,
    Fetch all the data which from the table which you want to show in the search help and pass the value to the FM
    F4IF_INT_TABLE_VALUE_REQUEST and the selection-screen event must be
    at selection-screen on value request parameter or selection option variable.
    BCALV_TEST_FULLSCREEN
    BCALV_TEST_FULLSCREEN_CALLS
    BCALV_TEST_FULLSCREEN_PRINT
    BCALV_TEST_FULLSCREEN_STATUS
    BCALV_TEST_GRID
    BCALV_TEST_GRID_DRAG_DROP
    BCALV_TEST_GRID_EDITABLE
    BCALV_TEST_GRID_EVENTS
    BCALV_TEST_GRID_INDEX
    BCALV_TEST_GRID_TOOLBAR
    BCALV_TEST_HIERSEQ_LIST
    BCALV_TEST_LIST
    BCALV_TEST_LIST_PRINT
    BCALV_TEST_LIST_STATUS
    BCALV_VERIFY_DTYPES_D0100_F01
    BCSMENUF01
    BDLCOF10
    BDLDVI10
    BDLTREDF

  • Want to see the previous file name in the selection screen field

    Hi,
    I am working with flat file upload. Now my problem is in the selection screen field when i press space bar or backspace i want to see the previous file path which i have taken before. How to do this functionality.
    Thanks in advance,
    Vijay.

    Hi,
    Hope the following code will help u.
    PARAMETER: in_file type ibipparms-path MEMORY ID FID.
    at selection-screen on value-request for in_file.
      call function 'KD_GET_FILENAME_ON_F4'
        exporting
          mask      = ',CSV,*.csv,'
        changing
          file_name = in_file.
    But here when u give a path and execute and come back or executing it again the previous path will automatically come to the in_file field.
    Just check this code.
    Thanks.

  • F4 Help for the selection screen field

    Hi Gurus,
    I have to display F4 help for a selection screen field. i am using following code:
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
                  retfield        = 'CODE'
                  dynpprog        = lw_repid
                  dynpnr          = sy-dynnr
                  VALUE_ORG       = 'S'
             TABLES
                  value_tab       = gi_text
                 field_tab       = li_fields_tab
                  return_tab      = pi_return_tab
             EXCEPTIONS
                  parameter_error = 1
                  no_values_found = 2
                  OTHERS          = 3.
    My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
    But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
    001    test
    001    test1
    but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
    Please help me out.
    Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.

    Sachin,
    I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
    REPORT zktest01 .
    DATA :
      BEGIN OF value_tab OCCURS 0,
        field  LIKE e070-trkorr,
        text   LIKE e07t-as4text,
      END OF value_tab.
    DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
          t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
          t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
    PARAMETERS : p_field  LIKE value_tab-field,
                 p_text   LIKE value_tab-text. "NO-DISPLAY.
    INITIALIZATION.
      t_fldtab-tabname   = 'VALUE_TAB'.
      t_fldtab-fieldname = 'FIELD'.
      t_fldtab-langu     = 'E'.
      t_fldtab-position  = 1.
      t_fldtab-offset    = 0.
      t_fldtab-fieldtext = 'Key'.
      t_fldtab-reptext   = 'Key'.
      t_fldtab-leng      = 20.
      t_fldtab-intlen    = 20.
      t_fldtab-outputlen = 20.
      t_fldtab-datatype  = 'CHAR'.
      t_fldtab-inttype   = 'C'.
      t_fldtab-headlen   = 20.
      t_fldtab-keyflag   = 'X'.
      t_fldtab-lowercase = ' '.
      APPEND t_fldtab.
      t_fldtab-tabname   = 'VALUE_TAB'.
      t_fldtab-fieldname = 'TEXT'.
      t_fldtab-position  = 2.
      t_fldtab-offset    = 20.
      t_fldtab-fieldtext = 'Text'.
      t_fldtab-reptext   = 'Text'.
      t_fldtab-leng      = 60.
      t_fldtab-intlen    = 60.
      t_fldtab-outputlen = 60.
      t_fldtab-headlen   = 60.
      t_fldtab-keyflag   = ' '.
      t_fldtab-lowercase = ' '.
      APPEND t_fldtab.
      value_tab-field = '101'.
      value_tab-text = 'dddd'.
      APPEND value_tab.
      value_tab-field = '202'.
      value_tab-text = 'aaaa'.
      APPEND value_tab.
      t_dynmap-fldname = 'FIELD'.
      t_dynmap-dyfldname = 'P_FIELD'.
      APPEND t_dynmap.
      t_dynmap-fldname = 'TEXT'.
      t_dynmap-dyfldname = 'P_TEXT'.
      APPEND t_dynmap.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'FIELD'
                dynpprog        = 'ZKTEST01'
                dynpnr          = '1000'
                dynprofield     = 'P_FIELD'
                value_org       = 'S'
           TABLES
                field_tab       = t_fldtab
                value_tab       = value_tab
                return_tab      = t_rettab
                dynpfld_mapping = t_dynmap
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc EQ 0.
      ENDIF.
    START-OF-SELECTION.
    Jeffrey Satriadi

  • Selection screen fields order in report painter report..

    hi experts,
    i have a  problem with selection screen fields order in report painter report.
    Actually in report painter report selection screen order is different compare to report writer report selection screen.
    how should i get the same selection screen fields order For  Report painter  report compare to Report Writer report ?
    For example, Report Writer selection screen order is:
      ledger:
      company code:
      period:
      current fiscal year:
      previous fiscal yer:
      previous quarter end period:
    where as Report Painter selection screen order is:
      ledger:
      previous fis year:
      current fis year:
      company code:
      period:
      previous quarter end period:
    please help me regarding with this.
    Thanks and Regards,
      NAGARJUNA.

    hi nagarjun,
    Go to Sq01, select the query and goto to change mode.go to the next screens till u reach Selection fields. Here u enter the NO field in the sequence which u want ot appear in the selection screen and it is done. Save and execute.
    Ex:
    Selection fields No
    Exclude Cancelled Lots 5
    Material number 1
    Plant 2
    Material type 3
    Inspection Lot Origin 4
    Regards,
    Lokesh

  • Disable a selection screen field

    Hi All,
    I have 2 selection screen fields if enter any value in field 1 another field should be disabled with out pressing enter on the selection screen. am able to do disable by pressing enter onc i give the value in field 1.
    Please do needful.
    Thanks in advance.
    Thanks,
    Ramu.

    Hi Ramu,
    As far as i know its not possible without pressing enter/Execute or any action on selection screen.
    This is because report programming is event driven. So without any event i don't think we can achieve this.
    Probably u can search in SDN/Google as well. If u r lucky enough some one has found some thing for you. But at the same time don't forget to update this thread if u find some thing:-)
    Thanks,
    Vinod.

  • Validating a selection-screen field

    Hi all,
    I am Anil.can any body explains me how to validate a selection-screen field for the following scenario?
    I have customer nos ranging from 100-1000.among them i dont have any sales orders for the customers who are in between 150-250.I have sales order(VBELN) as select-options and Plant(WERKS) as Parameter on the selection-screen.I want to validate these fields without hardcaode.How can i do that?Please send me the complete code.
    I am not getting how to validate a field  which is declared as parameter?
    regards and thanks in advance.
    Anil.

    Make sure that u are validating against the header table.
    say eg if u wnat t validate matnr in marc, then do as below.
    SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
    AT SELECTION-SCREEN.
    *Validate material no details
      PERFORM validate_matno.
    FORM validate_matno.
    DATA: v_matnr LIEK mara-matnr.
      SELECT SINGLE matnr INTO v_matnr
             FROM <b>mara</b>
             WHERE matnr IN s_matnr.
      IF sy-subrc NE 0.
        MESSAGE i128.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.
    Dont select from marc.
    Hope this is clear.

  • Auto Incrementation of  a Selection-Screen Field

    Hi Folks,
    How to Increment a Selection-Screen Field (Consider Parameter)..
    When we press a back button on Urs Output List.
    ( For Example : we have a slelction screen field (parameter) by name customer. When we enter 1000(say) in it then an output list is displayed.
    after we press the BACK button on the displayed list the next time the Selectio screen fieeld should Automatically Display an Incremented value of 1001 (instead if 1000).
    Plz help me..!!

    hi
    try this logic
    at user-command.
    case sy-ucomm.
    when 'BACK'.
    customer = customer + 1.
    leave to screen 100.
    endcase .
    Cheers

Maybe you are looking for

  • HT201274 Tried to erase all content and settings...now it won't do anything

    I have a first generation iTouch and last night I selected to Erase All Content and Settings. I wanted to wipe it because I'm switching to an iPhone. The iTouch didn't have much charge so I started charging it while it was doing it's thing. Unfortuna

  • Data Transfer Toolbox for ECC 6.0

    I am on ECC 6.0 and I am trying to install the data transfer toolbox (DTT) for HCM.  I installed the ERP05V4.SAR file (which is in the 600-ERP-DATA folder), but there are no DTT tcodes.  A colleague of mine told me he has used this in earlier version

  • Re: Can't use Canon DR3060C

    I would swear I saw a SCSI2 to USB adapter at Fry's.  What the heck, let me check online and get back to you. EDIT: TigerDirect and Newegg have them oniine.

  • Radio buttons in dynpro with mandatory field

    I have two radio buttons in a group and a field that should be mandatory when one (the first one) is checked. So when the other is checked it should not be mandatory. The problem is that when I check the second the field is mandatory until I have put

  • Best practice for sudo

    Hi I am trying to install sap as a sudo user. What is the best practice to setup sudo ? I am getting this error when i install as sudo sapinst Output of /usr/sap/SPD/SYS/exe/run/brconnect -u / -c -o summary -f stats -o SAPIAL -t all -m +I -s P10 -f a