WebDynpro (Fields modification)

Hello,
When select a leave request notification item from universal worklist, it opens a new page where you can approve or refuse an absence. I need to modify some fields of  this screen. I tried with Content Admin and CTRL+Right Click on the field and I can see that it's ok on the preview. But it doesn't work from portal. I have modify: Leave Request: Approval iView - 'webdynpro:java/sap.com/ess~lea/com.sap.xss.hr.lea.appl.LeaveRequestApprover/base' but it only works on Content Admin/preview. If I try to modify it from UWL preview(Content Admin) there is no option to modify this screen.. Is not this iView?
Please, I need help..how can I do it?
Thanks

Hello Sudhir,
I have implemented the OUTPUT_Conversion method of the BAPI and the values are getting displayed from backend to Portal.
But when I am changing any values in EP for these added fields, the values are not getting saved in backend. I suppose there is some problem with the INPUT_Conversion method.
I have pasted below the code of the OUTPUT_CONVERSION method. Can you please let me know what will be the corresponding code for the INPUT_CONVERSION method.
OUTPUTCONVERSION method._
method IF_EX_HRPAD00INFTYUI~OUTPUT_CONVERSION.
  FIELD-SYMBOLS <p0006>      TYPE p0006.
  FIELD-SYMBOLS <r0006>      TYPE hcmt_bsp_pa_nz_r0006.
  CASE screen_structure_name.
    WHEN 'HCMT_BSP_PA_PREF'.
      MOVE-CORRESPONDING pref    TO screen_structure.
    WHEN 'HCMT_BSP_PA_NZ_R0006'.
      ASSIGN pnnnn               TO <p0006>.
      ASSIGN screen_structure    TO <r0006>.
      MOVE-CORRESPONDING <p0006> TO <r0006>.
        Move <p0006>-INDRL to <r0006>-INDRL.
        Move <p0006>-COM01 to <r0006>-COM01.
        Move <p0006>-NUM01 to <r0006>-TELN1.
        Move <p0006>-COM02 to <r0006>-COM02.
        Move <p0006>-NUM02 to <r0006>-TELN2.
        Move <p0006>-COM03 to <r0006>-COM03.
        Move <p0006>-NUM03 to <r0006>-TELN3.
    WHEN OTHERS.
      MOVE-CORRESPONDING pnnnn   TO screen_structure.
      IF pnnnn2 IS SUPPLIED.
        MOVE-CORRESPONDING pnnnn2 TO screen_structure.
      ENDIF.
  ENDCASE.
  CALL METHOD cl_hrpa_field_attribs_services=>convert_and_merge_field_attrbs
    EXPORTING
      field_metadatas  = field_metadatas
    CHANGING
      field_attributes = field_attributes.
endmethod.
Appreciate your inputs on this.
Regards
Deb

Similar Messages

  • Function Module for REBDBU0012-BU Field Modification Criteria - Sample reqd

    We are using three distinct type of Business Entities to look after three types of business of client. For this we have defined three number ranges for each such BE. Now, we wish to use Transaction code "REBDBU0012-BU Field Modification Criteria " and wish to define the field status of based in BE number range criteria.
    I have discussed this in detail with my developer but he is unable to find any help/functional module. Is there any sample object available with in SAP library or if any member from SAP community could help us in it.
    Regards
    Rohit Goel

    Hi Rohit,
    function module that gets field status für BU in standard is REBU_REBU_EVENT_FMOD2.
    There is no such function module that fulfills your requirement available yet.
    For your requirement you have to develop your own function module with the same parameters and in the function module you have to insert the logic to determine the field status as you require it.
    You may use REBU_GET_BUSOBJ to get the data of the object and so you should have all necessary information. As I already mentioned you can use RERO_RERO_EVENT_FMOD2_USAGE as an example.
    Hope that helps.
    Regards, Franz

  • Field Modification Watch

    Hi
    I have registered SetFieldModificationWatch+* event for a class
    field. When I have received a callback for the same event on field
    modification, I want to modify the value to a new value. But that leads to
    recursion as per the Spec. So in order to avoid the recursion,
    I am disabling the watch and set the field value and resetting the watch
    as below ( just skeleton)
    on_field_modify_call_back
    ClearFieldModificationWatch (field);
    setValue(field);
    SetFieldModificationWatch(field);
    }But it doesn't seem to work.
    Any one has any thoughts in avoiding the recursion ?
    Appreciate any pointers in advance.
    thx,
    Srinivas Chamarthi

    Hope you are not kidding (read my post again). I was doing exactly the same. But I am not able to
    update to new value. so just wondering where I went wrong. I believe the clear will reset the watch
    context and local references. Appreciate help from folks who are
    part of JVMTI implementation.
    Edited by: srinivas.chamarthi on Feb 29, 2008 5:37 AM

  • Selection Screen field modification

    Hi Experts,
    I wanted to disable certain fields based on some selection.
    I wanted to know what is the meaning of below statement.
    SCREEN-OUTPUT = 1.
    SCREEN-INPUT = 0.
    SCREEN-INVISIBLE = 1.
    Also what is the meaning of SCREEN-ACTIVE = 0.

    Hi,
    Check this program
    *& Report  YSS_TRIAL2
    REPORT  yss_trial2.
    TABLES:mara,kna1.
    PARAMETERS: p_b1 RADIOBUTTON GROUP gr1 USER-COMMAND fc DEFAULT 'X',
                p_b2 RADIOBUTTON GROUP gr1.
    SELECT-OPTIONS:s_one FOR mara-matnr MODIF ID md1,
                   s_two FOR kna1-kunnr MODIF ID md2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_b1 EQ 'X'.
          IF screen-group1 = 'MD1'.
           screen-active = '1'.
            screen-input = '1'.
            screen-invisible = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'MD2'.
           screen-active = '1'.
            screen-input = '0'.
            screen-invisible = '1'.
            MODIFY SCREEN.
          ENDIF.
        ELSEIF p_b2 EQ 'X'.
          IF screen-group1 = 'MD2'.
           screen-active = '1'.
            screen-input = '1'.
            screen-invisible = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'MD1'.
           screen-active = '1'.
            screen-input = '0'.
            screen-invisible = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Hope this will helpReward points if helpful.
    Regards
    Shibin

  • ABAP WebDynpro Fields Set Invisible Status

    Hi All,
            I am new to this ABAP WebDynpro programming, i have requirement, based on IF conditions i need to set my fields In-Visible and Visible mode,
    ex:
    IF XXXXXX
    THEN FIELD VISIBLE
    ELSE XXXXXX
    FIELD IN-VISIBLE
    ENDIF.
    Thanks in Advance.
    Thanks and Regards,
    Abhi.

    Hi Jagadish,
                     Thanks for your prompt response, based on your instructions i did like below
    I created F_Visible in Context with type WDY_BOOLEAN and i given default value to X, then i bind this value to my input fields, after the using WebDynpro Code wizrd i called F_Visible attribute, the below one is my code, please correct me if any thing wrong.
    IF(Condition)
       DATA lo_el_context TYPE REF TO if_wd_context_element.
       DATA ls_context TYPE wd_this->Element_context.
       DATA lv_f_visible TYPE wd_this->Element_context-f_visible.
    get element via lead selection
       lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
       IF lo_el_context IS INITIAL.
       ENDIF.
    @TODO fill attribute
    lv_f_visible = 1.
    set single attribute
       lo_el_context->set_attribute(
         name =  `F_VISIBLE`
         value = lv_f_visible ).
    xxxxxxxx
    ELSE
    lv_f_visible = 'X'.
        set single attribute
        lo_el_context->set_attribute(
          name =  `F_VISIBLE`
          value = lv_f_visible ).
    when i was testing my applicaiton i am getting   Access via 'NULL' object reference not possible.
    could you please help on this setting if i did any thing wrong.
    Thanks in Advance.
    Thanks and Regards,
    Abhi Ram.
    Edited by: Abhiram on Oct 30, 2009 3:18 PM

  • Webdynpro Field history

    Hi Friends,
    How to maintain the field history in the input fields, for example, I am entering Matnr: 12345 and executing my application, next time when I  close this applicatin and come back to the Matnr place the cursor on Matnr + press on Space Bar then I have to get the list of previous entered values i.e 12345.
    How to do this in webdynpro....
    Regards,
    kumar

    Hi Thomas
    I can understand the security threat involved in enabling the field history.
    However, I feel that the framework should provide this functionality through config or application parameters.( Application specific )
    so that  some internal applications can use this functionality, i am adding this to the proposed UI elements enhancements thread.
    Thanks
    Abhi

  • Webdynpro Field catalog

    Hi Friends ,
    I am new to webdynpro.
    My issue is in SRM , ALV grid is displayed using webdynpro.
    if u see in above screen shot, Dato, KL, brugernavn are the fieldtext(description of the field name) in the ALV grid, as we give SELTEXT in normal ALV Fieldcatalog

    Hi,
    refer below code for changing the column name
    DATA L_HEADER TYPE REF TO CL_SALV_WD_COLUMN_HEADER.
    DATA: LO_COLUMN1 TYPE REF TO CL_SALV_WD_COLUMN.
    LO_COLUMN1 = LO_VALUE->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'TRAVELID' ).
    L_HEADER = LO_COLUMN1->GET_HEADER( ).
    L_HEADER->SET_TEXT( 'Travel Adv ID' ).
    DATA: LO_COLUMN2 TYPE REF TO CL_SALV_WD_COLUMN.
    LO_COLUMN2 = LO_VALUE->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'PERNR' ).
    L_HEADER = LO_COLUMN2->GET_HEADER( ).
    L_HEADER->SET_TEXT( 'Employee Name' ).
    In get_column you have to pass the attribute name

  • Dynamic field modification in Work Area.

    Hi,
    I want to insert 1 record in a transparent table. (But for time being, let us assume the table is MARA)
    The columns and table name to which data is to be inserted are stored in another transparent table say (z1354_inv_rec_dt).
    The data to be inserted is specified in a text file.
    The value for MATNR, let us assume is hard coded as 1252.
    The value for fields ERSDA, ERNAM, LAEDA and AENAM will be specified in input text file.
    Also the table z1354_inv_rec_dt, will have rows with values ERSDA, ERNAM, LAEDA and AENAM.
    How do I do this, the code specified in form comparedata is not correct one, but just a starting point for code.
    <b>So how do I specify the column of work area at run time and assign value to it.</b>
    Then I have to append value from work area to internal table.
    And from internal table, I will insert to database.
    REPORT ZDYN_INS_MARA.
    TYPE-POOLS : abap.
    DATA:
      lit_z1354_inv_rec_dt  TYPE TABLE OF z1354_inv_rec_dt,
    * table z1354_inv_rec_dt contains 2 columns column_name and table_name
    * values for column_name are ERSDA, ERNAM, LAEDA and AENAM
    * value for table_name is MARA.
      lwa_invoice LIKE  z1354_inv_rec_dt,
      lit_mara TYPE TABLE OF mara,
      lwa_mara LIKE mara.
    * To get column names
    DATA :
      it_details TYPE abap_compdescr_tab,
      wa_details TYPE abap_compdescr,
      ref_descr TYPE REF TO cl_abap_structdescr.
    FIELD-SYMBOLS : <fs_mara> TYPE mara.
    FIELD-SYMBOLS : <fs_wa_mara> LIKE LINE OF lit_mara.
    FIELD-SYMBOLS : <dyn_field>.
    DATA: int_tabname(30).
    int_tabname = 'MARA'.
    *Populate internal table with columns to be added to Database
    PERFORM populaterecdt.
    ref_descr ?= cl_abap_typedescr=>describe_by_name( int_tabname ).
    *Get the column names from the Database tables
    it_details[] = ref_descr->components[].
    PERFORM comparedata.
    *&      Form  PopulateRecDt
    FORM populaterecdt .
      SELECT column_name table_name FROM z1354_inv_rec_dt
      INTO CORRESPONDING FIELDS OF TABLE lit_z1354_inv_rec_dt
      WHERE table_name = 'MARA' .
    ENDFORM.                    " PopulateRecDt
    *&      Form  CompareData
    FORM comparedata .
    *loop through the DB table which holds the column names to be added
    LOOP AT lit_z1354_inv_rec_dt INTO lwa_invoice.
    *Loop throught table which holds the column names
      ASSIGN COMPONENT 'MATNR' OF STRUCTURE <fs_wa_mara> TO <dyn_field>.
      <dyn_field> = '1252'   .
      LOOP AT it_details INTO wa_details.
        IF wa_details-name = lwa_invoice-column_name.
    * Assign value to column of work area from text file.
          ASSIGN component lwa_invoice-column_name of structure                   <fs_wa_mara> to <dyn_field>.
    *Get value for <dyn_field> from text file
            <dyn_field> = 'XYZ212'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    *append work area t to lit_mara.
    *Append work area to internal table.
    *insert the internal table to DB
    ENDFORM.                    " CompareData
    Here in this loop, I want to assign to the work area for Mara based on the column values, How do I do it.
    Regards,
    Vikas

    Hi,
    This problem has been resolved.
    DATA:
        lit_MARA TYPE TABLE OF MARA,
        lit2_MARA TYPE TABLE OF MARA,
        lwa_MARA LIKE MARA,
        lit_inv TYPE TABLE OF z1354_inv_rec_dt,
        wa_inv  LIKE z1354_inv_rec_dt,
        sctemp(100) TYPE c,
        ifs type i,
         p_gs_s_rec_line TYPE string.
      FIELD-SYMBOLS:
        <fs_MARA> TYPE table,
        <ld_column>   TYPE ANY,
        <fs_wa_MARA> LIKE LINE OF lit_MARA.
    *Populate Invoice table
      SELECT * FROM  z1354_inv_rec_dt INTO CORRESPONDING FIELDS OF TABLE
      lit_inv WHERE recordtype = 'S' AND table_name = 'MARA' AND
      column_seq > 0.
      p_gs_rec_line = '1234567890000001'.
      lwa_MARA-laufi = '123e'.
      FREE lit_MARA.
      APPEND  lwa_MARA TO lit_MARA.
      ASSIGN lit_MARA[] TO <fs_MARA>.
      UNASSIGN: <fs_wa_MARA>.
    * free lit_MARA[] .
    * LOOP AT <fs> ASSIGNING <fs1>.
    LOOP AT lit_MARA ASSIGNING <fs_wa_MARA>.
      ifs = sy-tabix.
      write: / ifs.
        LOOP AT lit_inv INTO wa_inv.
          WRITE
          p_gs_s_rec_line+wa_inv-start_pos_extrac(wa_inv-chars_to_extract)
          TO sctemp.
          UNASSIGN: <ld_column>.
          ASSIGN COMPONENT wa_inv-column_name OF STRUCTURE <fs_wa_MARA>
          TO <ld_column>.
          <ld_column> =  sctemp.
          IF ( <ld_column> IS ASSIGNED ).
            WRITE: / '.' .
          ENDIF.
          CLEAR wa_inv.
        ENDLOOP.
        MOVE  <fs_wa_MARA> TO lwa_MARA.
        APPEND lwa_MARA TO lit2_MARA.
       CLEAR <fs_wa_MARA>.
      ENDLOOP.
    loop at lit2_MARA into lwa_MARA.
      write: / lwa_MARA-filename.
      clear lwa_MARA.
    endloop.
    insert MARA from table lit2_MARA.
    if sy-subrc <> 0.
      write: / ' Insert  :-( '.
    endif.

  • Field Modification while down payment for vendor

    Hello Gurus,
    While doing down payment in F-48, in the Post Vendor Down Payment Display Overview screen when we double click the line item, it will go to item screen here i have to disable the amount field,
    I have tried some search but didn't find any user-exit or screen enhancement for that.
    Kindly Suggest.
    Edited by: pankajdewangan on Jan 6, 2012 1:35 PM

    Hi,
    For Transaction Variant no need to create new T code Just create one transaction Variant with screen variant and activate it.
    It works fine without Z T code.
    If you have further query i will send document for same.
    Thanks & Regards
    Saravanan

  • Disable input help for a webdynpro field in ESS

    I need to disable the drop down capability of a field in ESS (field is "Bank Key" available in the ESS page "Bank Information"). So I need the field to stay visible and ready for input... I just want the input help to not show up (the entries in the input help are not applicable to the user and they confuse them).  how can I do that?
    Tiberiu
    Edited by: Tiberiu Sasu on Apr 27, 2010 11:25 PM

    Just throwing ideas around...
    you could create a custom field which is of the same length as bank key - but no value helps etc assigned to it. Add this into the CI_append structure of the bank details structure used by ESS.
    Then in the inbound and outbound mappings - UI conversion class BAdIs move the bank key to and from this plain text field and into the "real" bank key field.
    You could then "decorate" the iView with the additional customer field and hide the standard bank key field.
    Sounds like a lot of bother! But depends on how much you dislike modifying standard WD Java apps (personally I'd put that in the definitely worthwhile basket - maintenance after support packs on WD Java is not fun!)
    Cheers,
    Chris

  • Customer fields modification.

    Hi,
    They asked me to change the General Data NAME4 field for the customers to be always shown, not as required only as optional.
    Right now to view that field you have to click on the + button to show all those fields, I want to see the field without pressing that button. If I put the field as required I would see the field, but Client doesn't want to be required.
    Any help?
    Thanks

    hi Anthony,
    ECC 6.0 Exits for VA01
    go through the following link
    i think this will help u
    Regards,
    Gullapalli Sindhu.

  • VA01 Transaction variant Field Modification

    Hi All,
    I need to deactivate ( make input = 0 ) certain fields in VA01 txn which has a transaction / screen variant. Everything thing works fine but the problem is, the other fields which was deactivated (make input = 0 ) using transaction variant appears in the screen ? Can you people tell how to solve this issue ? The user wants the screen as per the transaction variant. I am using the exit "FORM FORM USEREXIT_FIELD_MODIFICATION ?
    Thanks.

    The scenario is such that when the sales order is created against the invoice, some fields in VA02 still can be modified. but the user dont want that to be happened beyond the certain date. But it could be mofied with in the certain date. Now the problem is when i modify the screen as per the requirement, the fields which are hided using transaction variant appears in the screen.  when i comment my code...
    the transaction variant works properly ( i.e the fields got hided ) my code would be like.
    Date logic....
    IF SCREEN-NAme = VBAK-ZTERM.
    input = 0.
    modify screen.
    endif.

  • Screen Field  Modification of VA01

    Hi,
    I am giving order type in VA01 Tcode and then Clicking on 'Create with Reference' .Then a Pop Up is getting generated. In this i am giving Contract already created (using VA41 Tcode) and then clicking on 'Item Selection' button .Now it's going to another screen where the User will enter quantity in the 'Open Quantity' field and then clicks on 'Copy' button on the application tool bar .Then another Screen follows where 'Order Quantity' field will be in Enable Mode. I have to make this into Disable mode.
    i used User Exit  mv45afzz. and kept the following code.
    IF SCREEN-NAME  = 'RV45A-KWMENG'.
    IF SCREEN-GROUP2  = 'LOO'.
    IF SCREEN-GROUP3  = '004'.
    SCREEN-INPUT  =   '0'.
    SCREEN-OUTPUT  = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDIF.
    But  i should restrict this to only certain order type.
    Please suggest how can i do this .
    Thanks
    K Srinivas

    resolved issue myself

  • Field modification in ME21N

    Hi,
    I would like to concatenate material description and material size and to display the result in the field short text after material number in transaction me21n. Which UE should I use?

    [Examples >>>|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=badi+me_process_po_cust&adv=true&sdn_author_name=&sdn_category=&sdn_forum=&sdn_updated_on_comparator=ge&sdn_updated_on=&sortby=cm_rnd_rankvalue&start=1]

  • POWL Confirmation - Status field modification in Advance Search Query

    Hi All,
    I am on Confirmations POWL search query screen (Employee Self Services-Overview-Confirmations-All).
    How can I add a new value "Error in Process" in Status field.
    In Result screen, I can see some Confirmations which are in Error in Process state.
    Thanks and Regards,
    Pankaj

    Hi Pankaj
    Please check the below note.
    i think this would be helpful to your question.
    1613664
    Thanks
    Abhishekh Narsingpuria
    Message was edited by: Zoltan Keller
    please do not ask for points

Maybe you are looking for