Driver program for SAP CONNECT

hi guys,
I am sending a output request from spool to be sent via mail and that is through SAP CONNECT. can anyone tell me wat is the driver program behind it?
i tried to debug it but cudnt find.
i want the program that send the request from spool to SAP CONNECT.
please help me if u can..
gaurav

Hi,
It is possibel to pouplate subject. Eg given below.
FORM email_output  TABLES   pt_out STRUCTURE t_output.
Populate table with details to be entered into .xls file
  CLASS cl_abap_char_utilities DEFINITION LOAD.
  CONSTANTS:
  con_tab  TYPE c VALUE    cl_abap_char_utilities=>horizontal_tab,
  con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
  DATA: lw_user TYPE so_recname.
  DATA: no TYPE i.
  FIELD-SYMBOLS <fs> TYPE ANY.
  FIELD-SYMBOLS <fs1> TYPE ANY.
  DATA: temp(1000)      TYPE c.
  DATA: lw_email        TYPE  so_recname.
  DATA: lw_today(10)    TYPE c.
  DATA: lw_message      TYPE char256.
  DATA: BEGIN OF tw_out OCCURS 0,
  matnr LIKE  mara-matnr, 
lifnr  LIKE  lfa1-lifnr ,           
END OF tw_out.
  loop at t_output.
    move t_output-matnr    to  tw_out-matnr.
    move t_output-lifnr    to  tw_out-lifnr.
    append tw_out.
  endloop.
Output headings
  CONCATENATE
  'Article'
  con_tab 'Vendor' con_tab INTO temp.
  MOVE temp TO gt_attach-tabname3000.
  CONCATENATE con_cret gt_attach  INTO gt_attach.
  APPEND  gt_attach.
  CLEAR gt_attach.
  LOOP AT tw_out .
    CLEAR: temp, no.
    DO 255 TIMES.
      ADD 1 TO no.
      ASSIGN COMPONENT no OF STRUCTURE tw_out TO <fs>.
      CONCATENATE  temp <fs> con_tab INTO temp.
      CLEAR <fs>.
    ENDDO.
    MOVE temp TO gt_attach-tabname3000.
    CONCATENATE con_cret gt_attach  INTO gt_attach.
    APPEND  gt_attach.
    CLEAR gt_attach.
  ENDLOOP.
  CONDENSE p_user NO-GAPS.
  TRANSLATE p_user TO LOWER CASE.
  MOVE p_user TO lw_user.
  WRITE sy-datum TO lw_today.
  CONCATENATE lw_today '_' 'WRITE SUBJECT HERE'
  INTO lw_message.
  CALL FUNCTION 'ZMD_EMAIL_XLS_ATTACHMENTS'
    EXPORTING
      email    = lw_user
      MESSAGE  = lw_message
    TABLES
      t_attach = gt_attach.
ENDFORM.                    " email_output
If helpful pl reward.
Cheers

Similar Messages

  • Debugging driver program for SAP SCrIPT

    Hi,
    I am using a z report for creating handling units.As soon as the handling units are created the spool is genearted for all the handling units and the spool requests are visible in SP01.However the print ouput is having some error.I want to debug the driver program.Fronm nace I found out the driver program and have placed break-point in the form routine Entry sapscript and also activated thhe debugger for te concerned SCript,but the debugger is not stopping .
    Also I have checked the script name from the spool.
    Kindly guide where is the problem and how to proceed.Any help will be acknowledged.
    Regards,
    Abhishek

    HI,
    Write  a infinite loop  in the diver program before u call the open form or before the statement from where you want to debug.
    set the infinite loop by this code.
    data no type i value 1.
    while no eq 1.
    endwhile.
    break-point.
    Then after inserting this code activate and run the program, then run the transaction after runing the transaction ,
    goto TCODE ->SM50 u will see list of program select the driver program then select program/session from menu then select program->debugging, then your debug will start from the infinite loop , then change to 2 , then u can debug the program.
    Hope this helps.
    Regards,
    Madhukar Shetty

  • Driver program for FORM16

    Hi all,
    I am seaching for Driver program for FORM16 SMART FORM .There is one driver program for sap script , for smart form J_1IEWT_CERT IS there any driver program  .
    Can any one please guide me how to proceed?
    thanks in advance.
    Regards,
    suresh.

    Hi, i recently solved the j1incert issue.
    Can i know whether are you trying to change to the new tds format for form 16 (new format on 2010)?
    If so please let me know. i can guide you.
    [Click here|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1522189] for new
    (note you need to have market place login) tds certificate format (2010)
    oss note: 1522189
    earlier the form used to be in script but now changed into smartform.
    For the driver program of form 16 in se38 please enter report name as J_1IEWT_CERT . and click on display
    Regards,
    koolspy.

  • Smart form and its driver program for sales order

    Hi Experts,
    Please give me the standard Smart Form name along with its Standard driver program.
    I already have RVADOR01 program which is a driver program for SAP Script RVORDER01.
    But I need standard smart form with its standard driver program for VA02, VA03 (Sales order) transaction.
    <REMOVED BY MODERATOR>
    Thanks In Advance
    Ram
    Edited by: Alvaro Tejada Galindo on Apr 8, 2008 12:10 PM

    Hi Ramachandra Babu,
                  Welcome To SDN!!
    Check output types in NACE tcode...
    Sample example,
    Goto Transaction NACE --> Select Application V1(Sales) --> Click on Output Types --> Select the output type as BA00 (as generally BA00 is the output type associated with Sales Order ) --> Double click on the Processing Routines folder on the left and it will display the Form name and the corresponding driver programs name.
    Regards
    Kiran

  • 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

  • Driver program for Purchase Order form "/SMB40/MMPO_A"

    Hi All
    Could you please suggest me Driver program for Purchase Order form "/SMB40/MMPO_A" ?
    Driver program "/SMB40/FM06P" does not have the same interface structure as this form, hence can not be used.
    << Text removed>>.
    Regards
    Ansh
    Edited by: Matt on Mar 27, 2009 7:22 AM - Please do not offer points

    Hi Ansh
    see this link
    [Driver program |https://forums.sdn.sap.com/click.jspa?searchID=24089230&messageID=6810108]
    Regards
    HAreesh Menon

  • Driver Program For Withholding tax(USA) Smartform 'idwtcert_us_1099misc1'

    Hai friends,
       i need to print withholding taxes(USA) by using the smartform 'idwtcert_us_1099misc1'. for this purpose
    for driver program i checked in tnapr table. & i have checked in sap Img Path also. but i am unable to find it.
    so please help in this regaurd. & i want to know how to find driver programs for standard FI smartforms.

    Hi Wayne,
    We opened a note with SAP and were told that a US 1042s copy could not be used within the standard system.  Looking into it further we found that the form name was coded into a selection program.  We had an ABAP developer add code that allows us to use a "Z_"  copy form. 
    Regards,
    Gregg

  • Driver program for (request for quotation) /SMB40/MMRFQ_A smart form

    Dear friends,
    I found a standard smartform for request for quotation ie /SMB40/MMRFQ_A..but i am unable to find a driver program for this standard form..
    Also checked in TNAPR table and nace t code for driver program.
    pls tell me the driver prog for the above SF..
    Regards.
    Vinod

    Ok. That is because standard smartforms are not coming part of the package. You either install an ADD-On related to the preconfigured smartforms. If you have access to service.sap.com, you can download the preconfigured smartforms.
    The other option is to Migrate Script to Smartforms from Smartforms tcode...in MenuUtilities>Migration/
    After migration, you will get the layout....and you have to change the smartform from scratch.
    Vishwa.

  • 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

  • Smart form driver program for VF23

    hi any one can tell me is there a standard driver program for a smartform to run  transaction VF23. There is a Standard SAP script program named RVADIL01 . Is there a similar driver program for Smartform for the same Invoice List Transaction .

    Hi swathi,
    Yes based on conditions you can print the smartform in the driver program.
    SELECTION-SCREEN BEGIN OF BLOCK block  WITH FRAME.
    PARAMETERS:
    p_vintag  RADIOBUTTON GROUP rad1,
    p_contag RADIOBUTTON GROUP rad1,
    p_rmctag  RADIOBUTTON GROUP rad1,
    p_rfrtag  RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK block.
       IF sy-subrc EQ 0.
    *"For Vintag smartform................................................
        IF p_vintag EQ 'X'.
          w_form = 'Y_HFA_VINTAG'.
    *"For Containertag smartform..........................................
        ELSEIF p_contag EQ 'X'.
          w_form = 'Y_HFA_CONTTAG'.
    *"For Remanufacturedtag smartform.....................................
        ELSEIF p_rmctag EQ 'X'.
          w_form = 'YH_HFA_REMAC'.
    *"For Reefertag smartform.............................................
        ELSEIF p_rfrtag EQ 'X'.
          w_form = 'YH_HFA_REEFER'.
    Regards,
    Sravanthi

  • Driver program for  standard forms

    hai freinds can any one where to find the driver programs for standard forms
    like medruck rvrorder01 and all
    regards
    afzal

    hi mohamad,
    follow this procedure :
    1) got t-code <b>SPRO</b>
    2) click on the <b>SAP Refernce IMG</b> push button
    3) choose <b>MATERIAL MANAGEMENT</b> in the list
    4) in sub division chosse <b> PURCHASING</b>
    5) in those sub division now choose <b>MESSAGES</b>
    6) now again choose <b>FORMS (LAYOUT SET) FOR MESAAGES</b>
    7)now choose <b>Assign Form and Output Program for Purchase Order</b>
    8) now execute where u can find the <b>DRIVER Program</b> name for <b>MEDRUCK</b> as <b>    SAPFM06P</b>
    i hope this is useful to u...
    reward points if useful
    Thanks,
    Ginni

  • How to find Driver program for a smartform

    Dear Friends,
    I'm new to smartforms. Can any of you tell me how to find the Driver prog for a smartform.
    Many thanks in advance.
    Thanks & regards,
    Raghuveer K.

    If the application uses message control to print the smartform, then chekc in TNAPR, TNAPR-PGNAM is program name and TNAPR-SFORM is smartform.
    If you are trying to look for SAP standard program for SAP smartform, get the development class/Package name of the smartform from general attributes, and look for the best matching program name in the dev class in SE80.
    That's one way to find.
    Do a where used list on fm SSF_FUNCTION_MODULE_NAME, and search for the smartform name in the resulting programs. if you are lucky, you can find it quickly.
    There's no defined process to fine print program for a smartform.
    Regards
    Sridhar

  • Driver program for BIll of lading smartform

    Hi all,
    Can you please provide me the standard driver program for bill of lading smartform.
    or for purchase order smartform.
    Thanks and regards,
    Rajeev

    Hi,
      For Purchase Order - SAPFM06P.
    And for future info,
      If you Know the Application and Output Type - Then it is very easy to know the Smartform or the Script Used.
    1.Go to NACE and Check.
      For Ex: PO belong to APP type EF, So click on EF and then click on "Output Type " button.
                  Then all the output types will be displayed.Then select the required and Click on "Processing Functions". Then you can see the Configuration details done for this ouput type like which smartform, which subroutine.
    2.Also, You can check the TNAPR table entries by entring the below information
    Output Type, Message transmission medium, Application.
    Thanks & Regards,
    Vamsi.

  • Driver program for Pallet label or Handling unit

    Hi Friends,
      Could any one give me The standard driver program for Pallet label for Handling unit

    Hi Jyotiswaran,
    It can be without HU managed. You need to use SU (storage unit) managed storage types.
    When you do GR for inbound delivery and create a TO for stock putaway, by using the palletisation data in WM view 2 system generates the storage units. The same can be treated as the pallet number.
    Regards,
    Sudhir

  • Driver program for ADOBE FORM

    Hi experts ,
             Can anyone guide me for writing a driver program for ADOBE forms ( created using SFP transaction) . I have created the form but dont know how to run it using a driver program since i m new to SFP.
           Plz help me.
    Message was edited by:
            suchita phulkar

    Suchita,
    You can check this code.. This is purley to run the ADOBE form, above one is to run a smart form.
    *&      Form  print_form
    *       Subroutine to print the form
    FORM print_form .
      DATA : l_fmname TYPE funcname,
             l_params TYPE sfpoutputparams,
             l_docparams TYPE sfpdocparams,
             l_formoutput TYPE fpformoutput.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name                    = 'Z_CERT_CONTINU_FORM'
       IMPORTING
         e_funcname                 = l_fmname
    *   E_INTERFACE_TYPE           =
    *  l_params-getpdf = 'X'.
      l_params-nodialog = ''.
      l_params-preview = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = l_params
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      l_docparams-langu = 'E'.
      CALL FUNCTION l_fmname
        EXPORTING
          /1bcdwb/docparams  = l_docparams
          g_regis            = g_regis
          g_date             = g_date
          g_frmname          = g_frmname
          g_comp             = g_comp
        IMPORTING
          /1bcdwb/formoutput = l_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'FP_JOB_CLOSE'
    * IMPORTING
    *   E_RESULT             =
       EXCEPTIONS
         usage_error          = 1
         system_error         = 2
         internal_error       = 3
         OTHERS               = 4
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " print_form
    Thanks,
    Sreekanth
    <i>*-- Please close the post and do not forget to reward if it helps you</i>

Maybe you are looking for

  • Error running 9i reports from forms.

    Hi folks, i am having problems running 9i reports from a form. i have installed Oracle 9iDS on a Win XP machine with 256 MB RAM and a Pentium 1.4Ghz processor. i also have a local Oracle 9i database. i have created several reports that i am trying to

  • File, edit, view, history, etc. will NOT open on menu bar how to fix

    The file, edit, view, history, bookmarks, tools, help options on the menu bar will not open. This started to happen, intermittently, in the last few hours . . . and, now, seems permanent. I suspect an update. There are, also, other options which will

  • Headings to Bookmarks - w Word 2010 and Acrobat Pro 9

    So Adobe decided to rip us off by denying a fix for the Acrobat Pro Ribbon in  MS Office 2010 We refuse to take part on their money making scheme and spend loads to upgrade to Acrobat X just for that  (sorry Adobe, try not cheating your customers nex

  • Case or Decode in the Where clause

    Dear all, My requirement is: If user select other then "ALL"option from the LOV the following condition should be part of the where clause. current_req_status = :block1.req_statusIf user select "ALL" from the lov no need to append the above condition

  • Needed example working  code for  FM"LAST_DAY_IN_PERIOD_GET"

    needed example working  code for  FM"LAST_DAY_IN_PERIOD_GET"