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

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

  • 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

  • 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

  • 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

  • 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

  • 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

  • Userexit field modification in va02

    loop at xvbap.
    if xvbap-mvgr4 eq ''.
    xvbap-mvgr4 = vbak-j_3akvgr7.
    modify xvbap.
    endif.
    endloop.
    Hi.. I need To pick the header --> additional grouping --> customer grp 7, and copy that value for each line item.
    That is in goto >item>more functions > additional data a>material grp 4 field
    But if the user changes the value in va02, line item material grp 4 it should remain same without getting overridden by the value in da header.
    The above code works fine in va01. But in va02, say u hv 2 lines in a sales order and the header field in maintained.
    Thrfore at this instance the line field is copied the value which is in da header.
    But if i change the header field now, the line item fields doesn't get copied..That is because i'm copying it whn the lineitem field is blank only.
    But if there is a chnage to the header value also it has to be changed. How do i check this condition?
    Can anyone suggest anything? If this cannnnnot be done even can anyone pls let me knw..
    Thanks..
    Message was edited by:
            Keshini  Weerasuriya

    You need to mark this as a question and if the answer is helpful to you then you can mark them by assigning points. Here people are giving their time to resolve the queries so you can thank them by marking helpful answers.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Exit of VF01 for field modification

    Dear All,
    I need to enable field for "Billed Quantity" in line item while doing VF01 so that user can change Quantity. what exit/enhancement will be used?. please help.
    Radsamm

    Hi Sasidhar,
    First of all I wrote my code in the user exit you told me but when I go to VF01 and try to cancel a document, this user exit doesn't work. I'm using the same code, i put a break point and it doesn't stop there...
    data l_kunnr like vbpa-kunnr.
    clear l_kunnr.
    select single kunnr
      from vbpa
        into l_kunnr
          where VBELN = vbak-vbeln
            and POSNR = '000000'
            and PARVW = 'RG'.
      SELECT SINGLE KLIMK
        INTO VBRK-ZKLIMK
          FROM KNKK
            WHERE KUNNR = l_kunnr.
      vbrk-zcarga = 'X'.
    Thanks,
    Maria

  • PCUI BSP field modification

    Hi Every one,
    I have one requirement that i need to modify fields on the BSP screen. which is given by the sap standard portal.i understand that the i need to maintain crmc_bllueprint_c tables to modify that .
    Now my requirement is to hide some field on that screen .
    i need the transaction where my work starts ?
    how to contuniue to progress into my work ?
    please help as much as you can ?
    i will appresiate small help also which is so help full.
    please respond as early as possible......

    Yes that option is already considered but that is not working.
    i did the testing in two levels
    1.select that option in crmc_blueprint -
    it is not working
    2.copy all the fields into crmc_blueprint_c and selects that option not display in detail  -
    it is not working
    please give some suggestion............
    i am eagerly waiting for the solution
    please send some help full information
    hi all
    please suggest the way to hide the fields i will apprisiate every answer which are  help full
    Edited by: sunil kumar on Jan 16, 2008 4:36 PM

  • Field modification (group/ungroup function)?

    Why, when I modify the dimensions of a field, are all the other fields on the page modified as well? I can't see an "ungroup" function or anything like that.

    Are you perhaps referring to the width of the form field labels?  Form width is always independent.  The label widths of the left column of fields (you can have more than one column of fields) are linked if the label position is left aligned or right aligned.  A work around is to set the Label Position to Above in the Field Properties.

Maybe you are looking for

  • Unable to initialize video deck

    I'm using Final Cut Pro 7.0.2 and I get this message when trying to Capture Footage from my camera: "Unable to initialize video deck". My settings are on Firewire NTSC which is what I always use. I used it a week ago and it worked then and many times

  • [Error] Auto make off Adobe Photoshop CS6

    Hello, I have very irritating problem - When I doing something in Photoshop and I use Open function and then click RMB on any file, my Photoshop automatically make off.  I don't know why, but earlier I do not have this problem. Can you help me ? Best

  • Major issues with Lightroom 4 locking up my system

    Two questions: Is it possible to re-install Lightroom 4 from free trial, without having to re-install every upgrade since Lighroom was released (that's the original version I bought.) How do I re-install Lightroom 4 and connect the new program to all

  • HTTP Adapter Interconnect 10.1.2 problem

    Hello, Can someone explain me how to use Interconnect for sending xml-messages from a database to a webservice, and processing the answer? We tried the following: Install a database adapter Install a (sync) http adapter The common view is a procedure

  • How to change a condition price in line service of Purchase Order

    People, we have to do the following development in Purchase Order (ME21N, ME22N, ME23N) : We have a developed screen in Purchase Order header, where the user provides some information. As a result, this information must be transfered to line service,