How to save the edited fields in ALV list

Hi
hope you could help me find a solution, I made my fields editable in ALV grid display as you can see in the code ZID_NUM, ZLAST_NAME and ZMIDDLE_NAME is editable..
an example scenario would be if I execute the program it will show me 5 lines, all the fields can be edited by the user...(example he edited all data in the result).  When he press save, it will automatically update the ztable (ZMEMPLIST in this case). How do you go about the saving?
thanks!!
select * from zmemplist client specified
    into corresponding fields of table it_ztable.
it_fieldcat-fieldname = 'ZID_NUM'.
it_fieldcat-seltext_m = ' ID Number '.
it_fieldcat-col_pos     = 1.
it_fieldcat-input = 'X'.
it_fieldcat-edit = 'X'.
append it_fieldcat to it_fieldcat.
clear  it_fieldcat.
it_fieldcat-fieldname = 'ZLAST_NAME'.
it_fieldcat-seltext_m = ' Last Name '.
it_fieldcat-col_pos     = 2.
it_fieldcat-input = 'X'.
it_fieldcat-edit = 'X'.
append it_fieldcat to it_fieldcat.
clear  it_fieldcat.
it_fieldcat-fieldname = 'ZFIRST_NAME'.
it_fieldcat-seltext_m = ' First Name '.
it_fieldcat-col_pos     = 3.
it_fieldcat-input = 'X'.
it_fieldcat-edit = 'X'.
append it_fieldcat to it_fieldcat.
clear  it_fieldcat.
call function 'REUSE_ALV_GRID_DISPLAY'
  exporting
    i_callback_program       = sy-repid
    it_fieldcat              = it_fieldcat[]
    i_callback_user_command  = 'USER_COMMAND'
    i_callback_pf_status_set = 'SET_PF_STATUS'
  tables
    t_outtab                 = it_ztable.
*&      Form  user_command
      Handling custom function codes
     -->R_UCOMM      Function code value
     -->RS_SELFIELD  Info. of cursor position in ALV
form user_command  using    r_ucomm like sy-ucomm
                  rs_selfield type slis_selfield.
  case r_ucomm.
    when 'SAVE'.
endform

Hi Lawrence,
Include follwoing code on your user command for 'SAVE'.
*& Form user_command
* Handling custom function codes
* -->R_UCOMM Function code value
* -->RS_SELFIELD Info. of cursor position in ALV
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when 'SAVE'.
      DATA ref1 TYPE REF TO cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref1.
      CALL METHOD ref1->check_changed_data.
         ...............  " your action
     * endform
Hope this will sovle your query.
Pratik Vora

Similar Messages

  • HOW TO READ THE EDITABLE FIELD IN ALV

    CAN ANYONE HELP ME IN READING THE EDITABLE FIELD IN ALV.
    I AM DOING THE FOLLOWING.
    BUT STILL THE EDITABLE FIELD IN NOT READ.
    WHEN 'EXE' OR 'EXEC'.
      LOOP AT I_RB1 INTO L_WA_STRU.
      L_WA_STRU-LIFSK = L_WA_STRU-LIFSK1.
      MODIFY I_RB1 FROM L_WA_STRU.
      CLEAR L_WA_STRU.
      ENDLOOP.
    I_RB1 IS MY TABLE WHICH I PASSED IN TABLES OF REUSE_ALV_GRID_DISPLAY.LIFSK1 IS MY EDITABLE FIELD.
    AND LIFSK IS THE FIELD WHERE THE DATA SHOULD GET TRANSFERRED WHEN I HIT EXECUTE BUTTON.

    DATA: lt_display LIKE TABLE OF gt_display.
      REFRESH lt_display.
      CLEAR lt_display.
      lt_display[] = gt_display[].
      CLEAR ref_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
      IF lt_display[] NE gt_display[].
        gv_tosave = 'X'.
      ENDIF.
    Check this program. It will help you. 
    awrd points if helpful
    Bhupal

  • Editable field in alv list display

    i WANT TO GIVE COLOR FOR EDITABLE FIELD IN ALV LIST DISPLAY.i TRIED WITH EMPHASIZE IN FIELD CATALOGUE ASSIGNING.bUT,IT IS NOT WORKING.HOW TO DO.tHANX IN ADVANCE.........

    HI,
    Please refer the link below:
    http://www.****************/Tutorials/ALV/Edit/demo.htm
    http://www.****************/Tutorials/ALV/ColorSALV/Demo.htm
    Thanks,
    Sriram Ponna.

  • How to save the edited datagrid using array collection?

    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        title="demo2">
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[               
                                  import mx.collections.ArrayCollection;
                                  import mx.events.FlexEvent;
                                  import spark.components.gridClasses.IGridItemEditor;
                                  import spark.components.gridClasses.IGridItemRenderer;
                                  import spark.events.GridItemEditorEvent;
                                  [Bindable]
                                  private var myDP:ArrayCollection = new ArrayCollection([
                                            {label1:"Day1 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day2 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day3 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day4 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day5 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day6 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "}
                                  protected function myDG_gridItemEditorSessionSaveHandler(event:GridItemEditorEvent):void
                                            // TODO Auto-generated method stub
                                  protected function button1_clickHandler(event:MouseEvent):void
                                            // TODO Auto-generated method stub
                                            navigator.popView();
                                  protected function button2_clickHandler(event:MouseEvent):void
                                            // TODO Auto-generated method stub
                                            myDG.editable=false;
                                            myDP
                                  protected function myDG_exitStateHandler(event:FlexEvent):void
                                            // TODO Auto-generated method stub
                        ]]>
              </fx:Script>
              <s:DataGrid id="myDG" x="10" y="45" width="460" height="240" dataProvider="{myDP}"
                                            editable="true" exitState="myDG_exitStateHandler(event)" fontSize="11"
                                            gridItemEditorSessionSave="myDG_gridItemEditorSessionSaveHandler(even t)"
                                            rowHeight="30" variableRowHeight="true" selectionMode="singleCell" >
                        <s:columns>
                                  <s:ArrayList>
                                            <s:GridColumn dataField="label1" headerText="day" editable="false" />
                                            <s:GridColumn dataField="label2" headerText="9-10am"/>
                                            <s:GridColumn dataField="label3" headerText="10-11am"/>
                                            <s:GridColumn dataField="label4" headerText="11am-12noon"/>
                                            <s:GridColumn dataField="label5" headerText="1-2pm"/>
                                            <s:GridColumn dataField="label6" headerText="2-3pm"/>
                                            <s:GridColumn dataField="label7" headerText="3-4pm"/>            
                                  </s:ArrayList>
                        </s:columns >
              </s:DataGrid>
              <s:Button x="404" y="10" width="53" height="27" label="Back" click="button1_clickHandler(event)"
                                    fontSize="13"/>
              <s:Button x="24" y="10" width="56" height="27" label="Save" click="button2_clickHandler(event)"
                                    fontSize="14"/>
    </s:View>
    please help me with this code...i dontknow how to save the data edited in the datagrid back to my arrayollection!!!

    please help with this......

  • EDIT FIELD IN ALV LIST

    HI,
    WA_FIELDCAT-COL_POS = 4.
      WA_FIELDCAT-TABNAME = 'GT_OUT'.
      WA_FIELDCAT-FIELDNAME = 'DATAINS2'.
      WA_FIELDCAT-SELTEXT_M = 'POD'.
      WA_FIELDCAT-EDIT = 'X'.
      APPEND WA_FIELDCAT TO I_FIELDCAT.
      CLEAR WA_FIELDCAT.
    WA_FIELDCAT-EDIT = 'X'.
    I USED THIS ONE BUT IAM GETTING SYNERROR  WA_FIELDCAT DONT HAVE THIS COMPONENT.

    Refer to this related thread
    Re: how to edit particular field in alv list display-urgent

  • How to display the editable fields in output of an ALV report?

    Hi all,
    I have a requirement of displaying values in ALV Grid format and above this grid display i have to put some fields , that are editable.
    I know making ALV grid fields as editable, but here requirement is to display some fields before displaying the ALV grid dispaly and to enable these fields editable to user and when printing this the values entered by user also has tobe printed.
    Please help me on solving this problem? Is it possible to do this with ALV function modules?
    Thanks,
    Vamshi.

    Hi all,
    Thanks for your replies.
    But this is not  my requirement. I mentioned in my question that i too know how to edit the fields in ALV grid report.
    Here my requirement is .
                                             name :_____________
                                             amount:____________
    alv grid display
    Like above i need to display.  after name the user can be enter value and after amount also the user can be enter some value at output . But this is not the header of ALV .
    Is this possible in classical ALV or Classical report? If not please specify alternative?
    Thanks,
    Vamshi.

  • How to control the output fields in ALV

    Hi Pals,
    I have a Z program which outputs around 400 characters length. It is working fine when we run in foreground(online).. But i have the problem with the length of the output of the report when i run in BACKGROUND mode. That is, only 255 characters are being displayed.
    So, i have decided to supress some of the unwanted output fields being diplayed, so that the total output length becomes 255 characters.
    How can i handle this situation in the ALV's?
    Someone please send me some sample code.
    Thanks in advance,
    Ram.

    Hi
       Better create the Layout Variants with the desired columns.
    ALV is providing that functionality.
    Use
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = alv_variant
          i_save     = 'A'
        IMPORTING
          es_variant = alv_variant
        EXCEPTIONS
          not_found  = 2.
    Regards,
    Kumar

  • How can change the hair to an image every time and how can save the edit image into albums give me code

    HI, I am small iphone developer,i have one problem in my app,please give the guidence to me.
    THIS IS MY PROBLEM:
              I HAVE SELECTED ONE PICTURE FROM ALBUMS OR TAKE PICTURE FROM CAM SO I WANT TO CHANGE THE HAIR STYLES PART WITH ANOTHER HAIR STYELS AND SAVE THE PICTURE INTO ALBUMS HOW CAN GENRATE THE CODE OR LOGIC TO ME......I AM TRYING IT FROM 3WEEKS SO COULD YOU PLEASE GIVE ME GUIDENCE TO ME.................

    HI, I am small iphone developer,i have one problem in my app,please give the guidence to me.
    THIS IS MY PROBLEM:
              I HAVE SELECTED ONE PICTURE FROM ALBUMS OR TAKE PICTURE FROM CAM SO I WANT TO CHANGE THE HAIR STYLES PART WITH ANOTHER HAIR STYELS AND SAVE THE PICTURE INTO ALBUMS HOW CAN GENRATE THE CODE OR LOGIC TO ME......I AM TRYING IT FROM 3WEEKS SO COULD YOU PLEASE GIVE ME GUIDENCE TO ME.................
    Sir I am did it by using Objcetive-C code in iphone as fallows
    demoprojectViewController.h
    #import <UIKit/UIKit.h>
    @interface demoprojectViewController : UIViewController<UIImagePickerControllerDelegate,UINavigationControllerDelegate >
        UIImageView *imageView,*editingimage,*maskimage;
         UIButton *takePictureButton;
        UIButton *selectFromCameraRollButton;
        UIView *myview;
    @property(nonatomic,retain)IBOutlet UIImageView *imageView;
    @property(nonatomic,retain)IBOutlet UIImageView *maskimage;
    @property(nonatomic,retain)IBOutlet UIImageView *editingimage;
    @property(nonatomic,retain)IBOutlet UIButton *takePictureButton;
    @property(nonatomic,retain)IBOutlet UIButton *selectFromCameraRollButton;
    @property(nonatomic,retain )IBOutlet UIView *myview;
    - (IBAction)getCameraPicture:(id)sender;
    - (IBAction)selectExistingPicture;
    -(IBAction)pickHair:(id)sender;
    -(IBAction)done;
    -(IBAction)back;
    @end
    demoprojectViewController.m
    #import "demoprojectViewController.h"
    @implementation demoprojectViewController
    @synthesize imageView,editingimage,maskimage;
    @synthesize takePictureButton;
    @synthesize selectFromCameraRollButton;
    @synthesize myview;
    CGFloat lastScaleFactor = 1;
    CGFloat netRotation;
    CGPoint netTranslation;
    NSArray *images;
    int imageIndex = 0;
    - (void)didReceiveMemoryWarning
        // Releases the view if it doesn't have a superview.
        [super didReceiveMemoryWarning];
        // Release any cached data, images, etc that aren't in use.
    #pragma mark - View lifecycle
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad
       // maskimage=[[UIImageView alloc]initWithFrame:CGRectMake(50, 50, 150, 150)];
        //maskimage.image=[UIImage imageNamed:@"1.png"];
        if ([UIImagePickerController isSourceTypeAvailable:
              UIImagePickerControllerSourceTypeCamera]) {
            takePictureButton.hidden = NO;
            selectFromCameraRollButton.hidden = NO;
           UITapGestureRecognizer *tapGesture =
            [[UITapGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleTapGesture:)];
            tapGesture.numberOfTapsRequired = 1;
            [maskimage addGestureRecognizer:tapGesture];
            [tapGesture release];
            UIPinchGestureRecognizer *pinchGesture =
            [[UIPinchGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handlePinchGesture:)];
            [maskimage addGestureRecognizer:pinchGesture];
            [pinchGesture release];
            ///---rotate gesture---
            UIRotationGestureRecognizer *rotateGesture =
            [[UIRotationGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleRotateGesture:)];
            [maskimage addGestureRecognizer:rotateGesture];
            [rotateGesture release];
            //---pan gesture---
            UIPanGestureRecognizer *panGesture =
            [[UIPanGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handlePanGesture:)];
            [maskimage addGestureRecognizer:panGesture];
            [panGesture release];
            //---swipe gesture---
            images = [[NSArray alloc] initWithObjects:
                      @"1.png",
                      @"2.png",
                      @"3.png", nil];
            //---right swipe (default)---
            UISwipeGestureRecognizer *swipeGesture =
            [[UISwipeGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleSwipeGesture:)];
            [maskimage addGestureRecognizer:swipeGesture];
            [swipeGesture release];
            //---left swipe---
            UISwipeGestureRecognizer *swipeLeftGesture =
            [[UISwipeGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleSwipeGesture:)];
            swipeLeftGesture.direction = UISwipeGestureRecognizerDirectionLeft;
            [maskimage addGestureRecognizer:swipeLeftGesture];
            [swipeLeftGesture release];
        [super viewDidLoad];
    -(IBAction) handleTapGesture:(UIGestureRecognizer *) sender {
        if (sender.view.contentMode == UIViewContentModeScaleAspectFit)
            sender.view.contentMode = UIViewContentModeCenter;
        else
            sender.view.contentMode = UIViewContentModeScaleAspectFit;
    -(IBAction) handlePinchGesture:(UIGestureRecognizer *) sender {
        CGFloat factor = [(UIPinchGestureRecognizer *) sender scale];
        if (factor > 1) {
            //---zooming in---
            sender.view.transform = CGAffineTransformMakeScale(
                                                               lastScaleFactor + (factor-1),
                                                               lastScaleFactor + (factor-1));
        } else {
            //---zooming out---
            sender.view.transform = CGAffineTransformMakeScale(
                                                               lastScaleFactor * factor,
                                                               lastScaleFactor * factor);
        if (sender.state == UIGestureRecognizerStateEnded){
            if (factor > 1) {
                lastScaleFactor += (factor-1);
            } else {
                lastScaleFactor *= factor;
    //---handle rotate gesture---
    -(IBAction) handleRotateGesture:(UIGestureRecognizer *) sender {
        CGFloat rotation = [(UIRotationGestureRecognizer *) sender rotation];
        CGAffineTransform transform = CGAffineTransformMakeRotation(
                                                                    rotation + netRotation);
        sender.view.transform = transform;
        if (sender.state == UIGestureRecognizerStateEnded){
            netRotation += rotation;
    //---handle pan gesture---
    -(IBAction) handlePanGesture:(UIGestureRecognizer *) sender {
        CGPoint translation =
        [(UIPanGestureRecognizer *) sender translationInView:maskimage];
        sender.view.transform = CGAffineTransformMakeTranslation(
                                                                 netTranslation.x + translation.x,
                                                                 netTranslation.y + translation.y);
        if (sender.state == UIGestureRecognizerStateEnded){
            netTranslation.x += translation.x;
            netTranslation.y += translation.y;
    -(IBAction) handleSwipeGesture:(UIGestureRecognizer *) sender {
        UISwipeGestureRecognizerDirection direction =
        [(UISwipeGestureRecognizer *) sender direction];
        switch (direction) {
            case UISwipeGestureRecognizerDirectionUp:
                NSLog(@"up");
                break;
            case UISwipeGestureRecognizerDirectionDown:
                NSLog(@"down");
                break;
            case UISwipeGestureRecognizerDirectionLeft:
                imageIndex++;
                break;
            case UISwipeGestureRecognizerDirectionRight:
                imageIndex -- ;
                break;
            default:
                break;
        imageIndex = (imageIndex < 0) ? ([images count] - 1):
        imageIndex % [images count];
        imageView.image = [UIImage imageNamed:
                           [images objectAtIndex:imageIndex]];
    #pragma mark -
    - (IBAction)getCameraPicture:(id)sender {
        UIImagePickerController *picker =
        [[UIImagePickerController alloc] init];
        picker.delegate = self;
        //picker.allowsImageEditing = YES;
        picker.sourceType = (sender == takePictureButton) ?
        UIImagePickerControllerSourceTypeCamera :
        UIImagePickerControllerSourceTypeSavedPhotosAlbum;
        [self presentModalViewController:picker animated:YES];
        [maskimage removeFromSuperview];
        [picker release];
    - (IBAction)selectExistingPicture {
        if ([UIImagePickerController isSourceTypeAvailable:
             UIImagePickerControllerSourceTypePhotoLibrary]) {
            UIImagePickerController *picker =
            [[UIImagePickerController alloc] init];
            picker.delegate = self;
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            [self presentModalViewController:picker animated:YES];
            [maskimage removeFromSuperview];
            [picker release];
        else {
            UIAlertView *alert = [[UIAlertView alloc]
                                  initWithTitle:@"Error accessing photo library"
                                  message:@"Device does not support a photo library"
                                  delegate:nil
                                  cancelButtonTitle:@"Drat!"
                                  otherButtonTitles:nil];
            [alert show];
            [alert release];
    #pragma mark -
    - (void)imagePickerController:(UIImagePickerController *)picker
            didFinishPickingImage:(UIImage *)image
                      editingInfo:(NSDictionary *)editingInfo {
        imageView.image = image;
        [picker dismissModalViewControllerAnimated:YES];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
        [picker dismissModalViewControllerAnimated:YES];
    - (IBAction)btnSave_Clicked:(id)sender;
        UIImageWriteToSavedPhotosAlbum(editingimage.image, nil, nil, nil);
        //UIImageWriteToSavedPhotosAlbum(imageView.image, nil, nil, nil);
        UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Success" message:@"Image saved successfully to iPhone photo albums..." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
        [alert show];
        [alert release];
    -(IBAction)pickHair:(id)sender;
           //[maskimage setMultipleTouchEnabled:YES];
       // [maskimage setUserInteractionEnabled:YES];
        //[maskimage setContentMode:UIViewContentModeScaleAspectFit];
        maskimage.image=[UIImage imageNamed:@"1.png"];
        [imageView addSubview:maskimage];
    -(IBAction)done
        NSLog(@"hiafjdkfj");
        UIGraphicsBeginImageContext(imageView.image.size); 
        CGRect rect1 = CGRectMake(netTranslation.x,netTranslation.y,maskimage.image.size.width , maskimage.image.size.height);
        CGRect rect = CGRectMake(0, 0, imageView.image.size.width, imageView.image.size.height);
        [imageView.image drawInRect:rect]; 
        [maskimage.image drawInRect:rect1]; 
        UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext(); 
        UIGraphicsEndImageContext(); 
        [editingimage setImage:resultingImage];
        [myview addSubview:editingimage];
        [self.view addSubview:myview];
    -(IBAction)back
        [myview removeFromSuperview];
        //[editingimage removeFromSuperview];
    -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
        UITouch *touch = [[event allTouches] anyObject];
        CGPoint location = [touch locationInView:touch.view];
        maskimage.center = location;
    -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
        [self touchesBegan:touches withEvent:event];
    - (void)viewDidUnload
        self.imageView = nil;
        self.maskimage=nil;
        self.takePictureButton = nil;
        self.selectFromCameraRollButton = nil;
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceO rientation
        // Return YES for supported orientations
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    - (void)dealloc {
        [imageView release];
        [images release];
        [takePictureButton release];
        [selectFromCameraRollButton release];
        [super dealloc];
    @end
    but i can not put the hair to the proper place means on edit image when am saving the image please help meee

  • How to save the own fields value in a Database

    Hi all
    We create some customers fields with eewb fields for Service Order, but the value we enter in it, are not saved into the database table CRMD_ORDERADM_H.
    Where and what we have to do to commit the values in the database?
    We are working with CRM2007 WEB UI.
    Best Regards
    Edited by: Luis Felice on Nov 18, 2008 9:14 PM

    Did you check that your new fields have been created in table CRMD_ORDERADM_H?
    If yes, then check the structure of context node BTAdminH in TX GENIL_MODEL_BROWSER.
    If the fields popup in both, then everything with the EEWB should have worked fine.
    The EEWB creates an include structure for the table. This structure is also include in all API (like the CRM_ORDER_MAINTAIN). Additionally it creates function modules that are called by the API and handle the additional fields. Thus you do not have to do any additional commit or coding.
    In case everything is in place and it does not work, you should probably open an OSS. Otherwise let the wizard in the EEWB create the extension again.
    cheers Carsten

  • How to save the edit data temporarily in tabular form while pagination

    Hi,
    I need to hold the edit data temporarily before final submitting the page in apex 4.0 tabular form while navigating the row pagination.
    well i am expecting some easiest method.
    Saroj

    I think you have to read about apex collection.

  • How to stop the subject field displaying in list of mail?

    Sorry for the spelling I am dyslex..
    I like the new layout all virtical in mail 7 BUT in the list of messages it shows the "subject field" how do I stop this field from showing up?
    In the clasic view I can change what fields show up (menu "View" - "Message Attributes" and click the fields I want to see) the only problem with the "clasic" view is the horzontial arangments of two of the panels.  I used to use "widemail" plugin to get the arangment of panels in the mail program in Snow Leopard.
    Apple have made a big thing of seeing the "subject field" in the mail list pannel but for me I have the preview panel open and so the subject and most of the message is displayed there two so I see this info in two places and it all looks a bit crouded.
    Can any one help and in the mean time I will be posting this in the feedback site.
    Steve

    Hello,
    This functionality was recently introduced by the following note:
    https://service.sap.com/sap/support/notes/2044841
    Regards
    Joaquin

  • How to save the editable alv data to another program ?

    hi friends,
    please solve this issue..
    i have one editable alv grid report. after edit my data in the grid..
    i want to
                save those data (edited data )or
                download those data into another internal table or
                pass those data as input to another report program..
    how can i do this ?

    The form switch to edit mode could be :
    form p_edit.
      data : is_fieldcatalog type lvc_s_fcat ,
             it_ucomm        type table of syucomm with header line ,
             v_ucomm         type syucomm.
    * Switch Edit <-> Display
      loop at it_fieldcatalog into is_fieldcatalog.
        check is_fieldcatalog-fieldname ne 'NUM' and
              is_fieldcatalog-fieldname ne 'RCODE'.
        if is_fieldcatalog-edit eq 'X'.
          clear is_fieldcatalog-edit.
        else.
          move 'X' to is_fieldcatalog-edit.
        endif.
        modify it_fieldcatalog from is_fieldcatalog.
      endloop.
    * Change the status of the grid.
      if is_fieldcatalog-edit eq space.
        move '&REFRESH' to v_ucomm.
        call method obj_grid->set_function_code
             changing c_ucomm = v_ucomm.
        call method obj_grid->set_ready_for_input
             exporting i_ready_for_input = '0'.
      else.
        call method obj_grid->set_ready_for_input
             exporting i_ready_for_input = '1'.
      endif.
    * Modify the fieldcatalog.
      call method obj_grid->set_frontend_fieldcatalog
           exporting it_fieldcatalog = it_fieldcatalog.
    * Refresh the display of the grid.
      call method obj_grid->refresh_table_display.
    * Set the column lines number.
      perform p_set_lines_num.
    * Clear the flag control.
      clear v_flag_control.
    * Messages.
      if is_fieldcatalog-edit eq space.
        move 'Passage en mode affichage.' to v_buff.
        perform p_add_message
                using v_buff
                      'ICON_DISPLAY'
      else.
        move 'Passage en mode édition.' to v_buff.
        perform p_add_message
                using v_buff
                      'ICON_CHANGE'
      endif.
    * Inactiv function.
      if is_fieldcatalog-edit eq space.
        set pf-status '100'.
      else.
        move '' to it_ucomm. append it_ucomm.
        set pf-status '100' excluding it_ucomm.
      endif.
    endform.                     " P_EDIT.
    and for the table:
    data : w_id(60).
    move 'ZTOTO' to w_id.
    export it_table[] to memory id w_id.
    in the other program, it's the same with the IMPORT instead of export.

  • How to make the editable col. in alv grid scrollable?

    friends,
        i have made the last col. in my alv grid editable..even though i have declared it as char of length 255, it's showing only 50 characters in the grid..but when i try to type beyond 50 characters, it's not allowing...how to make it scrollable so that it extends beyond 50 char. and capture all the characters typed in that col.? pl suggest..thanks all..
    Sathish. R

    Hi, u can extend the length of your last field.
    LOOP AT t_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN text-001.
            ls_fcat-outputlen = c_10.                    "10
          WHEN text-002.
            ls_fcat-outputlen = c_20.                    "20
          WHEN text-003.                                  "your lastfield
            ls_fcat-outputlen = c_255.                  "255
                "do nothing
        ENDCASE.
    *fixed column
        ls_fcat-fix_column = c_x.
    *changes to take effect
        MODIFY t_fieldcat FROM ls_fcat.
        IF sy-subrc = 0.
          "do nothing
        ENDIF.
        CLEAR ls_fcat.
      ENDLOOP.

  • How to merge the 2 field in alv gride display

    Tables for ALV display
    DATA: it_fieldcat   TYPE  slis_t_fieldcat_alv,
          wa_fieldcat   TYPE  slis_fieldcat_alv,
          wa_layout     TYPE  slis_layout_alv,
          it_exclude    TYPE  slis_t_extab,
          wa_exclude    TYPE  slis_extab,
          it_header TYPE STANDARD TABLE OF zqm_imir_hdr,
          wa_header LIKE LINE OF it_header,
          it_final TYPE STANDARD TABLE OF zqm_imir_itm,
          wa_final LIKE LINE OF it_final,
          it_vcode      TYPE RANGE OF zqm_wtr_itm-vcode,
           wa_vcode      LIKE LINE OF  it_vcode.
    DEFINE m_fieldcat.
      wa_fieldcat-fieldname = &1.
      wa_fieldcat-tabname   = &2.
      wa_fieldcat-seltext_m = &3.
      wa_fieldcat-outputlen = &4.
      wa_fieldcat-col_pos   = &5.
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
    END-OF-DEFINITION.
    DEFINE m_vcode.
      wa_vcode-option   = &1.
      wa_vcode-sign     = &2.
      wa_vcode-low      = &3.
      wa_vcode-high     = ''.
      append wa_vcode to it_vcode.
      clear wa_vcode.
    END-OF-DEFINITION.
    START-OF-SELECTION.
      PERFORM data_retrival.
      PERFORM lead_time_calculation.
      IF it_final[] IS NOT INITIAL.
        PERFORM alv_display.
      ENDIF.
    Display ALV
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          is_layout          = wa_layout
          it_fieldcat        = it_fieldcat
          i_save             = c_x
          it_excluding       = it_exclude
        TABLES
          t_outtab           = IT_OUTPUT[]
        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.
      m_fieldcat: 'ZIMIRNO'  'IT_OUTPUT' text-003 21  0,
                  'PRUEFLOS'  'IT_OUTPUT' text-004 21  1,
                  'ZCRDAT'    'IT_OUTPUT' text-030 9 2,
                  'INITS'     'IT_OUTPUT' text-031 6 3,
                  'SPLIT'     'IT_OUTPUT' text-005 12  4,
                  'WERK'     'IT_OUTPUT' text-006  5 5,
                  'LOSMENGE'  'IT_OUTPUT' text-007 24  6,
                  'MENGENEINH' 'IT_OUTPUT' text-008  15  7,
                  'NAMEVEND'   'IT_OUTPUT' text-009  11  8,
    *& Hypercare - 721600 - IMIR Changes - Start
                 'KONT_PSPNR' 'IT_OUTPUT' text-023  15  7,
                  'POSID' 'IT_OUTPUT' text-023  15  9,
    *& Hypercare - 721600 - IMIR Changes - End
                  'LTEX1' 'IT_OUTPUT'  text-024  24  10,
                  'EBELN'    'IT_OUTPUT' text-010  26  11,
                  'MBLNR'    'IT_OUTPUT' text-011  24  12,
                  'ANZGEB'   'IT_OUTPUT' text-012  17  13,
                  'GEBEH'    'IT_OUTPUT' text-013  4 14,
                  'MATNR'    'IT_OUTPUT' text-014  18 15,
                  'TXZ01'   'IT_OUTPUT' text-015  128 16,
                  'SPECE'    'IT_OUTPUT' text-016  23  17,
                  'VCODE'   'IT_OUTPUT' text-017 24  18,
                  'TAGNO'   'IT_OUTPUT' text-018 10  19,
                  'HEATNO'   'IT_OUTPUT' text-019  11  20,
                  'IDCODE'   'IT_OUTPUT' text-020  7 21,
                  'TCNO'   'IT_OUTPUT' text-021  9 22,
                  'REMARKS'   'IT_OUTPUT' text-022 30 23,
                  'BUDAT'   'IT_OUTPUT' text-025 30 24,
                  'CPUTM'   'IT_OUTPUT' text-026 30 25,
                  'VDATUM'   'IT_OUTPUT' text-027 30 26,
                  'VEZEITERF'   'IT_OUTPUT' text-028 30 27,
                 'ZLTIME'    'IT_OUTPUT' text-029 30 26,
                  'LEADTIME'   'IT_OUTPUT' text-029 30 28.
    DATA : v_unit like T006-MSEHI VALUE 'HR',
           v_FCALID like SCAL-FCALID,
           v_zltim TYPE f,
           v_zltime TYPE p LENGTH 8 DECIMALS 2.
    SELECT SINGLE FABKL INTO v_FCALID FROM T001W WHERE WERKS = s_werks.
    SELECT zcrdat INTO TABLE it_zqm_imir_hdr
           from zqm_imir_hdr
            FOR ALL ENTRIES IN it_final
            where zcrdat EQ it_final-zcrdat.
    SELECT mblnr mjahr budat cputm
          INTO TABLE it_mkpf
          from mkpf
            FOR ALL ENTRIES IN it_final
          where mblnr EQ it_final-mblnr
            AND mjahr EQ it_final-mjahr.
    SELECT prueflos vdatum vezeiterf
          INTO TABLE it_qave
          from qave
            FOR ALL ENTRIES IN it_final
          where prueflos EQ it_final-prueflos.
    SORT it_mkpf    BY mblnr mjahr.
    SORT it_qave    by prueflos.
    SORT it_zqm_imir_hdr  BY zcrdat.
        LOOP AT it_final into wa_final.
          CLEAR: wa_output,wa_mkpf,wa_qave,wa_zqm_imir_hdr.
          MOVE-CORRESPONDING wa_final to wa_output.
    READ TABLE it_zqm_imir_hdr INTO wa_zqm_imir_hdr WITH KEY zcrdat = wa_final-zcrdat
                                                   BINARY SEARCH.
          READ TABLE it_mkpf INTO wa_mkpf WITH KEY mblnr = wa_final-mblnr
                                                   mjahr = wa_final-mjahr
                                                   BINARY SEARCH.
          MOVE wa_zqm_imir_hdr-zcrdat TO wa_output-zcrdat.
          MOVE wa_mkpf-budat TO wa_output-budat.
          MOVE wa_mkpf-cputm TO wa_output-cputm.
          READ TABLE it_qave INTO wa_qave WITH KEY prueflos = wa_final-PRUEFLOS
                                                   BINARY SEARCH.
          MOVE wa_qave-vdatum     TO wa_output-vdatum.
          MOVE wa_qave-vezeiterf  TO wa_output-vezeiterf.
    LV_START_DATE = wa_zqm_imir_hdr-zcrdat.
    LV_START_DATE = wa_mkpf-budat.
    LV_START_TIME =  wa_mkpf-cputm.
    LV_END_TIME   = wa_qave-vezeiterf.
    LV_END_DATE   =  wa_qave-vdatum.
    IF LV_START_DATE IS NOT INITIAL.
       IF LV_END_DATE IS NOT INITIAL.
          CALL FUNCTION 'SD_CALC_DURATION_FROM_DATETIME'
            EXPORTING
              i_date1                =  LV_START_DATE
              i_time1                =  LV_START_TIME
              i_date2                =  LV_END_DATE
              i_time2                =  LV_END_TIME
           IMPORTING
             E_TDIFF                =  LV_DIFF
            E_DATE2_EARLY          =  E_DATE2_EARLY
          EXCEPTIONS
            INVALID_DATETIME       = 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.
    eNDFORM.}
    This is my code unable to merge the to tabs position is on 3rd and 4th.
    need help ......
    thanks,

    Hi,
    From Your code I saw that you called Macro of fieldcat after Calling the ALV Function Did You Check That One.
    Following links may be useful for you ,
    ALV report: How to merge 2 columns into 1 column?
    Hope this information helps You
    Regards,
    Raghava Channooru

  • EDIT field in ALV GRID and on SAVE it has to update the DB Table

    Hi Experts,
    I have searched lot of forums...
    But i had not got the exact solution for this...
    I have multiple records that displayed in the ALV output screen and i had modified more than one record and then click on save.
    It has to modify all the lines that i had changed in the EDITABLE FIELD.
    Can any one help me in doing so...
    Sample code will be more help full....
    Thanks in advance,
    Kruthik

    Hi Kruthik
    Check [=> OO ALV Event DATA_CHANGED <= |http://abaptips.com/?p=70], hope you will get idea.
    Please reply in case of any confusion.
    Thanks and Best Regards,
    Faisal

Maybe you are looking for

  • Calculating the size of each record in a table?

    Hi to all, I trying to create histograms based on the unique record sizes in a particular table. However , in order to do that I need to calculate the size of each record in the table (in kilobytes preferably) and to get a list of unique record sizes

  • Provide Seperate Profit Center in RE-FX using RECN in Condition Type Tab

    Salute Masters!! Adding New Line Item in RE-FX Contract by RECN. While creation of contract , user have to add line item in Condition Tab for added charge, that should reflect in Invoice as a separate line item and Amount should go in Separate G/L &

  • Cant open iTunes - Aaaarrgh!!!

    I have recently downloaded the latest upgrade of iTunes and installed it (in the same place and way that i have installed many previous upgrades). The download is successful, acording to the wizard, but when i click to open the application, a window

  • Can't connect to server on certain web pages

    I can only open certain web pages for some reason. The ones I can't open says can't connect to server. Don't get it. Help please

  • ORA 03113 error creating database

    On Oracle 8.1.7, I've get an ORA 03113 error when creating the database. Pressing ignore leaves it hanging at 90%. I've tried creating db by copying files from CD and creating with custom parameters but same issue. There have been other threads regar