I want an example for event Process on Value-request in Module Pool

Hi,
  I need to populate f4 values for a field in module pool program under POV event.
  Can anyone send me the sample code.
  Helpful answers will be rewarded .
  Thanks and Regards
  Aditya

Hi
For F4 Values on Screen:
PROCESS ON VALUE_REQUEST
using module call starting with FIELD i.e FIELD field MODULE module
There are number of function modules that can be used for the purpose, but these
can fullfill the task easily or combination of them.
DYNP_VALUE_READ
F4IF_FIELD_VALUE_REQUEST
F4IF_INT_TABLE_VALUE_REQUEST
POPUP_WITH_TABLE_DISPLAY
DYNP_VALUE_READ
This function module is used to read values in the screen fields. Use of this
FM causes forced transfer of data from screen fields to ABAP fields.
There are 3 exporting parameters
DYNAME = program name = SY-CPROG
DYNUMB = Screen number = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
and one importing TABLE parameter
DYNPFIELDS = Table of TYPE DYNPREAD
The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
to this FM and the values read from the screen will be stored in this table.This
table consists of two fields:
FIELDNAME : Used to pass the name of screen field for which the value is to
be read.
FIELDVALUE : Used to read the value of the field in the screen.
e.g.
DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = SCREEN_VALUES.
READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
F4IF_FIELD_VALUE_REQUEST
This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD
F4IF_INT_TABLE_VALUE_REQUEST
This FM is used to dsiplay values stored in an internal table as input
help.This FM is used to program our own custom help if no such input help
exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = field from int table whose value will be returned
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = internal table whose values will be shown.
RETURN_TAB = internal table of type DDSHRETVAL
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3.
POPUP_WITH_TABLE_DISPLAY
This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
parameter.The VALUETAB is used to pass the internal table.
A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL =
ENDPOS_ROW =
STARTPOS_COL =
STARTPOS_ROW =
TITLETEXT = 'title text'
IMPORTING
CHOISE =
TABLES
VALUETAB =
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
e.g.
DATA: w_choice TYPE SY-TABIX.
DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
values TYPE I,
END OF i_values.
PARAMETRS : id TYPE I.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
i_values-values = '0001'.
APPEND i_values.
i_values-values = '0002'.
APPEND i_values.
i_values-values = '0003'.
APPEND i_values.
i_values-values = '0004'.
APPEND i_values.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 40
ENDPOS_ROW = 12
STARTPOS_COL = 20
STARTPOS_ROW = 5
TITLETEXT = 'Select an ID'
IMPORTING
CHOISE = w_choice
TABLES
VALUETAB = i_values
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
CHECK w_choice > 0.
READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
...in the structure i_values.
Other FM that may be used to provide input help is HELP_START .
Reward points if useful
Regards
Anji

Similar Messages

  • Equivalent for 'process on value-request' in WDA ?

    Hello again,
    i have one more requirement in building a wda-gui for an existing transaction.
    In the flow-logic of the SAPGUI-transaction we have an event 'process on value-request', it is triggered when a user pushes the F4-Button or clicks onto the icon belonging to the InputField.
    I need to have an equivalent in WDA.
    Any ideas / workarounds ? Is perhaps OVS a possible way ?
    Thanks a lot !

    Hi Andreas,
    You can achieve this functionality by specifying the Input help mode property of the attribute to which you are binding your input field. You can choose among the various possibilities as Dictionary Search Help/Object Value Selector/User-Defined Programming. You can even just leave it as Automatic to allow the system take care of the search help to be displayed. No matter which option you use among the above quoted ones you would be able to get your search help. You need to go for OVS only when,
    "Say, for example, the value help should take into account or fill multiple input fields of your view composition. However, the different input fields are related to different value nodes, which in turn refer to different ABAP Dictionary structures. ABAP Dictionary search helps are not able to fulfill this task, since the maximum scope of such a search help is the structure to which it is related. "
    The OVS component offers an interface that can:
    1)  Receive information about which input fields should be displayed on the selection screen,
    2)  Receive information about the initial values of these input fields
    3)  Hand back the user's input into these input fields
    4)  Receive the result from the data retrieval in order to display the list
    5)  Hand back the selected data set to the consumer program
    (The above has been quoted from the SAP's standard guide)
    Regards,
    Uday

  • Process on Value-Request

    hello experts...
    i have a table control that display Item information. I would like to add value-request on vendor text field based on the item.
    Example: Item A have Vendor 1 and Vendor 2 maintain in Source list.
    if i click the value-request for vendor only vendor1 and vendor2 will show, not all the vendor registered in SAP.
    Please help on how can i achieve this
    thank you

    Hi,
    I think you are working with Module-Pool programming....
    So,In Module Pool programing goto the particularScreen Flowlogic tab where u are looping in table control.--> Goto its layout ..In layout -
    >in the Right side u can enter its check table or search help.
    OR
    IN FLOW LOGIC use EVENT PROCESS ON VALUE REQUEST
    Both the solution will work ...
    just try it.
    Affable
    Arbind

  • Process on Help request and Process on value request events examples

    HI All,
               Can anybody please give me some examples of Process on Help request and Process on value request events.
    Thanks in advance

    HI,
    Check programs
    <b>demo_selection_screen_f1</b>.
    <b>demo_selection_screen_f4.</b>
    Regards,
    Sesh

  • FBU Internal Job Queue Full for Synchronous Processing of Print Requests

    Hello All,
    We are getting a lot of errors in system log (SM21) with the
    Error : FBU Internal Job Queue Full for Synchronous Processing of Print Requests
    User :SAPSYS
    MNO:FBU
    =============================================================
    Documentation for system log message FB U :
    If a spool server is to process output requests in the order they were
    created using multiple work processes, the processing of requests for a
    particular device can only run on one work process. To do this an
    internal queue (limited size) is used.
    If too many requests are created for this device too quickly, the work
    process may get overloaded. This is recognized when, as in this case,
    the internal queue is exhausted.
    This can only be solved by reducing the print load or increasing
    processor performance or, if there is a connection problem to the host
    spooler, by improving the transfer of data to the host spooler.
    Increasing the number of spool work processes will not help, as
    requests for one device can only be processed by one work process. If
    processing in order of creation is not required, sequential request
    processing can be deactivated (second page of device configuration in
    Transaction SPAD). This allows several work processes to process
    requests from the same device thus alleviating the bottleneck.
    Enlarging the internal queue will only help if the overload is
    temporary. If the overload is constant, a larger queue will eventually
    also be overloaded.
    ===========================================================
    Can you please tell me how to proceed.
    Best Regards,
    Pratyusha

    Solution is here:
    412065 - Incorrect output sequence of output requests
    Reason and Prerequisites
    The following messages appear in the developer trace (dev_trc) of the SPO processes or in the syslog:
    S  *** ERROR => overflow of internal job queue [rspowunx.c   788]
    Syslog Message FBU:
    Internal job queue for synchronous request processing of output requests full
    The "request processing sequence compliance" on a spool server with several SPO processes only works provided the server-internal job queue (see Note 118057) does not overflow. The size of this request queue is prepared using the rspo/global_shm/job_list profile parameter. The default value is 50 requests. However, if more output requests arrive for the spool server than can be processed (and the internal request queue is full as a result), more SPO processes are used to process the requests (in parallel), and the output sequence of the requests is no longer guaranteed.
    Solution
    Increase the rspo/global_shm/job_list profile parameter to a much larger value. Unfortunately, the value actually required cannot be found by "trial and error" because this queue contains all the incoming output requests on a spool server, not just the "sequence compliant" requests. A practical lower limit for this value represents the maximum sequence-compliant output requests for the above generated output device. If, for example, 1000 documents that should be output in sequence are issued from an application program to an output device, the queue must be able to hold 1000 entries so that it does not overflow if the SPO process processes the requests at a maximum low-speed.

  • Process on value request for table control

    I have 10 rows in a table control,when a F4 for
    a particular column in a row is called,process on value request is called here i call a customized F4 based on the structure mapped to the row,but unfortunaletly unlike the screen the mapped structure is not populated,so is
    there a way of getting the structure mapped to the row.

    Hi Kaushik
    As I guess solution would be reading the row into the structure which the F4 screen uses.
    <u><b>e.g.</b></u>
    GET CURSOR LINE lv_linno .
    lv_linno = lv_linno + <table_control_name>-top_line - 1 .
    READ TABLE <itab> INTO <screen_structure> INDEX lv_linno.
    If this is not the case, then posting your POV coding will be better to analyze your code.
    *--Serdar

  • Err:Internal Job Queue full for synchronous processing of print requests

    Hi,
    We are getting a lot of errors in system log with the
    error :
    Internal Job Queue full for synchronous processing of print requests.
    User :SAPSYS
    MNO:FBU.
    When we check the document in syslog it states it can be solved by reducing the print load or increasing performance or if there is a connection problem to host spooler , by improving the transfer of data to host spooler..
    But not by increasing the no of spool workprocess..
    I think any of the one stated cannot be implemented ..
    Pls provide your valuable answers and if any of the above can be implemented from your end..
    Regds,
    Satyanarayana N

    Hi Vamshi,
             Thanks for your response but would also like to confirm how we can say that spool queue is full and what may be the Max size of spool queue..
    When we say Internal queue is full does it mean spool queue...
    And also when I run the TEmse consistency check it is giving some errors..
    When I check Spool requests there are some waiting process,but when I check Output requests there are only 1 or 2..
    Please provide  me your valuable solution regd this..
    Regds,
    Satyanarayana N.
    Regds,
    Satyanarayana N.

  • I want parameters with f4 help for program names in value request

    I want parameters with f4 help for program names in value request
    points will be awarded if  useful

    lv_name1 TYPE name1,        "Vendor Name
    CALL FUNCTION 'POPUP_TO_SEARCH_VALUE'
        EXPORTING
          textline1   = 'Vendor Name'(f09)
          titel       = 'Enter'(f17)
          valuelength = 35
        IMPORTING
          value       = lv_name1.
    try this out ..

  • F4 help needed in Process on value-request

    Hi,
    I have two fields on screen: region and its description in a dialog program. I want region description to be populated as soon as I  select F4 help for region. Description field is output only . I want to do it using a module in Process On value-request. Field p_region MODULE GET_REGION_DESCRIPTION.
    Using standard F4 help I can do it. If in my table I assign search help at field level for region. For example :
    Search Help: ZREGION_SHLP.  Selection method: ZREGION. Fields: Region and Description.
    Table name : ZREGION.
    i)   1st Fields:  REGION , Data Element - ZREGN, Domain: ZZREGN ( CHAR2), Value table: ZREGN. Assign Search help at field level instead of data element level.
    ii)   2nd Field: REGION_DESC, Data Element - BEZEI30.
    in program:  DATA: p_region like zregion-region. So if I press F4 help and select one region, description field gets populated.
    I don't want to use standard functionality but want to write code in POV event. If I use F4IF_INT_TABLE_VLUE_REQUEST  function module, I will get all the values associated with the field region. Since I don't know which region user has selected, i  can't populate description. How to get the selected value in POV for that particular field. How can I get the value selected for region and then use DYNP_VALUES_UPDATE function module to update the description field. I tried search help exit event return to return the selected value. How to pass that value in POV module  as you cannot use FORM ENDFORM . inside MODULE ENDMODULE.
    Regards,
    DPM

    1st step is:
    choose screen 2000 for the program using t-code se80.
    at the end of the coding enter the below code:
    process ON VALUE-REQUEST.
    FIELD screen field name module f4_zsearchhelp.
    after typing the code double click on f4_zsearch help.
    it ll ask for includes, Choose as main program.
    then enter the below code after choosing:
    DATA : t_dynpro_value TYPE TABLE OF dynpread,
    v_field_value LIKE LINE OF t_dynpro_value,
    lt_fields TYPE TABLE OF dfies,
    t_return_str TYPE TABLE OF ddshretval,
    w_return_str TYPE ddshretval,
    v_text TYPE char25.
    DATA: t_ty_prov_id TYPE STANDARD TABLE OF ty_prov_id,
    w_ty_prov_id TYPE ty_prov_id.
    CLEAR: t_ty_prov_id], w_ty_prov_id, t_return_str[, w_return_str.
    enter the select query from the description table to get the description for the particular code.
    in this i had mentioned with an example that i m getting description for massg :
    p9001-massg ll have the value and v_text ll have the description.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = 'TY_TAB'
    retfield = 'MASSG'------>returning field
    PVALKEY = ' '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = 'P9001-ZMASSG'----
    > pass the screen field name
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    value_org = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ''
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    value_tab = t_ty_prov_id
    field_tab = lt_fields
    return_tab = t_return_str
    DYNPFLD_MAPPING =
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 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.
    READ TABLE t_return_str INTO w_return_str WITH KEY retfield = 'P9001-ZMASSG'.
    IF sy-subrc IS INITIAL.
    READ TABLE t_ty_prov_id INTO w_ty_prov_id WITH KEY zmassg_desc = w_return_str-fieldval.
    IF sy-subrc eq 0.
    DATA: et_desc(20) TYPE c.
    et_desc = w_ty_agrtx-v_gtext.
    MODIFY SCREEN.
    CLEAR : v_field_value,t_dynpro_value[].
    v_field_value-fieldname = 'P9001-ZMASSG'.
    v_field_value-fieldvalue = w_ty_prov_id-action_resn.
    APPEND v_field_value TO t_dynpro_value .
    CLEAR : v_field_value.
    v_field_value-fieldname = 'V_TEXT'.
    v_field_value-fieldvalue = w_ty_prov_id-zmassg_desc.
    APPEND v_field_value TO t_dynpro_value .
    CLEAR : v_field_value.
    ENDIF .
    ENDIF.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = sy-cprog
    dynumb = sy-dynnr
    TABLES
    dynpfields = t_dynpro_value
    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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    you can add the v_text in layput .
    hope it ll satisfy your requirement.

  • Help on PROCESS ON VALUE-REQUEST

    Is it possible for getting values into mulitple fields based on the selection made with in a PROCESS ON VALUE-REQUEST  Block.
    In the F4 based on POV  there are 4 fields, when the user select any one is it possible to get the other 3 into respective fields?

    hi saji
    Thats very much possible if you just want to populate any of the possible values in the fields.
    Write a piece of code which selects the other field values apart form the one you enter in the at selection-screen output event.
    for Example if the field entered is matnr for suppose then you can write a select single for other fields say plant and storage location in this event so these fields automatically gets populated once you hit the enter key as this event acts as a PBO for selection screen.
    I hope I have made things clear. if any do ask me, I can answer the same.
    Regards
    Santosh

  • PROCESS ON VALUE-REQUEST question..

    Hi, can anyone make a suggestion:
    I have an input field (on screen 200) which can be prompted with F4. When this happens the PROCESS ON VALUE-REQUEST calls a module to bring up a choice window (screen 300). Once the choice is made, a selection statement in screen 300 populates the description field on screen 200. However, while screen 200 shows the new <i>value</i> chosen, the <i>description</i> field still holds the old description. This is only refreshed when the user hits ENTER. I would like the description field to be showing the correct description immediately after the choice was made in the F4 prompt. Hope this make sense.
    (I notice even standard SAP programs have this too - just hit F4 on a choice field in say VD02, the description doesn't change until the next ENTER or button click).

    Hi,
    Providing Input Help (F4 Help)
    Use
    Users of an SAP System can use the F4 key to obtain information about the possible input values for a certain field on the screen.
    Information about the possible values for a field should also be available to those users who are working with the data in the SAP System from an external program, via BAPI calls. For example, the user of a Visual Basic program, which incorporates a BAPI to display or modify data in an SAP System, should have transparent access to the functions of the F4 input help.
    Features
    In order to provide input help, a calling program can use the BAPI HelpValues.GetList(). This method is based on the RFC-enabled function module BAPI_HELPVALUES_GET, which obtains the possible input values for a field that is passed in a BAPI call. For detailed information about the structure and use of the HelpValues.GetList() BAPI, see the documentation on the function module BAPI_HELPVALUES_GET, which implements the Helpvalues.GetList method.
    To determine the possible input values for a field in the check table, the BAPI HelpValues.GetList() uses the elementary search help or the domain fixed values linked to the field in the ABAP Dictionary.
    For this reason, you have to create or specify relevant check tables, elementary search helps (matchcodes) or domain fixed values. Only then can the calling program access the relevant input values for your BAPI fields using the BAPI HelpValues.GetList().
    As of Release 4.5A, you have to specify a foreign key, if a check table has been defined in the domain. Otherwise F4 input help cannot be displayed.
    Authorization Check
    In some cases you will only want to allow only those persons with a specific user profile to access information in F4 input help. To do this you can carry out authorization checks within the BAPI using table BAPIF4T.
    Table BAPIF4T is provided for this purpose. This table comprises the following fields, which you have to fill with the values for your BAPI.
    OBJTYPE (object type)
    The technical name of the SAP business object type, for example, BUS1065.
    METHOD (verb)
    The name of a BAPI for the business object type named above, for example, GetList.
    DTEL (data element)
    The name of a data element for which a possible entry is specified. For example, an elementary input help could be specified for the data element PERNR_D and be protected from unauthorized access.
    FNAM (name of the function module)
    The name of the function module that you have to create and that checks authorizations for the data element. This function module must have the following predefined interface:
    ""Local interface:
    *" IMPORTING
    *" VALUE(OBJTYPE) LIKE BAPIF4F-OBJTYPE
    *" VALUE(METHOD) LIKE BAPIF4F-METHOD
    *" VALUE(DTEL) LIKE BAPIF4F-DTEL
    *" VALUE(SHLPNAME) LIKE BAPIF4F-SHLPNAME
    *" VALUE(TABNAME) LIKE BAPIF4F-TABNAME
    *" EXPORTING
    *" VALUE(RETURN) LIKE BAPIF4F-RETURN
    As the template for your function module you can use the function module BF_BAPI_F4_AUTHORITY which provides exactly this interface. Copy this function module and follow the documentation provided with it.
    The additional parameter SHLPNAME contained in the function module interface provides the name of the active input help for the table or for the data element. The parameter TABNAME contains the name of the value table.
    The return code of the parameter RETURN is:
    'X' if the user of the BAPI is not authorized to call up the valid input values for a field.
    ' ' (no value), if the user of the BAPI is authorized to display the input values for a field.
    During runtime the function module is called dynamically by the BAPI HelpValues.GetList().
    An authorization check can be carried out at business object type, method or data element level:
    To check authorizations at this level…
    ... ......the following fields in table BAPIF4T must be filled.
    Business object type
    OBJTYPE, FNAM
    BAPI
    OBJTYPE, METHOD, FNAM
    Data Element
    OBJTYPE, METHOD, DTEL, FNAM
    Thanks,
    Shankar

  • Process on value request in Dialog screen based on value of screen field

    Hello Gurus,
    I have a check box on a dialog screen. If the checkbox is checked, based on that I want the other field on the same dialog screen to follow logic for F4 dropdown.
    Now I know if I want to write this, I have to write this in Process on value-request. But how do I get the value of the check box checked or not on the same screen in Process on value-request.
    If it had been a simple selection screen I would have defined the check box as
    Parameter: v_checkbox as checkbox user-command uc1.
    But how do I handle above situation in dialog screen case ?
    Please help.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Sep 29, 2009 6:19 PM

    Hi Shah,
    You have the addition for MODULE statement as ON INPUT.
    Eg :  FIELD <screen field> MODULE <module> ON INPUT.
    You can give the check box field name in the above statement.
    If you want to find as soon as the check box is checked, you can find it here.
    Or else, in the addition ON REQUEST
      you can see for the check box field value whether it is checked or not.
    Thanks,
    Prasad

  • Want to have F4 help from an internal table in Module Pool.

    Hi,
    I have a input/output field in a Module pool program. I want to attach an F4 help on this from an internal table.
    Please suggest me some techniques.
    Thanks in advance..

    Hi all,
    This is the piece of  code I have written...But I am getting the message "No Values Found"-
    DECLARATION
    TYPES:
         BEGIN OF ty_shipto,
         ship_to TYPE kunnr,
         END OF ty_shipto.
    DATA:
            tb_shipto TYPE TABLE OF ty_shipto,
           wa_shipto TYPE ty_shipto.
    REFRESH:
            tb_shipto.
    CLEAR:
           wa_shipto.
    TABLE TB_SHIPTO IS FILLED
    SELECT spart
        FROM mara
        INTO CORRESPONDING FIELDS OF TABLE mara_it
        FOR ALL ENTRIES IN vlcvehicle_it
        WHERE matnr = vlcvehicle_it-matnr.
      LOOP AT vlcvehicle_it INTO vlcvehicle_ls.
        MOVE-CORRESPONDING vlcvehicle_ls TO wa_vehinfo.
        APPEND wa_vehinfo TO tb_vehinfo.
      ENDLOOP.
      LOOP AT mara_it INTO mara_ls.
        MOVE-CORRESPONDING mara_ls TO wa_vehinfo.
        APPEND wa_vehinfo TO tb_vehinfo.
      ENDLOOP.
      LOOP AT vlcvehicle_it INTO vlcvehicle_ls.
        MOVE vlcvehicle_ls-vhcle TO va_vhcle.
        CALL FUNCTION 'ZCN_SD_GET_VLC_BRAND'
          EXPORTING
            in_vhcle          = va_vhcle
          IMPORTING
            out_distr_channel = va_vtweg.
        MOVE va_vtweg TO wa_vtweg.
        MOVE-CORRESPONDING wa_vtweg TO wa_vehinfo.
        APPEND wa_vehinfo TO tb_vehinfo.
      ENDLOOP.
      CLEAR:
           va_vtweg.
      IF tb_vehinfo[] IS NOT INITIAL.
        LOOP AT tb_vehinfo INTO wa_vehinfo.
          MOVE wa_vehinfo-kunnr TO va_kunnr.
          IF va_kunnr IS NOT INITIAL.
            MOVE va_kunnr TO va_kunnr_final.
          ENDIF.
          MOVE wa_vehinfo-zvkorg TO va_vkorg.
          IF va_vkorg IS NOT INITIAL.
            MOVE va_vkorg TO va_vkorg_final.
          ENDIF.
          MOVE wa_vehinfo-spart  TO va_spart.
          IF va_spart IS NOT INITIAL.
            MOVE va_spart TO va_spart_final.
          ENDIF.
          MOVE wa_vehinfo-vtweg  TO va_vtweg.
          IF va_vtweg IS NOT INITIAL.
            MOVE va_vtweg TO va_vtweg_final.
          ENDIF.
        ENDLOOP.
      ENDIF.
      SELECT kunn2
        FROM knvp
        INTO TABLE tb_shipto
        WHERE kunnr = va_kunnr_final  AND
              vkorg = va_vkorg_final  AND
              spart = va_spart_final  AND
              vtweg = va_vtweg_final  AND
              parvw = 'WE'.
    POV- TXT_SHIPTO_NVAL_NAR IS THE FIELD NAME IN DYNPRO
    PROCESS ON VALUE-REQUEST.
      FIELD:
           txt_shipto_nval_nar     MODULE f4_help_shipto_nar.
    MODULE f4_help_shipto_nar INPUT.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield         = 'SHIP_TO'
          dynpprog         = sy-repid
          callback_program = sy-repid
          dynpnr           = sy-dynnr
          dynprofield      = 'TXT_SHIPTO_NVAL_NAR'
        TABLES
          value_tab        = tb_shipto
          return_tab       = return_tab.
    ENDMODULE.                 " M_F4_HELP_NVAL_SHIPTO  INPUT
    The code is runnig error free but I am unable to see any popup.
    Message displayed: "No Values Found". But, I have checked in debugging that the table TB_SHIPTO contains some values when the FM is called.
    Please point out the mistake.
    Thanks in advance.

  • PAI process on value-request.

    Hi
    In PAI of one of the screens I have module that has to be triggered on value request and show table with possible entries for that screen field (lbl_printer) .
    When transaction is executed the module is not called when i hit icon close to input field (lbl_printer)so I cannot get entry help. I set up break point in the module but I didn't get  in to module " request printer". It looks like program do not recognize this module at all.
    Please advice .
    Krsto  
    process after input.
      module user_command_0105.
    process on value-request.
      field lbl_printer module request_printer.

    FIELD dynp_field MODULE mod [ {ON INPUT}
                                | {ON REQUEST}
                                | {ON *-INPUT}
                                | {ON {CHAIN-INPUT|CHAIN-REQUEST}}
                                | {AT CURSOR-SELECTION}.
    [http://help.sap.com/saphelp_nw73/helpdata/en/4a/3bb5668c412baee10000000a421937/frameset.htm]
    BR,
    Robert

  • Within FM not possible AT SELECTION-SCREEN or PROCESS ON VALUE-REQUEST

    Hello !
    Within a "User Help Exit" must be called the FM named
    C14F_LOV_WAID. How can I adress this FM
    for a field.
    The goal is if user klicks on F4 the this FM mist be called.
    please notice a user help exit is like a Function Modul.
    e.g.
    FUNCTION zuser_help_exit.
    ENDFUNcTION.
    Within this block FM block above I can't say:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR<FIELD>
    or
    PROCESS ON VALUE-REQUEST.
    FIELD <field-name> MODULE create_dropdown_box.
    Regards
    Ertas Ilhan

    HI
      well I am not sure about this it works or not but we have various function modules which we can call in other function modules to provide F4 help i mean to say that call Function module inside a Function Module
    F4IF_INT_TABLE_VALUE_REQUEST
    F4IF_FIELD_VALUE_REQUEST.
    Try out these Fm calling ..
    I hope it helps you am not sure
    Regards
    Pavan

Maybe you are looking for

  • DITA "tutorial" fails  or is it me?

    I am following the Quick Start "tutorial" in the _Structure Application Developer Guide_ and have hit an impasse. My EDD is valid, and I can import it into the test document, but doing so has no effect on the test doc. I am sure I have followed the i

  • Color Picker Doesn't Work

    I'm using PSE8 on a PC with Windows7 and something seems to be wrong with my color picker in the Editor.  I click on the Foreground icon (lower left of the screen), choose a color, click OK, and it doesn't change the color on the icon.  The default c

  • Save to XML: image attribute defined twice

    Hello all, I am saving a structured document to XML and run into an error I cannot explain - or solve: I place graphics inside an anchored frame, which is aligned right with the image centered in the frame. Saving the document to XML generates an err

  • Getting video from itunes into imovie

    I have converted my home dvd using Handbrake into iTunes. Now I don't know how to edit it. I try to drag it into imovie but it won't let me. It seems it is saved now as a mpeg4. Can anyone please help me?

  • Displaying the drive letters of another PC connected through Ethernet

    Am using two PC's connected in a network via ethernet. I want to read the drive letters (a:\, c:\, d:\, e:\, etc.....) of one PC and display in the LabVIEW application running in another PC. I searched the forum and found an example posted by tst (i