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

Similar Messages

  • After installing 8.2 on my iPad all the apps crash during use. It appears that the iPad saves a version of what I was using because after the app crashes I double press the home button an there is a screen of an older version of the page I was using.

    After installing 8.2 on my iPad (2nd gen) all the apps crash during use. It appears that the iPad saves a version of what I was using because after the app crashes I double press the home button an there is a screen of an older version of the page I was using. I swipe it away and start over, only to have the same thing happen again. I have reinstalled all the apps, rebooted, synced and re-synced with iTunes. This is VERY irritating!

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • I recently bought Macbook pro  and i don't how to download Mp3 from the internet browser. it's easy on PC as you how to clickright button on mouse and then chosse save link or file. any idea how to do this?

    Hi.
    I recenly bought Macbook and as I am new to Apple word I don't know anything about the OS.
    I was trying to download Mp3 from the internet today and I just could not. when I am using PC I just click the right button and save the link or file.
    Please help me. Any idea how to download MP3?

    I had been downloading from that site for many times but from PC. When I use the left button on mouse it will take me to the internet player on my PC but if I use the right button I have to choose 'save file as' and then I save it.
    But on MACbook when I use two fingers on my trackpad there is only few options like and one of them is 'save link as' but not 'save file as'

  • New to using Firefox with MAC: How does one save a single jpeg image from the web (as in a right click on a pc?)

    New to using Firefox with MAC: How does one save a single jpeg from the internet, similar to using the right mouse click on a pc?

    If your question comes about because you have a single button mouse, it's time to visit your local computer store and get a ''real'' mouse for that MAC. I don't "get" Apple, they sell their hardware for almost twice what a comparable PC would sell for - and then they leave out what is probably the most important time saving control, the right-button.
    See this for setting the hidden pref for context menus in Firefox, for Mac's.
    http://kb.mozillazine.org/Ui.click_hold_context_menus
    type '''about:config''' in the URL bar and hit Enter
    Pref Name = '''ui.click_hold_context_menus'''
    Double-click to Toggle to '''True'''

  • Why is the check box for remember passwords grayed out? It used to work now it won't save them.

    Why is the check box for remember passwords grayed out? It used to work now it won't save them.

    It could be because you have Firefox set to not remember any history. Did you do that intentionally? It is set in the Options dialog:
    "3-bar" menu button (or Tools menu) > Options > Privacy
    Perhaps it would work if you choose "Use custom settings for history" and just turn off the specific things you want to turn off.
    Any luck?

  • I am using both PSE 13 and Lightroom 5.  When I use Lightroom as an external editor and save the photo, it shows up in PSE13 as an edited file but does not look any different.  Why doesn't it appear edited?

    I am using both PSE 13 and Lightroom 5.  When I use Lightroom as an external editor and save the photo, it shows up in PSE13 as an edited file but does not look any different.  Why doesn't it appear edited?

    People who have Photoshop, but don't have Lightroom, need ACR so that they can use Raw files. Without ACR they could do nothing with those (they may also like having ACR so that they can work on other kinds of image using the same kinds of adjustments and techniques, as are used with Raw files).
    People who have Lightroom, can get access to Raw files regardless whether ACR is present or not. They can use Lightroom on other kinds of image also, using the same methods. LR can pass images directly into Photoshop without passing via ACR (or else does so transparently, which amounts to substantially the same thing).
    ACR does not, strictly speaking, even need to be installed for this external editing to happen. In fact, not even PS needs to be - since a different image editor can be used instead, while still retaining the Adobe Raw conversion etc.
    Lightroom "subcontracts out" specialised external tasks, in this workflow, but is still your "main contractor": the image is otherwise located, viewed, managed, adjusted/presented and output entirely using LR.
    So IMO we can divide image processing into:
    operations that involve pixels and layers and layer masks and adjustment layers etc (of the kind done inside Photoshop)
    operations that involve parametric edits (of the kind done in ACR where you are not using a Lightroom based workflow; otherwise, done inside Lightroom)
    When PS is called in, that's because those tasks are impossible or unsuitable to do in Lightroom. But those tasks can't be done in ACR either - by definition, since LR and ACR have exactly the same image processing "feature set".
    Lightroom is irrelevant to the Bridge + ACR + PS workflow. This workflow requires both your PS and your ACR to be current enough, to support your Raw format etc.
    ACR and Bridge are irrelevant to the LR + (image editor) workflow. It is in this case, only LR which needs to be current enough to support your Raw format etc.
    RP

  • When I have finished working on an image in Photoshop and I hit the save button it goes instead to the "save as" screen. This never happened in previous Photoshop versions. When I get to Lightroom, I have a grey screen the says "File could not be found."

    When I have finished working on an image in Photoshop and I hit the "save" button, it goes instead to the "save as" screen. This never happened in previous Photoshop versions. When I get to Lightroom, I have a grey screen the says "File could not be found." I then have to go to "locate" to get the image. When I select the correct image, I get a message that it is not the same file name but I am eventually able to access the image. Needless to say this is having a negative impact on workflow!

    The problem with write permissions for the OneDrive folder only shows up in Lightroom 6's export dialogue, that's why it's to irritating. Lightroom 5.7.1 is not having that problem nor does the file explorer. The problem also exists on both of my machines. I will try to check for other problems with the OneDrive troubleshooter though: Running the OneDrive troubleshooter - Windows Help   

  • Dante font used in manuscript - when I try to save as a pdf document in Microsoft Word whole pages change their look, with wide gaps forming between certain paragraphs or sections. This does not happen with other fonts.

    Dante font used in manuscript … when I try to save as a pdf document in Microsoft Word whole pages change their look, with wide gaps forming between certain paragraphs or sections. This does not happen with other fonts.

    OK, we've got it!
    What is happening is that when you use Microsoft's save as PDF in Word, the font isn't embedded even though the font is tagged to allow embedding. Furthermore, Microsoft doesn't properly put the font name into the PDF file such that Acrobat or Reader can readily find the font installed on your system such that the text can be properly displayed and/or printed. Acrobat and Reader attempt to display and/or print the text using a “substitution font” and of course, as they say, YMMV (“your mileage may vary”)!
    I personally submitted the report of this problem (both the embedding and the font name problem) to Microsoft. They acknowledge the bug, tried a fix and provided me a build with it, but it wasn't right. Maybe they will ultimately fix it, maybe they won't. We don't know yet. We do know that if it is fixed, it will be fixed only for Office 2013 (problem occurs with all Office applications since they use the same PDF generation code) and thus such a fix won't help you.
    Adobe Acrobat Standard and Acrobat Pro  both provide an Adobe PDFMaker plug-in to Office applications (including full support for Office 2010) that adds an Acrobat Toolbar as well as a Save as Adobe PDF menu item. The resultant PDF file fully supports embedding of OpenType CFF, TrueType, and Type 1 fonts and in many other ways produces much superior PDF with a full range of PDF generation options not available with the Microsoft PDF. (Note that beginning with Office 2013, Microsoft does not support Type 1 fonts in Office documents at all, even for existing documents!) The Acrobat Office functions are widely used and respected in the end user community and whatever “issues” there are (all software has “issues” of some type - it is a matter of how many and how severe), you should be in much better shape for PDF production that with what you currently are using.
    Good luck and let us know if this resolves your problems. (Note that you can download and install a free fully-functional 30 trial of Acrobat Pro to assure that it meets your needs! You can then buy a license and activate what you already have installed.)
              - Dov

  • HT5071 Can I create a book using the IBooks Author word processing software, save it as a PDF, then have it professionally printed by an offset press to sale in brick and mortar stores? If so, is this procedure free me from any IBooks restrictions?

    Can I create a book using the IBooks Author word processing software, save it as a PDF, then have it professionally printed on an offset press to sale in brick and mortar stores? If so, is this procedure free from any IBooks restrictions?

    It's your content, under your control.
    If you output as an .ibooks file, and you want to sell it, the store is the only outlet, otherwise, you can do as you wish.

  • I use firefox 9, why can not I save as image on google image?

    I use firefox 9, why can not I save as image on google image?

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Hi, I was working on a PDF writing comments using Adobe Reader on a Mac.  I clicked save and got a 'cannot save' message.  I then clicked save as instead, Reader froze and my PDF disappeared.  The only version saved has only my first comment.  Does Adobe

    Hi, I was working on a PDF writing comments using Adobe Reader on a Mac.  I clicked save and got a 'cannot save' message.  I then clicked save as instead, Reader froze and my PDF disappeared.  The only version saved has only my first comment.  Does Adobe Reader save to temporary files that I can access in order to recover my work?  Is there any other way to recover it?  Thanks!

    Hi @Pat Willener,
    since I got the same problem as pdfprincess I hope you can help me. The 'Automatically save document changes to temporary file...' is enabled in my adobe reader.
    A file I worked (commented) on a lot crashed. When I reopened the file, adobe reader didn't ask if I want to restore my changes in this file, as it is written on the help.adobe.com page. Is there any possibility to restore the changes manually from the temporary file?
    Thanks in advance - it is really important for me to restore these changes!!

  • I am using CS6 and when I go to save an image for Web the image does not retain its quality

    I am using CS6 and when I go to save an image for Web the image does not retain its quality. The first week I did this it worked just fine and now the images save very pixely.
    Here is a screenshot of my image on the artboard as I am editing it
    Here is a screenshot of the image as I'm trying to save it for Web
    As you can see, the image becomes pixely. I have tried to save it as every type of png and jpeg but nothing seems to work. I have no idea why it has started to do this. Please help!

    Change None to Art optimized then click apply(alteast in CS5 there was an apply, believe they removed that in CS6 as so many people missed that part).

  • I am using iPhoto 11 mail and cannot add more than one recipient in the 'to' line.  When I put a comma in, the recipient's address is deleted.  If I use ' ' with more than one recipient the save grays out.  Any thoughts?

    am using iPhoto 11 mail and cannot add more than one recipient in the 'to' line.  When I put a comma in, the recipient's address is deleted.  If I use '< >' with more than one recipient the save grays out.  Any thoughts?

    I figured it out.  I needed to fix some errors in my account information.  It works fine now.

  • I am trying to use my iPhoto pictures as my screen saver on my mac book air (lion)... however many of the pictures heads are cut off.  How do I fix this without the pictures looking distorted?

    I am trying to use my iPhoto pictures as my screen saver on my mac book air.  Many of the pictures' heads are cut off.  How do I get the pictures to fit the screen properly without the pictures be distorted?

    Open the screen saver control panel. Right above the preview window there's a popup menu. You'll probably want to set it to "Fit to screen" so the pictures will be resized to show on the display.

  • HT5858 Before IOS7, I was able to double click the menu button and turn off apps to save battery, Is there a way to do this with IOS7?

    Before IOS7, I was able to double click the menu button and turn off apps to save battery, Is there a way to do this with IOS7?

    Sure thing...You're very welcome!
    Thank you for the points!

Maybe you are looking for

  • 3 tier mode in BO 4.0

    Hi all ! How I can connect to server from client pc at  Interactive Analysis in 3 tier mode? Like server:6400(J2EE Portal). In R3 i create deski document in infoview to generate this type of connection. thanks!

  • No internal hard drives seem to work! Please help!

    Hello, I'm really hoping someone can help with this as I am losing my mind! I wanted to upgrade the internal hard drive of my 2009 Macbook Pro from the stock 250GB to a 500GB. The first try was with a Western Digital Scorpio Black (7200 RPM), the sec

  • User option in selection screen of report

    In a report, want to give user an initial option of Calendar year/month OR calendar year/week... Only the one the user wants should be displayed on the selection screen. 1 Is there a way to give user an option while running the query before the selec

  • Can Aironet 1300 Series configure as Bridges and AP in the same time?

    I need to configure another Briding End point to be Access point too. Is it possible?

  • Copy Themes from iWeb 2.0 to 3.0

    Hi , I copied a theme from iWeb 3.0 "Fine Line" to iWeb 2.0. I thought the copied theme would show up in 2.0 but it doesn't. Am I doing something wrong or is it simply not possible to copy a theme the way I did it. I took the theme and thumbnail from