GUI_DOWNLOAD doesnt prompt APPEND option

Dear all
  APPEND option prompt window doesnt appear from    GUI_DOWNLOAD.
Plz help.
Thnx
Moni
  I m using this code
DATA: FILENAME TYPE STRING VALUE 'MULTI_PRINT.pdf',
  PATH TYPE STRING VALUE 'C:\DESKTOP\',
  FULLPATH     TYPE STRING VALUE 'C:\DESKTOP\PDF\MULTI_PRINT.pdf'.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
  EXPORTING
*    WINDOW_TITLE         =
*    DEFAULT_EXTENSION    =
*    DEFAULT_FILE_NAME    =
*    WITH_ENCODING        =
*    FILE_FILTER          =
*    INITIAL_DIRECTORY    =
       PROMPT_ON_OVERWRITE  = 'X'
  CHANGING
       filename             =  FILENAME
       path                 =  PATH
       fullpath             =  FULLPATH.
       USER_ACTION          =
      FILE_ENCODING        =*
EXCEPTIONS
      CNTL_ERROR           = 1
      ERROR_NO_GUI         = 2
      NOT_SUPPORTED_BY_GUI = 3
      others               = 4 .
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    BIN_FILESIZE                    = FINAL_SIZE
    FILENAME                        = FULLPATH
    FILETYPE                        = 'BIN'
    APPEND                          = 'X'
  WRITE_FIELD_SEPARATOR           = ' '
  HEADER                          = '00'
  TRUNC_TRAILING_BLANKS           = ' '
  WRITE_LF                        = 'X'
  COL_SELECT                      = ' '
  COL_SELECT_MASK                 = ' '
  DAT_MODE                        = ' '
    CONFIRM_OVERWRITE               = 'X'
  NO_AUTH_CHECK                   = ' '
  CODEPAGE                        = ' '
  IGNORE_CERR                     = ABAP_TRUE
  REPLACEMENT                     = '#'
  WRITE_BOM                       = ' '
  TRUNC_TRAILING_BLANKS_EOL       = 'X'
IMPORTING
    FILELENGTH                      = FINAL_SIZE
  TABLES
    DATA_TAB                        = T_FINAL_PDF
  FIELDNAMES                      =
EXCEPTIONS
  FILE_WRITE_ERROR                = 1
  NO_BATCH                        = 2
  GUI_REFUSE_FILETRANSFER         = 3
  INVALID_TYPE                    = 4
  NO_AUTHORITY                    = 5
  UNKNOWN_ERROR                   = 6
  HEADER_NOT_ALLOWED              = 7
  SEPARATOR_NOT_ALLOWED           = 8
  FILESIZE_NOT_ALLOWED            = 9
  HEADER_TOO_LONG                 = 10
  DP_ERROR_CREATE                 = 11
  DP_ERROR_SEND                   = 12
  DP_ERROR_WRITE                  = 13
  UNKNOWN_DP_ERROR                = 14
  ACCESS_DENIED                   = 15
  DP_OUT_OF_MEMORY                = 16
  DISK_FULL                       = 17
  DP_TIMEOUT                      = 18
  FILE_NOT_FOUND                  = 19
  DATAPROVIDER_EXCEPTION          = 20
  CONTROL_FLUSH_ERROR             = 21
  OTHERS                          = 22
IF SY-SUBRC EQ 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  MESSAGE S031(ZQOTBANK) WITH 'PDF Generated Successfully'.
ENDIF.
Message was edited by: md monirujjaman

Is this is entire code ? bcos I do not understand the code. You are trying to save a file and then trying to download something to a file . When you already saved the file using the
cl_gui_frontend_services=>file_save_dialog
why are yoiu trying to download again ?
In anycase you should get a prompt that asks you to something like "Do you want to overwrite ?" after you uncommented the CONFIRM_OVERWRITE = 'X' line .
Anu

Similar Messages

  • CONVERT_ABAPSPOOLJOB_2_PDF doesnt prompt to save the filename

    Dear all
       Here with this i m getting the spool but CONVERT_ABAPSPOOLJOB_2_PDF doesnt prompt to save the PDF file . Do i need to use GUI_DOWNLOAD along with this .
      PlllllZZZZZZ...... suggest
        SELECT SINGLE * FROM ZPLH WHERE VBELN = SSORD
                                  AND   POSNR = ITNO.
        IF SY-SUBRC EQ 0.
          DATA :   v_jobcount LIKE tbtcjob-jobcount,
                   ZTEST LIKE TBTCJOB-JOBNAME.
    *-- run in the background
          CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                    jobname          = 'ZTEST'
               IMPORTING
                    jobcount         = v_jobcount
               EXCEPTIONS
                    cant_create_job  = 1
                    invalid_job_data = 2
                    jobname_missing  = 3
                    OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            EXIT.
          ENDIF.
    *-- submit the program in the background
          SUBMIT ZPP_REP_ENCLOSURE_PACKLIST3
            WITH   JOBNO = SSORD
            WITH   LINENO = ITNO
            USER sy-uname
            TO SAP-SPOOL WITHOUT SPOOL DYNPRO
            DESTINATION 'LOHP'
            IMMEDIATELY 'X'
            KEEP IN SPOOL 'X'
            VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
          IF SY-SUBRC = 0.
             * Job scheduled successfully
          ENDIF.
          IF SY-SUBRC = 4.
           *Job scheduling terminated by user
          ENDIF.
          IF SY-SUBRC = 8.
           *Error in job scheduling (JOB_SUBMIT)
          ENDIF.
          IF SY-SUBRC = 12.
           *Error in internal number assignment .
          ENDIF.
    *-- close the job
          CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                    jobcount             = v_jobcount
                    jobname              = 'ZTEST'
                    strtimmed            = 'X'
               EXCEPTIONS
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    OTHERS               = 8.
                IF sy-subrc <> 0.
                    MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
                ENDIF.
           clear tbtcp.
             STEP = 1.
             select single listident from tbtcp
                                    into tbtcp-listident
                                   where jobname = 'ZTEST'
                                   and jobcount =  v_jobcount
                                   and stepcount = step.
            IF SY-SUBRC EQ 0.
              move tbtcp-listident to spool_id.
            ENDIF.
           CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
             EXPORTING
               SRC_SPOOLID                    = SPOOL_ID
               NO_DIALOG                      = ''
              DST_DEVICE                     = 'LOHP' "E_DEVTYPE
              PDF_DESTINATION                = 'LOHP'
            IMPORTING
               PDF_BYTECOUNT                  = BTC
             PDF_SPOOLID                    =
             LIST_PAGECOUNT                 =
             BTC_JOBNAME                    =
             BTC_JOBCOUNT                   =
            TABLES
               PDF                            = T_SPOOL_2_PDF
            EXCEPTIONS
              ERR_NO_ABAP_SPOOLJOB           = 1
              ERR_NO_SPOOLJOB                = 2
              ERR_NO_PERMISSION              = 3
              ERR_CONV_NOT_POSSIBLE          = 4
              ERR_BAD_DESTDEVICE             = 5
              USER_CANCELLED                 = 6
              ERR_SPOOLERROR                 = 7
              ERR_TEMSEERROR                 = 8
              ERR_BTCJOB_OPEN_FAILED         = 9
              ERR_BTCJOB_SUBMIT_FAILED       = 10
              ERR_BTCJOB_CLOSE_FAILED        = 11
              OTHERS                         = 12
           IF SY-SUBRC <> 0.
             MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
        ELSE.
           TEXT02 = ITNO.
           MESSAGE I014(ZQOTBANK) WITH TEXT02.
       ENDIF.
    Thnx
    Moni

    Hi MD,
    I download the result of the function like this :
        call function 'CONVERT_OTFSPOOLJOB_2_PDF'
          exporting
            src_spoolid                    = v_spoolid
            NO_DIALOG                      = 'X'
          IMPORTING
            PDF_BYTECOUNT                  = v_numbytes
          TABLES
            PDF                            = it_pdf.
        call function 'DOWNLOAD'
          exporting
            bin_filesize                  = v_numbytes
            filetype                      = 'BIN'
          importing
            act_filename                  = v_filename
          tables
            data_tab                      = it_pdf.
    Regards
    Frédéric

  • Hey, my ipad is disabled and i cant open. i tried connecting it with itunes in recovery mode to restore it but it wont work it doesnt show and options itunes doesnt detect my ipad in recovery mode. what do i do know? please help!!!

    Hey, my ipad is disabled and i cant open. i tried connecting it with itunes in recovery mode to restore it but it wont work it doesnt show and options itunes doesnt detect my ipad in recovery mode. what do i do know? please help!!!

    If you followed these instructions and you were unable to enter recovery mode, I'm still leaning toward a hardware problem.  Also, since you have IOS-7, read this.  It might help.

  • I just updated my iTunes, and I need to delete photos from my iPod 4, and there is a Photo Library that synced to my iPod when i plugged it into my computer, and now it doesnt have the option to delete them off my iPod. How do I get rid of these photos?

    I just updated my iTunes, and I need to delete photos from my iPod 4, and there is a Photo Library that synced to my iPod when i plugged it into my computer, and now it doesnt have the option to delete them off my iPod. How do I get rid of these photos? I have read other questions that say to plug the iPod into the computer and like un-sync it, but I downloaded the new iTunes and it doesnt have a photos tab. Does anyone know how to solve my problem? Please and Thank You, Megan!

    Just what did you do to the computer?
    It sounds like the iPodf is seening the iTunes libary as a new libary.

  • HT1212 my itunes says it can not sync my ipod touch key in password on the device but my ipod touch says ipod disabled connect to itunes and doesnt give a option for my password how do I unlock my ipod

    my itunes says it can not sync my ipod touch key in password on the device but my ipod touch says ipod disabled connect to itunes and doesnt give a option for my password how do I unlock my ipod

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • My iPod touch is not responding and doesnt give any options says it's disabled for 22,134,252 minutes and not moving

    my iPod touch is not responding and doesnt give any options says it's disabled for 22,134,252 minutes and not moving, any ideas?

    iOS: Unable to update or restore

  • HT2534 im filling in the payment forn from itunes on the computer but t doesnt have a option for 'none'.

    I'm filling in the payment and billing form but it doesnt have the option 'none'.
    Im doing it on the computer

    Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card

  • Jdk131 of wls 6.1 sp2 on Solaris 7 doesnt support -server option?

    Greetings
    I installed, wls 6.1 sp2 on Solaris 7.
    But it seems the built in jdk131 that installed doesnt support
    -server option.
    i checked the jdk131/jre/bin folder, but i dont see any client, server folders...how
    is this possible?
    how to correct this?

    Yes i tried that, but it says, incorrect option, JVM could not be created.
    any was i cd identify is the install binary was correct?
    like any indication in jdk131/jre/bin folder?
    Kumar Allamraju <[email protected]> wrote:
    i think it does.
    Have you tried to start with java -server weblogic.Server?
    Are you getting any errors?
    Kumar
    vinay wrote:
    Greetings
    I installed, wls 6.1 sp2 on Solaris 7.
    But it seems the built in jdk131 that installed doesnt support
    -server option.
    i checked the jdk131/jre/bin folder, but i dont see any client, serverfolders...how
    is this possible?
    how to correct this?

  • Ios 8 update doesnt have the option of switching between networks i.e 2G or 3G network..  pls rectify this issue

    ios 8 update doesnt have the option of switching between networks i.e 2G or 3G network..
    pls rectify this issue

    Why don't you ask your best friend to rectify the issue?  Oh, your best friend isn't Apple?  Well neither are the users on this forum.  APPLE IS NOT HERE

  • HT4623 I purchased an audiobook in I tunes on my computer, but cannot figure out how to download it on my phone....it always lets me download purchases of movies and tv shows but doesnt show an option for audiobooks

    I purchased an audiobook in I tunes on my computer, but cannot figure out how to download it on my phone....it always lets me download purchases of movies and tv shows but doesnt show an option for audiobooks

    Oh alright -- I manage to resolve my own stupidity quite abruptly, actually.
    Shortly after posting this, I annoying took another gander at iTunes Store settings. To my own idiocy, I must have unchecked "Show iTunes purchases in the cloud" at some point. In my defense, though, the availability of songs in iCloud threw me off quite a lot.
    Ha ha -- anyways, if anyone else is having the same problem, check there.

  • HT4972 I hv IPhone 4 with iOS version 4.3.3 (8J2), it doesnt show any option to upgrade to iOS5 or any else. Can you guide how to do it.

    I hv IPhone 4 with iOS version 4.3.3 (8J2), it doesnt show any option to upgrade to iOS5 or any else. Can you guide how to do it.

    After updating iTunes to 10.2.2 it wiped out my iPhone, iPad and iPad2 and it will not restore on another pc in the house.  I spent 6 hours restoring the iPhone but the iPad and iPad2 has taken 6 hours going thru every step in the support recommendations as well as 3  hours on the phone with 2 separate techs today.
    I uninstalled and reinstalled, went thru with the tech and edited the registry as well as the msconfig.  Rebooted the PC's, reinstalled, uninstalled all of the anti virus software and did a limited start-up, all to no avail.
    You cannot reinstall the last working version of iTunes because the library is synced with a later version - so I have 2 dead devices.
    Other friends are experiencing the same problem and I know of 2 dozen others experiencing the same issues.
    Apple needs to fix the latest update of iTunes!

  • Iphone doesnt display the option to reset

    Help!
    When i go into settings/general my iphone doesnt display the option to reset the phone.  Is there any way of fixing this?
    Thanks.

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a rescue email address or a Security Questions issue, then see:
             If you forgot the answers to your Apple ID security questions - Apple Support.
             Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • Snow leopard doesnt prompt me for my admin password... why

    if i go to change something that requires me to "click the lock to make changes" or something along those lines (user account options, software update, etc.) it should as me for privelages, and i usually grant them, but as of a week ago that prompt +_*does not*_+ show up, it automatically denies.
    i've restarted, change my password, and reset my PRAM
    what do i do.

    Try these two threads that provide solutions to problems sounding similar to yours:
    http://discussions.apple.com/thread.jspa?threadID=2134212&tstart=15
    http://discussions.apple.com/thread.jspa?threadID=2138941&tstart=60

  • Im attempting to start up from OSX 10.4.9 back up disc on my Macbook 13inch but it starts up and am able  get to utilities then disk utility but my internal drive doesnt show in options on left can anyone help ?

    Hi all my trusty macbook 13 inch 5 years old has let me down get a box with question mark in it when i switch on , so apple support tells me to try ans start by back up OSX 10.4.9 disk the built in drive doesnt work so i am using an external toshiba drive .
    I switch on holding down c key an apple logo comes on and it starts up im able to acess utilities then disk utility but in the options on the left there is only the Backup disc and the external drive showing my internal mackintosh drive wont show so i cant move further any help

    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • Error when setting prompt as optional

    Hi Gurus of BO.
    I just have started to get my hands on BO and require some assistance.
    I have a requirement to create a report with two filters that should prompt user. One of the filters should be obligate (in this example it is region), and the other should be optional (e.g. the user should be able to see data either on all customers or ane specific customer)
    So? to accomplish this task i created an report and put into the filter of the query my two filters. I first set the filter as obligate - and everything was working fine. But then, when I set the customer filter as optional, my BO started to give me crippy errors:
    A database error occured. The database error text is: Сбой при выполнении запроса MDX SELECT  { [Measures].[Z_CENA], [Measures].[Z_SUMMA], [Measures].[Z_OBEM], [Measures].[Z_NEDO] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [Z_POKUP].[LEVEL01].MEMBERS, [Z_GRUPPOL].[LEVEL01].MEMBERS ), [0CALDAY].[LEVEL01].MEMBERS ), [Z_MANAGER].[LEVEL01].MEMBERS ),  { [Z_NOMENKL].[!+0000000027] }  ),  { [Z_REGION].[Белгород], [Z_REGION].[Брянская область] }  ) DIMENSION PROPERTIES MEMBER_NAME, MEMBER_CAPTION ON ROWS FROM [$Z_SALES]  в связи с ошибкой Системная ошибка в программе CL_RSR_HIERARCHY и FORM MEMUNAMS_TO_MEMBERS-01- (обратите вним. на подр. текст). (WIS 10901)
    Did anyone encountered such error? Any help/input will be much appreciated.
    I tried to search for WIS 10901 over the google - with no success
    Thanks
    Dmitry

    I changed the type of filter and  the error message somehow changed -
    A database error occured. The database error text is: Сбой при выполнении запроса MDX SELECT  { [Measures].[Z_CENA], [Measures].[Z_SUMMA], [Measures].[Z_OBEM], [Measures].[Z_NEDO] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [Z_POKUP].[LEVEL01].MEMBERS, [Z_GRUPPOL].[LEVEL01].MEMBERS ), [0CALDAY].[LEVEL01].MEMBERS ), [Z_MANAGER].[LEVEL01].MEMBERS ), [Z_NOMENKL].[LEVEL01].MEMBERS ),  { [Z_REGION].[Архангельская область] }  ) DIMENSION PROPERTIES MEMBER_NAME, MEMBER_CAPTION ON ROWS FROM [$Z_SALES]  в связи с ошибкой Значение Архангельская область. (WIS 10901)

Maybe you are looking for

  • Does Digital Editions support PDF Portfolios?

    I guess the answer is "no" but does Adobe Digital Editions offer any support for PDF Portfolios?

  • Import differnet tablespace

    How to import dumpfile different tablespace using older import utility (Not impdp utility)? Thanks

  • How to retreive form field values

    I'm using Edge Animate CC 2014, and the examples I'm finding on the forums do not work. Is there something new in the latest version that replaces the following? var messageInfo = inputMessage.attr("value"); Using the code above, does not assign the

  • Selling a copy of FCP..

    What are the rules for me transferring a license if I want to sell my copy of FCP 4 to someone?

  • My calendars were erased today

    I have not upgraded to Lion.  When I opened up my iCal this morning AFTER I synced my iPad all the calendars were gone.  I had about 7 calendars, months of appointments, critical accounts to keep up with, etc. Can I get any of this back?  I still hav