Qmake-qt4 generated Makefile calls GNU strip on program icon

Hi!
One of the packages I maintain is a Qt4 application: GoldenDict. When calling qmake-qt4 to generate the Makefile, the following two targets are created:
install_icons: first FORCE
@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/pixmaps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/pixm\
aps/
-$(INSTALL_PROGRAM) /home/tamisier/arch-packages/goldendict-git/src/goldendict/redist/icons/gold\
endict.png $(INSTALL_ROOT)/usr/share/pixmaps/
-strip $(INSTALL_ROOT)/usr/share/pixmaps/goldendict.png
install_desktops: first FORCE
@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/ || $(MKDIR) $(INSTALL_ROOT)/usr/share\
/applications/
-$(INSTALL_PROGRAM) /home/tamisier/arch-packages/goldendict-git/src/goldendict/redist/goldendict\
.desktop $(INSTALL_ROOT)/usr/share/applications/
-strip $(INSTALL_ROOT)/usr/share/applications/goldendict.desktop
Both targets are calling strip, which results in the following errors when running make install:
install -m 755 -p /home/virtualtam/arch-packages/goldendict-git/src/goldendict/redist/icons/goldendict.p\
ng /home/virtualtam/arch-packages/goldendict-git/pkg/goldendict-git/usr/share/pixmaps/
strip /home/virtualtam/arch-packages/goldendict-git/pkg/goldendict-git/usr/share/pixmaps/goldendict.png
strip:/home/virtualtam/arch-packages/goldendict-git/pkg/goldendict-git/usr/share/pixmaps/goldendict.png:\
Unable to recognise the format of the input file
make: [install_icons] Error 1 (ignored)
install -m 755 -p /home/virtualtam/arch-packages/goldendict-git/src/goldendict/redist/goldendict.desktop\
/home/virtualtam/arch-packages/goldendict-git/pkg/goldendict-git/usr/share/applications/
strip /home/virtualtam/arch-packages/goldendict-git/pkg/goldendict-git/usr/share/applications/goldendict\
.desktop
strip:/home/virtualtam/arch-packages/goldendict-git/pkg/goldendict-git/usr/share/applications/goldendict\
.desktop: Unable to recognise the format of the input file
make: [install_desktops] Error 1 (ignored)
The error does not prevent the package from being built, but it would be nice to not have it at all...
Is there a way to tell qmake-qt4 not to strip icons and .desktop files?

Yes, I thought of patching the Makefile too, but I'm wondering if it is possible to do it the clean way by passing an option to qmake... In the generated makefile, there is a $STRIP variable that defines the utility for stripping, but in the Makefile, though it is passed as an option for compilation targets, it is not used for "resources" such as icons, where the call to "strip" is hardcoded.

Similar Messages

  • How to generate a PDF document from ABAP program

    Hi experts,
    I have arequirement where in i need to create a PDF document using program. I have all the data collected into tables and i have used the calss CL_FP_PDF_OBJECT.
    A pdf document is successfully created, but unable to open it because of some error. I guess some encryption is missing.
    As an alternative I have created a smartform and generated its OTF data in my program and created a PDF. This is working fine.
    But as per my requirement, i cannot go for a smart form.
    Any help to resolve this issue will be highly appreciated.
    Thanks & regards,
    Asrar Ahamed MA
    Infosys Tech. Ltd. INDIA

    Hi Asrar ,
    create a report with this Copy and give your program name in the selection screen whose output need to be in PDF.
    *report  zanusha_spool_to_pdf.
    ---TABLES----
    tables:
      tsp01.
    ---STRUCTURES---
    data:
      mstr_print_parms like pri_params,
      mc_valid(1)      type c,
      mi_bytecount     type i,
      mi_length        type i,
      mi_rqident       like tsp01-rqident.
    ---INTERNAL TABLES---
    data:
      mtab_pdf    like tline occurs 0 with header line,
      mc_filename like rlgrap-filename.
    ---SELECTION SCREEN---
    parameters:
      p_repid like sy-repid, " Report to execute
      p_linsz like sy-linsz default 132, " Line size
      p_paart like sy-paart default 'X_65_132'.  " Paper Format
    start-of-selection.
      concatenate 'c:\'
                  p_repid
                  '.pdf'
        into mc_filename.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      mstr_print_parms-linsz = p_linsz.
      mstr_print_parms-paart = p_paart.
    *-- Make sure that a printer destination has been set up.
    *-- If this is not done the PDF function module ABENDS
      if mstr_print_parms-pdest = space.
        mstr_print_parms-pdest = 'LOCL'.
      endif.
    *-- Setup the Print Parmaters
      call function 'GET_PRINT_PARAMETERS'
        exporting
         authority              = space
          copies                 = '1'
         cover_page             = space
         data_set               = space
         department             = space
         destination            = space
          expiration             = '1'
         immediately            = space
         in_archive_parameters  = space
         in_parameters          = space
         layout                 = space
         mode                   = space
          new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
        importing
          out_parameters         = mstr_print_parms
          valid                  = mc_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
      submit (p_repid) to sap-spool without spool dynpro
                       spool parameters mstr_print_parms
                       via selection-screen
                       and return.
    *-- Find out the spool number
      perform get_spool_number using sy-repid
                 sy-uname
        changing mi_rqident.
    *-- Convert Spool to PDF
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = mi_rqident
          no_dialog                = space
          dst_device               = mstr_print_parms-pdest
        importing
          pdf_bytecount            = mi_bytecount
        tables
          pdf                      = mtab_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.
    *-- Download the file
      call function 'DOWNLOAD'
        exporting
          bin_filesize = mi_bytecount
          filename     = mc_filename
          filetype     = 'BIN'
        importing
          act_filename = mc_filename
        tables
          data_tab     = mtab_pdf.
          FORM get_spool_number *
          Get the most recent spool created by user/report              *
    -->  F_REPID               *
    -->  F_UNAME               *
    -->  F_RQIDENT             *
    form get_spool_number using f_repid
         f_uname
                    changing f_rqident.
      data:
        lc_rq2name like tsp01-rq2name.
      concatenate f_repid+0(9)
                  f_uname+0(3)
        into lc_rq2name.
      select * from tsp01 where  rq2name = lc_rq2name
      order by rqcretime descending.
        f_rqident = tsp01-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear f_rqident.
      endif.
    endform." get_spool_number
    Thanx
    Anusha.

  • Test call of transport control program (tp) ended with return code 0232

    Hi Gurus,
    while releasing a request am facing this fallowing error :
    Calling the transport control program tp
       "tp EXPCHK SIDK901840 pf=
    HOSTNAME\sapmnt\trans\bin\TP_DOMAIN_SID.PFL -Dtransdir=\"
    which checks the export requirements, returned the following information:
    Return code from tp: 0232
    Error text from tp: ERROR: Connect to TI6 failed (20110131145153, prob..
    and i have checked the all requirements transport..all are fulfilled..
    Can any body tell me the solution.
    Regards,
    Kittu.

    Hi Juan,
    Thanks for your reply. I cant see tp import log because Request itself is not yet released and in tp system log it says that
    ERROR: Connect to SID failed (20110131102838, probably wrong environment).and the value of DIR_TRANS is
    HOSTNAME\sapmnt\trans.
    Please suggest me what to do to solve this issue.
    Regards,
    Kittu.

  • Test call of transport control program (tp) ended with return code 0200 Message no. TK094

    Hello Expert,
    My SAP System environment as follow
    SAP Product : SAP NetWeaver 04
    Operating System : Windows 2003 32 bit
    SAP Database : MS SQL 2005 32 bit
    I have installed SAP NetWeaver 04 system with system copy option. I have installed Application server & Database server on different physical server. App server : SSC2PAS3SFWBW and Database Server : SSC2PAS3SFSQW1.
    After SAP NetWeaver 04 installation with system copy I have done TMS configuration with virtual system for a test, It is working fine but while releasing request form SFD system (Development system) it get error  “Test call of transport control program (tp) ended with return code 0200. Message no. TK094”
    I have reconfigured the TMS and check but it can’t help. TR gets release and import with OS level but at SAP level it gets error.
    Trans --> Log
    1 ETP199 ######################################
    1 ETP199X######################################
    1 ETP182 CHECK WRITEABILITY OF BUFFERS
    1 ETP101 transport order     : "SFDK905838"
    1 ETP102 system              : "SFD"
    1 ETP108 tp path             : "tp"
    1 ETP109 version and release : "340.16.72" "640"
    1 ETP198
    2EETP128 No target system defined. "SFDK905838" is not a transport request.
    1 ETP182 CHECK WRITEABILITY OF BUFFERS
    1 ETP110 end date and time   : "20140602150208"
    1 ETP111 exit code           : "12"
    1 ETP199 ######################################
    Steps for Reconstruction                                            
    # Upgraded latest SAP Kernel Non-Unicode 640_Rel Patch level 404
    # Reconfigured the TMS
    # Full User Permission has been set to all SAP Directory.        
    Rgds,
    Ashok      

    Hi Ashish,
    I have removed virtual system form TMS and configured with Development & Production system, but the same error. Not able to release TR.
    SLOG as below.
    ERROR SFDK905832           SFD f 0012 20140602090930 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602093923 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602094059 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602102854 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602103633 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602104142 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602111140 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602112723 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602113109 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602113704 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602113722 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602113753 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905832           SFD f 0012 20140602113809 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905834           SFD f 0012 20140602125959 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905834           SFD f 0012 20140602130035 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    START EXPORT PREPARATION   SFD e      20140602132917              sfdadm       SSC2PAS3SFWBW 20140602132916001358
    START tp_getprots          SFD E      20140602132917              sfdadm       SSC2PAS3SFWBW 20140602132916001358
    STOP  tp_getprots          SFD E      20140602132920              sfdadm       SSC2PAS3SFWBW 20140602132916001358
    STOP  EXPORT PREPARATION   SFD e      20140602132920              sfdadm       SSC2PAS3SFWBW 20140602132916001358
    ERROR SFDK905836           SFD f 0012 20140602133526 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905836           SFD f 0012 20140602133540 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140602144313 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140602144350 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140602144430 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140602150202 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140602150208 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140603080634 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140603081006 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140603083952 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905838           SFD f 0012 20140603084005 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603091608 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603091617 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905842           SFD f 0012 20140603091826 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603093805 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603101944 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603102709 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603114753 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603121948 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603122039 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603123438 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603135937 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603140114 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603140233 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603140339 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603141743 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905840           SFD f 0012 20140603150924 default_user BASIS@ORIGIN SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603152403 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603152753 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603153518 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603162013 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603162544 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603162639 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603162755 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603163347 default_user A559420      SSC2PAS3SFWBW                    
    ERROR SFDK905844           SFD f 0012 20140603163740 default_user A559420      SSC2PAS3SFWBW                    
    Rgds,
    Ashok

  • Error:        Test call of transport control program (tp) ended with return

    Hi Experts,
    When we are trying to transport Request.
    Error:        Test call of transport control program (tp) ended with return code 0208
    in STMS what are the steps to fallow to just back up the code.
    Any Solutions is Greatly Appreciable...
    Thanks in Advance,
    Ram,

    RAM,
    check these links
    http://www.sapfans.com/forums/viewtopic.php?f=12&t=326264
    Re: tp ended with error code 0208
    Please post the question in relevant forums
    Thanks
    Bala Duvvuri

  • Error: Test call of transport control program (tp) ended with return code 0

    Hi Experts,
    When we are trying to transport Request.
    Error: Test call of transport control program (tp) ended with return code 0208
    in STMS what are the steps to fallow to just back up the code.
    Any Solutions is Greatly Appreciable...
    Thanks in Advance,
    Ram,

    Hi,
    a)If your system is UNIX check /usr/sap/trans is mounted or not?
    b)After configuring TMS did you save and activate?that can be one reason.
    c)tp might be corrupted.u need to upgrade your tp. (or you can upgrade to the latest kernel)
    Please check the below link
    could not start transport control program tp
    However as suggested by NIbu, you should restart the server once before doing any other checks
    Thanks
    Debdeep
    Edited by: Debdeep  Ray on Jul 13, 2009 4:28 PM

  • Test call of transport control program (tp) ended with return code 0249

    Hi,
    When i release a TR i get the following error
    Pls let me know of what can be the reason for the same
    I did a kernel upgrade 2 days back
    Test call of transport control program (tp) ended with return code 0249
    Message no. TK094
    Diagnosis
    Your transport request could not be exported, since all requirements were not fulfilled.
    Calling the transport control program tp
       "tp EXPCHK BWDK900308 pf=
    WDBSSAPBWD01\sapmnt\trans\bin\TP_DOMAIN_BWD.PFL -Dtransdi"
    which checks the export requirements, returned the following information:
    Return code from tp: 0249
    Error text from tp: ERROR: No connect due to DbSl Load Lib Failure
    System Response
    Further processing is terminated.
    Procedure
    Check the following points:
    u2022     Feasibility of the transport control program tp
    u2022     Parameter settings in the transport profile
    u2022     Availability of the transport directory and the subdirectories (cofiles, data, log, sapnames, bin)
    u2022     Write authorization for the subdirectories
    u2022     Write authorization for the files of the subdirectories cofiles, data, log, sapnames
    Release the request again when the error has been removed

    Hi Balaji,
    End of your question contains the areas to be varified.
    Your SAP seems to be installed in windows environment
    Check transport profile paramater and file permissions.
    Try to browse the directory
    WDBSSAPBWD01\sapmnt\trans\bin\ from start->run
    Check with tp connecting to DB  with tp connect <SID>
    chceck file permission to datafile and cofiles (in case of OS UNIX)
    Regards,
    Ganesh

  • Test call of transport control program (tp) ended with return code 0212

    Hi All,
    Your transport request could not be exported, since all requirements
    were not fulfilled.
    Calling the transport control program tp
       "tp EXPCHK DEVK905090
    pf=
    ord-sapdev\sapmnt\trans\bin\TP_DOMAIN_DEV.PFL -Dtransdir="
    which checks the export requirements, returned the following
    information:
    This is the error i got.. Please let me know how to solve this issue..
    Thanks & Regards,
    Santhosh

    Hi Santhosh,
    you can check it out in STMS
    wht you can do is:
    Run Tcode STMS > Overview imports (F5) > you will find all import queues > then click on the import queue in which u want to see the status of transport (DEV , QAS , PRD )
    then find out the transport no > click on that > then click on logs or press ( ctrl + f4)
    If the Return Code is higher than 0012 then it says that a critical error has occurred, probably not caused by the contents of the request. You must inform your system administrator.
    Hope this information will help you.
    Regards,
    SB.

  • How do we call smartforms in abap program or web services

    how do we call smartforms in abap program or web services
    How many types of smartforms are there?
    points will be rewarded

    Hi
    See this sample program
    Using the fun module smartform is called from the program
    Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    <b>call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'</b>
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function <b>FM_NAME</b>
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Code to call url in abap program

    code to call url in abap program using cl_http requests and save the outcome to a location  in a file

    See the below program
    REPORT zbrowser .
    TABLES : sscrfields.
    INCLUDE .
    CONSTANTS: htmlcntl_eventid_on_navigate TYPE i VALUE 1.
    CONSTANTS: htmlcntl_eventid_navigate_com TYPE i VALUE 2.
    DATA : h_html_ctrl TYPE cntl_handle,
    repid TYPE sy-repid,
    dynnr TYPE sy-dynnr,
    cmd TYPE sy-ucomm,
    flag,disp.
    DATA : it_exclude LIKE TABLE OF rsexfcode WITH HEADER LINE.
    SELECTION-SCREEN : FUNCTION KEY 1,
    FUNCTION KEY 2,
    FUNCTION KEY 3,
    FUNCTION KEY 4,
    FUNCTION KEY 5.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 2
    SELECTION-SCREEN COMMENT 45(50) comment1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(28) comment2 FOR FIELD url.
    SELECTION-SCREEN POSITION 31.
    PARAMETERS : url(1064) LOWER CASE .
    SELECTION-SCREEN PUSHBUTTON 79(4) open USER-COMMAND open.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    comment1 = 'ABAP INTERNET EXPLORER'.
    comment2 = 'Enter URL/Filename To Open :'.
    open = icon_transfer .
    sscrfields-functxt_05 = icon_sap.
    sscrfields-functxt_04 = icon_booking_stop.
    sscrfields-functxt_03 = icon_refresh.
    sscrfields-functxt_02 = icon_arrow_right.
    sscrfields-functxt_01 = icon_arrow_left.
    repid = sy-repid.
    dynnr = '1000'.
    it_exclude-fcode = 'ONLI'.
    APPEND it_exclude.
    it_exclude-fcode = 'INFO'.
    APPEND it_exclude.
    *Changing GUI status
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
    p_status = sy-pfkey
    p_program = repid
    TABLES
    p_exclude = it_exclude.
    CALL FUNCTION 'CONTROL_INIT' .
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_CREATE'
    EXPORTING
    owner_repid = repid
    link_repid = repid
    dynnr = dynnr
    handle = h_html_ctrl
    EXCEPTIONS
    control_install_error = 1
    create_error = 2
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 3
    OTHERS = 3
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_INIT'
    EXPORTING
    h_control = h_html_ctrl
    left = 1
    top = 2
    width = 143
    height = 37
    register_event_on_navigate = 'X'
    cb_form_navigate_complete = 'ON_CONTROL_EVENT'
    EXCEPTIONS
    cntl_system_error = 1
    cntl_error = 2
    dp_create_error = 3
    dp_install_error = 4
    dp_error = 5
    create_browser_error = 6
    init_error = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN.
    cmd = sscrfields-ucomm.
    CASE cmd.
    WHEN 'OPEN'.
    PERFORM load_html_page.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN 'FC01'. "BACK
    CALL FUNCTION 'HTMLCNTL_GO_BACK'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 4
    PERFORM get_current_url.
    WHEN 'FC02'. "FORWARD
    CALL FUNCTION 'HTMLCNTL_GO_FORWARD'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC03'. "REFRESH
    CALL FUNCTION 'HTMLCNTL_DO_REFRESH'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC04'. "STOP
    CALL FUNCTION 'HTMLCNTL_STOP'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    WHEN 'FC05'. "GO TO HOME
    CALL FUNCTION 'HTMLCNTL_GO_HOME'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN OTHERS.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 5
    CALL FUNCTION 'CONTROL_DISPATCH'
    EXPORTING
    fcode = cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    ENDCASE.
    CLEAR cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR url.
    PERFORM get_file_name.
    PERFORM load_html_page.
    *& Form get_page_name
    Get Page Name
    FORM get_file_name.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    def_path = 'C: '
    mask = ',.,..'
    mode = 'o'
    title = 'Browse to Open'
    IMPORTING
    filename = url
    RC =
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    ENDFORM. " get_page_name
    *& Form load_html_page
    TO load the file (URL)
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 6
    FORM load_html_page.
    CALL FUNCTION 'HTMLCNTL_SHOW_URL'
    EXPORTING
    h_control = h_html_ctrl
    url = url.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    flag = 'X'.
    ENDFORM. " load_html_page
    *& Form get_current_url
    Get Current URL
    FORM get_current_url.
    CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL'
    EXPORTING
    h_control = h_html_ctrl
    IMPORTING
    url = url.
    ENDFORM. " get_current_url
    Callback form for the event 'NavigateComplete'
    callback on_control_event.
    CALL FUNCTION 'CONTROL_GET_EVENT_PARAM'
    EXPORTING
    h_control = h_html_ctrl
    param_id = 0
    CHANGING
    return = url.
    PERFORM get_current_url.
    endcallback.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Is it possible to call website from ABAP Program?

    Hi Experts,
           Is it possible to call website from ABAP Program?
    It is very Urgent Help me.
    Regards,
    Ashok.

    Hi,
    Check the following program:
    REPORT ZURL NO STANDARD PAGE HEADING.
    DATA: BEGIN OF URL_TABLE OCCURS 10,
    L(25),
    END OF URL_TABLE.
    URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE. HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.
    Regards,
    Bhaskar

  • How to call a Standard SAP Program in Zprogram.

    Hi,
    how to call a SAP Standard program in SAP Program?
    Do we have to use any funtion module and pass paramters?
    I want to call a Standard SAP prg in to my prgram? can anyone explain me or give the piece of code to call standard prg.
    Thanks & Regards

    Again, ABAP related questions should be asked in the ABAP forum.
    To answer you question,  if the standard program is a report program, you can use the SUBMIT statement and pass parameters using the WITH Extention.
    Submit <report>
          with p_fld = 'X'
              and return.
    Please make sure to award points for helpful answers and mark your posts as solved when solved completely.  Thanks.
    Regards,
    RIch Heilman

  • What handler is called when a Status-Bar-Icon is clicked in Cocoa-Applescript?

    In Cocoa-Applescript Xcode, what handler is called when the Status-Bar-Icon for my app is clicked? Are there any variables or connections that I have to make?

    Thanks Red_menace! I don't know what the Apple community would do without you.
    For others viewing this question, the following is the proper format, for Cocoa-Applescript:
    property NSStatusBar : class "NSStatusBar"
    property StatusItem : ""
    on applicationWillFinishLaunching_()
    set StatusItem to NSStatusBar's systemStatusBar's statusItemWithLength_(current application's NSSquareStatusItemLength)
    StatusItem's setAction_("myAction:")
    end applicationWillFinishLaunching_
    on myAction_()
    say "Hello!"
    end myAction_
    Where "myAction:" is the action that you want to call when the Status-Bar-Item is clicked. It should also be noted that this handler will not be called if a menu or view is already linked to it's click action.

  • Creating a screen in report program and calling that screen in program.

    Hi,
    I have a report program and I want to give output in different screen.
    can any one tell me how to create a screen in executable program and calling that screen in program in END-OF-SELECTION for displaying results.
    Thanks a lot.
    Kiran

    Hi,
      Open your program in SE80. Right click on your program. Click CREATE->Screen menu. This will allow you to create screen for the program. 
    In the End-of-selection event call the screen using the  commands CALL SCREEN or LEAVE TO SCREEN or SET SCREEN.
    CALL SCREEN
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba4e635c111d1829f0000e829fbfe/content.htm
    LEAVE SCREEN/SET SCREEN
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbab3635c111d1829f0000e829fbfe/content.htm
    Regards,
    Vara

  • Calling a module pool program screen to an executable program

    Hi gurus,
    I have created a executable program to use selection-screen and want to see my output in module pool program where I have designed table control according to my requirement.
    How can I call the module-pool program screen from an executable program?
    Any help?
    Regards
    Mac

    Hi Mac,
    I think you can proceed with a report program alone . There you create a screen with the table control to populate your result.
    In the report program, after getting values for internal table for your display, just call the said screen.
    i.e.
    CALL SCREEN <screen number>.
    Hope this may help you.
    Regards,
    Smart Varghese

Maybe you are looking for

  • When using Message Filters on an IMAP account I often get duplicate messages in my local folder where important messages are put. How can I stop this?

    Since switching to IMAP and using message filters, I often get duplicate messages in my local folders. I think this is a bug. That is my guess as to what is happening. When the IMAP part starts syncing with the server to fill in the inbox, the messag

  • Getting missing method error - first attempt at arrays

    I'm trying to work with arrays for the first time ever - I understand the concept, but can't quite get the syntax down. Here is the class which won't compile and is giving me a missing method body or declare abstract message - please help me understa

  • Photo gallery intergration with web app

    I want to create a web app where If I create a new item, that automaticly will create a new photo gallery. Also this photo gallery will be automaticly linked in a field with the photo gallery code. Is this possible? Yes, How can I achieve this?

  • Caching data read from database

    I have a big performace problem in our J2EE application. We use jsp and servlets to process a request. Servlet gets the results from database which are stored in a vector of dataobjects and vector is stored in session. We display only 20 rows in jsp

  • Itune card not properly activated

    Hi, please help me, i bought itunes gift card and try to redeem it, the code was ok but i cant redeem it and shows a message "The gift certificate or prepaid code you entered has not been properly activated. please contact itunes store customer supor