Skip to Content

FITE_VC_RECEIPTS Dropdown List for Custom Column

Dear All,

I Have requirement to add dependent name in Medical Expenses.

I Enhanced this WDI -->  FITE_VC_RECEIPTS( Receipts for Expense Report) in View called RECEIPTS_VIEW.I added New Column and also i added this field in standard structure,  i am able to see my field in Portal. Now the problem is i want that field as drop down, so i made it as a dropdown.

I want to display the values in this drop down.where can i write my code in this standard application.

I checked enhancement but WDDOINIT no enhancement spot there. i try to find the BADI TRIP_WEB_CHECK -> USER_CHECK_LINE_OF_RECEIPTS i put break point it is not triggering i guess this will trigger after enter the values in Portal.

Please help me.

Thanks in Advance.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Jan 18, 2013 at 09:25 AM

    Dear KKP,

    I think you requirement to maintain one new field in UI Table, So please follow the steps for that

    1. you need to maintain an Attribute in the RECEIPTS node for the new field
    2. assign/Map/Bind the attibute to the new UI table collumn as DROPDOWNBYKEY
    3. Write the logic to poulate the value_help to the RECEIPTS node-> Attribute

    Based on your logic you are populating the value to the wrong node. please correct accordingly,

    then it will work i think,

    let me know if you require more information.



    Add comment
    10|10000 characters needed characters exceeded

  • Jan 17, 2013 at 09:49 AM

    I checked enhancement but WDDOINIT no enhancement spot there.

    You don't need explicit enhancement spots when enhancing WebDynpro ABAP. You can create an explicit post/pre/overwrite exit instead and implement your code there to initially fill your value help.

    Since you said you already did an enhancement for the component for means of altering the view, I wager you simply weren't aware how to approach when enhanceing methods 😊 example:

    Does this help or did I understand incorrectly?

    Cheers, Lukas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 17, 2013 at 10:08 AM

    Hi KKP,

    It sounds like you should be able to achieve this using enhancement. In WDA you get pre- post- and overwrite-exits to do your enhancements - you don't get enhancements spots in the standard method. Is that where you went wrong?

    The badi you mention works fine for us and we use exactly that method in our implementation of the BADI but for extra check of receipts.

    You might also be able to use BADI TRIP_WEB_CUSTOMIZING. I used it for manipulating the drop down list of expense types visible in portal. But as your field is a new one I'm not sure.

    Br Jan

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2013 at 02:40 AM

    Dear Jan/Jetendra/Lukas,

    I did as you mentioned, i wrote code in Pre-exit but now i have a problem to find the context node. i wrote code like this

    "Reference variables
             lo_nd_emp_det      type ref to if_wd_context_node,
             lo_nd_emp_det_info type ref to if_wd_context_node_info,
             lo_el_emp_det      type ref to if_wd_context_element.

             begin of ty_p0021,
             FAMSA TYPE FAMSA,
             FANAM TYPE PAD_VORNA,
             FAVOR TYPE PAD_NACHN,
             end of ty_p0021,
             ty_value_set type wdr_context_attr_value.
           ls_p0002       type ty_p0021,
           ls_value_set   type ty_value_set.

             lt_p00021     type standard table of ty_p0021,
             lt_value_set type standard table of ty_value_set.

    "Navigate from  to  via lead selection
       lo_nd_emp_det = wd_context->get_child_node( name = wd_this->wdctx_dpname ).

    "Get node info
       lo_nd_emp_det_info = lo_nd_dpname->get_node_info( ).
    "Select the all employee details
        select FAMSA
          from pa0021
          into table lt_p00021 WHERE UNAME = sy-uname.

    "Put Employee lines into value set
         loop at lt_p00021 into ls_p00021.
           ls_value_set-value = ls_p00021-FAMSA.
           concatenate ls_p00021-FANAM ls_p00021-FAVOR into ls_value_set-text separated by space.
           append ls_value_set to lt_value_set.
           clear  ls_value_set.

    " Assign value set
         call method lo_nd_emp_det_info->set_attribute_value_set
             name      = 'FANAM'
             value_set = lt_value_set.

    The error is

    Field "WDCTX_DPNAME" is unknown. It is neither in one of the specified  

    Please correct me if i am wrong.

    my node is like this,

    How to pass the values to FANAM, please help me thanks.



    Add comment
    10|10000 characters needed characters exceeded

  • Jan 24, 2013 at 03:19 AM

    Thank you very much all giving big support.

    Thread Closed.



    Add comment
    10|10000 characters needed characters exceeded