Import Export value of enhanced search help

Hi
i have created an elementary search help and inserted in VMVA which is standard search help for Sales order selection.
its working properly but when i select the value it doesn't pass to vbeln on va02 tcode  kindly help me in this regard .
did i need to transport the value through programing  ???
Regards
Ammad

done ............. parameter was not set

Similar Messages

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          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.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        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.
    good luck

  • Process On Value Request with Search Help Problem

    I have a screen with a field that has a custom search help attached to it.  I am using Process On Value-Request which ultimately uses function module F4IF_FIELD_VALUE_REQUEST to return the selected value from the search help. The value is then moved to the screen field.
    THE PROBLEM: If I enter a value in a field on the screen, then use the search help from a different field the first value I entered gets cleared. Here is a code sample. Any suggestions as to why this is happening?
    NOTE: The values that get cleared are fields on the screen that I do not reference at all in user_command_2501.
    *****SCREEN 2500 FLOW LOGIC*********
    PROCESS BEFORE OUTPUT.
      MODULE status_2500.
    PROCESS AFTER INPUT.
      MODULE user_command_2500.
    PROCESS ON VALUE-REQUEST.
      FIELD makt-matnr MODULE user_command_2501.
    MODULE user_command_2501 INPUT.
      ok_code = sy-ucomm.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                searchhelp      = 'ZWS_ASSETMATR'
                fieldname       = ' '
                tabname         = ' '
           TABLES
                return_tab      = search_itab
           EXCEPTIONS
                no_values_found = 1.
      MOVE search_itab-fieldval TO: makt-matnr.
      REFRESH search_itab.
      SELECT SINGLE maktg FROM makt INTO crea_description
        WHERE matnr = search_itab-fieldval.
      MOVE 'I' TO scrn_attr_sw.
      sy-ucomm = 'ENTER'.
      LEAVE SCREEN.
      CALL SCREEN 2500.
    ENDMODULE.                 " user_command_2501  INPUT
    Message was edited by: Jason DeLuca
    Message was edited by: Jason DeLuca

    Hi Jason
    It seems you should first revise your code since your POV is not implemented so good.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Selecting multiple values from a search help

    Hi Experts
    Anyone knows if it is possible to select multiple values from a search help?
    Thanks
    Gaurav

    Hi,
    You cannot select mutiple values from search help as it is linked to inputfield and hence it will accept single value only. But at the same time, you may able to pass row of values to different inputfields.
    Refer http://help.sap.com/saphelp_dm40/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
    Thanks,
    Chandra

  • How to add Value Table or Search Help for a field which is on Standard SAP?

    Hi All,
        I have a field HERST (tcode IE01) which doesnt have any value table or search Help. I have the same field in a Z table which I should display for the standard screen field in tcode IE01. So Pls suggest me on this.
        Thanks in advance.
    Regards
    Jaker.

    Hi, Tamas,
    I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    The correct code is like:
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
    Xin

  • Validate values while displaying search help records

    Hi Experts,
    I have created one serach help. This search help was using by so many programs.
    Based on the material type I need to restrict some values while displaying search help.
    Suppose search help contain three rows.
    Material type   ---   Material   --- Material Desc
    A1                    ---    12345       --- XXXXXXXXXXX
    A2                    ---    4586         --- XXXXXXXXXXX
    A3                    ---     2345       ---  XXXXXXXXXXX
    A1                     ---    852        ---  XXXXXXXXXXXX
    In my module pool program, I need to display A2 and A3 material type records only.
    How can we acheive this?
    I checked search help exit by creating new. none of the table contains those records. What code I need to write in search help exit?.
    Pls help me.
    Thanks in advance
    Raghu

    Hi check[ My wiki|https://wiki.sdn.sap.com/wiki/x/du0] for the code

  • How to get the short text values from F4 SEARCH HELP

    Hi Friends,
       My requirement is in  Module -pool Screen Programming,  i have Designed one field in a custom screen and  provided a F4 search help to that field..
    For eg the F4 help is displayed as below.
    Value                   short text
      1                    A          
      2                              B
      3                       C
      4                              D
      5                       E
      6                       F
      7                          G
    When i select the first option (1) then value 1 appears in the field.
    now i want the text relevant to the value 1 to appear by the side of the field.
    Eg :            1                  A      (A should appear by the side of the value 1)
    How do i achieve it?
    Kindly help me.
    Regards,
    K.S.Kannan.
    Edited by: kannan ks on Dec 8, 2008 4:05 PM

    hi
    1) place a field adjacent to your value field on which F4 is operated
    so now you will have 2 fields.
    iam considering it as for ex: field1 & field2
    2)
    BOLD one is import in FM call
    CLEAR: t_dynpfld_mapping,
    e_dynpfld_mapping.
    e_dynpfld_mapping-fldname = 'F0001'.           
    e_dynpfld_mapping-dyfldname =      -
    > name of field1  (for ex: your 1 value field name)
    APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
    e_dynpfld_mapping-fldname = 'F0002'.
    e_dynpfld_mapping-dyfldname =   -
    > name of field2  (for ex: your short text field name)
    APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
    3))))))))
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield =    
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = -
    > name of field1  (for ex: your 1 value field name)
    value_org = 'S'
    TABLES
    value_tab = itab
    dynpfld_mapping = t_dynpfld_mapping
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3

  • Export parameter in elementary search help not working.

    I have created an elementary search help that will display all sold-tos for entered ship-to(s).  Everything works fine except that the sold-to that is selected from the hit list is not being entered into the customer field on the selection screen.
    eg transaction VD03, F4 on Customer, enter import parameters VKORG VTWEG SPART and KUNN2, hit list is displayed correctly and one line selected.  I expect that my export parameter KUNNR should now appear in the Customer field of VD03 but its not.
    This is my elementary search help definition:
    Elementary srch hlp  ZDEBIC                         Active
    Short description    Customers for Ship-to
      Selection method   Z_DEBIC            Dialog type
      Text table                            Hot key         2
    Search help exit    Z_SHIP_TO_SEARCH_HELP_EXIT
    Parameter  IMP  EXP  LPos  SPos  Data Element  Default Value
    SORT1                       1                  AD_SORT1                         
    SORT2                       2                  AD_SORT2                         
    MCOD1                      4                  MCDD1                         
    MCOD3                      5                  MCDD3                         
    PSTLZ                        6                  PSTLZ                         
    KTOKD                       7                  KTOKD                         
    VKORG     x       x       8        1        VKORG         VKO
    VTWEG     x       x       9        2        VTWEG        VTW
    SPART      x       x      10       3        SPART          SPA
    KUNN2      x               11       4        KUNN2          KUN
    KUNNR              x       3                  KUNNR                         
    I suspect the problem may be with default value KUN against KUNN2, but if I put it against KUNNR, I get a message "No values for this selection" instead of my hit list.
    Can anybody give me a clue as to the problem?
    Thanks,
    Brigitte

    I just found out - I had asked my fellow ABAPer to have a look at it and he just told me that he had changed the Parameter Assignment of the Collective Search Help from the proposed one of KUNN2 C KUNNR to KUNNR C KUNNR.  It seems that was necessary as well so I'm putting this in for future reference of anybody with the same problem.

  • Select options: Restricting Value Display in Search Help Parameters

    Hello friends,
    I have following requirement.
    I have declared one select option. On that select options I'am having different search help paremeters on which I can restrict the search help values display.
    Can I specify the restriction in search help at the time of programming so that it would display only the values that follows the given restriction?
    I can ofcourse do this by AT SELECTION-SCREEN ON VALUE REQUEST, however I am trying to avoid this.
    How can I proceed?
    Points will be rewarded generously.
    Best Regards,
    Navin

    hI
    SEE THIS CODE
    **************DATA TYPES DECLARATION **********************
    TABLES: HRP1001, HRP1026, HRP1000,PCHDY.
    TYPE-POOLS SLIS.
    TYPES :BEGIN OF ST_OUTPUT,
            COUNT TYPE STRING,
            OBJID TYPE HRP1001-OBJID,
            STEXT TYPE HRP1000-STEXT,
            BEGDA TYPE HRP1000-BEGDA,
            ENDDA TYPE HRP1000-ENDDA,
            CANCRT TYPE T77CRT-CANCRT,
            AEDTM TYPE HRP1026-AEDTM,
            UNAME TYPE HRP1026-UNAME,
            LSTEXT TYPE HRP1000-STEXT,
           RINVT TYPE T777V-RINVT,
           END OF ST_OUTPUT.
    TYPES: BEGIN OF ST_HRP1000,
            OBJID TYPE HRP1001-OBJID,
            STEXT TYPE HRP1000-STEXT,
           END OF ST_HRP1000.
    TYPES : BEGIN OF ST_HRP1001,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RELAT type hrp1001-RELAT,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-SOBID,
            END OF ST_HRP1001.
    TYPES : BEGIN OF ST_HRP1026,
             OTYPE TYPE HRP1026-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             AEDTM TYPE HRP1026-AEDTM,
             UNAME TYPE HRP1026-UNAME,
             DELET TYPE HRP1026-DELET,
             CANCR TYPE HRP1026-CANCR,
            END OF ST_HRP1026.
    TYPES : BEGIN OF ST_REASON,
             CANCR TYPE HRP1026-CANCR,
             CANCRT TYPE T77CRT-CANCRT,
            END OF ST_REASON.
    TYPES : BEGIN OF ST_SOBID,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RELAT type hrp1001-OBJID,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-OBJID,
            END OF ST_SOBID.
    TYPES : BEGIN OF ST_OBJID,
             OBJID TYPE HRP1001-OBJID,
            END OF ST_OBJID.
    TYPES : BEGIN OF ST_LOCATION,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RSIGN TYPE HRP1001-RSIGN,
             RELAT TYPE HRP1001-RELAT,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-SOBID,
            END OF ST_LOCATION.
    TYPES : BEGIN OF ST_LOCATION1,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RSIGN TYPE HRP1001-RSIGN,
             RELAT TYPE HRP1001-RELAT,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-OBJID,
            END OF ST_LOCATION1.
    TYPES : BEGIN OF ST_LSTEXT,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
             LSTEXT TYPE HRP1000-STEXT,
            END OF ST_LSTEXT.
    TYPES : BEGIN OF ST_OBJID_SH,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
            END OF ST_OBJID_SH.
    DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
    DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
    DATA : IT_LSTEXT TYPE STANDARD TABLE OF ST_LSTEXT.              "TOS STORE THE TEXT OF COURCE LOCATION
    DATA : WA_LSTEXT TYPE ST_LSTEXT.
    DATA : IT_LOCATION TYPE STANDARD TABLE OF ST_LOCATION.          " TO STORE THE LOCATION OF COURCE
    DATA : WA_LOCATION TYPE ST_LOCATION.
    DATA : IT_LOCATION1 TYPE STANDARD TABLE OF ST_LOCATION1.        " TO CONVERT SOBID INTO OBJID FOR COURCE LOCATION
    DATA : WA_LOCATION1 TYPE ST_LOCATION1.
    DATA : IT_SOBID TYPE STANDARD TABLE OF ST_SOBID.                " TO CHANGE THE SOBID OF HRP1001 TO OBJID OF HRP1026
    DATA : WA_SOBID TYPE ST_SOBID.                                   " BY USING FOR ALL ENTRIES
    DATA : IT_REASON TYPE STANDARD TABLE OF ST_REASON.              "TO STORE T HE REASON FOR CANCELL TEXT
    DATA : WA_REASON TYPE ST_REASON.
    DATA : IT_OUTPUT TYPE STANDARD TABLE OF ST_OUTPUT.               "OUTPUT FEILDS OF REPORT.
    DATA : WA_OUTPUT TYPE ST_OUTPUT.
    DATA : IT_OUTPUT_1 TYPE STANDARD TABLE OF ST_OUTPUT.               " TEMP OUTPUT FEILDS OF REPORT.
    DATA : WA_OUTPUT_1 TYPE ST_OUTPUT.
    DATA : IT_HRP1000 TYPE STANDARD TABLE OF ST_HRP1000.             "DATA FROM HRP1000 TABLE
    DATA : WA_HRP1000 TYPE ST_HRP1000.
    DATA : IT_HRP1001 TYPE STANDARD TABLE OF ST_HRP1001.             "DATA FROM HRP1001 TABLE
    DATA : WA_HRP1001 TYPE ST_HRP1001.
    DATA : IT_HRP1026 TYPE STANDARD TABLE OF ST_HRP1026.              "DATA FROM HRP1026 TABLE
    DATA : WA_HRP1026 TYPE ST_HRP1026.
    DATA : IT_OBJID TYPE STANDARD TABLE OF ST_OBJID.                  " TO STORE THE OBJID OF HRP1001
    DATA : WA_OBJID TYPE ST_OBJID.
    DATA: WS_FCAT    TYPE SLIS_FIELDCAT_ALV .                         " FEILDCATALOG FOR ALV REPORT
    DATA: IN_FCAT    TYPE SLIS_T_FIELDCAT_ALV.
    DATA: W_LAYOUT   TYPE SLIS_LAYOUT_ALV.
    DATA : LV_COUNT TYPE I.                                           "FEILD FOR SERIAL NUMBER
    ***************************END OF DATA DECLARATION******************************************
    ************SELECTION SCREEN DESIGN************************
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    *SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
    SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
    SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    ***********END OF SELECTION SCREEN DESIGN******************
    *****INITIALIZATION VENT TO ASIGN DEFAULT VALUES TO OTYPE
    *INITIALIZATION.
    S_OTYPE-LOW = 'D'.*
    S_OTYPE-SIGN = 'I'.*
    S_OTYPE-OPTION = 'EQ'.*
    APPEND S_OTYPE.*
    CLEAR S_OTYPE.*
    **************END OF EVENT INITIALIZATION******************
    **********VALIDATION FOR SCREEN FIELDS*********************
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
    IF S_OBJID IS NOT INITIAL.*
        SELECT OTYPE OBJID FROM HRP1000
                     INTO TABLE IT_OBJID_SH
                     WHERE OTYPE = 'D'.
    IF SY-SUBRC EQ 0.
    SEARCH HELP FOR QUALIFICATION.*
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
                 DDIC_STRUCTURE         = ' '*
            RETFIELD               =  'OBJID'
                 PVALKEY                = ' '*
           DYNPPROG               = SY-REPID
           DYNPNR                 = SY-DYNNR
           DYNPROFIELD            = 'S_OBJID'
                 STEPL                  = 0*
                 WINDOW_TITLE           =*
                 VALUE                  = ' '*
           VALUE_ORG              = 'S'
                 MULTIPLE_CHOICE        = ' '*
                 DISPLAY                = ' '*
                 CALLBACK_PROGRAM       = ' '*
                 CALLBACK_FORM          = ' '*
                 MARK_TAB               =*
               IMPORTING*
                 USER_RESET             =*
          TABLES
            VALUE_TAB              =  IT_OBJID_SH
                 FIELD_TAB              =*
                 RETURN_TAB             = RETURN_TAB*
                 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.
      ENDIF.

  • Value table as search help

    Hi Experts,
    I am new to WebDynpro ABAP.
    I want to assign a search help to one of the UI elements in WebDynpro ABAP component.
    The search help is attached as a value table in a domain LAND1.
    Now while creating an attribute i am creating it from a data element which is attached to this domain.
    Still i can not see the value help being shown.
    May be i am missing something.
    Can you please help me to find out what am i missing?
    Regards,
    Ashish Shah

    Hi  Ashish,
    For getting a search help for the drop down by key UI element, here i am mentioning the logic using the flight demo.
    1.Add attribute PLANETYPE to the context of the component controller.
    Locate the Component Controller node in the project structure that is located immediately under the component. Double click on Component Controller to open the Custom Controller editor.
    - Add attribute PLANETYPE to context node FLIGHTINFO
    Hint: Select Create Using Wizard -> Attributes form Components of Structure from context menu of node FLIGHTINFO.
    2.Navigate to the Context tab of view controller Iof your view. Choose Update Mapping from the context menu of node FLIGHTINFO to add the attribute PLANETYPE.
    3.Add Label and DropDownByKey for PLANETYPE to the layout of ur view.
    Go to tab Layout and add a label named PLANETYPE_LABEL_1 and a DropDownByKey named PLANETYPE_DROPDOWN_1 to group GROUP_1. The two new elements should be placed between the input field for the Date and the button. Bind the DropDownByKey to the context attribute PLANETYPE.
    4..Adjust component controller method FLIGHTTAB_FILL
    Navigate to the Methods tab of the component controller and double-click on the method FLIGHTTAB_FILL to open the editor.
    Adjust the method:
    - Get also the context value for PLANETYPE
    - Use PLANETYPE also in the where clause of the select statement
    METHOD flighttab_fill .
      DATA:
        cond(72)                            TYPE c,                                    
        itab_where                          LIKE TABLE OF cond,                        
        context_node                        TYPE REF TO if_wd_context_node,
        elem_flightinfo                     TYPE REF TO if_wd_context_element,
        stru_flightinfo                     TYPE if_componentcontroller=>element_flightinfo ,
        item_carrid                         LIKE stru_flightinfo-carrid,
        item_connid                         LIKE stru_flightinfo-connid,
        item_fldate                         like stru_flightinfo-fldate,
        item_planetype                      like stru_flightinfo-fldate,
        itab_flighttab                      TYPE if_componentcontroller=>elements_flighttab.
    navigate to <FLIGHTINFO>
      context_node = wd_context->get_child_node( name = `FLIGHTINFO` ).
    get element at lead selection
      elem_flightinfo = context_node->get_element(  ).
    get connid
      elem_flightinfo->get_attribute(
        EXPORTING
          name =  `CARRID`
        IMPORTING
          value = item_carrid ).
    get carrid
      elem_flightinfo->get_attribute(
        EXPORTING
          name =  `CONNID`
        IMPORTING
          value = item_connid ).
    get fldate
      elem_flightinfo->get_attribute(
        EXPORTING
          name =  `FLDATE`
        IMPORTING
          value = item_fldate ).
    get planetype
      elem_flightinfo->get_attribute(
        EXPORTING
          name =  `PLANETYPE`
        IMPORTING
          value = item_planetype ).
    create where condition
      IF NOT item_carrid EQ ''.
        CONCATENATE 'CARRID = ''' item_carrid '''' INTO cond.
        APPEND cond TO itab_where.
      ENDIF.
      IF NOT item_connid EQ '0000'.
        CONCATENATE 'CONNID = ''' item_connid '''' INTO cond.
        IF item_carrid NE ''.
          CONCATENATE 'AND' cond INTO cond separated by space.
        ENDIF.
        APPEND cond TO itab_where.
      ENDIF.
      IF NOT item_fldate is initial.
        CONCATENATE 'FLDATE = ''' item_fldate '''' INTO cond.
        IF not itab_where is initial.
          CONCATENATE 'AND' cond INTO cond separated by space.
        ENDIF.
        APPEND cond TO itab_where.
      ENDIF.
      IF NOT item_planetype eq ''.
        CONCATENATE 'PLANETYPE = ''' item_planetype '''' INTO cond.
        IF not itab_where is initial.
          CONCATENATE 'AND' cond INTO cond separated by space.
        ENDIF.
        APPEND cond TO itab_where.
      ENDIF.
    read data
      IF itab_where IS NOT INITIAL.
        SELECT * FROM sflight
          INTO CORRESPONDING FIELDS OF TABLE itab_flighttab
          WHERE (itab_where).
      ELSE.
        SELECT * FROM sflight
          INTO CORRESPONDING FIELDS OF TABLE itab_flighttab.
      ENDIF.
    navigate to <FLIGHTTAB>
      context_node = wd_context->get_child_node( name = `FLIGHTTAB` ).
    Bind table to context node <FLIGHTTAB>
      CALL METHOD context_node->bind_table
        EXPORTING
          new_items = itab_flighttab.
    ENDMETHOD.
    5.Navigate to the Methods tab of the ur view and create a new method with the name VS_PLANETYPE. Double-click on the name of the newly created method to navigate in the editor.
    Add coding for:
    -     Get nodeinfo for node FLIGHTINFO
    -     Build the value set table. Create the following entries:
    Key     Value
    747-400     747-400
    A310-300     A310-300
    A319     A319
    DC-10-10     DC-10-10
    -     Set the values to context attribute PLANETYPE of node FLIGHTINFO
    method VS_PLANETYPE .
    data:
      lr_node_flightinfo type ref to if_wd_context_node,
      lr_nodeinfo_flightinfo type ref to if_wd_context_node_info,
      lt_value_set       type wdy_key_value_table,
      ls_value_set       type wdy_key_value.
    get nodeinfo of node flightinfo
      lr_node_flightinfo = wd_context->get_child_node( name = `FLIGHTINFO` ).
      lr_nodeinfo_flightinfo = lr_node_flightinfo->get_node_info( ).
    fill values into value set table
      ls_value_set-key   = '747-400'.
      ls_value_set-value = '747-400'.
      append ls_value_set to lt_value_set.
      ls_value_set-key   = 'A310-300'.
      ls_value_set-value = 'A310-300'.
      append ls_value_set to lt_value_set.
      ls_value_set-key   = 'A319'.
      ls_value_set-value = 'A319'.
      append ls_value_set to lt_value_set.
      ls_value_set-key   = 'DC-10-10'.
      ls_value_set-value = 'DC-10-10'.
      append ls_value_set to lt_value_set.
    set values to context attribute
      lr_nodeinfo_flightinfo->set_attribute_value_set( name = 'PLANETYPE' value_set = lt_value_set ).
    endmethod.
    6.Invoke method VS_PLANETYPE in method WODOINIT in ur view.
    Hint: Use Web Dynpro Code Wizard.
    method WDDOINIT .
      DATA:
       node_flightinfo                     TYPE REF TO if_wd_context_node,
       elem_flightinfo                     TYPE REF TO if_wd_context_element,
       stru_flightinfo                     TYPE if_input_view=>element_flightinfo,
       item_carrid                         LIKE stru_flightinfo-carrid.
    navigate from <CONTEXT> to <FLIGHTINFO> via lead selection
      node_flightinfo = wd_context->get_child_node( name = `FLIGHTINFO` ).
    get element via lead selection
      elem_flightinfo = node_flightinfo->get_element(  ).
    set single attribute
      elem_flightinfo->set_attribute(
        EXPORTING
          name =  `CARRID`
          value = 'AA' ).
    Create Value Selector for PLANETYPE
      wd_this->vs_planetype( ).
    endmethod.
    Regards
    Manoj Kumar

  • How to import/export value for ekko-netwr

    Hi friends,
    amount value 'ekko-netwr'  from incude LV61AA43 should pass to include LV61AA43 for this iam using import/export paramters but there is no parameter id for netwr . How can i pass this amout to this rountine.
    Thank u ,
    prasad.

    hi,
    A simple example of ABAP memory is using the EXPORT/IMPORT statements.
    Here in this program, I get the data, export it to memory,
    clear out the internal table in my progam, then reimport the data into it and write out the data.
    You probably wounldn't do this in a normal program,
    but this is how you can pass data from program a to program b when A Submits program B.
    report zxy_0002 .
    data: it001 type table of t001 with header line.
    select * into table it001 from t001.
    export it001 = it001 to memory id 'ZXY_TEST'.
    clear it001. refresh it001.
    import it001 = it001 from memory id 'ZXY_TEST'.
    loop at it001.
    write:/ it001-bukrs, it001-butxt.
    endloop.
    SAP Memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access.
    You can use SAP memory either to pass data from one program to another within a session,
    or to pass data from one session to another.
    Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
    These parameters can be set either for a particular user
    or for a particular program using the SET PARAMETER statement.
    Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement.
    The most frequent use of SPA/GPA parameters is to fill input fields on screens
    ABAP/4 Memory
    ABAP memory is a memory area that all ABAP programs within the same internal session can access
    using the EXPORT and IMPORT statements.
    Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling,
    the data needs to be placed in ABAP memory before the call is made.
    The internal session of the called program then replaces that of the calling program.
    The program called can then read from the ABAP memory.
    If control is then returned to the program which made the initial call, the same process operates in reverse.
    SAP memory
    The SAP memory, otherwise known as the global memory,
    is available to a user during the entire duration of a terminal session.
    Its contents are retained across transaction boundaries as well as external and internal sessions.
    The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
    ABAP/4 memory
    The contents of the ABAP/4 memory are retained only during the lifetime of an external session
    (see also Organization of Modularization Units).
    You can retain or pass data across internal sessions.
    The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Set
    http://www.geocities.com/SiliconValley/Campus/6345/set_para.htm
    GET
    http://www.geocities.com/SiliconValley/Campus/6345/get_para.htm
    EXPORT
    http://www.geocities.com/SiliconValley/Campus/6345/export01.htm
    Other Imp Help
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    Thanks & Regards
    ilesh 24x7

  • Return multiple values from a search help

    Dear All,
    I have a table control on screen with fields:
    doc.no
    doc.type
    doc.ver
    doc.part
    I've coded a search help for doc. no. which returns a single value i.e. doc. no from the search help.
    But my reqmt. is that when the user selects a particular doc.no from search help, it should also return doc. type/ver/part
    and the corresponding table control field should be populated.
    I mean i require multiple values to be returned and populated in my screen.
    Thanks in anticipation

    Hi ,
    Please check this thread where i had done some coding and the OP himself has found the solution
    automatic population of search help value to another field in module pool ... if its a table control you have get the selected line by  using fm DYNP_GET_STEPL. Then update the values to the respective fields using DYNP_VALUES_UPDATE.

  • Transfer values from one search help to another

    Is it possible to transfer values from screen of one search help to another. For example if I have the vendor master search help (XK02) and I go to the elementary search help "Vendors by Material" . On this screen I enter some data in the Material number field. Now  when I do an F4 on the material field on this search help I will get the collective search help for Material number. My requirement is to have the material number from the first search help to be carried over to the second search help. Is there any way possible. I am manipulating my custom search helps through the search help exits(fetching data etc).

    Hi Deepak,
    Not very sure, but I think if you write code in search help exit, this may be possible. Use GET PARAMETER... SET .. in the exit to pass the values between search help.
    Regards,
    Atish

  • Default multiple values in custom search help

    Hi All,
    I created a custom search help for the vendor. The fields in the search help are LIFNR (Vendor) and KTOKK (Account Group).
    I would like to be able to set three default values for the account group. That is, when the user clicks on the dropdown to display the search help, I would like to have three values populated in the KTOKK field. Is this possible?
    Any help would be appreciated.
    Thanks!

    Hi,
    I am not sure abt default values, but if you are using this search help in any report than you can set hot keys in your search help and using hot keys, you can set some default filter values in you report's parameter.
    you can set variant in your report where parameter is having values like :: =,<hotkey>,<sel1>,<sel2>
    here <hotkey> : wht you have assingned in search help.
           <sel1>    : one of those default values you want to display.
           <sel2>    : one of those default values you want to display for the second field.
    hope it helps,
    Regards,
    Sagar

  • Enhancements:Search help addition to standard screen-field

    Hi Guys,
    I am trying to add search help to the standard screen field inco2 in transaction va02. for this I am trying to add inplicit enhancement point in include MV45AFZZ.
    I right click over the yellow line and create enhancement implementation in local object. the moment I choose my enhancemetn implementation and press enter, it gives me dump, Please nebody tell me where am I going worng, or Is my approach correct.....Please suggest.......
    thanks in advance

    Hi Anil,
    Can you please tell me how to approach for adding search help to standard screen field INCO2 in transaction VA02.

Maybe you are looking for

  • What would happen if remove containers in UPS connection

    We are using SP2013 on-premise. Currently our farm have setup UPS connection to entire domain. Hence, some non-users account like other system's service accounts have been sync and user profiles have been generated. I think it is not a good security

  • Read Units of Measure of a Material

    Hi, "Units of Measure" of a Material is maintained as Additional Data in MM01/02/03. I need to read all the records under "Units of Measure" of a particular material. Is there any Function Module or BAPI for that?

  • Inbound IDOCS

    Hi All, I receiving IDOCS to our HR system from another HR system. We receive 200 objects in every IDOC. My question is if any of the 200 objects went with error then what happening to other 199 objects. I found all of them in error list. But out of

  • Downloaded itunes but there is no store...

    I have downloaded the new version of itunes...I have everything in my library, but there is no itunes store. I can look at my account details, but cannot search or see anything. It is just a blank page!

  • Okay. youtube videos keep crashing no matter what i do. i made sure adobe was up to date, i cleared my cache and cookies even reset firefox.

    only some crash though, but those that crash keep crashing over and over again at the same point. when i play then they'll start playing fine but when it get to a certain point the video will stop, the audio continues for about ten seconds then it st