Programs for SAPScripts

Team,
I am looking for a report or a table that lists all my Z-Forms (Custom forms) and the programs for these forms. I have looked at table TTXFP. But there are still some more forms I did not see in the table.
I was wondering if there are any more tables that have a more comprehensive list.

Look in table STXH with
  TDOBJECT = 'FORM',
  TDID = TXT' and
  TDSPRAS = your language (EN for English). 
That should give you a list.  Good Luck.
Kevin

Similar Messages

  • U00BFCan I use a function module as a driver program for sapscript?

    Hi,
    I have to use a function module as driver program for sapscript and there is no any value in the form (the data are not transferred)...
    but if I call the sapcript from a report with the same code as in my function module all the data are transferred OK.
    please, can you tell me if there is any problem in use of a function module in this case? is it impossible at all or is there any tip to apply?
    thank you all in advance.

    Hi,
    first of all it is possible to use a function module to process a SapScript form.
    The mistake on your side is probably the definition of the variables that you want to pass to the form. Please make sure they are defined as global (via SE37 --> Goto --> Global Data) then it should be working.
    In addition you could take a look at e.g. function module "PRINT_DUNNING_NOTICE". This is SAP standard and they are using it to print a SapScript form.
    Best regards
    Arno Speitkamp

  • Program for SAPScript

    Hi,
    I created a SAPscript for purchase order not using Medruck a customized one. And print program which has two entry fields for EBELN, EBELP, in which the output will be a single record, but now I need something like a purchase order can have many items which i need to be in my output.
    Please tell me how to do the program if i have only selection screen i.e Purchase order number but have multiple items EBELP and what are the necessary steps to be followed in SAPSCRIPT  FORM AND ABAP PRINT PROGRAM?
    Thanks,
    Sriram.

    hi,
    i guess your line item details are in main window ( it should be like that )
    In the print program for vbeln retrieve all the line item details into internal table and call the write form inside the loop
    for ex
    loop at itab_line
      call function 'WRITE_FORM'
    endloop
    if you want to print multiple purchase orders then
    loop at itab_header
      call function 'WRITE_FORM'
         ....title
      call function 'WRITE_FORM'
         ....header info
          loop at itab_line where ebeln = itab_header-ebeln
              call function 'WRITE_FORM'
          endloop
    endloop
    cheers,
    sasi

  • Driver program for Sapscript form

    Hi All,
    My Sapscript Z From has been configured for company code,and it is present in table T042B.
    T042B-ZBUKR = 4418 (company code)
    T042B-AFORN = ZCOTL_ADVICE (SAPSCRIPT FORM)
    Can anyone please tell me from which table I should get the Driver Program for the above Sapscript Form.
    Kindly Reply ASAP.
    Rishi

    Hello Rishi,
    Could you please let us know how did you find the driver program for the forms in FICO
    Thanks,
    Smita

  • Copying print program for sapscript

    Hello all,
    I would like to customize the print program PSFCPICK which we are using to print a sap script for shop orders.
    So I did a copy of the program and named the new one ZPSFCPICK and assigned the copied print program to the list in OPK8. I know the copied print program is called when printing the script,
    but no output is coming out of the printer. When I change it back to the original program, it is working fine.
    Is there anything I have to pay attention when copying a print program??
    Thanks
    Anne

    HI Anne,
    Check in this custom program or copied program whether you are calling FM -  CLOSE_FORM
    The function module closes the layout set opened using OPEN_FORM. The system executes any terminating processing steps for the last opened layout set. You must use this function module to close layout set printing. Otherwise, no output appears on printer or screen.
    Best Regards,
    Krishna

  • Select query in driver program for sapscript

    Hi All,
    I want to select buzei, zuonr,sgtxt,meins from bseg ,temp (a temporary variable of type p deciamls 2), tmp (another temporary variable) and dmbtr from HBSEG (a structure of type bseg) . under the cond
    koart ne 's' or
    xauto ne 'x' or
    buzid ne 't'.
    I have to write this select query usinf a WORKAREA . After this select query i give WRITE_FORM as i call there vairables in script.Its very urgent.
    thanks much

    Hi,
    You can use inner join. Consider this simple example.
    data : a type zvijirank occurs 10 with header line,
              b type zvijirank1 occurs 10 with header line.
    data : name like zvijirank-name,
           total like zvijirank1-total,
           reg_no like zvijirank.
    *       regno type i.
    data : begin of wa,
           name type zvijirank-name,
           total type zvijirank1-total,
           branch type zvijirank1-branch,
           reg_no type zvijirank-reg_no,
    *       FNAME TYPE ZVIJIRANK2-F_NAME,
    *       MNAME TYPE ZVIJIRANK2-M_NAME,
    *       CITY TYPE ZVIJIRANK2-CITY,
    *       TEL_NO TYPE ZVIJIRANK2-TEL_NO,
           end of wa.
    data : it like standard table of wa with header line,
             it1 like standard table of wa with header line.
    call selection-screen 9010.
    select a~name b~total b~branch a~reg_no into table it from zvijirank as a inner join zvijirank1 as b on a~reg_no = b~reg_no .
    loop at it.
    if it-reg_no eq regno.
    write : 'NAME   :', it-name,
            'REG_NO :', it-reg_no,
             'TOTAL :', it-total.
    ENDIF.
    endloop.
    Thanks,
    Reward If Helpful.

  • SAPscript print program for multiple pages

    Hello friends,
    How to write SAPscript print program for multiple pages? please help me.
    Thanks and regards,
    Shivanand.

    I believe you have posted this question in the wrong forum.  There is an ABAP Forms Printing Forum.

  • Utility for Downloading Z Programs and Sapscripts.

    HI!
    I want to Down load all my Z programs to a local drive. Please help me if you know any utility?
    Thank you,
    DARSHAN
    Message was edited by: Darshankumar Kanubhai Patel

    use this program:
    PROGRAM ZDOWN.
    *========================================================================================================
    Direct Download Enterprise version 1.2.
    THIS SOFTWARE IS FOR PERSONAL USE ONLY.
    THIS PROGRAM IS FREEWARE AND IS PROVIDED ON AN AS-IS BASIS WITHOUT WARRANTY OF ANY KIND.
    THE PROVIDER SPECIFICALLY DISCLAIMS ANY OTHER WARRANTY, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF
    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    IN NO EVENT SHALL PROVIDER BE LIABLE FOR ANY CONSEQUENTIAL, INDIRECT, SPECIAL OR INCIDENTAL DAMAGES,
    EVEN IF PROVIDER HAS BEEN ADVISED BY CLIENT OF THE POSSIBILITY OF SUCH POTENTIAL LOSS OR DAMAGE.
    CLIENT AGREES TO HOLD PROVIDER HARMLESS FROM AND AGAINST ANY AND ALL CLAIMS, LOSSES, LIABILITIES AND
    EXPENSES.  BY INSTALLING OR RUNNING THIS PROGRAM YOU ARE AGREEING TO THE TERMS AND CONDITONS STATED
    ABOVE.
    PROGRAM DESCRIPTION & USE
    Allows a user to download programs, Functions, DD definitions, etc to the presentation server.  This
    version searches recursively for nested includes and function modules, and allows you to download
    the resulting code as standard text or HTML web pages within a suitable directory structure.
    You can either search by object name, using wildcards if you wish, or a combination of Author and
    object name.  If you want all objects returned for a particular author then select the author name
    and choose the most suitable radiobutton.  All objects will be returned if the fields to the right
    hand side of the radiobutton are left completely blank.
    Compatible with R/3 Enterprise only, for older versions of SAP you will need Direct Download version 5.xx.
    This version removes the programming limitations imposed by developing across SAP releases 3 to 4.6.
    This program is intended to allow a person to keep a visual representation of a program for backup
    purposes only as has not been designed to allow programs to be uploaded to SAP systems.
    AUTHOR          : E.G.Mellodew
    PROGRAM CONTACT : [email protected]
                      www.dalestech.com
    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.
    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,
             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 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.
      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.2'.
    constants: TABLES type string value 'TABLES'.
    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: slashSeparator type string.
    data: frontendOpSystem type string.
    data: customerNameSpace type string.
    ranges: soProgramName for trdir-name.
    ranges: soAuthor for usr02-bname.
    ranges: soTable 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(20) tRtable.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(18) tPtable.
        parameters: pTable like dd02l-tabname memory id MTABLE.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(79) tTnote.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(79) tTnote1.
      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(18) tPfname.
        parameters: pFname like tfdir-funcName memory id MFNAME.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 10(18) tFgroup.
        parameters: pFgroup like enlfdir-area memory id MFGROUP.
      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(18) tPcName.
        parameters: pClname like seoclass-clsname memory id MCNAME.
      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(18) tRpname.
        parameters: pProg like trdir-name memory id MPROG.
      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(25) tComm.
        parameters: pComm as checkbox default 'X'.
      selection-screen end of line.
      selection-screen begin of line.
        selection-screen comment 5(25) 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.
      selection-screen begin of line.
        selection-screen comment 1(20) tPpath.
        parameters: pFolder like rlgrap-filename obligatory memory id MFOLDER.
      selection-screen end of line.
    selection-screen: end of block b4.
    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.
      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.
    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'.
      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  = 'Please note: tables are stored under the username of the'.
      tTnote1 = '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'.
      tPmes   = 'Message classes'.
      tPfunc  = 'Function modules'.
      tDoc    = 'Function module documentation'.
      tRecf   = 'Recursive search'.
      tPscr   = 'Screens'.
      tPdict  = 'Dictionary structures'.
      tSortT  = 'Sort table fields alphabetically'.
    Determine the frontend operating system type.
      perform determineFrontendOPSystem using slashSeparator.
    start-of-selection.
    start-of-selection.
      perform checkComboBoxes.
      perform fillSelectionRanges.
      downloadFolder = pFolder.
      startTime = sy-uzeit.
    Fool the HTML routines to stop them hyperlinking anything with a space in them
      if pCName is initial.
        customerNameSpace  = '^'.
      else.
        customerNameSpace = pCName.
      endif.
    Main program flow.
      case 'X'.
      Select tables
        when rTable.
          perform retrieveTables using iDictionary[]
                                       soTable[]
                                       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.
          if pFName+0(1) ca ASTERIX.
          Restrict the search to customer objects only.
            pCust = 'X'.
          endif.
          if pFGroup+0(1) ca ASTERIX.
          Restrict the search to customer objects only.
            pCust = 'X'.
          endif.
          perform retrieveFunctions using soFunctionName[]   "Function name
                                          soFunctionGroup[]  "Function group
                                          iFunctions[]       "Found functions
                                          pAuth              "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.
          if pClName+0(1) ca ASTERIX.
          Restrict the search to customer objects only.
            pCust = 'X'.
          endif.
          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.
          if pProg+0(1) ca ASTERIX.
          Restrict the search to customer objects only.
            pCust = 'X'.
          endif.
          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[]
                                                 pFolder
                                                 HTMLEXtension
                                                 space
                                                 pSortT.
            Free up any memory used for caching HTML versions of tables
              loop at iDictionary.
                free memory id iDictionary-tablename.
              endloop.
              get time.
              runTime = sy-uzeit - startTime.
              perform fillTreeNodeTables using iDictionary[]
                                               iTreeDisplay[]
                                               runTime.
              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
                                                     pFolder
                                                     downloadFileExtension
                                                     pHtml
                                                     space
                                                     pComm
                                                     customerNameSpace
                                                     pInc
                                                     pDict
                                                     pMess.
                   clear iSingleMessageClass[].
                 endat.
               endloop.
               get time.
               runTime = sy-uzeit - startTime.
               perform fillTreeNodeMessages using iMessages[]
                                                  iTreeDisplay[]
                                                  runTime.
               clear iMessages[].
           endif.
        Download functions
          when rFunc.
            if not ( iFunctions[] is initial ).
               perform downloadFunctions using iFunctions[]
                                               pFolder
                                               downloadFileExtension
                                               space
                                               pDoc
                                               pHtml
                                               pComm
                                               customerNameSpace
                                               pInc
                                               pDict
                                               TEXTEXTENSION
                                               HTMLEXTENSION
                                               pSortT.
            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.
              get time.
              runTime = sy-uzeit - startTime.
              perform fillTreeNodeFunctions using iFunctions[]
                                                  iTreeDisplay[]
                                                  runTime.
              clear iFunctions[].
            endif.
        Download Classes
          when rClass.
            if not ( iClasses[] is initial ).
              perform downloadClasses using iClasses[]
                                            iFunctions[]
                                            pFolder
                                            downloadFileExtension
                                            HTMLEXTENSION
                                            TEXTEXTENSION
                                            pHtml
                                            pComm
                                            customerNameSpace
                                            pInc
                                            pDict
                                            pDoc
                                            pSortT.
            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.
            Free up any memory used for caching HTML versions of tables
              loop at iPrograms.
                loop at iPrograms-iDictStruct assigning <waDictStruct>..
                  free memory id <waDictStruct>-tablename.
                endloop.
              endloop.
               get time.
               runTime = sy-uzeit - startTime.
               perform fillTreeNodeClasses using iClasses[]
                                                 iFunctions[]
                                                 iTreeDisplay[]
                                                 runTime.
               clear iClasses[].
               clear iFunctions[].
            endif.
        Download programs
          when rProg.
            if not ( iPrograms[] is initial ).
              perform downloadPrograms using iPrograms[]
                                             iFunctions[]
                                             pFolder
                                             downloadFileExtension
                                             HTMLEXTENSION
                                             TEXTEXTENSION
                                             pHtml
                                             pComm
                                             customerNameSpace
                                             pInc
                                             pDict
                                             pDoc
                                             pSortT.
            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.
            Free up any memory used for caching HTML versions of tables
              loop at iPrograms.
                loop at iPrograms-iDictStruct assigning <waDictStruct>..
                  free memory id <waDictStruct>-tablename.
                endloop.
              endloop.
               get time.
               runTime = sy-uzeit - startTime.
               perform fillTreeNodePrograms using iPrograms[]
                                                  iFunctions[]
                                                  iTreeDisplay[]
                                                  runTime.
               clear iPrograms[].
               clear iFunctions[].
            endif.
        endcase.
        if not ( iTreeDisplay[] is initial ).
          perform displayTree using iTreeDisplay[].
        else.
          statusBarMessage = 'No items found matching selection criteria'.
          perform displayStatus using statusBarMessage 1.
        endif.
      endif.
    *--- Memory IDs
    User name
      set parameter id 'MAUTH' field pAuth.
    Table name
      set parameter id 'MTABLE' field pTable.
    Message class
      set parameter id 'MMNAME' field pMname.
    Function
      set parameter id 'MFNAME' field pFName.
    Function group
      set parameter id 'MFGROUP' field pFgroup.
    Class
      set parameter id 'MCNAME' field pClName.
    Program
      set parameter id 'MPROG' field pProg.
    Customer namespace
      set parameter id 'MNAMESPACE' field pCName.
    Folder
      set parameter id 'MFOLDER' field pFolder.
    Package
      set parameter id 'MPACK' field pPack.
    Text element checkbox
      set parameter id 'MTEXT' field pText.
    Messages checkbox
      set parameter id 'MMESS' field pMess.
    Includes checkbox
      set parameter id 'MINC' field pInc.
    Recursive includes checkbox.
      set parameter id 'MRECI' field pReci.
    Functions checkbox
      set parameter id 'MFUNC' field pFunc.
    Recursive functions checkbox
      set parameter id 'MRECF' field pRecf.
    Function module documntation checkbox
      set parameter id 'MDOC' field pDoc.
    Screens checkbox
      set parameter id 'MSCR' field pScr.
    Dictionary checkbox
      set parameter id 'MDICT' field pDict.
    Sort table ascending checkBox
      set parameter id 'MSORTT' field pSortT.
    ****************************************SUBROUTINES***************************************************
    checkComboBoxes...  Check input parameters
    form checkComboBoxes.
      if pAuth is initial.
        case 'X'.
          when rTable.
            if pTable is initial.
              statusBarMessage = 'You must enter either a table name or author.'.
            endif.
          when rFunc.
            if ( pFName is initial ) and ( pFGroup is initial ).
              if pFName is initial.
                statusBarMessage = 'You must enter either a function name or author.'.
              else.
                if pFGroup is initial.
                  statusBarMessage = 'You must enter either a function group, or an author name.'.
                endif.
              endif.
            endif.
          when rProg.
            if pProg is initial.
                statusBarMessage = 'You must enter either a program name or author name.'.
            endif.
        endcase.
    Check the user name of the person objects are to be downloaded for
      else.
        if pAuth = 'SAP*' or pauth = 'SAP'.
          statusBarMessage = 'Sorry cannot download all objects for SAP standard user'.
        endif.
      endif.
      if not statusBarMessage is initial.
        perform displayStatus using statusBarMessage 3.
        forcedExit = 1.
        stop.
      endif.
    endform.                                                                                "checkComboBoxes
    fillSelectionRanges...      for selection routines
    form fillSelectionRanges.
    data: valueToFind type string.
      if not pAuth is initial.
        soAuthor-sign = 'I'.
        soAuthor-option = 'EQ'.
        soAuthor-low = pAuth.
        append soAuthor.
      endif.
      if not pTable is initial.
        if not pcName is initial and not pTable+0(1) = '/'.
          concatenate pcName pTable into valueToFind.
        else.
          valueTofind = pTable.
        endif.
        soTable-sign = 'I'.
        soTable-option = 'EQ'.
        soTable-low = valueToFind.
        append soTable.
      endif.
      if not pFName is initial.
        if not pcName is initial and not pFName+0(1) = '/'.
          concatenate pcName pFName into valueToFind.
        else.
          valueTofind = pFName.
        endif.
        soFunctionName-sign = 'I'.
        perform addOption using valueToFind soFunctionName-option.
        soFunctionName-low = valueToFind.
        append soFunctionName.
      endif.
      if not pFGroup is initial.
        if not pcName is initial and not pFGroup+0(1) = '/'.
          concatenate pcName pFGroup into valueToFind.
        else.
          valueTofind = pFGroup.
        endif.
        soFunctionGroup-sign = 'I'.
        perform addOption using valueToFind sofunctionGroup-option.
        soFunctionGroup-low = valueToFind.
        append soFunctionGroup.
      endif.
      if not pClName is initial.
        if not pcName is initial and not pClname+0(1) = '/'.
          concatenate pcName pClname into valueToFind.
        else.
          valueTofind = pClname.
        endif.
        soClassName-sign = 'I'.
        perform addOption using valueToFind soClassName-option.
        soClassName-low = valueToFind.
        append soClassName.
      endif.
      if not pProg is initial.
        if not pcName is initial and not pProg+0(1) = '/'.
          concatenate pcName pProg into valueToFind.
        else.
          valueTofind = pProg.
        endif.
        soProgramName-sign = 'I'.
        perform addOption using valueToFind soProgramName-option.
        soProgramName-low = valueTofind.
        append soProgramName.
      endif.
    endfo

  • Driver program for the Dunning letter SAP Script

    Hello All,
    Can someone please tell me how to find the "Driver program for the Dunning letter SAP Script". I checked the Transaction OB96 but I dont find any Dunning scripts here i.e., the standard Dunning letter SAP Script F150_DUNN_01.
    Is there any Transaction like NACE of logistics for FI module to find the Driver programs. My requirement is to find the Driver program for the Dunning letter SAP Script and have a new Driver program instead of the standard SAP given driver program. Example is in transaction NACE we can change the driver program for Invoice like from RVADIN01 to ZRVADIN01.
    Thanks and Regards,
    SNK.

    Yes you can, using FIBF, change the FM associated with event 1720 like when SapScript is replaced with SmartForms. Look at [Define Dunning Forms (with SAP Smart Forms)|http://help.sap.com/saphelp_46c/helpdata/es/7d/c7a0a535e1d311ba4d0800060d888b/content.htm] for reference.
    But notice
    - PRINT_DUNNING_NOTICE call many FM of the same FG which share the same global data area.
    - During following upgrades of your system you will have to manage a copy of standard.
    Regards,
    Raymond

  • Purpose of RSTXTRAN program for SAP-Script ?? ??

    Purpose of RSTXTRAN program for SAP-Script ?? ??
    when it is required to run that program ?

    Hi sarit,
    Purpose of RSTXTRAN program for SAP-Script Transfer of SAP script Texts to a Correction.
    The report RSTXTRAN allows a set of SAP script texts (or the text key) to be transferred to a correction or repair of the transport system. The name of the correction/repair can either be transferred as a report parameter, or the correction/repair can be selected later in a selection window. The text key can be qualified generically using the asterisk character (*).
    When the report has been executed, the list of selected texts appears. Individual texts can be deselected in this list. When the function "Continue" is executed, the final list of texts which are to be transferred is displayed. The transfer of texts to the correction/repair can now be activated by the appropriate function, and must be confirmed in a dialog box.The requirements for this as follows.
    There is a correction/repair in which the selected text keys can be entered, if it is not being processed. The report can only insert text keys in corrections or repairs, not however in transport requests. However, the objects contained in a correction can be transferred to a transport request with the correction and transport system transaction.
    It should also be noted that the report selects texts in the current client, but that the transport system generally exports texts from client 000.
    When the report has been executed,the output can be a list of the selected texts. Information about whether transfer to the correction/repair was possible is displayed for each text key.
    Reasons for failed transfer include
    o the correction/repair is currently being processed
    o the correction/repair does not exist
    For Example
    All German standard texts with the ID ST, whose names begin with SAPSCRIPT, are to be entered in the correction B20K009999. The report parameters are then assigned values as follows:
    o Correction: B20K009999
    o Text object: TEXT
    o Text name: SAPSCRIPT*
    Thanks,
    Usha

  • Standard driver program for sale order

    i am working with sale order confirmation,(smartforms)
    is there any pre defined driver program for this.Not RVador01/
    and i need to display the output in the form of a print out or PDF for sending the mail.
    So please give me the logic for this.

    Hi,
    have a look at table <b>TNAPR</b> to check the print program assigned to your smartform/sapscript.
    Best regards.

  • Adding in Select statement for SAPscript printout

    Hi everyone,
    I have a new requirement where i would need to output a new field in a sapscript printout.
    A summary of the requirements is as follows:
    -> If EKPO-PSTYP = '3'
       -> select RSNUM
          from EKET
          where EKET-EBELN = EKPO-EBELN and
                EKET-EBELP = EKPO-EBELP
       -> select MATNR
          from RESB
          where RESB-RSNUM = EKET-RSNUM
       -> display RESB-MATNR in printout
    At the moment, the sapscript is only reading from table EKPO, whereas for the new requirement to work, i'll also need to read from table EKET and RESB. Am i right to understand that sapscript cannot read SELECT statements directly from the Change Editor and i would need to do a PERFORM statement?
    The question now is, where do i put this part of the logic? Any ideas?
    Message was edited by: Bernard Loh

    Hi,
    Write a PERFORM in your script.
      PERFORM GET_MATNR IN PROGRAM Z_SUBROTINEPOOL
                        USING W_EBELN W_EBELP
                        CHANGING W_MATNR
      ENDPERFORM.
      And check the following to write the FORM in the Z program.
    The structure ITCSY is used in relation with SAPScripts. You can call a Routine in any program in SAPScript.
    For eg: if you have a subroutine named ADD_INCOME in a program ZSHAIL_BASIC, you can call the subroutine in SAPScript as follows:
    /: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC
    /: USING &var1&
    /: CHANGING &var2&
    /: ENDPERFORM.
    Here the input parameter to the subroutine is var1 and the value returned by the subroutine is var2.
    In the program ZSHAIL_BASIC, you have to call the subroutine as
    FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    IN_TAB is a structure of type ITCSY,which has 2 components, NAME and value.
    So in the program, var1(which is sent from SAPScript) , will be stored as IN_TAB-NAME and its value will be in IN_TAB-VALUE. You can utilise the IN_TAB-VALUE and after performing the required operations, the return value should be assigned to table OUT_TAB.
    This value can thus be obtained in var2 specified in SAPScript.
      Also you can search for "SUBROUTINE IN SCRIPT"... "PERFORM IN SCRIPT", "ITCSY"....
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • Customized PO printing program and sapscript

    Hello,
    i have created a customized program and sapscript for PO printing.
    its working fine in our config client..when i moved to our training client... 2 information is not printing (ie: vendor name)
    i tried to do comparision of the program and sapscript of the 2 client and both are same..
    all setting is completed (NACE,MN04 etc) its only the one field not being display when i do my testing in the training client.
    i tried to use debug on training client and noticed that the field for vendor name is not being populated... but its working fine in the config client..same set up of vendor etc.
    anyway i can check what i have missed out ?
    thanks in advance.
    Edited by: she on Dec 28, 2009 7:03 PM
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 28, 2009 2:36 PM

    Make sure the Vendor number and associated information exist in that client as well. Each client may very well have different Vendor numbers

  • Separate program for PO's printing

    Hi all,
    is there any way to separate printing program for PO..shall i create a copy of function ME_PRINT_PO ..
    pls advice

    it is the question why you need a separate program.
    Do you want to re-print or print with delay?
    you can customize the message types to print by saving the PO or to be print later from an external program.
    and i guess that is what you want.
    You can make your own program which select the NAST entries which are not done and print them using any Smartforms or Sapscript.
    perhaps you only need to make something special so u can use a copy from standard.
    Customizing ->"define message types for purchase Order.
    You have to change the standard entries with your program and form Routine for the medium you want.
    try to give us more information about why you need a separate printing...

  • I Require standard names for Sapscript form

    hai to all ,
    would any body help me in finding the standard sapscripts forms names and their correponding standard print programs for the following topics;
    1. RFQ
    2. QUOTATION
    3. CONTRACT
    4. CUSTOMER STATEMENT
    5. FI-INVOICE
    6. FI-CREDIT MEMO
    7. DUNNING LETTER
    8. ACCOUNTS PAYABLE CHECKS
    Correct answers will be appreciated.
    thank you ,
    rajesh kumar.

    Hi Rajesh,
       Go to Nace transaction.Choose your application.For Example RFQ application EF and for Sales Application V1 , Billing V3. After selecting go to the output types and from there Processing routines.
       U can also search using tables.for sd and mm related scripts u can find in table TNAPR and for finace related script programs and layouts u can find in table t001f.
    If this helps u reward me points.
    Regards,
    vijay.

Maybe you are looking for

  • Endereço Ship to Address em itens vindos de requisições de compras

    Olá amigos. Estamos usando o SRM 5 no cenário clássico extendido e estamos enfrentando um problema durante a migração de requisições de compras proveniente de um backend para o SRM: O procedimento é referente ao endereço Ship to Address e acontece no

  • FacesMessage are not getting displayed

    The h:form contains input fields, some of them has attached FacesMessage which are invoked using ajax. The h:form contains a submit button which is having an actionListener and an action filed- <p:commandButton value="Submit" update=":message" action

  • Lightroom 4 Crash

    Just installed Lightroom 4 and have tried to select book module and the progam constantly crashes everytime I do.....Other modules appear to be working properly. Only the book module is shutting down the program....Any one else having similar problem

  • Login user name in worklist

    Dears, can get user name login in worklist in ADF form page ? if yes pls how?

  • Passer de snow leopard a lion 10.7

    Bonjour, Je suis sur snow léopard je souhaite passer a lion 10.7 , je ne trouve plus sur apple store de lien pour acheter lion 10.7. de plus l'orsque j'éssai de telecharger mountain lion 10.8 apple store m'indique que ma machine n'est pas compatble .