REUSE_ALV_GRID_DISPLAY_LVC can't save variant

Hi I'm using that FM but the SAVE variant button isn't activated.
I tried with all I_SAVE possible values ('X', 'A', 'U'). With and without IS_VARIANT parameter. But it isn't working yet.
The call looks like that:
Maybe the problem is because I'm using a field symbol for internal table? But the data is displayed so I don't think...
Note: Don't tell me to use the new ALV way because my SAP version doesn't have the necessary classes.
  DATA: gs_variant TYPE disvariant.
  gs_variant = sy-cprog.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
      it_fieldcat_lvc                   = gt_fcat
      i_save                            = 'A'
      is_variant                        = gs_variant
    TABLES
      t_outtab                          = <gt_bom_alv>
    EXCEPTIONS
      OTHERS                            = 1.
Thank you.

I think you need to change this:
DATA:
gs_variant TYPE disvariant,
v_repid TYPE sy-repid.
v_repid = sy-repid.
gs_variant-repid = sy-repid. "Change this
  gs_variant = sy-cprog.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
      i_callback_program         = v_repid "Add this
      it_fieldcat_lvc                  = gt_fcat
      i_save                             = 'A'
      is_variant                        = gs_variant
    TABLES
      t_outtab                          = <gt_bom_alv>
    EXCEPTIONS
      OTHERS                            = 1.
BR,
Suhas
Edited by: Suhas Saha on Feb 18, 2010 5:53 PM

Similar Messages

  • How can one save variants for module pool screens.

    hai all,
         i have done a module pool screen for taking information from user..later i leave to list processor and give a report to the user.
      i am testing the program with many input parameters.i don't want to enter the values each time i execute the program.can i not save a variant like i save for normal abap editor programs?
    any other solution ?

    Hii..
    Variants can be created in Selection Screen only...
    For ur Scenario:
    To leave to the list use the Statements
    <b>LEAVE TO LIST-PROCESSING And return .</b>
    then the Data will be automatically retained.
    <b>Reward if Helpful</b>

  • How can I create variant of control query?

    Dear Expert,
    I am using BEx Broadcaster to bradcast query as a report.
    In tab Filter Navigation, I enter the control query, but the variant always gives me "(No Selection Possible)".
    How can I create variant of control query?
    I try to create variant via variable entry page when I excute my query.
    The variable show in table "RSRPARAMETRIZA" but not show in BEx Braodcaster.
    Thank you,
    Zilla

    Hello,
    Please run this control query on the portal and then save variant you require. If you want this variant to be available
    to all users make sure that the user specific flag is unchecked while saving the variant.
    Regards,
    Michael

  • Save variant configuration data with BAPI or FM

    Hi experts,
    I created a PP production order by using a configured material.
    I can see internal object number in table AFPO-CUOBJ.
    I'd like to change and save a value of characteristics by using ABAP.
    Could you tell me it if there is a BAPI or FM to save values of characteristics in variant configuraion?
    BR,

    you can chnage the variant configuration data using below bapi with strcture    order_cfgs_value      =
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument        
          order_header_in       =
          order_header_inx      =
           TABLES
          return                = return_lt
          order_item_in         =
          order_item_inx        =
          partners              =
          partnerchanges        =
          partneraddresses      =
          order_cfgs_ref        =
          order_cfgs_inst       =
          order_cfgs_part_of    =
          order_cfgs_value      =

  • How can I save a facebook photo to a jpg

    how can I save pictures as jpg

    Hi there, and welcome to the site.
    This is a simple process. Head to facebook.com, open up the photo, ctrl click (or right click) and on the popup, click 'Save image As...' or the equivalent for your browser. Enter what you want to call the picture followed by .jpg.
    If you want to call the image Friend, then without quotes, enter 'Friend.jpg'.
    This should work but it may vary from browser to browser.
    Let me know how you get on,
    Regards,
    Nathan
    <Edited by Host>

  • Use button "save" in a dynpro to save "variants"

    Hello,
    I Have a dynpro. I activate the save button but it doesn´t let save a variant.
    How can I do it ?
    Thanks

    this program may be helpful for you
    Ref : Re: Save variant problem
    *   TABLES                                                        *
    TABLES: SPFLI.
    *   TYPE-POOLS                                                    *
    TYPE-POOLS: SLIS.
    *   INTERNAL TABLES                                               *
    DATA: T_RKEY TYPE STANDARD TABLE OF RSVARKEY WITH HEADER LINE,
          T_SELCTAB TYPE STANDARD TABLE OF RSSCR WITH HEADER LINE,
          T_VARI TYPE STANDARD TABLE OF RVARI WITH HEADER LINE,
          IT_EXTAB TYPE SLIS_T_EXTAB,
          WA_EXTAB LIKE LINE OF IT_EXTAB.
    *   VARIABLES                                                     *
    DATA: OK_CODE TYPE SY-UCOMM,
          W_VARIANT TYPE RSVAR-VARIANT,
          W_USER_VARI TYPE RSVAR-VARIANT,
          W_VARI_REPORT TYPE RSVAR-REPORT,
          SEL_VARIANT TYPE RSVAR-VARIANT,
          SEL_VARIANT_TEXT TYPE RSVAR-VTEXT,
          W_REPORT TYPE RSVAR-REPORT,
          VARIANT_EXISTS TYPE C.
    *   SELECTION-SCREEN                                              *
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
    SELECT-OPTIONS: S_CARRID FOR SPFLI-CARRID,
                    S_CONNID FOR SPFLI-CONNID.
    SELECTION-SCREEN END OF SCREEN 101.
    *   INITIALIZATION                                                *
    INITIALIZATION.
    W_REPORT = SY-REPID.
    PERFORM VARIANT_EXISTS.
    *   START-OF-SELECTION                                            *
    START-OF-SELECTION.
      CALL SCREEN 0100.
    *&      Module  STATUS_0100  OUTPUT                               *
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '100' EXCLUDING IT_EXTAB.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT                          *
    MODULE USER_COMMAND_0100 INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN 'SAVE'.
          PERFORM SAVE_VARIANT.
          PERFORM VARIANT_EXISTS.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'GET_VAR'.
          PERFORM LOAD_VARIANT.
        WHEN 'DEL_VAR'.
          PERFORM DELETE_VARIANT.
          PERFORM VARIANT_EXISTS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  SAVE_VARIANT                                        *
    FORM SAVE_VARIANT.
      T_RKEY-REPORT = SY-REPID.
      APPEND T_RKEY.
      CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN'
           EXPORTING
                CURR_REPORT          = SY-REPID
                VARI_REPORT          = SY-REPID
           IMPORTING
                VARIANT              = W_VARIANT
           TABLES
                P_SSCR               = T_SELCTAB
                P_VARI               = T_VARI
           EXCEPTIONS
                ILLEGAL_VARIANT_NAME = 1
                NOT_AUTHORIZED       = 2
                NO_REPORT            = 3
                REPORT_NOT_EXISTENT  = 4
                REPORT_NOT_SUPPLIED  = 5
                OTHERS               = 6.
      T_RKEY-VARIANT = W_VARIANT.
      MODIFY T_RKEY INDEX 1.
      CALL FUNCTION 'RS_RWSET_SAVE_VARIANT'
           EXPORTING
                RKEY    = T_RKEY
           TABLES
                SELCTAB = T_SELCTAB.
    ENDFORM.                    " SAVE_VARIANT
    *&      Form  LOAD_VARIANT                                        *
    FORM LOAD_VARIANT.
      PERFORM CHOOSE_VARIANT CHANGING SEL_VARIANT.
      IF SEL_VARIANT NE SPACE.
        CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
             EXPORTING
                  REPORT               = W_REPORT
                  VARIANT              = SEL_VARIANT
             EXCEPTIONS
                  VARIANT_NOT_EXISTENT = 1
                  VARIANT_OBSOLETE     = 2
                  OTHERS               = 3.
      ENDIF.
    ENDFORM.                    " LOAD_VARIANT
    *&      Form  DELETE_VARIANT                                      *
    FORM DELETE_VARIANT.
      PERFORM CHOOSE_VARIANT CHANGING SEL_VARIANT.
      IF SEL_VARIANT NE SPACE.
        CALL FUNCTION 'RS_VARIANT_DELETE'
             EXPORTING
                  REPORT               = W_REPORT
                  VARIANT              = SEL_VARIANT
                  FLAG_CONFIRMSCREEN   = 'X'
                  FLAG_DELALLCLIENT    = 'X'
             EXCEPTIONS
                  NOT_AUTHORIZED       = 1
                  NOT_EXECUTED         = 2
                  NO_REPORT            = 3
                  REPORT_NOT_EXISTENT  = 4
                  REPORT_NOT_SUPPLIED  = 5
                  VARIANT_LOCKED       = 6
                  VARIANT_NOT_EXISTENT = 7
                  NO_CORR_INSERT       = 8
                  VARIANT_PROTECTED    = 9
                  OTHERS               = 10.
      ENDIF.
    ENDFORM.                    " DELETE_VARIANT
    *       FORM CHOOSE_VARIANT                                       *
    FORM CHOOSE_VARIANT CHANGING L_SEL_VARIANT.
      CALL FUNCTION 'RS_VARIANT_CATALOG'
           EXPORTING
                REPORT               = W_REPORT
                MASKED               = 'X'
           IMPORTING
                SEL_VARIANT          = L_SEL_VARIANT
                SEL_VARIANT_TEXT     = SEL_VARIANT_TEXT
           EXCEPTIONS
                NO_REPORT            = 1
                REPORT_NOT_EXISTENT  = 2
                REPORT_NOT_SUPPLIED  = 3
                NO_VARIANTS          = 4
                NO_VARIANT_SELECTED  = 5
                VARIANT_NOT_EXISTENT = 6
                OTHERS               = 7.
    ENDFORM.
    *&      Form  VARIANT_EXISTS                                      *
    FORM VARIANT_EXISTS.
    CALL FUNCTION 'RS_VARIANT_FOR_ONE_SCREEN'
           EXPORTING
                PROGRAM        = W_REPORT
                DYNNR          = '0101'
           IMPORTING
                VARIANT_EXISTS = VARIANT_EXISTS.
      IF VARIANT_EXISTS EQ 'X'.
        CLEAR: WA_EXTAB, IT_EXTAB.
        REFRESH IT_EXTAB.
      ELSE.
        CLEAR: WA_EXTAB, IT_EXTAB.
        REFRESH IT_EXTAB.
        WA_EXTAB-FCODE = 'GET_VAR'.
        APPEND WA_EXTAB TO IT_EXTAB.
      ENDIF.
    ENDFORM.                    " VARIANT_EXISTS

  • How can i save the output array of the invoke node "commands values" into a specific file

    I must save the setup of vi commands'. I use an invoke node called "command value" wich give me an array with the name of the specific command and his value. How can i save this array into a specific file to load it later if o need. Must i change the array format?
    Thank you

    Hi,
    I have attached two VIs.
    The first one "Ecriture fichier tableau" (writer) permits to collect all control's values in an array (dbl) and to save it as .bin file. You had to convert variant type into dbl type. (You can do the same with string type if you wish. You will save datas as .txt file for example)
    The second VI "Lecture tableau fichier" (reader) permits to retrieve all the datas you saved in the file.
    I think this responds to your question.
    Regards,
    Attachments:
    Control values.zip ‏26 KB

  • How can I save to the same map every time when printing pdfs?

    How can I save to the same map every time when printing pdfs?
    Finder points to the document map even when I chose a different map recently.
    I often print series of pdfs from the print dialog box, I'd like to choose the map to save to and then have all subsequent pdf prints automatically directed to the same map until I decide otherwise.

    that link seems to be broken right now:
    403 Error - Forbidden  - No cred, dude.

  • How can I save multiple titles under the same DVD?

    I use HandBrake to rip DVD's into iTunes. How can I save multiple titles under the same DVD? For instance, I have a Jimi Hendrix documentary that comes with special features, such as concert performances. I would like to have the main feature and the special features saved in my iTunes under the same title, perhaps as different 'tracks' (kind of like how different songs can be saved under the same album).
    Is there a way for me to do this, or am I chasing phantoms?

    *This response is for iPhoto 11 (v9). If you're using an earlier version, please post back and let us know. Troubleshooting steps are not the same for different versions. To find out which iPhoto you have: iPhoto Menu -> About iPhoto)*
    Duplicate the photo first. (Photos -> Duplicate). This means that you will have multiple copies of the master as well as the edited version.
    If you use versions like this often and wish to have only one master then you can do this with Aperture.
    Regards
    TD

  • We have a PC with iTunes that needs the hard drive reformatted. Right now, it can't connect to other computers on the network. Can I save my music to a thumb drive, then re-load when the computer is reformatted?

    We have a Windows XP desktop with iTunes for windows. The hard drive needs to be reformatted. Right now, the computer will not connect to other computers on the network. Can I save my iTunes songs to a thumbdrive, then re-load after reformatting?  How do I do it?

    Copy the entire iTunes folder out to the drive. If it is too big to go as one copy stuff over to another computer in batches. It is important to have not only the media but the library file in order to properly restore your library.
    See also this User Tip. Assuming the machine won't connect to the internet you could download the SyncToy installer on another machine and then transfer it with the thumb drive. If it will connect to the net don't forget to deauthorize the machine before reformatting the hard drive.
    tt2

  • How can i save my individual playlist on itunes on my external hard drive because i want to buy a laptop and install itunes and move all my music and playlist thats on my desktop to my laptop and almost all my music is from a bunch of cd's i own

    how can i save my individual playlist on itunes on my external hard drive because i want to buy a laptop and install itunes and move all my music and playlist thats on my desktop to my laptop and almost all of my music is from a bunch of cds i own

    Hello ryane84
    The easiest and most efficient way to copy your music is to follow the steps under the External drive section. Make sure that you have organized the iTunes library first before you copy it over. Then put the copied iTunes folder in the same Music folder on your computer.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Regards,
    -Norm G.

  • Photoshop CS6 can't save to server after upgrading to Mac OS Yosemite Server from Mac Lion Server

    We recently upgraded our server from a Mac Pro 2008 with OS X Lion Server to a Mac Mini 2014 with LaCie 20TB 5Big Thunderbolt 2 RAID drive. Everything is working fine with the exception of Photoshop. It does it intermittently but once it happens it will continue to do so. We get message like "Can't save to disk because of disk error" and "Can't save file because of program error" . Sometime we are able to do a "save as" and save over it. Most of the time we have to "save as" with a different file name and then rename and recopy the file. We have check permission on all the file as well as the server HD has ignore ownership checked. Again only three things changed. 1) Sever hardware change from Mac Pro to Mac Mini. 2) Server software upgraded from 10.7 Lion to 10.10 Yosemite(both have the latest update). 3) Drive when from internal on Mac Pro to External Thunderbolt 2 LaCie drive. We have no problem with Illustrator or Indesign. Only Photoshop. Anyone with any suggestion is greatly appreciated.

    Unfortunately you seem to be using Photoshop in a way that Adobe discourages, so you may not be getting a lot of helpful advice.
    Networks, removable media | Photoshop | CS4 and later

  • Using tab groups but Firefox 28.0 crashes and even can not save all tabs in archive recently

    Hi. I installed tab groups addon on my firefox 28.0 (firefox portable version) and each group has its tabs. of course. Problem is that Firefox crashes when i work on a group with the tabs and even can not save all tabs in archive as MAFF recently too. When i try to save all tabs in archive as... i choose the name and hit save and wait but after some time this crashes too. Last time i saved all my tabs and groups as MAFF or other file was end of april and since then i can not save them anymore because of the crashing.
    I read on the help site to delete Firefox then reinstall ect. to fix problems but I DO NOT want to erase my groups with their tabs as i chose this solution working with group tabs as it would be to hard on my cpu when i use for each group a different browser for example.
    Please help me fix this problem with the crashes but without loosing my groups and its tabs as they are all important and do not wish to erase them as i use them all.
    Thanks and hope for a soon reply :)

    Can you give me your crash reports?
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and paste them into your response here.

  • Can I save data in a snapshot from signal express 2013 LE?

    Can I save data (in txt or excel format) from a snapshot from signal express 2013 LE?  My data buffer is too larege to export to excel.  When I try to take a snapshot, I do not see any data.  Are snapshots supported in the LE mode?  This is the free version that comes with the USB 6009 ADC.

    Yes, the snapshot function is available for SignalExpress 2013 LE. Does the snapshot function as intended when you try other projects?
    Daniel P.

  • On my macbook pro when opening a page i can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success

    on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?

    Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
    Clinton

Maybe you are looking for