Locking fields for editing once BP role is changed

Hi,
we are on CRM 5.2, we have a requirement that we wish to lock down few fields for further editing on account's screen once the BP role is changed say from a prospect to a customer.
we dont want few sales users to edit these fields once the bp role is changed.
any help in this regard is appreciated.
thanks
RH

Hello RH,
Lets take for example view crm_ic\bupadetailB2B
check in HTML file yiu will find an E-MAIL inputfield.
there is an attribute disabled = "<%= DefaultAddress->GET_I_EMAIL( )%>
that means that in context node DefaultAddress  (class CL_CRM_IC_BUPADETAILB2B_CN00 ) there is a method GET_I_EMAIL( ).
got to this method and you will see that this method has a rv_disabled parameter.
if its TRUE means that the field will be disabled,
if its FALSE means that the field will be enable.
So All you need to do it's make your checks in the method and decide wich value to assign to the rv_disabled parameter.
Good Luck
Eli Steklov

Similar Messages

  • Disable GL Account Field for editing in the Shopping Cart SRM 7.0

    Hi,
      We would like to disable the GL Account field for editing only on the Shopping Cart Approval Screen. I tried to implement this through configuration of Metadata Dynamic Class in SPRO->SRM Application Server ->Cross Application Basic Settings->Extension & Field Control ->Configure Control for Fields of substructure. But the class is not getting triggered.
      Any help would be appreciated. We are on SRM 7.0
    Thanks
    Raghav

    Hi Rohit,
    Try to activate the view and component and then see. If this does not works, create an enhancement for the view and write the below code in method WDDOMODIFYVIEW
    DATA btn_confirm TYPE REF TO cl_wd_button.
      btn_confirm ?= view->get_element( 'AUTO_CONFIRMATION' ).
      if btn_confirm is BOUND.
        btn_confirm->SET_TEXT( value = 'Confirmation' ). 
      endif.
    This code will set the button text as 'Confirmation' .
    Regards,
    Anubhav

  • Lock table for edit.

    Hi ,
    i have a program that unite some table to one big table,
    and i look for lock those tables while the program is running.
    lock table just for editing,the users can watch.
    there is a way to do this???

    Hi,
    i did this like that:
    FORM locktable USING    P_ITAB_TABNAME.
      CALL FUNCTION 'ENQUEUE_E_TABLE'
       EXPORTING
      MODE_RSTABLE         = 'E'
         TABNAME               = P_ITAB_TABNAME
      VARKEY               =
      X_TABNAME            = ' '
      X_VARKEY             = ' '
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
    EXCEPTIONS
      FOREIGN_LOCK         = 1
      SYSTEM_FAILURE       = 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.
    ENDFORM.                    " locktable
    and when i'm runnning the program it crash and give me  this msg:
    CALL_FUNCTION_CONFLICT_TYPE.
    what did i do wrong???

  • Enabling output fields for editing

    i have used the FORMAT INPUT ON along with the write statement to make the output field which is a quantity field to be editable while running the report.
    But once i edit it and execute it gives a '#' symbol immediately after the qty filed . Now next to this field is a sy-vline printed with no-gap. It gives the # symbol in the place of the sy-vline . Please do reply its very urgent.
    thank you.

    hi,
    look to that test program:
    DATA qty TYPE bseg-menge.
    DATA hqty(20).
    WRITE: qty  INPUT ON.
    AT PF7.
      DO.
        READ LINE sy-index FIELD VALUE
                            qty INTO hqty.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
      ENDDO.
      MESSAGE i001(00) WITH hqty.
    Andreas

  • Is there any way to open an instant movie for editing once complete?

    I need to correct a typo on the credits and I cannot find any instructions on how to open a completed file. Do I have to start over?

    highaspiratitons
    Glad the changing the Instant Movie Closing Credits text and leaving the Instant Movie intact worked. Great news.
    However, I am fighting a losing battle trying the same approach for altering the duration of that Closing Title under the same circumstances. No breaking apart of the Instant Movie.... I can change this Closing Credits duration in Project Assets or the duration of Closing Credits dragged from Project Assets to the Timeline. But, when I break apart the Instant Movie, unlike the text changes that we did, the change in duration is not reflected in the Closing Credits file within Instant Movie. Still thinking about this one.
    Now for what happened with regard to effects in your Instant Movie. I think that I will need more details on that to tackle it.
    1. When are you adding these effects? I am assuming that you are doing this before you start the Instant Movie feature. So, after you start Instant Movie and you get the message about remove user applied effects, are you selecting Yes or No?
    2. If you say No, your effects for a given component of the Instant Movie will remain, included with the effects that come with the Instant Movie. I am wondering if the following applies to your situation. Say you apply an effect to one photo at the beginning of the Timeline. No place else. After the Instant Movie is generated, you can see that same photo with effect repeated periodically in the course of the Instant Movie. It does not appear only once. Could you be seeing the repeats of your photo with effects repeated more than once?
    I will think about this some more.
    ATR

  • Adobe Form - Locked field

    Hi All
    Could someone please tell me what are the function 'Lock Text', 'Lock Static Object' and 'Lock Field' under 'Edit' on menu selction bar - used for - (I'm new with Adobe Form) - Thanks

    Hi Liem,
    You can find answers to such questions easily in adobe designer help. I am providing below the answer to your query, Hope it will be helpful:
    Lock text:
    LiveCycle Designer lets you lock text in text objects or in the captions of objects by using the Lock Text command. When you select Lock Text, you must double-click the desired text or caption in order to edit it. This makes it not as easy to modify the text. If Lock Text is not enabled, you click in the caption or text object to start editing the text.
    Lock Text applies to all text and captions on the form design. Using Lock Text is particularly useful if you want to select and move objects but not make any changes to the text. You can single-click the object to select it, but you must double-click the caption or text in order make any changes.
    Lock Static Object:
    LiveCycle Designer lets you lock all static objects on the form design by using the Lock Static Objects command. All static objects in the form design cannot be selected, moved, or modified.
    The Lock Static Text command is useful in situations when you have finished formatting static objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the static text objects and need to apply a different font to the text field objects. You can easily do this by locking the text objects and then using Edit > Select All to select all the text field objects at once and then change the font.
    When text objects are locked, the text inside them is also locked. However, if you want to continue to select and move text objects, but not make any changes to the corresponding text, you can change the behavior of the text to make it not as easy to modify.
    Lock Field:
    LiveCycle Designer lets you lock all field objects on the form design by using the Lock Fields command. All field objects in the form design cannot be selected, moved, or modified.
    The Lock Fields command is useful in situations when you have finished formatting the field objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects and check box objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the field objects and need to apply a different font to the text objects. You can easily do this by locking the field objects and then using Edit > Select All to select all the static text objects at once and change the font.
    When field objects are locked, their corresponding captions are also locked. However, if you want to continue to select and move fields, but not make any changes to the caption, you can change the behavior of the caption to make it not as easy to modify.
    Regards,
    Vaibhav Tiwari.

  • ALV Grid fields from editable to non-editable mode

    Hi,
    I am displaying my data through ALV Grid. In my grid the non-key fields are in editable mode.
    When I edit any of the editable fields and place the cursor on other field the field which I have edited should become disable(non-editable). Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it.
    Thanks & Regards,
    Adithya M.

    Hi Adithya,
    I am confused by your statement "place the cursor on other field the field which I have edited should become disable" -- are you stating that this is the requirement or what is currently happening with your program.  The way the edit fields should work by default is they are editable at all times unless you tell it otherwise. 
    If you are saying your requirement is to change the field to disabled once the field is edited (runtime change), first you want to handle the event on data changed then within your method of handling on data changed, you can disable the field from being edited by using cell styles and changing the value to disabled. 
    If you look at program BCALV_GRID_EDIT,
    You will find code where it disables the field for edit using Cell Style -- this will give you an idea how Cell Style controls editable fields and display fields:
            ls_cell-style  = cl_gui_alv_grid=>mc_style_enabled.
            ls_cell-maxlen = 4.
            ls_cell-fieldname = 'CARRNAME'.
            append ls_cell to gt_sflight-cell.
    This specific code will set the field disabled when the program is first exectued, in your case if you need to do this at run time, after someone edits the field, you need to implement handling the event on data changed, in the same program you will find:
    method handle_data_changed.                 
       perform data_changed using er_data_changed.
    endmethod.                     
    It is within this method that you can disable a field for editing.
    However, once it is disabled you will not get back into the handle_data_changed method.  I'm not sure I understand your statement "Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it."  Why would you want the user to be able to edit something, then show it disabled, then let them click on it and edit it again?  Why not just leave it in edit mode?  Maybe if I understand the requirement better, I can answer this portion of the question. 
    If this is based on security or changing from edit to display for the entire grid, you can run the same program mentioned above and click on the Change/Display button in the top left to see how it enables and disables the entire grid for editing.
    Cheers,
    Bonnie

  • Hide rollover captions for editing

    Hi, all;
    I'm converting some courses that make copious use of rollovers in Authorware to Captivate.  I'm finding that in Captivate, the rollover captions cover everything, so I can't actually see or access the slide beneath.  My understanding is that if I click under the little eye to hide the rollover, this will also hide it in publishing.   I'm very afraid that I will forget to show these again (not to mention, next time I edit the slide, I've got to do the whole thing again).
    Is there a setting to hide the rollover captions while editing that allows them to be visible when published?  IOW, I want to be able to view the slide while editing like it looks in the filmstrip, and only turn on a caption if I need to change its size, location, or text (then immediately hide it again in editing view).
    Thanks;
    Amy

    Hello
    This is a common misunderstanding:  the little eye on the timeline allows you to hide objects for editing reasons but will not change anything on publishing, those objects will remain visible. So please, go ahead, use that 'eye' for all the objects you want to hide for editing.
    Here is a link to my blog post about the functionalities of the Timeline (including that eye icon):
    Tiny Timeline Tidbits
    If you want to really hide objects also after publishing, you'll need to uncheck the Visibility in its Properties. Cannot show you a screenshot because you did not mention the version you are using. The object will remain visible during editing, but will not show up when published.
    Lilybiri

  • How to edit "Credit" field for lots of shots all in once?

    I can't seem to be able to know how to edit "Credit" field for lots of shots all in once.
    I made a mistake of not focusing on the autofill feature which did put my friend's name instead of mine.
    How to correct this mistake without modifying EACH shot been imported alone (and there is plenty of them), I don't know about you but it looks like a total time waste.
    Aperture 2.1.3

    I apologize,but this is just too much info for me to type.
    Go to Help >> Aperture User Manual and read
    Working with Metadata Views Page 281
    Working with Metadata Presets Page 284
    Batch Changing Metadata Page 288
    DLS

  • How to Lock a Transaction for Editing AND VERY minor tab cont. help

    Just two things I need to ask about
    <b>1. How to Lock a Transaction for Editing</b>
    I am currently using the fcode ENQUEUE_E_TABLE. The function works as once the transaction in opened, another cannot access it.
    However, I have two modes in my transction (Display and Edit). <u> What I need to do is If another user has already opened the transaction, the other user can still access the transaction but cannot access the edit mode.</u>
    <b> 2. VERY minor tab cont. help </b>
    I noticed in a table control is being used in a transction you can resize a colunm. <u> How do you disable this </b>?
    and <u> how do you resize the horizontal scroll bar </u> so that you can limit scrolling upto the point where there are field columns?
    Thanks for you help ppl and take care

    Hi chad,
    This link will help u know abty different types of locks that are available:
    http://help.sap.com/saphelp_erp2005/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
    For resizing all u can go to the table settings and u can do it.
    Hope tis helps u,
    Regards,
    Nagarajan.

  • How to set a payload field value only once for multiple instances selected?

    The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
    Thanks,
    Carlos.

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • Can't edit narrator field for audiobooks in iTunes

    I noticed a new "narrator" field in iTunes for the Audiobook media kind, but I can't edit it.
    Also, I can't seem to edit the "Remember playback position" and "Skip when shuffling" options. I can fix the second issue by changing it to Music media kind, checking them, and changing it to Audiobook over again; however, seeing as there is no "narrator" field for Music, I can't use that workaround.
    I am using iTunes 12.1.0.50.

    Grey text when you look at the content and lock symbol at the bottom of the screen simply shows that your iPod is set to "automatically update songs and playlists". . If you want to access your iPod directly, play it through your iTunes, connect it to a second computer etc. you just need to change the update method to "Manually manage songs and Playlists" in the iPod preferences. Managing Your Songs Manually
    One thing to remember about manually updating though is that the iPod also has to be manually ejected before the "Do Not Disconnect" message will go away. Safely disconnect iPod
    For info: iPod 101
    The iPod offers three ways to transfer music from your computer. You can select one of the following update modes from the iPod Preferences menu in iTunes (Edit=>Preferences=>'iPod' tab):
    1) Automatically update all songs and playlists. This is the default mode, in which your entire music library, including playlists, is automatically synced to your iPod. If the music library on your computer exceeds the iPod storage capacity, you are prompted to select a different update method.
    2) Automatically update selected playlists only. With this option, iTunes automatically copies the playlists you have selected to the iPod when you connect it to the computer.
    3) Manually manage songs and playlists. You can also choose to transfer music to the iPod manually. This allows you to drag and drop individual songs and playlists from iTunes to the iPod.

  • F4 for Editable field in ALV, display Name but capture ID

    Hi Friends,
    I have a ALV for which i have defined a Structure, which is passed to Fieldcatlog.
    I have defined a Search help - ZUSER_NAME which has following fields to display.
    USERID - USR02-BNAME
    FNAME
    LNAME
    FULLNAME
    So my structure for fieldcatalog has User-id which is linked to this search help with Domain XUBNAME.
    So in my report i made this User-Id as editable and F4 available, everything is working fine.
    when user does a F4, its displaying Userid,Fname,Lname and complete name.upon selection and save i am capturing the id and storing in the ztable.
    But now i have a requirement that when user selects a value from this search help on F4, i need to display Fullname but capture the User Id. How can i do that?
    This is something similar to the one we have in BSP- key-value pair.
    how to do this in ALV.
    Appreciate if someone can guide me thru.
    Thanks,
    Simha
    Edited by: Simha on Sep 6, 2008 2:24 PM

    hai ,  this is example code for editing the F4 display .. check out this
    REPORT zalv_editf4display.
    *Type pools for alv
    TYPE-POOLS : slis.
    *structure for t582a tbale
    TYPES : BEGIN OF ty_table,
            infty TYPE infty,
            pnnnn TYPE pnnnn_d,
            zrmkz TYPE dzrmkz,
            zeitb TYPE dzeitb,
            dname TYPE dianm,
             davo TYPE davo,
            davoe TYPE davoe,
            END OF ty_table.
    *Structure for infotype text
    TYPES : BEGIN OF ty_itext,
            infty TYPE infty,
            itext TYPE intxt,
            sprsl TYPE sprsl,
            END OF ty_itext.
    *Structure for output display
    TYPES : BEGIN OF ty_output,
            infty TYPE infty,
            itext TYPE intxt,
            pnnnn TYPE pnnnn_d,
            zrmkz TYPE dzrmkz,
            zeitb TYPE dzeitb,
            dname TYPE dianm,
            davo TYPE davo,
            davoe TYPE davoe,
           END OF ty_output.
    *internal table and work area declarations
    DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,
           it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
           it_pbo TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
           it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,
           wa_table TYPE ty_table,
           wa_output TYPE ty_output,
           wa_ittext TYPE ty_itext.
    *Data declarations for dropdown lists for f4
    DATA: it_dropdown TYPE lvc_t_drop,
          ty_dropdown TYPE lvc_s_drop,
    *data declaration for refreshing of alv
          stable TYPE lvc_s_stbl.
    *Global variable declaration
    DATA: gstring TYPE c.
    *Data declarations for ALV
    DATA: c_ccont TYPE REF TO cl_gui_custom_container,         "Custom container object
          c_alvgd         TYPE REF TO cl_gui_alv_grid,         "ALV grid object
          it_fcat            TYPE lvc_t_fcat,                  "Field catalogue
          it_layout          TYPE lvc_s_layo.                  "Layout
    *ok code declaration
    DATA:
      ok_code       TYPE ui_func.
    *initialization event
    INITIALIZATION.
    *start of selection event
    START-OF-SELECTION.
    *select the infotypes maintained
      SELECT infty
              pnnnn
              zrmkz
              zeitb
              dname
              davo
              davoe
              FROM t582a UP TO 10 ROWS
              INTO CORRESPONDING FIELDS OF TABLE it_table.
    *Select the infotype texts
      IF it_table[] IS NOT INITIAL.
        SELECT itext
                 infty
                 sprsl
                 FROM t582s
                 INTO CORRESPONDING FIELDS OF TABLE it_ittext
                 FOR ALL ENTRIES IN it_table
                 WHERE infty = it_table-infty
                 AND sprsl = 'E'.
      ENDIF.
    *Apppending the data to the internal table of ALV output
      LOOP AT it_table INTO wa_table.
        wa_output-infty = wa_table-infty.
        wa_output-pnnnn = wa_table-pnnnn.
        wa_output-zrmkz = wa_table-zrmkz.
        wa_output-zeitb = wa_table-zeitb.
        wa_output-dname = wa_table-dname.
        wa_output-davo = wa_table-davo.
        wa_output-davoe = wa_table-davoe.
    For texts
        READ TABLE it_ittext INTO wa_ittext WITH KEY infty = wa_table-infty.
        wa_output-itext = wa_ittext-itext.
        APPEND wa_output TO it_output.
        CLEAR wa_output.
      ENDLOOP.
    Calling the ALV screen with custom container
      CALL SCREEN 0600.
    *On this statement double click  it takes you to the screen painter SE51.
    *Enter the attributes
    *Create a Custom container and name it CCONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    *Now a normal screen with number 600 is created which holds the ALV grid.
    PBO of the actual screen ,
    Here we can give a title and customized menus
    *create 2 buttons with function code 'SAVE' and 'EXIT'.
    GIVE A SUITABLE TITLE
    *&      Module  STATUS_0600  OUTPUT
          text
    MODULE status_0600 OUTPUT.
      SET PF-STATUS 'DISP'.
      SET TITLEBAR 'ALVF4'.
    ENDMODULE.                 " STATUS_0600  OUTPUT
    calling the PBO module ALV_GRID.
    *&      Module  PBO  OUTPUT
          text
    MODULE pbo OUTPUT.
    *Creating objects of the container
      CREATE OBJECT c_ccont
           EXPORTING
              container_name = 'CCONT'.
    create object for alv grid
      create object c_alvgd
      exporting
      i_parent = c_ccont.
    SET field for ALV
      PERFORM alv_build_fieldcat.
    Set ALV attributes FOR LAYOUT
      PERFORM alv_report_layout.
      CHECK NOT c_alvgd IS INITIAL.
    Call ALV GRID
      CALL METHOD c_alvgd->set_table_for_first_display
        EXPORTING
          is_layout                     = it_layout
          i_save                        = 'A'
        CHANGING
          it_outtab                     = it_output
          it_fieldcatalog               = it_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    *&      Form  alv_build_fieldcat
          text
         <--P_IT_FCAT  text
    *subroutine to build fieldcat
    FORM alv_build_fieldcat.
      DATA lv_fldcat TYPE lvc_s_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '1'.
      lv_fldcat-fieldname = 'INFTY'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 8.
      lv_fldcat-scrtext_m = 'Infotype'.
      lv_fldcat-icon = 'X'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '2'.
      lv_fldcat-fieldname = 'PNNNN'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'Structure'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '3'.
      lv_fldcat-fieldname = 'ITEXT'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 60.
      lv_fldcat-scrtext_m = 'Description'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '5'.
      lv_fldcat-fieldname = 'ZRMKZ'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 1.
      lv_fldcat-scrtext_m = 'PERIOD'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '6'.
      lv_fldcat-fieldname = 'ZEITB'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 5.
      lv_fldcat-scrtext_m = 'Time constraint'.
      lv_fldcat-edit = 'X'.
    *To avail the existing F4 help these are to
    *be given in the field catalogue
      lv_fldcat-f4availabl = 'X'.
      lv_fldcat-ref_table = 'T582A'.
      lv_fldcat-ref_field = 'ZEITB'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '7'.
      lv_fldcat-fieldname = 'DNAME'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'Dialogmodule'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '8'.
      lv_fldcat-fieldname = 'DAVO'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'Start'.
      lv_fldcat-edit = 'X'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '9'.
      lv_fldcat-fieldname = 'DAVOE'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'End'.
      lv_fldcat-icon = ''.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
    *To create drop down for the field 'DAVO'
    with our own f4 help
      ty_dropdown-handle = '1'.
      ty_dropdown-value = ' '.
      APPEND ty_dropdown TO it_dropdown.
      ty_dropdown-handle = '1'.
      ty_dropdown-value = '1'.
      APPEND ty_dropdown TO it_dropdown.
      ty_dropdown-handle = '1'.
      ty_dropdown-value = '2'.
      APPEND ty_dropdown TO it_dropdown.
      ty_dropdown-handle = '1'.
      ty_dropdown-value = '3'.
      APPEND ty_dropdown TO it_dropdown.
      CALL METHOD c_alvgd->set_drop_down_table
        EXPORTING
          it_drop_down = it_dropdown.
      LOOP AT it_fcat INTO lv_fldcat.
        CASE lv_fldcat-fieldname.
    To assign dropdown in the fieldcataogue
          WHEN 'DAVO'.
            lv_fldcat-drdn_hndl = '1'.
            lv_fldcat-outputlen = 15.
            MODIFY it_fcat FROM lv_fldcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                    " alv_build_fieldcat
    *&      Form  alv_report_layout
          text
         <--P_IT_LAYOUT  text
    *Subroutine for setting alv layout
    FORM alv_report_layout.
      it_layout-cwidth_opt = 'X'.
      it_layout-col_opt = 'X'.
      it_layout-zebra = 'X'.
    ENDFORM.                    " alv_report_layout
    PAI module of the screen created. In case we use an interactive ALV or
    *for additional functionalities we can create OK codes
    *and based on the user command we can do the coding.
    *&      Module  PAI  INPUT
          text
    MODULE pai INPUT.
    *To change the existing values and refresh the grid
    *And only values in the dropdown or in the default
    *F4 can be given , else no action takes place for the dropdown
    *and error is thrown for the default F4 help and font changes to red
    *and on still saving, value is not changed
      c_alvgd->check_changed_data( ).
    *Based on the user input
    *When user clicks 'SAVE;
      CASE ok_code.
        WHEN 'SAVE'.
    *A pop up is called to confirm the saving of changed data
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
              titlebar       = 'SAVING DATA'
              text_question  = 'Continue?'
              icon_button_1  = 'icon_booking_ok'
            IMPORTING
              answer         = gstring
            EXCEPTIONS
              text_not_found = 1
              OTHERS         = 2.
          IF sy-subrc NE 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    *When the User clicks 'YES'
          IF ( gstring = '1' ).
            MESSAGE 'Saved' TYPE 'S'.
    *Now the changed data is stored in the it_pbo internal table
            it_pbo = it_output.
    *Subroutine to display the ALV with changed data.
            PERFORM redisplay.
          ELSE.
    *When user clicks NO or Cancel
            MESSAGE 'Not Saved'  TYPE 'S'.
          ENDIF.
    **When the user clicks the 'EXIT; he is out
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
      CLEAR: ok_code.
    ENDMODULE.                 " PAI  INPUT
    *&      Form  REDISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM redisplay .
    *Cells of the alv are made non editable after entering OK to save
      CALL METHOD c_alvgd->set_ready_for_input
        EXPORTING
          i_ready_for_input = 0.
    *Row and column of the alv are refreshed after changing values
      stable-row = 'X'.
      stable-col = 'X'.
    *REfreshed ALV display with the changed values
    *This ALV is non editable and contains new values
      CALL METHOD c_alvgd->refresh_table_display
        EXPORTING
          is_stable = stable
        EXCEPTIONS
          finished  = 1
          OTHERS    = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " REDISPLAY

  • How can an Interaction Activity be locked out from further edits once final

    Not sure if this is the right forum for this.  I am trying to understand if there is an easy config handle to prevent Interaction Activities created in CRM from being edited once they have been Finalized or Completed and appear in Interaction History.  For Email Activity this is not an issue but for Interaction Activities, the Edit option can still be used to modify the content even after the status=final.  Would very much appreciate any advice.

    In user status shema double click on user status Completed and in new window add business transaction "Change document" and set it to "Forbidden".

  • Understand further about "excel files is locked for editting by me"

    Hi friends. I hope you are doing well.
    i have a problem with an user in my office when opening an excel file from Server:
    “<file_name>.xlsx is locked for editing” . The error shows that it is being used by its own user and that user could not open this file.
    - Our company is domain network and our Domain Controller is also File Servers.
    * I got a workaround action plan is: "unshared the folder which contains the problematic files in server, then share it again". However, this only works with folders which contain a small volume of data. For several GB it will take a considerable
    time and affect to network availability.
    I have few questions:
    1. Is there anyway to kill the process/service which is controlling the "excel files" at server ? ( Since i reboot client machine but the error message still persists), beside my workaround action plan.
    2.When i use OpenFilesView (from the link:  http://www.nirsoft.net/utils/opened_files_view.html) i can see that the excel files is opened by 2 process : "xlsx and xls" from remote computer. However, i can not kill the process using OpenFilesView.
    So i would like to ask: Is there any way to kill a process from remote host?
    3. What actually happens when sharing a files from Server in domain ? ( mechanism of sharing files)
    I would appreciate if you can give me some advices for my concern.
    Thank you very much! Have a good day.

    Hi,
    We have a lot of possible causes for this error, I would suggest your to take a look at this public blog and try the steps out there:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2012/05/14/the-definitive-locked-file-post.aspx
    Also, below KB article describes the way that how Excel saves files, you might also want to take a look. There may be some softwares or process is accessing these temporary files.  Check if there is any temporary file (~$filename.xls
    or ~$filename.xlsx) in the shared folder, delete them and try again.
    http://support.microsoft.com/kb/814068/en-us
    Hope this helps.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

Maybe you are looking for

  • Issue with setting a default value to a Tabular Form field

    Hi - I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in

  • Special characters in UTF-8 UNIX file

    We have a program which downloads data from certain info-types in to the UNIX file, Fields are written to the specific position in the UNIX file. Some of the fields contains "Special Characters" in them. When we download the file in UTF-8 mode (encod

  • Hide the travel check box in MSS team view in SAPHCM

    Hi All, How to hide the Travel check box in the above diagram.client don't want the travel functionlaity. Please help me out here. Regards, Kiran

  • Moving iphone data from mac to windows

    My ex gfs iphone is currently synced with my mac, all her music, apps, contacts etc are on here. I've managed to copy all of the music over to her windows pc just by copying the files. Does anyone know of any ways I can copy the other data? mainly th

  • Web Dynpro Tabstrip

    Hi I have a Tabstrip which contains a ViewContinerUIelement. I have embedded an interface view from another web dynpro component to the tabstrips ViewContinerUIelement. The interface view is a view set with 2 cells. cell(1,1) has one view (navigation