To populate a ComboBox according to a screen field

Hi folks!  I'm newbie on ABAP and I have the following problem:
I have a screen field.  According with the data entered on this field I want to populate a ComboBox using the function VRM_SET_VALUES, but I can't found a proper event to do the population.
The "at selection-screen on field_name" option is executed at the end, with all checks, but not after I live or change the first field.  Anybody knows a solution for it?
Thanks in advance.

Check the below code:
*& Report  YSAMPLE12                                                   *
REPORT  ysample12                               .
DATA: i_dynpfields TYPE dynpread OCCURS 0 WITH HEADER LINE.
TYPE-POOLS : vrm.
DATA : vrm_data TYPE vrm_values.
DATA : wa_vrm LIKE LINE OF vrm_data.
PARAMETERS : p_val TYPE c.
PARAMETERS : p_opt(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN.
  REFRESH: i_dynpfields.
  i_dynpfields-fieldname = 'P_VAL'.
  APPEND i_dynpfields.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname                         = sy-repid
      dynumb                         = sy-dynnr
  TRANSLATE_TO_UPPER             = ' '
  REQUEST                        = ' '
  PERFORM_CONVERSION_EXITS       = ' '
  PERFORM_INPUT_CONVERSION       = ' '
  DETERMINE_LOOP_INDEX           = ' '
    TABLES
      dynpfields                     = i_dynpfields
EXCEPTIONS
   invalid_abapworkarea           = 1
   invalid_dynprofield            = 2
   invalid_dynproname             = 3
   invalid_dynpronummer           = 4
   invalid_request                = 5
   no_fielddescription            = 6
   invalid_parameter              = 7
   undefind_error                 = 8
   double_conversion              = 9
   stepl_not_found                = 10
   OTHERS                         = 11
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
AT SELECTION-SCREEN OUTPUT.
  REFRESH: vrm_data.
  READ TABLE i_dynpfields WITH KEY fieldname = 'P_VAL'.
  IF i_dynpfields-fieldvalue = 'A'.
    wa_vrm-key = '1'.
    wa_vrm-text = 'Create'.
    APPEND wa_vrm TO vrm_data.
    wa_vrm-key = '2'.
    wa_vrm-text = 'Change'.
    APPEND wa_vrm TO vrm_data.
    wa_vrm-key = '3'.
    wa_vrm-text = 'Delete'.
    APPEND wa_vrm TO vrm_data.
  ELSEIF i_dynpfields-fieldvalue = 'B'.
    wa_vrm-key = '4'.
    wa_vrm-text = 'Copy'.
    APPEND wa_vrm TO vrm_data.
  ENDIF.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = 'P_OPT'
      values          = vrm_data
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
U have press enter after giving value in the P_VAL.
Regards,
Prakash.

Similar Messages

  • 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

  • How to populate TableView data on the other screen TextField

    Hi guru’s
    I am having problem in populating data from a table in one screen to a Text Field in the other screen. I have two classes FirstClass containing a textbox and a button. On pressing a button a second window is opened containing a Table of values. As the user double clicks a row the value of the second column of the row should be inserted into the textbox of the FirstClass. Code of both the classes is attached. Thanking you in anticipation.
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Insets;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.GridPane;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class FirstClass extends Application {
    public static void main(String[] args) {
         launch(args);
    @Override
    public void start(final Stage primaryStage) {
         primaryStage.setTitle("First Class");
    GridPane gridpane = new GridPane();
              gridpane.setPadding(new Insets(5));
              gridpane.setHgap(5);
              gridpane.setVgap(5);
    final TextField userNameFld = new TextField();
    gridpane.add(userNameFld, 1, 1);
    Button btn = new Button();
    btn.setText("Show Table");
    gridpane.add(btn, 1, 3);
    btn.setOnAction(new EventHandler<ActionEvent>() {
    @Override
    public void handle(ActionEvent event) {
         String a = TableClass.showDialog(primaryStage, true, "Table Window" );
         userNameFld.setText(a);
    StackPane root = new StackPane();
    Scene scene =new Scene(root, 300, 250);
    root.getChildren().addAll(gridpane);
    primaryStage.setScene(scene);
    primaryStage.show();
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.EventHandler;
    import javafx.geometry.Insets;
    import javafx.scene.Scene;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.GridPane;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Modality;
    import javafx.stage.Stage;
    public class TableClass extends Stage {
         private static TableClass dialog;
         private static String value = "";
         public static class Person {
    private final SimpleStringProperty firstName;
    private final SimpleStringProperty lastName;
    private Person(String fName, String lName) {
    this.firstName = new SimpleStringProperty(fName);
    this.lastName = new SimpleStringProperty(lName);
    public String getFirstName() {
    return firstName.get();
    public void setFirstName(String fName) {
    firstName.set(fName);
    public String getLastName() {
    return lastName.get();
    public void setLastName(String fName) {
    lastName.set(fName);
         private TableView<Person> table = new TableView<Person>();
         private final ObservableList<Person> data =
         FXCollections.observableArrayList(
         new Person("JACK", "BROWN"),
         new Person("JOHN", "VIANNEYS"),
         new Person("MICHAEL", "NELSON"),
         new Person("WILLIAM", " CAREY")
         public TableClass(Stage owner, boolean modality, String title) {
              super();
              initOwner(owner);
              Modality m = modality ? Modality.APPLICATION_MODAL : Modality.NONE;
              initModality(m);
              setOpacity(1);
              setTitle(title);
              StackPane root = new StackPane();
              Scene scene = new Scene(root, 750, 750);
              setScene(scene);
              GridPane gridpane = new GridPane();
              gridpane.setPadding(new Insets(5));
              gridpane.setHgap(5);
              gridpane.setVgap(5);
              TableColumn firstNameCol = new TableColumn("First Name");
         firstNameCol.setMinWidth(100);
         firstNameCol.setCellValueFactory(
         new PropertyValueFactory<Person,String>("firstName")
         TableColumn lastNameCol = new TableColumn("Last Name");
         lastNameCol.setMinWidth(200);
         lastNameCol.setCellValueFactory(
         new PropertyValueFactory<Person,String>("lastName")
         table.setItems(data);
         table.getColumns().addAll(firstNameCol, lastNameCol);
         table.setOnMouseClicked(new EventHandler<MouseEvent>() {
                   public void handle(MouseEvent me) {
                        if (me.getClickCount() >= 2) {
                   String srr = table.getItems().get(table.getSelectionModel().getSelectedIndex()).getLastName();
                   value = srr;
                   dialog.hide();
         gridpane.add(table, 1, 5,1,20 );
              root.getChildren().add(gridpane);
         public static String showDialog(Stage stg, Boolean a , String title){
              dialog = new TableClass( stg,a, title);
              dialog.show();
              return value;
    }

    Cross posted
    http://www.coderanch.com/t/582014/JavaFX/java/populate-TableView-data-other-screen
    http://stackoverflow.com/questions/10734649/how-to-populate-tableview-data-on-the-other-screen-textfield-in-javafx-2-0
    Moderator advice: Please read the announcement(s) at the top of the forum listings and the FAQ linked from every page. They are there for a purpose.
    Then edit your post and format the code correctly.
    db

  • How to populate the calculated value into screen field.

    I am doing one enhancement in QM.I have added one custom screen to notification transaction ( QM01/QM02/QM03) transaction tab strip control using the enhancement QQMA0001.The Details of the calling and called screens as shown bellow
    The Calling screen: SAPLIQS0
    Screen Number: 7790
    Screen Area :USER0001
    Called Screen: SAPLXQQM
    Screen Number: 0101
    I have developed the Custom Screen in screen 0101 and called in PBO of program SAPLIQS0 7790 screen.
    The Screen in calling perfectly .The Custom screen having different fields like Raw cost, Intermediate cost, Finished cost, SCAR Cost and Sales Order Cost Etc... These fields are out put filed types. No input for these screens.. I have few doubts regarding this
    How to populate the calculated values in Custom screen?
    Where we wrote the code to populate the calculated values in custom screen?
    You have any idea please guide me
    Thanks & Regards,
    Samantula

    As your screen fields should be global variables in SAPLXQQM, you may initialize them by implementing function module EXIT_SAPMIWO0_008 which also belongs to SAPLXQQM (Customer Exit: Transfer Notification Data to User Screen)

  • Howto populate a combobox using DBDatasource?

    Hi!
    How can I populate my combobox with values using a DBDatasource binded to it?
    It show only the last record with the following code
    and I cannot select any other values.
    oDBDSItemCode = oForm.DataSources.DBDataSources.Add("OITM")           
    ocbItemCode.DataBind.SetBound(True, "OITM", "ItemCode")
    oDBDSItemCode.Query()
    For x = 0 To oDBDSItemCode.size - 1
        oDBDSItemCode.Offset = x
    Next

    Hello Zoltan
    I don't think you can populate a ComboBox with the DBDataSource binded to it and I don't think that is the way you should use it.
    If I'm right, what you want to do is populate a combobox from the OITM table, and I guess to save is as a foreign key in an other table.
    I think you should use the following code,
      - it adds the DBDataSource OITM that wil allows you to populate the combo
      - it link the combobox to the table where you want to save the item code
      - It adds the valid value to the combo
    oDBDSItemCode = oForm.DataSources.DBDataSources.Add("OITM") 
    ocbItemCode.DataBind.SetBound(True, "name_of_the_table_you_want_to_save_the_data", "Foreign_key_field_name")
    oDBDSItemCode.Query()
    For x = 0 To oDBDSItemCode.size - 1
        ocbItemCode.ValidValues.Add(oDBDSItemCode.GetValue("ItemCode",i),oDBDSItemCode.GetValue("ItemName",i))
    Next

  • Fit the GUI and its components according to the screen resolution

    hi frns,
    i have developed a GUI by using BorderLayout and GUI contains around 7 components.I am primarily working on 1024*768 resolution..THe main problem is when i using 800*600..My interface will run out of shape..How to avoid this. ......reply urgently.
    thanku.

    Have you tried this?
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    And then you can do a setSize method to resize your screen based on what you found out about the screenSize.
    As long as your components are contained in some sort of layout manager, they should resize accordingly as the screen is resize like this also... You might need to do a yourscreen.pack() also....

  • I want to scale the font size programmatically according to the screen resolution

    I have done scaling the front panel and front panel objects by programmatically. but the text (font) size is still remain same. It’s shows very bad. So I want to scale the font size programmatically according to the screen resolution. Can u suggest some idea to implement?
    Vijayakumar.M
    Bangalore.
    India

    This is a duplicate post. See the original post for an answer:
    http://forums.ni.com/t5/LabVIEW/i-want-to-scale-the-font-size-programmatically-according-to-the/m-p/...
    Eric S.
    Applications Engineer
    National Instruments
    E. Sulzer
    Applications Engineer
    National Instruments

  • DropDownWidth Combobox, according Dataprovider

    hi people i have a question, i need adjust dropdownwidth porperty of combobox according the dataprovider width, i found this blog entry 
    but no worked in SDK flex 3.5, in the blog entry worked perfectly in 3.2 SDK, any idea is welcome, sorry if my english is not good, im native spanish speaker.

    There are a variety of ways to handle this change that might
    result in more consistent operation In your change function, try
    using the ccbOne.selectedIndex to determine if a value has been
    selected. For instance:
    if(ccbOne.selectedIndex == 0)
    I would also recommend using attributes in your array
    assignment, so instead
    of ["Penny", "Nickel", "Dime"], you have [label:"Penny",
    label:"Nickel", label:"Dime"] or [{data:1,
    label:"Penny"},{data:5,label:"Nickel"},{data:10,label:"Dime"}]
    Then you can reference the combo by
    ccbOne.data[selectedIndex].
    So if you want to detect a Nickel:
    if(ccbOne.data[selectedIndex] == 5)
    However, your code may be as simple as needing
    oEvent.target.value.text
    Could have some syntax errors in the above, but hopefully you
    get the idea.
    regards
    ps...Try a trace within the change function and see what
    string myNewValue takes on each time you click.

  • How to populate 2 screen-fields with one [ON VALUE-REQUEST FOR input] evnt?

    I have a selection screen with 2 text inputs - input1, input2.
    For the first one I have an "AT SELECTION-SCREEN ON VALUE-REQUEST FOR input1" event.
    I successfully get a value there and that is set to the screen field. But I also want input2 to be automatically populated with a value corresponding to the selected input1 (eg. input1=ID, input2=Name).
    I'm able to set input2 ABAP variable but not the screen-element.
    (I guess that ON VALUE-REQUEST doesn't fire any events for screen fields update, because if I press ENTER after using my search-help, then input2 is set with the right value)
    How to solve the problem?

    Hi Ramchander,
    Actually I used FM F4IF_FIELD_VALUE_REQUEST which doesn't have mapping parameters.
    But after your advice I looked through F4IF_INT_TABLE_VALUES_REQUEST and found that it's
    DYNP_VALUES_UPDATE FM that solves my task.
    Thanks!

  • Screen Fields Not getting Updated with DYNP_VALUES_UPDATE

    Hi All,
    I am using FM DYNP_VALUES_READ to read the screen field values and then modifying those values and passing the modified table to DYNP_VALUES_UPDATE. But the problem is screen fields are not populated with these values . The values I wish to populate are footer values . I am using OO ALV for this wherein I am handling an event for filter of records and accordingly I need to modify my footer. Any Suggestions??
    *&      Form  footer
          Caslculate Total items, number of hits/Miss and percent MSP
    -->  p1        text
    <--  p2        text
    FORM footer .
      CLEAR : io_totitems,
              io_tothit,
              io_totmiss,
              io_permiss.
    IF NOT l_flag EQ 1.
    Get total items
      DESCRIBE TABLE i_outdata LINES io_totitems.
      LOOP AT i_outdata INTO wa_outdata.
      calculate number of hits
        IF wa_outdata-hit_miss  = 'HIT'.
          io_tothit = io_tothit + 1.
        ENDIF.
      calculate number of Miss
        IF wa_outdata-hit_miss  = 'MISS'.
          io_totmiss = io_totmiss + 1.
        ENDIF.
        CLEAR wa_outdata.
      ENDLOOP.
    calculate percent MSP
      io_permiss = ( ( io_totitems - io_totmiss ) / io_totitems ) * 100 .
      IF l_flag EQ 1.
        wa_dynpread-fieldname = 'IO_TOTITEMS'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_TOTHIT'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_TOTMISS'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_PERMISS'.
        APPEND wa_dynpread TO t_dynpread.
        CLEAR wa_dynpread.
        d020s-prog = sy-repid.
        d020s-dnum = sy-dynnr.
        CALL FUNCTION 'DYNP_VALUES_READ'
                EXPORTING
                   dyname               = d020s-prog
                   dynumb               = d020s-dnum
                   translate_to_upper   = 'X'
              REQUEST              = ' '
                TABLES
                   dynpfields           = t_dynpread.
        MOVE io_totitems TO io_totitem.
        CONDENSE io_totitem NO-GAPS.
        MOVE io_tothit TO io_tothits.
        CONDENSE io_tothits NO-GAPS.
        MOVE io_totmiss TO io_totmis.
        CONDENSE io_totmis NO-GAPS.
        MOVE io_permiss TO io_permis.
        CONDENSE io_permis NO-GAPS.
        LOOP AT t_dynpread INTO wa_dynpread.
          CASE: wa_dynpread-fieldname.
            WHEN 'IO_TOTITEMS'.
              wa_dynpread-fieldvalue = io_totitem .
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_TOTHIT'.
              wa_dynpread-fieldvalue = io_tothits.
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_TOTMISS'.
              wa_dynpread-fieldvalue = io_totmis.
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_PERMISS'.
              wa_dynpread-fieldvalue =  io_permis .
              MODIFY t_dynpread FROM wa_dynpread.
          ENDCASE.
          CLEAR wa_dynpread.
        ENDLOOP.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = d020s-prog
            dynumb               = d020s-dnum
          TABLES
            dynpfields           = t_dynpread
          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.
      ENDIF.
    Get all fotter details in a internal table
    this is used to download footer in Excel
      wa_footer-fldname = 'Total Items '.
      wa_footer-value = io_totitems.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Number of HIT'.
      wa_footer-value = io_tothit.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Number of MISS'.
      wa_footer-value = io_totmiss.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Percentage MISS '.
      wa_footer-value = io_permiss.
      APPEND wa_footer TO i_footer.
      CLEAR wa_footer.
    ENDFORM.                    " footer

    data: t_dynfields1 type table of dynpread with header line.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = d020s-prog
    dynumb = d020s-dnum
    translate_to_upper = 'X'
    REQUEST = ' '
    TABLES
    dynpfields =  t_dynfields1.
    <b>read table t_dynfields1 index 1</b> “ I hope this is missing
    I will be selecting from a list .
    Because once the value is read we need to update the screen field with that value .
    Here the selected value will be in the first place
    Now
    Your operation is to populate the fields with some variables .
    In the same when I do this there is only one value then
    Im expecting only one entry here …
    LOOP AT t_dynpread INTO wa_dynpread.
    CASE: wa_dynpread-fieldname.
    WHEN 'IO_TOTITEMS'.
    wa_dynpread-fieldvalue = io_totitem .
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_TOTHIT'.
    wa_dynpread-fieldvalue = io_tothits.
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_TOTMISS'.
    wa_dynpread-fieldvalue = io_totmis.
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_PERMISS'.
    wa_dynpread-fieldvalue = io_permis .
    MODIFY t_dynpread FROM wa_dynpread.
    ENDCASE.
    CLEAR wa_dynpread.
    ENDLOOP. */
    Comment this for a while and
    Change the code as
    t_dynfields1-fieldname = ' '. "<--- header name
    t_dynfields1-fieldvalue = ' '."<----val  
    append t_dynfields1.
    t_dynfields1-fieldname = ' '.
    t_dynfields1-fieldvalue = ' '.
    append t_dynfields1.
    t_dynfields1-fieldname = ' '.
    t_dynfields1-fieldvalue = ' '.
    append t_dynfields1.
    And check .
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = d020s-prog
    dynumb = d020s-dnum
    TABLES
    dynpfields = t_dynfields1.
    regards,
    vijay

  • 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

  • How to display the selection screen fields on reprt output

    Hi,
         I would like to know, which function module is use to diplay the selction scrren fields on the report output.
    For  e.g: 
                  on selction scren I have two select options.
         1. Company Code : 0000  to  9999
         2. Fiscal Year       : 2005  to  2008
    I need to display these fields on the Report ouput, so that I can know that what selection criteria I have entered on selction screen.
    Thanks & Regards
    Chetan Chauhan.

    Hi Chetan,
    Lets say u have selection criterion as
    *SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : pa_werks LIKE vlcvehicle-werks DEFAULT 'XXX' OBLIGATORY,
                 pa_date  LIKE sy-datum DEFAULT sy-datum.
    SELECT-OPTIONS : so_vbeln FOR vbrk-vbeln.
    SELECTION-SCREEN END OF BLOCK b1.
    Put a selection on that criterion according to selection screen,
    Fill in a internal table.
    Write itab-field1, field2.
    Also use ABAPDOCU a tcode where u can find many demo programmes for all topic.
    Reward points if useful.
    cheers
    Mohinder Singh
    Cheers
    Mohinder Singh Chauhan

  • Value Transport (Exporting) to multiple screen fields in Search Help

    Hi all,
    I have created elementary search help using exit and attached it to data element. After F4 when I get hitlist I want all the values from the selected rows to get copied to the screen fields. I.e. I want the value transport.
    In the search help I am exporting those values which I want to get copied back but I am unable to get the result.
    With Regards,
    Chandra

    Hi,
        You can get this behaviour only by making the SEARCH HELP assignment at the STRUCTURE level.
    You need to create or use an existing structure to create your screen fields which you want to populate using the search help. Then assign this search help directly to the structure and there do the mapping between structure fields and the search help export params.
    Only by doing this you can autopopulate the values using one search help.
    Regards,
    Sesh

  • Search Help - Standard Screen Field: ME21n / ME22n

    Helow, experts.
    I have to create a search help in the standard screen field "Our Reference" (UNSEZ) in the tab  Communication to ME21n / ME22n, anyone could say me how can I code it?
    To populate this search help, I have to use 3 different tables.
    Thanks

    hi shatish
    code here in screen flow logic it will fire on F4 pressing.
    PROCESS ON VALUE-REQUEST
    module value_help.
    in program
    module value_help.
    populate the itab.
    CALL FUNCTION 'POPUP_WITH_TABLE'
                    EXPORTING
                      ENDPOS_COL         = <colvaluea>
                      ENDPOS_ROW         = <colvaluea>
                      STARTPOS_COL       = <colvaluea>
                      STARTPOS_ROW       = <colvaluea>
                      TITLETEXT          = 'VALUE HELP'
                  IMPORTING
                    CHOICE             =
                    TABLES
                      VALUETAB           = itab
                  EXCEPTIONS
                    BREAK_OFF          = 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.
    endmodole.
    regards
    shiba dutta

  • Input help for screen fields

    hi all,
    i have two problems.
    1) When i change  input attiribute of input/output field  is required , any user command (like exit or back command etc.) doesn't work.
    2) i have two different field in my screen lifnr and belnr. but i can't use f4 search help for that fields. i have defined search help in my ztable (SE11) and element list-references (SE51) and fm F4IF_FIELD_VALUE_REQUEST and fm F4IF_INT_TABLE_VALUE_REQUEST. i have put process on valeu-request in flow logic. But when program run , skip this event.
    all of them it doesn't work.
    what should i do?
    thaks for your helps.
    Regards.

    Hi,
    try the following code...and change the <.....>  according to your program..Do the same thing for the second screen field also.
    If you face same problem then please let me know.
    module display_f4help input.
      call function 'F4IF_FIELD_VALUE_REQUEST'
        exporting
          tabname           = '<tablename>'
          fieldname         = '<fieldname>'
          dynpprog          = sy-cprog
          dynpnr            = sy-dynnr
          dynprofield       = '<screen-field name>'
        exceptions
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          others            = 5.
      if sy-subrc <> 0.
        message id sy-msgid type 'S' number sy-msgno
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.                                     " IF sy-subrc <> 0.
    endmodule.                             " DISPLAY_F4HELP  INPUT

Maybe you are looking for

  • Slow down printing speed for Smart Forms

    Hi, Is there any command (etc.) to slow down the printing speed of an Hp laserjet when printing a smart forms? I need that because when I print that smart form to fast I run into print out quality problems. Many Thanks

  • Incorrect Account Determination Error in Foreign Currency Revaluation

    Hi All, I am executing T-Code FAGL_FC_VAL for foreign currency Valuation with new GL. I am getting an error message "Incorrect account determination: 1000 01 205000" Please let me know how to resolve this error. I have maintained the GL Accounts in O

  • MY PASSWORD DOESN'T WORK ON APP STORE

      My pw doesn't work on App store, hlep me please.

  • How to get muliple teaser images using assetset:getmultiplevalues?

    1. I have created a template called sample and Names it as sample.jsp 2. In the subTypes i selected a pageDefinition which i created alrady with the following page attributes      1.teaserImager 2.teaserText      Both attributes are Multiple 3. I the

  • Chromecast Compatibility

    I was trying to connect my phone with the TV via chromecast and it didn´t seem to work. The TV recognized the Chromecast device but said there was no signal from the router. I have a Cisco Linksys router model WRT54G2. Are the devices compatible?