Change edit mode with clasic FM REUSE_ALV_GRID_DISPLAY

Hello,
I'm using the function "REUSE_ALV_GRID_DISPLAY", in the classic method. I want to switch from display to edit mode when the user press the edit mode button. But I don't get it to work.
So far as I know building up the ALV is correct so I don't put all the source code here.
What's wrong in my code?
FORM BUILD_ALV_REPORT.
perform build_field_cat.
After building the field catalog (e.g., from a DDIC structure), we can
modify these settings in the following subroutine.
PERFORM modify_fieldcatalog.
IF Not fieldcatalog is initial.
perform collect_data
TABLES it_collector
USING werks
lgort
s_jaar
s_mnd.
PERFORM t_sort_build USING gd_sort.
perform build_layout CHANGING gd_layout.
Table ta_comment is used to display header information in the
top-of-page of the ALV output.
PERFORM build_comment CHANGING ta_comment[].
Table gd_tab_group wordt gebruikt om een groepering op te bouwen.
PERFORM build_group CHANGING gd_tab_group[].
SET PF-STATUS 'STANDARD_FULLSCREEN'.
gx_variant-report = gd_repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
I_SAVE = 'A'
CHANGING
CS_VARIANT = gx_variant
EXCEPTIONS
WRONG_INPUT = 1
NOT_FOUND = 2
PROGRAM_ERROR = 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.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = gd_repid
I_CALLBACK_PF_STATUS_SET = 'STANDARD_FULLSCREEN'
I_CALLBACK_USER_COMMAND = 'R1_PROCESS_USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = co_rout_top_of_page
I_BACKGROUND_ID = 'ALV_BACKGROUND'
I_GRID_TITLE = 'Lijst goedgekeurde ATBs'
I_GRID_SETTINGS =
IS_LAYOUT = gd_layout
IT_FIELDCAT = fieldcatalog
IT_EXCLUDING =
IT_SPECIAL_GROUPS = gd_tab_group[]
IT_SORT = gd_sort[]
I_SAVE = 'A'
IS_VARIANT = gx_variant
I_SCREEN_START_COLUMN = 0
TABLES
T_OUTTAB = it_collector
EXCEPTIONS
PROGRAM_ERROR = 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.
ENDIF.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDFORM. " BUILD_ALV_REPORT
Setting the column to edit mode
ls_fieldcat-fieldname = '3_ATWRT'.
ls_fieldcat-seltext_m = 'WBS-NRG'.
ls_fieldcat-seltext_l = 'WBS-element NRG'.
ls_fieldcat-row_pos = 0.
ls_fieldcat-col_pos = 30.
ls_fieldcat-outputlen = 4.
ls_fieldcat-emphasize = 'X'.
ls_fieldcat-key = 'X'.
ls_fieldcat-do_sum = 'X'.
ls_fieldcat-edit = 'X'.
append ls_fieldcat to fieldcatalog.
clear ls_fieldcat.
ENDFORM. " modify_fieldcatalog
FORM r1_process_user_command "#EC CALLED
USING utp_ucomm TYPE syucomm
utp_selfield TYPE slis_selfield.
DATA: ltp_repid TYPE syrepid.
Handle the specific user-commands.
CASE utp_ucomm.
Handle double click or hotspot on a specific field. *
These are some examples *
WHEN co_double_click.
WHEN OTHERS.
ENDCASE.
WHEN 'SWITCH'.
IF V_EDIT = ' '.
V_EDIT = 'X'.
ELSE.
V_EDIT = ' '.
ENDIF.
PERFORM modify_edit_mode.
utp_selfield-refresh = 'X'.
WHEN OTHERS.
ENDCASE.
ENDFORM. "R1_PROCESS_USER_COMMAND
FORM modify_edit_mode .
DATA: ls_fieldcat TYPE slis_fieldcat_alv.
LOOP AT fieldcatalog into ls_fieldcat.
CASE ls_fieldcat-FIELDNAME.
WHEN '3_ATWRT'.
ls_fieldcat-edit = V_EDIT.
gd_layout-edit = V_EDIT.
gd_layout-edit_mode = V_EDIT.
ENDCASE.
modify fieldcatalog from ls_fieldcat.
clear ls_fieldcat.
ENDLOOP.
ENDFORM. " modify_edit_mode

Vasanth,
This is what I'm already doing in the program by setting the edit mode for the column '3_ATWRT'. But I want to switch from edit to display mode and back again. This is not working. Only when I buildup the fieldcatalog this is working?
Kind regards,
Richard Meijn

Similar Messages

  • How to get out of tex edit mode with a single button?

    Hey,
    Is there a way to escape from text edit mode with a single click or button?
    So far I always hit CTRL+Enter, then V and then I click away from the canvas so that the paragraph ain't higlighted no more. But thats a pain in the butt! Cant there be a single button for this?
    Thaks
    AO

    Something interesting I just noticed: Double-clicking outside a text box can have different effects according to context.
    With the Pointer tool selected, double-clicking on a text box allows you to edit the text. In this "quick edit" mode, double-clicking outside the text box will return you to the Pointer tool.
    If the Text tool has been selected manually, double-clicking outside a text box will create a new text box.

  • How to get the view in editable mode with OCA button.

    Dear Experties,
    I am new to CRM WEB UI ,I have got the requirement to develope a view with OCA button on it and when i click on the button it should direct to the second view  and it should open with edit mode.
    The Source view is table type and target view is form type.
    I am able to achieve this but unable to get it in editable mode.
    I have added the below code in do_prep_output method but getting dump  at the line
    lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
    The error message is
    Long text During a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_BSP_WD_MIXED_NODE' is not compatible for assigning with the target type '\CLASS=CL_CRM_BOL_ENTITY'.
    Please somebody help me on this
    lv_display = me->view_group_context->is_view_in_display_mode( me ).
      IF lv_display EQ abap_false.
      ELSE.
         me->view_group_context->set_view_editable( me ).
      ENDIF.
      DATA:    lr_tx           TYPE REF TO if_bol_transaction_context,
              lr_entity       TYPE REF TO cl_crm_bol_entity,
               lr_comp type REF TO ZL_BT131QI__BSPWDCOMPONEN_IMPL.
      lr_comp ?= me->comp_controller.
      Check lr_comp is BOUND.
      lr_entity ?= lr_comp->typed_context->BTADMINI->collection_wrapper->get_current( ).
      CHECK lr_entity IS BOUND.
      IF lr_entity->lock( ) = abap_true.
        me->view_group_context->set_view_editable( me ).
      ENDIF.
      lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
      WHILE lr_entity IS BOUND.
        lr_entity->lock( ).
        lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_next( ).
      ENDWHILE.
    The following error text was processed in the system:
    Source type \CLASS=CL_BSP_WD_MIXED_NODE is not compatible, for the purposes of assignment, with target type \CLASS=CL_CRM_BOL_ENTITY
    Exception Class CX_SY_MOVE_CAST_ERROR
    Error Name MOVE_CAST_ERROR
    Program ZL_ZBT131QI_EMAINLEG_IMPL=====CP
    Include ZL_ZBT131QI_EMAINLEG_IMPL=====CM00C
    ABAP Class ZL_ZBT131QI_EMAINLEG_IMPL
    Method EH_ON_EDIT
    Line 33 
    Long text During a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_BSP_WD_MIXED_NODE' is not compatible for assigning with the target type '\CLASS=CL_CRM_BOL_ENTITY'.
    Thanks in advance!!!

    Hi,
    in CRM a context can consist of model nodes,  value nodes and, unfortunately, mixed nodes. While mixed nodes implement the same interface as model nodes they can't be casted into a CL_CRM_BOL_ENTITY directly. Instead you need to perform the following conversion in order to get the model node from the mixed node:
    DATA:  mixed_node     TYPE REF TO cl_bsp_wd_mixed_node,
               entity              TYPE REF TO cl_crm_bol_entity.
    mixed_node = me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
    entity = ?= mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).
    Best,
    Christian

  • Why is the photo only black in Edit mode with iPhoto 11?

    Why is the photo only Black in Edit mode?
    Everything works fine, except when I try to edit a photo, it shows as only Black.
    I have tried every fix talked about on this forum, and some others - nothing fixes it.
    Is this a Feature ? or is it a bug that no one is interesteed in fixing? It doesn't fill me with confidence in Apple when I see such random little glitches remaining unfixed.

    Is it the same for newly created slideshows?  Although a long shot give this a try:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Lion and Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE 1: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If the above fails as a test launch iPhoto with the Option key held down and create a new, test library.  Import some photos and test to see if the same problem persists. Does it?
    If it doesn't then the following my be your next step:
    Starting over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1. Open the library package like this.
    2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
    3. Drag the subfolders of the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window a few at a time.
    This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.

  • Table in edit Mode with infinite lines ?

    Hi,
    We are designing an application, where as one of the requirement is to have a table with infinite open lines for user input.
    By Default table should be in EDIT mode and user should be able to enter values without the need to click on a line to insert a new row every time he/she wants to input a value.
    How can we acheive this requirement in WDA. In classical dynpro it is very easy to do this.. but I am struggling to find a way around for this..
    Thanks in advance.
    Regards
    Rohit Chowdhary

    Hi Rohit,
    >My experience with tables that are over 1000 lines, showed performance and
    >even stability issues for IE.
    I can only emphasize what Phil said. Especially, in your case with an editable table, displaying more than 50 rows at a time (depending on the number of columns) can cause a bad user experience, because the browser needs to handle all the html and javascript we throw at it.
    Imho there are two solutions:
    (a) Try to use the ALV
    (b) In case you would like to use the table ui element, you could add enough empty context elements to the context node where the table binds to, so that a user has always plenty of empty rows available. A toolbar button could provide the user with more initial lines.
    Best regards,
    Thomas

  • "Bad" colors/banding when going into Edit mode with Canon RAW files

    Just got my iLife '06 suite yesterday and ran into something very disturbing: something wrongwith the colors of RAW files once you go into editing mode. In the library view, they're fine. Try to edit one, and after a few seconds, there's a final refresh of the image window that heavily alters and bands the colors. (Looks almost like a poor conversion down to 256 colors or less - it's that bad).
    This is happening on Canon 300D and 20D raw files, and did NOT happen with iPhoto 5. The RAW files open up and display just fine in Preview (as well as 3rd party apps) - problem is in iPhoto 6 only. I've already sent in a bug report - has anyone else tried double-clicking on a RAW file to go into Edit mode yet?
    David Miller

    I use Huey from Pantone to calibrate my monitor for consistancy in different lighting situations and across applications. But the same effect happens by choosing any one of the non-standard monitor calibrations.
    Try this:
    Choose a RAW photo and monitor calibratioin that causes the banding and discoloration.
    Open the RAW photo in Edit mode and wait the couple of seconds for banding to appear.
    Next, adjust the image size slider so that scroll bars appear at the bottom and right side of the photo. It doesn't take much. Notice the banding disappears!
    Now grab one of the scroll bars and move it. Observe the banding and discoloration. And, when you release the scroll bar the banding disappears again.
    I don't remember this happening with iPhoto 5.
    I think it has something to do with the display
    calibration. After I first saw this I switched back
    to my default iMac G4 profile, and the problem wasn't
    there anymore. I'm not sure what the difference is. I
    set up several different profiles, each with
    different choices for Advanced, White Point and
    Gamma, and some trigger this banding, and some do
    not.
    Anybody have any similar experiences?

  • Cannot use edit mode with zebra layout in alv

    Hi,
    I am using 'REUSE_ALV_GRID_DISPLAY' for the ALV genration,
    I found that I cannot use
              it_layout-edit_mode = 'X'.
              it_layout-zebra = 'X'.
    simultaneously..
    Only zebra layout come up and not the edit mode...
    Is there a wrk around to solve this
    Thank you,
    Arjun.G

    try removing
    it_layout-edit_mode = 'X'.
    from ur code..
    and add
    is_fieldcat-edit = 'X'   " for all columns...

  • Elements 3.0 - Change editing mode and timebase?

    Hey all,
    I'm using Premiere Elements 3.0 and I'm trying to create a custom preset for my new project. My source files for this project are all at 23.976 frames per second, so I wanted the project to match that. But in the "Custom Presets" window, the drop-downs for Editing Mode and Timebase are greyed out - I cannot change the settings to anything other than 29.97 fps. Plus, the only Display Format options have 30 fps.
    Is there any way I can set these to 23.976 or 24 fps?
    Thanks,
    Matt

    Aw poo, that's disappointing. Oh well, thanks for letting me know!

  • Quick Edit mode with Aperture

    Using Elements 11 as an external editor for Aperture. In Quick mode the changes are not saved to Aperture. Expert mode works fine and Quick worked ok using Elements 9, What's up with the new program?

    Hi , 
    It's by design that the Managed Metadata column in Quick Edit doesn't support the data paste from excel and will display this
    validation message.
    It seems you would use the third party tool suggested by teylyn to bulk update the list Managed Metadata column vallues as a workaround per the following similar
    post.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to change edit modes ....stuck or bug or..?

    ive started projects in premiere cs6 mixing formats with dslr and gopro hero3 clips... ive seem to be stuck in arri mode?.. even when i drag clips tp the creat sqeuince function?...maybe i need some tutorials or info ?...
    any thing please post!!
    mike d
    facebook micheal d. duckworth
    youtube user sk8ermiked
    thanks!

    You can't change sequence settings.  But you can create a new sequence and cut/paste the clips into it.

  • Add a substep (Edit Mode) with LabVIEW

    Hello,
    My supplier has delivered a library of steps in TestStand (with a TypePalette and associated Ini Files).
    I'd like to custom the INI file with LabVIEW to add a module as "Edit Substeps" on the differents Steps Types.
    With "GetTypePaletteFileList" and "PropertyObjectFile", I can see the differents Type Palettes and the associated paths but I can modify it (add a substep module ... etc) ?
    Is it possible ? Someone has an idea ?
    Thank you for your help
    YR42

    Hello,
    Here you can find a post, with an example:
     http://forums.ni.com/ni/board/message?board.id=330​&requireLogin=False&thread.id=5599
    I hope that this link will help.
    Regards
    Nacer M. | Certified LabVIEW Architecte

  • PO No. Editable Mode in VI01/VI02 - Shimpment Cost Create/Change

    Hi,
    We have a Requirement, for that we need PO No. in VI01/VI02 in Editable Mode.
    Is it Possible to make PO No. in Change (Edit) Mode in VI01/VI02 (Shimpment cost creation or change)
    Either through Functional or Technical (Using User Exit or Screen Exit).
    Regards,
    Srinivas.

    Thanks for ur reply - AA.
    I do wish to go with Standard Procedure and configured as per sap standard
    Due to User's requirement, Just I want to check whether it (Editing P.O. No.) is possible using Standard Functional or Technical Solution.
    Thank You,
    Srinivas.
    Edited by Srinivas on 18/02/2009 at 05:30 P.M.

  • Deleting Pictures in Edit Mode

    When I am in Full Screen Edit Mode I don't seem to be able to delete an open picture simply by pressing the DEL button. The combination Command-Option-Delete works but not the Delete alone. A friend of mine can delete an open picture with just DEL button. Am I the only one with that problem? Are there settings to activate deleting picture in Full Screen Edit Mode with just DEL button? (I think the first time I run the program after installation the DEL button alone worked but I am not 100% sure)

    I tried rebuilding just some minutes a go.
    I am now revising my previous statement. When deleting photos in newly (in this session) created albums, album list is not updated until I select another album and then back again. However, image count of the album is updated.
    Information pane is never updated, unless closed and opened.
    And while writing this, iPhoto came to a dead stop in the background.
    Tomas

  • Netui:form in edit mode

    Hi,
    I am trying to use netui:form in the JSP of the edit mode like this :
    <netui:form action="testAction">
         <netui:button value="Valider" type="submit"/>
         <netui:button value="Annuler" type="reset"/>
    </netui:form>
    but I always get the following error : Action 'testAction' is not a valid action
    If I try to use netui:form tag in another JSP (not in the edit mode, for example the JSP displayed after the begin action), it works fine.
    And it works fine in the edit mode with a netui:anchor tag. The action specified is called.
    Here is the PageFlow Controller :
    @Jpf.Controller()
    public class favorisController extends PageFlowController {
         @Jpf.Action(forwards = { @Jpf.Forward(name = "success", path = "/site_unisvers/favoris/favoris.jsp") })
         public Forward testAction(TestActionFormBean form) {
              System.out.println("je suis testAction");
              System.out.println(form.getTextBox());
              Forward forward = new Forward("success");
              return forward;
    Here is the portlet xml file :
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet definitionLabel="favoris" title="Favoris">
    <netuix:titlebar>
    <netuix:maximize/>
    <netuix:minimize/>
    <netuix:help contentUri="/site_unisvers/favoris/help.jsp"/>
    <netuix:edit contentUri="/fr/su/unv/unisvers/ihm/favorisController.jpf" action="edit"/>
    </netuix:titlebar>
    <netuix:content>
    <netuix:pageflowContent contentUri="/fr/su/unv/unisvers/ihm/favorisController.jpf"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    Anybody can help me ?

    My code works fine. WebLogic just didn't update well the config files.
    Thomas

  • Edit Mode & action.do

    I am trying to set the edit URI for a portlet to an action in my pageflow. pageFlowDirectory/myAction.do
    works when I enter it on the command line. However, when I specify it in the
    edit URI it attempts to find the action in /Controller.jpf instead of my pageFlowDirectory/PageFlowDirectoryControler.jpf.
    Is this:
    a) bug?
    b) incorrect URI for edit mode?
    c) a stupid way to try and implement the edit mode?
    thanks.

    In playing around it appears that when you use the /pageFlowDirectory/myAction.do
    URI the app server creates a new context. For example, when I use that URI in
    the body of my portlet I leave the portal/portlet framework altogether.
    Is the ONLY solution to using the edit mode with a jpf to use a PageFlowBacking
    object?

Maybe you are looking for

  • Created Menu in JS in Acrobat 9.2 & Issue with Acrobat 9.4.4

    I originally created this Javascript on Acrobat 7.0 because there was not a means for me to convert a pdf to jpeg. When I updated to Acrobat 9.2, the following javascript that I have been using until I have acrobat 9.4.4.      // mystuff.js - Adobe A

  • Validate my script logic: reference erro LOOKUP is not defined

    Dear all, i want write one script logic. It use LOOKUP using FOR/NEXT. But when i check stament in my script logic: messesage erro: reference erro LOOKUP is not defined.Can you help me? My script logic *XDIM_MEMBERSET ACCOUNT=BS221 *XDIM_ADDMEMBERSET

  • Is there anyway to recover files permanently deleted in trash after a two month period?

    I deleted some files that I thought I transferred to an external hard drive.  However, after 2 months, I realized that all of the files did not transfer and I deleted them in trash about two months ago.  Is there anyway to recover these files? 

  • Using Epson scanner (Power PCprogram) under Lion

    The software for using this wonderfull scanner is not supported under Lion. According to Epson and Apple there must be a solution available from Apple. So far, I did succeed in finding the required info. Did anybody face the same problem, and can be

  • Preparing side edge of book for printing

    Hey all, You know there's books that are thick and have an edge where pages meet. That edge often has the name of book, author, and publisher icon. I'm not sure what that edge is called but if pages are 6 x 9 inches and you have the entire page fille