cancel
Showing results for 
Search instead for 
Did you mean: 

Value hep problem in web dynpro application

Former Member
0 Kudos

Hi All,

I have a requirement where I need to add a field for alternate payee to the web dynpro application and the field name is BSEG-EMPFB. I have written the following code to get the values of it based on the vendor number:

SELECT SINGLE * FROM  lfb1 INTO f4lfb1_z
                  WHERE lifnr = lv_lifnr
                  AND   bukrs = '001'."bseg-bukrs'.


  CALL FUNCTION 'FI_VENDOR_ALTERN_PAYERS_READ'
    EXPORTING
      i_lifnr            = lv_lifnr
      i_filkd            = filkd
      i_bukrs            = '001'
      i_lfb1_head_office = f4lfb1_z
    TABLES
      t_zemtab           = t_zemtab.

  LOOP AT t_zemtab INTO w_zemtab.
    ls_value_set-text = w_zemtab-empfb.
    ls_value_set-value = w_zemtab-empfb.
append ls_value_set to lt_value_set.

 DATA lo_nd_alt_payee_info TYPE REF TO if_wd_context_node_info.
 DATA lo_nd_alt_payee TYPE REF TO if_wd_context_node.

lo_nd_alt_payee = wd_context->get_child_node( name = wd_this->wdctx_alt_payee ).
lo_nd_alt_payee_info = lo_nd_alt_payee->get_node_info( ).

         lo_nd_alt_payee_info->set_attribute_value_set(
            name =  `ALTERNATE_PAYEE`
            value_set = lt_value_set )

Now the problem is user wants the details of the alternate payee as F4 help and when I debugged the standard FV60 functionality this how the F4 help is being build therE:

REFRESH fldtab.
  CLEAR fldtab.
  fldtab-tabname    = 'IZEMTAB'.
  fldtab-fieldname  = 'EMPFB'.
  fldtab-selectflag = 'X'.
  APPEND fldtab.
  CLEAR fldtab.
  fldtab-tabname    = 'IZEMTAB'.
  fldtab-fieldname  = 'NAME1'.
  APPEND fldtab.
  CLEAR fldtab.
  fldtab-tabname    = 'IZEMTAB'.
  fldtab-fieldname  = 'ORT01'.
  APPEND fldtab.
  CLEAR fldtab.
  fldtab-tabname    = 'IZEMTAB'.
  fldtab-fieldname  = 'STRAS'.
  APPEND fldtab.

*------- Fill Values for Function Module Call --------------------------
  REFRESH valtab.
  LOOP AT zemtab.
    valtab-feld = zemtab-empfb.
    APPEND valtab.
    valtab-feld = zemtab-name1.
    APPEND valtab.
    valtab-feld = zemtab-ort01.
    APPEND valtab.
    IF zemtab-stras NE space.
      valtab-feld = zemtab-stras.
    ELSEIF zemtab-pfach NE space.
      CONCATENATE 'Postfach:'(019) zemtab-pfach INTO valtab-feld.
    ELSE.
      valtab-feld = space.
    ENDIF.
    APPEND valtab.
  ENDLOOP.

*------- F4 Dialog -----------------------------------------------------
  CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
    EXPORTING
      display      = space
      fieldname    = 'EMPFB'
      tabname      = 'INVFO'
    IMPORTING
      select_value = empfb
    TABLES
      fields       = fldtab
      valuetab     = valtab.
  IF NOT empfb IS INITIAL.
    invfo-empfb = empfb.
  ENDIF.

can you please tell me how can I accomdate this in the web dynpro application?

Thnaks,

Edited by: rajatg on Jul 13, 2011 6:41 PM

Edited by: rajatg on Jul 13, 2011 6:42 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI

You are not getting a search help as it may not be assigned to the field. Go and create 1. Or if u can't, create a structure of same type and assign a search help to this structure.

Cheers

Gaurav

saravanan_narayanan
Active Contributor
0 Kudos

you need to use custom OVS for your requirement. have a look at the following help document for WDR_OVS

[http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/content.htm]

Hope this helps.

BR, Saravanan

Former Member
0 Kudos

Hi Raja,

Search help is availble at dictinary level you get F4 help automatically.

Otherwise create OVS help for alternate payee. use WDR_OVS.

check this..

http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP

/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap

Cheers,

Kris.