Is there any program to re-start workflow?

Yesterday our system was crashed, there are a lot to transaction no workflow, even no any work items. We can't use transaction SWPR and SWPC to re-start workflow.
We only can use transaction SWUS to start workflow. But there are too many transactions, we can't start them one by one. Is there any program to start workflow ?
Thanks,
Shirley

HI,
Refer to the link.
Function module to restart workflow?
Regards
Sumit Agarwal

Similar Messages

  • Is there any script to restart the workflow services

    Hi
    Is there any script to restate the workflow services in 11i and R12
    Regards

    Hi,
    Please see (Note: 743264.1 - How to Stop/Start Workflow Service Containers From Command Line).
    Regards,
    Hussein

  • Is there any program to change the color of requests

    Hi,
    I want to know is there any program to change the traffic color of requests.
    It is showing wait time until 'next months' date'.
    The option to change time out is greyed out in the Infopackage schedueler.
    Please sugegst anything.

    In RSMO Settings -> incorrect waiting time for request -> Change the time
    Regards,
    B

  • Is there any program to read the archived information structrue data ?

    Hi,
    The tcode MCSX can archive information structure, however it can't read the archived data, is there any program has this function?
    Thanks.

    Hi
    You may look into some of the FMs mentioned below.
    ARCHIVE_GET_NEXT_OBJECT
    ARCHIVE_OPEN_FOR_READ
    ARCHIVE_READ_OBJECT
    ADDRESS_READ_ARCHIVE_OBJECT
    Also in SE37, you can put a F4 on ARCHIVE to get some FMs for this purpose.
    You can consult with your technical guy, who can give some insights into this.
    Hope this helps you.
    Reward if this helps.

  • Is there any program i can use to batch delete the inbound delivery ?

    Hello, everyone.
        Is there any program i can use to batch delete the inbound delivery ? Thanks.
    Xinzhou gao.

    Hi,
       VL66 is used for deleting temporary inbound deliveries that have been marked with the deletion flag in the database, the temporary deliveries should have the deletion flag selected in the database, but i want to delete the normal inbound delivery without deletion flag now, is there any  other solutions? Thanks.
    Xinzhou gao.

  • Is there any program to print or save a form as PDF having a spool no.

    Hi all,
    I have a spool no. for a form.
    I want to print this or save this as a PDf file so that i can print with local printer.
    Is there any program to do this.
    thanks in advance.

    Hi use program RSTXPDF4.
    hope your problem is solved please reward.
    Amit.

  • Is there any Program available to Copy a package from one System to Another

    Hi all,
    Is there any Program available to Copy a package from one System to Another ?
    Thanks in advance
    Raghu ram

    Hi,
    Put the Package into a TR using transaction SE80.
    Provide the TR no. to BASIS consultant & ask him to provide the file of that TR.
    Import the TR file in another system.
    Thats it.
    Best regards,
    Prashant

  • Is there any programs to help replace my homeschool's ipad2 that was stolen from our classroom when i had a heartattack and left with the ems?

    Are there any programs to help replace my homeschool's ipad2 that was stolen when i had a heartattack recently  and had to leave with the ems.....?

    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
     Cheers, Tom

  • HT3775 Is there any program than converts .pvm files to files that can be played by Quick time player?(I own a mac)

    Is there any program than converts .pvm files to files that can be played by Quick time player?

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • Is there any program which allows a gaming app purchased through itunes to be played on a laptop?

    I purchased a slot app through itunes for my iphone.  Is there any program which allows this app to be played on my laptop?  What does imatch do?

    If you mean iTunes Match, that is strictly for Music. iOS applications cannot be run on a Windows machine (entirely different operating systems). Check the app developers web site to see if they offer a windows version. There may be an app/Windows application pair that allows you to access the iPhone from the PC in teh app store, but I'm not aware of one.

  • Is there any function module to trigger workflow template

    Hi,
    I have created a workflow template in tcode PFTC, which i am using to send email, this workflow needs to be triggered once the document is posted, there are no events being triggered at that stage, My query is 'Is there any function module to trigger this workflow template from the user exit'?.
    Thanks in Advance
    Santosh

    Use FM
    SAP_WAPI_START_WORKFLOW.
    or if you have triggering event for the wflow use
    SWE_EVENT_CREATE
    SAP_WAPI_CREATE_EVENT
    Thanks
    Arghadip

  • Is there any Program for Perfornance Calculation?

    Hi,
    Is there any standard program for calculating ABAP program performance? Please help me in this.
    Thanks in Advance.
    Siva Sankar.

    Hi
    These are the main performance points where u have to look
    there is no program for this
    reward if usefull
    Performance Tuning is nothing but optimizing the performance of your program through various techniques thus increasing the productivity of the user.
    Purpose
    In this world of SAP programming, ABAP is the universal language . Often due to the pressure of schedules and deliveries, the main focus of making a efficient program takes a back seat. An efficient program is one which delivers the required output to the user in a finite time as per the complexity of the program, rather than hearing the comment “I put the program to run , have my lunch and come back to check the results”
    Use
    Leaving aside the hyperbole, a performance optimized ABAP Program has the following uses:
    Saves the time of the end user.
    Increases the productivity of the user.
    In turn keeps the user and hence the management happy.
    Challenges
    Performance of a program is also often limited due to hardware restrictions, which is out of the scope of this tutorial.
    Ways of Performance Tuning
    Selection Criteria
    Select Statements
    Select Queries
    SQL Interface
    Aggregate Functions
    For all Entries
    Select Over more than one Internal table
    Internal tables
    4. Typing
    5. Control Statements (If, Case, While..)
    6. Field Conversion
    7. ABAP Objects
    8. Tools for Performance Analysis
    Selection Criteria
    Restrict the data to the selection criteria itself, rather than filtering it out using the ABAP code using CHECK statement. 
    Select with selection list.
    Note: It is suggestible to make at least on field mandatory in Selection-Screen as mandatory fields restrict the data selection and hence increasing the performance.
    SELECT * FROM SBOOK INTO SBOOK_WA.
    CHECK: SBOOK_WA-CARRID = 'LH' AND
    SBOOK_WA-CONNID = '0400'.
    ENDSELECT.
    The above code can be much more optimized by the code written below which avoids CHECK, selects with selection list
    SELECT CARRID CONNID FLDATE BOOKID FROM SBOOK INTO TABLE T_SBOOK
    WHERE SBOOK_WA-CARRID = 'LH' AND
    SBOOK_WA-CONNID = '0400'.
    Select Statements Select Queries
    Avoid nested selects
    Select all the records in a single shot using into table clause of select statement rather than to use Append statements.
    When a base table has multiple indices, the where clause should be in the order of the index, either a primary or a secondary index.
    For testing existence , use Select.. Up to 1 rows statement instead of a Select-Endselect-loop with an Exit.
    Use Select Single if all primary key fields are supplied in the Where condition .
    Point # 1
    SELECT * FROM EKKO INTO EKKO_WA.
      SELECT * FROM EKAN INTO EKAN_WA
          WHERE EBELN = EKKO_WA-EBELN.
      ENDSELECT.
    ENDSELECT.
    The above code can be much more optimized by the code written below.
    SELECT PF1 PF2 FF3 FF4 INTO TABLE ITAB
        FROM EKKO AS P INNER JOIN EKAN AS F
          ON PEBELN = FEBELN.
    Note: A simple SELECT loop is a single database access whose result is passed to the ABAP program line by line. Nested SELECT loops mean that the number of accesses in the inner loop is multiplied by the number of accesses in the outer loop. One should therefore use nested SELECT loops  only if the selection in the outer loop contains very few lines or the outer loop is a SELECT SINGLE statement.
    Point # 2
    SELECT * FROM SBOOK INTO SBOOK_WA.
    CHECK: SBOOK_WA-CARRID = 'LH' AND
    SBOOK_WA-CONNID = '0400'.
    ENDSELECT.
    The above code can be much more optimized by the code written below which avoids CHECK, selects with selection list and puts the data in one shot using into table
    SELECT CARRID CONNID FLDATE BOOKID FROM SBOOK INTO TABLE T_SBOOK
    WHERE SBOOK_WA-CARRID = 'LH' AND
    SBOOK_WA-CONNID = '0400'.
    Point # 3
    To choose an index, the optimizer checks the field names specified in the where clause and then uses an index that has the same order of the fields . In certain scenarios, it is advisable to check whether a new index can speed up the performance of a program. This will come handy in programs that access data from the finance tables.
    Point # 4
    SELECT * FROM SBOOK INTO SBOOK_WA
    UP TO 1 ROWS
    WHERE CARRID = 'LH'.
    ENDSELECT.
    The above code is more optimized as compared to the code mentioned below for testing existence of a record.
    SELECT * FROM SBOOK INTO SBOOK_WA
    WHERE CARRID = 'LH'.
    EXIT.
    ENDSELECT.
    Point # 5
    If all primary key fields are supplied in the Where condition you can even use Select Single.  Select Single requires one communication with the database system, whereas Select-Endselect needs two.

  • Hi gurus is there any program that shows the history material

    hi there gurus,
    is there any report or porgram that shows the history of the material for the past 12 months.
    hope to hear from you guyz as soon as possible, since this is kind of very urgent.
    thanks,
    vasan

    hi gurus,
    i want a report something shows this things in it,
    Materials No
    MBEW-matnr
    makt-maktx
    MBEW-LBKUM
    UOM
    MARA-MEINS
    Total value (MYR)
    MBEW-SALK3
    Consumed Past 12 months      Consumed Past 12 months
    qty                                          value (MYR)
    Consumption(Qty) MB51 sub cond mvt 543 Consumption
    DAYS SINCE CONSUMPTION
    i try to create a program but having some problem with it,
    if its possible for u to have a look into my coding,and giveme some advice with it.
    thanks.

  • If I reset my iphone (errase data and settings) is there any program that can recover information or deleted photos?

    I'm asking this beacuase I want to sell my iphone 4 and before I will errase it, but I want to ensure that the next user will not be able to have acces o recover information such as deleted photos from my phone, I know there are programs that recover deleted stuff from your iphone but do they work after errasing it completely?

    I'm not sure how flash storage works, but there's usually a very decent way of making sure no one accesses your data: first, erase your phone. After that, fill it with crap - you can use iTunes or whatever, and just either fill it with rubish images, or better yet videos (that you don't mind anyone recovering later). Then erase it again. If someone runs a recover data program on it, they will only find the last data you inserted.
    Make sure to completely fill the iPhones available space with crap.
    If you are really nervous - again, not sure if this is necessary for flash storage - but you can repeat this process a couple more times (erase and fill with crap), just to make sure. One time should be fine, though.

  • Is there any program to download function group?

    Hi
    I just want to download whole function group  and dictionary object (table type and structure) in specific package.
    not need to table contents though.
    is there anyway to download these object quick?

    Hi
    You can try this code
    [code]tables: trdir, seoclass, tfdir, enlfdir, dd02l.
    Types
    text element structure
    types: tTextTable like textpool.
    GUI titles
    types: tGUITitle like d347t.
    Message classes
    types: begin of tMessage,
             arbgb like t100-arbgb,
             stext like t100a-stext,
             msgnr like t100-msgnr,
             text  like t100-text,
           end of tMessage.
    Screen flow.
    types: begin of tScreenFlow,
             screen like d020s-dnum,
             code like d022s-line,
           end of tScreenFlow.
    Holds a table\structure definition
    types: begin of tDictTableStructure,
             fieldname like dd03l-fieldname,
             position  like dd03l-position,
             keyflag   like dd03l-keyflag,
             rollname  like dd03l-rollname,
             domname   like dd03l-domname,
             datatype  like dd03l-datatype,
             leng      like dd03l-leng,
             ddtext    like dd04t-ddtext,
           end of tdictTableStructure.
    Holds a tables attributes + its definition
    types: begin of tDictTable,
             tablename    like dd03l-tabname,
             tableTitle   like dd02t-ddtext,
             iStructure type tDictTableStructure occurs 0,
           end of tDictTable.
    Include program names
    types: begin of tInclude,
             includeName like trdir-name,
             includeTitle like tftit-stext,
           end of tInclude.
    Exception class texts
    types: begin of tConcept,
             constName type string,
             concept type sotr_conc,
           end of tConcept.
    Method
    types: begin of tMethod,
             cmpName like vseomethod-cmpname,
             descript like vseomethod-descript,
             exposure like vseomethod-exposure,
             methodKey type string,
           end of tMethod.
    Class
    types: begin of tClass,
             scanned(1),
             clsname like vseoclass-clsname,
             descript like vseoclass-descript,
             msg_id like vseoclass-msg_id,
             exposure like vseoclass-exposure,
             state like vseoclass-state,
             clsfinal like vseoclass-clsfinal,
             r3release like vseoclass-r3release,
             iMethods type tMethod occurs 0,
             iDictStruct type tDictTable occurs 0,
             iTextElements type tTextTable occurs 0,
             iMessages type tMessage occurs 0,
             iConcepts type tConcept occurs 0,
             textElementKey type string,
             publicClassKey type string,
             privateClassKey type string,
             protectedClassKey type string,
             typesClassKey type string,
             exceptionClass type i,
           end of tClass.
    function modules
    types: begin of tFunction,
             functionName like tfdir-funcName,
             functionGroup like enlfdir-area,
             includeNumber like tfdir-include,
             functionMainInclude like tfdir-funcName,
             functionTitle like tftit-stext,
             topIncludeName like tfdir-funcName,
             progname like tfdir-pname,
             programLinkName like tfdir-pname,
             messageClass like t100-arbgb,
             iTextElements type tTextTable occurs 0,
             iSelectiontexts type tTextTable occurs 0,
             iMessages type tMessage occurs 0,
             iIncludes type tInclude occurs 0,
             iDictStruct type tDictTable occurs 0,
             iGUITitle type tGUITitle occurs 0,
             iScreenFlow type tScreenFlow occurs 0,
           end of tFunction.
    types: begin of tProgram,
             progname like trdir-name,
             programTitle like tftit-stext,
             subc like trdir-subc,
             messageClass like t100-arbgb,
             iMessages type tMessage occurs 0,
             iTextElements type tTextTable occurs 0,
             iSelectiontexts type tTextTable occurs 0,
             iGUITitle type tGUITitle occurs 0,
             iScreenFlow type tScreenFlow occurs 0,
             iIncludes type tInclude occurs 0,
             iDictStruct type tDictTable occurs 0,
           end of tProgram.
    Internal tables
    Dictionary object
    data: iDictionary type standard table of tDictTable with header line.
    Function modules.
    data: iFunctions type standard table of tFunction with header line.
    Tree display structure.
    data: iTreeDisplay type standard table of snodetext with header line.
    Message class data
    data: iMessages type standard table of tMessage with header line.
    Holds a single message class an all of its messages
    data: iSingleMessageClass type standard table of tMessage with header line.
    Holds program related data
    data: iPrograms type standard table of tProgram with header line.
    Classes
    data: iClasses type standard table of tClass with header line.
    Table of paths created on the SAP server
    data: iServerPaths type standard table of string with header line.
    Table prototypes
    data: dumiDictStructure type standard table of tDictTableStructure.
    data: dumiTextTab type standard table of tTextTable.
    data: dumiIncludes type standard table of tInclude.
    data: dumiHtml type standard table of string.
    data: dumiHeader type standard table of string .
    data: dumiScreen type standard table of tScreenFlow .
    data: dumIGUITitle type standard table of tGUITitle.
    data: dumiMethods type standard table of tMethod.
    data: dumiConcepts type standard table of tConcept.
      Global objects
    data: objFile type ref to cl_gui_frontend_services.
    data: objRuntimeError type ref to cx_root.
    Constants
    constants: VERSIONNO type string value '1.3.1'.
    constants: TABLES type string value 'TABLES'.
    constants: TABLE type string value 'TABLE'.
    constants: LIKE type string value 'LIKE'.
    constants: TYPE type string value 'TYPE'.
    constants: TYPEREFTO type string value 'TYPE REF TO'.
    constants: STRUCTURE type string value 'STRUCTURE'.
    constants: LOWSTRUCTURE type string value 'structure'.
    constants: OCCURS type string value 'OCCURS'.
    constants: FUNCTION type string value 'FUNCTION'.
    constants: CALLFUNCTION type string value ' CALL FUNCTION'.
    constants: MESSAGE type string  value 'MESSAGE'.
    constants: INCLUDE type string value 'INCLUDE'.
    constants: LOWINCLUDE type string value 'include'.
    constants: DESTINATION type string value 'DESTINATION'.
    constants: IS_TABLE type string value 'T'.
    constants: IS_PROGRAM type string value 'P'.
    constants: IS_SCREEN type string value 'S'.
    constants: IS_GUITITLE type string value 'G'.
    constants: IS_DOCUMENTATION type string value 'D'.
    constants: IS_MESSAGECLASS type string value 'MC'.
    constants: IS_FUNCTION type string value 'F'.
    constants: IS_CLASS type string value 'C'.
    constants: IS_METHOD type string value 'M'.
    constants: ASTERIX type string value '*'.
    constants: COMMA type string value ','.
    constants: PERIOD type string value '.'.
    constants: DASH type string value '-'.
    constants: TRUE type i value 1.
    constants: FALSE type i value 0.
    constants: LT type string value '<'.
    constants: GT type string value '>'.
    constants: UNIX type string value 'UNIX'.
    constants: NON_UNIX type string value 'not UNIX'.
    constants: BACKGROUND_COLOUR type string value '#FFFFE0'.
    constants: COLOUR_WHITE type string value '#FFFFFF'.
    constants: COLOUR_BLACK type string value '#000000'.
    constants: COLOUR_YELLOW type string value '#FFFF00'.
    constants: COMMENT_COLOUR type string value '#0000FF'.
    constants: HTMLEXTENSION type string value 'html'.
    constants: TEXTEXTENSION type string value 'txt'.
    Global variables
    data: statusBarMessage(100).
    data: forcedExit type i value 0.
    data: startTime like sy-uzeit.
    data: runTime like sy-uzeit.
    data: downloadFileExtension type string.
    data: downloadFolder type string.
    data: serverSlashSeparator type string.
    data: frontendSlashSeparator type string.
    data: slashSeparatorToUse type string.
    data: serverFilesystem type filesys_d.
    data: serverFolder type string.
    data: frontendOpSystem type string.
    data: serverOpSystem type string.
    data: customerNameSpace type string.
    ranges: soProgramName for trdir-name.
    ranges: soAuthor for usr02-bname.
    ranges: soTableNames for dd02l-tabname.
    ranges: soFunctionName  for tfdir-funcName.
    ranges: soClassName for vseoclass-clsname.
    ranges: soFunctionGroup for enlfdir-area.
    field-symbols: <waDictStruct> type tDictTable.
    Selection screen declaration
    Author
    selection-screen: begin of block b1 with frame title tBlock1.
      selection-screen begin of line.
        selection-screen comment 5(23) tAuth.
        parameters: pAuth like usr02-bname memory id MAUTH.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 5(36) tPmod.
        parameters: pMod as checkbox.
      selection-screen end of line.
    Local objects
      selection-screen begin of line.
        selection-screen comment 5(36) t$tmp.
        parameters: p$tmp as checkbox default ''.
      selection-screen end of line.
    selection-screen: end of block b1.
    selection-screen begin of block b2 with frame title tBlock2.
    Tables
      selection-screen begin of line.
        parameters: rTable radiobutton group r1.
        selection-screen comment 5(15) tRtable.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(15) tPtable.
        select-options: soTable for dd02l-tabname.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(79) tTnote.
      selection-screen end of line.
    Message classes
      selection-screen begin of line.
        parameters: rMess radiobutton group r1.
        selection-screen comment 5(18) tPMes.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(18) tMname.
        parameters: pMname like t100-arbgb memory id MMNAME.
      selection-screen end of line.
    Function modules
      selection-screen begin of line.
        parameters: rFunc radiobutton group r1.
        selection-screen comment 5(30) tRfunc.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(15) tPfname.
        select-options: soFname for tfdir-funcName.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(15) tFgroup.
        select-options: soFgroup for enlfdir-area.
      selection-screen end of line.
    Classes
      selection-screen begin of line.
        parameters: rClass radiobutton group r1.
        selection-screen comment 5(30) tRClass.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(15) tPcName.
        select-options: soClass for seoclass-clsname.
      selection-screen end of line.
    Programs / includes
      selection-screen begin of line.
        parameters: rProg radiobutton group r1 default 'X'.
        selection-screen comment 5(18) tProg.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(15) tRpname.
        select-options: soProg for trdir-name.
      selection-screen end of line.
      selection-screen skip.
    Language
      selection-screen begin of line.
        selection-screen comment 1(18) tMLang.
        parameters: pMLang like t100-sprsl default 'EN'.
      selection-screen end of line.
    Package
      selection-screen begin of line.
        selection-screen comment 1(18) tPack.
        parameters: pPack like tadiv-devclass memory id MPACK.
      selection-screen end of line.
    Customer objects
      selection-screen begin of line.
        selection-screen comment 1(27) tCust.
        parameters: pCust as checkbox default 'X'.
        selection-screen comment 32(25) tNRange.
        parameters: pCName type namespace memory id MNAMESPACE.
      selection-screen end of line.
    selection-screen: end of block b2.
    Additional things to download.
    selection-screen: begin of block b3 with frame title tBlock3.
      selection-screen begin of line.
        selection-screen comment 1(33) tPtext.
        parameters: pText as checkbox default 'X' memory id MTEXT.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(33) tMess.
        parameters: pMess as checkbox default 'X' memory id MMESS.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(33) tPinc.
        parameters: pInc as checkbox default 'X' memory id MINC.
        selection-screen comment 40(20) tRecc.
        parameters: pReci as checkbox default 'X' memory id MRECI.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(33) tPfunc.
        parameters: pFunc as checkbox default 'X' memory id MFUNC.
        selection-screen comment 40(20) tRecf.
        parameters: pRecf as checkbox default 'X' memory id MRECF.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(33) tDoc.
        parameters: pDoc as checkbox default 'X' memory id MDOC.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(33) tPscr.
        parameters: pScr as checkbox default 'X' memory id MSCR.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(33) tPdict.
        parameters: pDict as checkbox default 'X' memory id MDICT.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(33) tSortT.
        parameters: pSortT as checkbox default ' ' memory id MSORTT.
      selection-screen end of line.
    selection-screen: end of block b3.
    File details
    selection-screen: begin of block b4 with frame title tBlock4.
      selection-screen begin of line.
        selection-screen comment 1(20) tPhtml.
        parameters: pHtml radiobutton group g1 default 'X'.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 5(29) tComm.
        parameters: pComm as checkbox default 'X'.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 5(29) tBack.
        parameters: pBack as checkbox default 'X'.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 1(20) tPtxt.
        parameters: pTxt radiobutton group g1.
      selection-screen end of line.
      selection-screen skip.
    Download to SAP server
      selection-screen begin of line.
        selection-screen comment 1(25) tServ.
        parameters: pServ radiobutton group g2.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 8(20) tSPath.
        parameters: pLogical like filename-fileintern memory id MLOGICAL.
      selection-screen end of line.
      selection-screen comment /28(60) tSDPath.
    Download to PC
      selection-screen begin of line.
        selection-screen comment 1(25) tPc.
        parameters: pPc radiobutton group g2 default 'X'.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 8(20) tPpath.
        parameters: pFolder like rlgrap-filename memory id MFOLDER.
      selection-screen end of line.
    selection-screen: end of block b4.
    Display options
    selection-screen: begin of block b5 with frame title tBlock5.
    Display final report
      selection-screen begin of line.
        selection-screen comment 1(33) tRep.
        parameters: pRep as checkbox default 'X'.
      selection-screen end of line.
    Display progress messages
      selection-screen begin of line.
        selection-screen comment 1(33) tProMess.
        parameters: pProMess as checkbox default 'X'.
      selection-screen end of line.
    selection-screen: end of block b5.
    Display a directory picker window
    at selection-screen on value-request for pFolder.
    data: objFile type ref to cl_gui_frontend_services.
    data: pickedFolder type string.
    data: initialFolder type string.
      if sy-batch is initial.
        create object objFile.
        if not pFolder is initial.
          initialFolder = pFolder.
        else.
          objFile->get_temp_directory( changing temp_dir = initialFolder
                                       exceptions cntl_error = 1
                                                 error_no_gui = 2
                                                 not_supported_by_gui = 3 ).
        endif.
        objFile->directory_browse( exporting initial_folder = initialFolder
                                   changing selected_folder = pickedFolder
                                   exceptions cntl_error = 1
                                              error_no_gui = 2
                                              not_supported_by_gui = 3 ).
        if sy-subrc = 0.
          pFolder = pickedFolder.
        else.
          write: / 'An error has occured picking a folder'.
        endif.
      endif.
    at selection-screen.
      case 'X'.
        when pPc.
          if pFolder is initial.
          User must enter a path to save to
            message e000(oo) with 'You must enter a file path'.
          endif.
        when pServ.
          if pLogical is initial.
          User must enter a logical path to save to
            message e000(oo) with 'You must enter a logical file name'.
          endif.
      endcase.
    at selection-screen on pLogical.
      if not pServ is initial.
        call function 'FILE_GET_NAME' exporting logical_filename = pLogical
                                      importing file_name = serverFolder
                                      exceptions file_not_found = 1
                                                 others = 2.
        if sy-subrc = 0.
          if serverFolder is initial.
            message e000(oo) with 'No file path returned from logical filename'.
          else.
          Path to display on the selection screen
            tSDPath = serverFolder.
          Remove the trailing slash off the path as the subroutine buildFilename will add an extra one
            shift serverFolder right deleting trailing serverSlashSeparator.
            shift serverFolder left deleting leading space.
          endif.
        else.
          message e000(oo) with 'Logical filename does not exist'.
        endif.
      endif.
    at selection-screen on value-request for soProg-low.
      call function 'REPOSITORY_INFO_SYSTEM_F4' exporting object_type  = 'PROG'
                                                          object_name  = soProg-low
                                                          suppress_selection   = 'X'
                                                          use_alv_grid = ''
                                                          without_personal_list = ''
                                                importing object_name_selected = soProg-low
                                                exceptions cancel = 1.
    at selection-screen on value-request for soProg-high.
      call function 'REPOSITORY_INFO_SYSTEM_F4' exporting object_type  = 'PROG'
                                                          object_name  = soProg-high
                                                          suppress_selection   = 'X'
                                                          use_alv_grid = ''
                                                          without_personal_list = ''
                                                importing object_name_selected = soProg-high
                                                exceptions cancel = 1.
    at selection-screen on value-request for soClass-low.
      call function 'F4_DD_ALLTYPES' exporting object = soClass-low
                                               suppress_selection = 'X'
                                               display_only = ''
                                               only_types_for_clifs = 'X'
                                     importing result = soClass-low.
    at selection-screen on value-request for soClass-high.
      call function 'F4_DD_ALLTYPES' exporting object = soClass-high
                                               suppress_selection = 'X'
                                               display_only = ''
                                               only_types_for_clifs = 'X'
                                     importing result = soClass-high.
    at selection-screen on value-request for soFName-low.
      call function 'REPOSITORY_INFO_SYSTEM_F4' exporting object_type  = 'FUNC'
                                                          object_name  = soFname-low
                                                          suppress_selection   = 'X'
                                                          use_alv_grid = ''
                                                          without_personal_list = ''
                                                importing object_name_selected = soFName-low
                                                exceptions cancel = 1.
    at selection-screen on value-request for soFName-high.
      call function 'REPOSITORY_INFO_SYSTEM_F4' exporting object_type  = 'FUNC'
                                                          object_name  = soFname-high
                                                          suppress_selection   = 'X'
                                                          use_alv_grid = ''
                                                          without_personal_list = ''
                                                importing object_name_selected = soFName-high
                                                exceptions cancel = 1.
    at selection-screen on value-request for soFGroup-low.
      call function 'REPOSITORY_INFO_SYSTEM_F4' exporting object_type  = 'FUGR'
                                                          object_name  = soFGroup-low
                                                          suppress_selection   = 'X'
                                                          use_alv_grid = ''
                                                          without_personal_list = ''
                                                importing object_name_selected = soFGroup-low
                                                exceptions cancel = 1.
    at selection-screen on value-request for soFGroup-high.
      call function 'REPOSITORY_INFO_SYSTEM_F4' exporting object_type  = 'FUGR'
                                                          object_name  = soFGroup-high
                                                          suppress_selection   = 'X'
                                                          use_alv_grid = ''
                                                          without_personal_list = ''
                                                importing object_name_selected = soFGroup-high
                                                exceptions cancel = 1.
    initialisation
    initialization.
    Parameter screen texts.
      tBlock1 = 'Author (Optional)'.
      t$tmp   = 'Programs only: include local objects'.
      tBlock2 = 'Objects to download'.
      tBlock3 = 'Additional downloads for programs, function modules and classes'.
      tBlock4 = 'Download parameters'.
      tBlock5 = 'Display options'.
      tAuth   = 'Author name'.
      tPmod   = 'Include programs modified by author'.
      tCust   = 'Only customer objects'.
      tNRange = 'Alt customer name range'.
      tRtable = 'Tables / Structures'.
      tPtable = 'Table name'.
      tTnote  = 'Note: tables are stored under the username of the last person who modified them'.
      tRfunc  = 'Function modules'.
      tPfname = 'Function name'.
      tFgroup = 'Function group'.
      tRClass  = 'Classes'.
      tPcname = 'Class name'.
      tMess   = 'Message class'.
      tMName  = 'Class name'.
      tMLang  = 'Language'.
      tProg   = 'Programs'.
      tRpname = 'Program name'.
      tPack   = 'Package'.
      tPtxt   = 'Text document'.
      tPhtml  = 'HTML document'.
      tComm   = 'Highlight comments'.
      tBack   = 'Include background colour'.
      tPtext  = 'Text elements'.
      tPinc   = 'Include programs'.
      tRecc   = 'Recursive search'.
      tPpath  = 'File path'.
      tSPath  = 'Logical file name'.
      tPmes   = 'Message classes'.
      tPfunc  = 'Function modules'.
      tDoc    = 'Function module documentation'.
      tRecf   = 'Recursive search'.
      tPscr   = 'Screens'.
      tPdict  = 'Dictionary structures'.
      tSortT  = 'Sort table fields alphabetically'.
      tServ   = 'Download to server'.
      tPc     = 'Download to PC'.
      tRep    = 'Display download report'.
      tProMess  = 'Display progress messages'.
    Determine the frontend operating system type.
      if sy-batch is initial.
        perform determineFrontendOPSystem using frontendSlashSeparator frontendOpSystem.
      endif.
      perform determineServerOpsystem using serverSlashSeparator serverFileSystem serverOpsystem.
    Determine if the external command exists.  If it doesn't then disable the server input field
      perform findExternalCommand.
    start-of-selection.
    start-of-selection.
      perform checkComboBoxes.
      perform fillSelectionRanges.
      startTime = sy-uzeit.
    Don't display status messages if we are running in the background
      if not sy-batch is initial.
        pProMess = ''.
      endif.
    Fool the HTML routines to stop them hyperlinking anything with a space in them
      if pCName is initial.
        customerNameSpace  = '^'.
      else.
        customerNameSpace = pCName.
      endif.
    Determine which operating slash and download directory to use
      case 'X'.
        when pPc.
          slashSeparatorToUse = frontendSlashSeparator.
          downloadFolder = pFolder.
        when pServ.
          slashSeparatorToUse = serverSlashSeparator.
          downloadFolder = serverFolder.
      endcase.
    Main program flow.
      case 'X'.
      Select tables
        when rTable.
          perform retrieveTables using iDictionary[]
                                       soTableNames[]
                                       soAuthor[].
      Select message classes tables
        when rMess.
          perform retrieveMessageClass using iMessages[]
                                             soAuthor[]      "Author
                                             pMname          "Message class name
                                             pMLang          "Message class language
                                             pMod.           "Modified by author
      Select function modules
        when rFunc.
          perform retrieveFunctions using soFunctionName[]   "Function name
                                          soFunctionGroup[]  "Function group
                                          iFunctions[]       "Found functions
                                          soAuthor[]         "Author
                                          pText              "Get text elements
                                          pScr               "Get screens
                                          pCust              "Customer data only
                                          customerNameSpace. "Customer name range
          loop at iFunctions.
          Find Dict structures, messages, functions, includes etc.
            perform scanForAdditionalFuncStuff using iFunctions[]
                                                     pRecI                   "Search for includes recursively
                                                     pRecF                   "Search for functions recursively
                                                     pInc                    "Search for includes
                                                     pFunc                   "Search for functions
                                                     pDict                   "search for dictionary objects
                                                     pMess                   "Search for messages
                                                     pCust                   "Customer data only
                                                     customerNameSpace.      "Customer name range
          endloop.
      Select Classes
        when rClass.
          perform retrieveClasses using iClasses[]
                                        iFunctions[]
                                        soClassName[]       "Class name
                                        soAuthor[]          "Author
                                        customerNameSpace   "Customer name range
                                        pMod                "Also modified by author
                                        pCust               "Customer object only
                                        pMess               "Find messages
                                        pText               "Text Elements
                                        pDict               "Dictionary structures
                                        pFunc               "Get functions
                                        pInc                "Get includes
                                        pRecF               "Search recursively for functions
                                        pRecI               "Search recursively for includes
                                        'X'                 "Search recursively for classes
                                        pMLang.             "Language
          loop at iFunctions.
          Find Dict structures, messages, functions, includes etc.
            perform scanForAdditionalFuncStuff using iFunctions[]
                                                     pRecI                   "Search for includes recursively
                                                     pRecF                   "Search for functions recursively
                                                     pInc                    "Search for includes
                                                     pFunc                   "Search for functions
                                                     pDict                   "search for dictionary objects
                                                     pMess                   "Search for messages
                                                     pCust                   "Customer data only
                                                     customerNameSpace.      "Customer name range
          endloop.
      Select programs
        when rProg.
          perform retrievePrograms using iPrograms[]
                                         iFunctions[]
                                         soProgramName[]    "Program name
                                         soAuthor[]         "Author
                                         customerNamespace  "Customer name range
                                         pMod               "Also modified by author
                                         pCust              "Customer object only
                                         pMess              "Find messages
                                         pText              "Text Elements
                                         pDict              "Dictionay structures
                                         pFunc              "Get functions
                                         pInc               "Get includes
                                         pScr               "Get screens
                                         pRecF              "Search recursively for functions
                                         pRecI              "Search recursively for includes
                                         p$Tmp              "local objects
                                         pPack.             "Package
      endcase.
    end-of-selection
    end-of-selection.
      if forcedExit = 0.
      Set the file extension and output type of the file
        if pTxt is initial.
          downloadFileExtension = HTMLEXTENSION.
        else.
          downloadFileExtension = TEXTEXTENSION.
        endif.
      Decide what to download
        case 'X'.
        Download tables
          when rTable.
            if not ( iDictionary[] is initial ).
              perform downloadDDStructures using iDictionary[]
                                                 downloadFolder
                                                 HTMLEXtension
                                                 space
                                                 pSortT
                                                 slashSeparatorToUse
                                                 pServ
                                                 pProMess.
            Free up any memory used for caching HTML versions of tables
              loop at iDictionary.
                free memory id iDictionary-tablename.
              endloop.
            Display donwload report
              if not pRep is initial.
                get time.
                runTime = sy-uzeit - startTime.
                perform fillTreeNodeTables using iDictionary[]
                                                 iTreeDisplay[]
                                                 runTime.
              endif.
              clear iDictionary[].
            endif.
        Download message class
          when rMess.
            if not ( iMessages[] is initial ).
              sort iMessages ascending by arbgb msgnr.
              loop at iMessages.
                append iMessages to iSingleMessageClass.
                at end of arbgb.
                  perform downloadMessageClass using iSingleMessageClass[]
                                                     iMessages-arbgb
                                                     downloadFolder
                                                     downloadFileExtension
                                                     pHtml
                                                     space
                                                     pComm
                                                     customerNameSpace
                                                     pInc
                                                     pDict
                                                     pMess
                                                     slashSeparatorToUse
                                                     pServ
                                                     pProMess.
                  clear iSingleMessageClass[].
                endat.
              endloop.
            Display download report
              if not pRep is initial.
                get time.
                runTime = sy-uzeit - startTime.
                perform fillTreeNodeMessages using iMessages[]
                                                   iTreeDisplay[]
                                                   runTime.
              endif.
             clear iMessages[].
           endif.
        Download functions
          when rFunc.
            if not ( iFunctions[] is initial ).
               perform downloadFunctions using iFunctions[]
                                               downloadFolder
                                               downloadFileExtension
                                               space
                                               pDoc
                                               pHtml
                                               pComm
                                               customerNameSpace
                                               pInc
                                               pDict
                                               TEXTEXTENSION
                                               HTMLEXTENSION
                                               pSortT
                                               slashSeparatorToUse
                                               pServ
                                               pProMess.
            Free up any memory used for caching HTML versions of tables
              loop at iFunctions.
                loop at iFunctions-iDictStruct assigning <waDictStruct>.
                  free memory id <waDictStruct>-tablename.
                endloop.
              endloop.
            Display donwload report
              if not pRep is initial.
                get time.
                runTime = sy-uzeit - startTime.
                perform fillTreeNodeFunctions using iFunctions[]
                                                    iTreeDisplay[]
                                                    runTime.
              endif.
              clear iFunctions[].
            endif.
        Download Classes
          when rClass.
            if not ( iClasses[] is initial ).
              perform downloadClasses using iClasses[]
                                            iFunctions[]
                                            downloadFolder
                                            downloadFileExtension
                                            HTMLEXTENSION
                                            TEXTEXTENSION
                                            pHtml
                                            pComm
                                            custo

Maybe you are looking for

  • How to permanently delete an audio track on my iPhone 4?

    Hi all, First off, a little background: my ISP is French Free, and they have this very cozy feature that lets you know via email when someone leaves a message on your home line voicemail; that way, you get your voicemail anytime you want, not just wh

  • Explain Plan different in SQLPlus then production

    We have a query that is consuming 95%+ of the CPU in production, but the same query in sqlplus takes seconds. The explain plan through OEM is different than the explain plan in sqlplus, but the query is the same? Any thoughts? Thanks.

  • I have lost my iphone how do i lock it?

    How do i erase and lock my iphone , i have lost it?

  • Group Text issues

    When I receive a group text from someone, I get replies from everyone else that they sent it to. Can you reply only to the sender not to all? Can I set to only receive from sender?

  • DPC_WATCHDOG_VIOLATION error when adding device

    Brand new DELL computer, first thing I did was to update from Windows 8 to 8.1 and one of my devices won't show up, tried to scan for new device and getting that blue screen... Tried updating the disk drive firmware (Seagate st500dm002-1bd142) but no