Print program for delivery output printing

Hi,
I need help with creating a custom smart form and print program for outbound delivery.
1. i want to know how to select data in my print program ? i mean how to i get the delivery number when the output type is executed.
2. What parameters are to be passed so that delivery opens as soon as the output type is processed.
Thank you.
Usha

Details of output triggered can be obtained from nast. By default structure nast is populated with the values when the print program is being processed. Field OBJKY is used for the delivery number; Application : V2
It could be enough to pass an internal table with item level details and an header structure. This more or less is dependent on the output desired.
Rgds,
Karthik

Similar Messages

  • Problem with Submit statement into print program for delivery

    Hi all,
    i got a problem with the SUBMIT statement that i put into a print program associated to a delivery output message.
    If i print the message by VL02N or VL71, everything works.
    But if i associate the output with RV56ABST, the SUBMIT instruction isn't accepted and i get the message
    "Processor ABAP: POSTING_ILLEGAL_STATEMENT"
    There is any solution to this situation?
    Why i cannot use the SUBMIT statement in this case?

    Hi Simone,
    you could try to do the operation in a separate task (call a function in starting new task). This will decouple your current process from the new task.
    Cheers,
    Stefan.

  • Contents of a custom print program for a custom smartform

    Hi...
    Can you please tell me if we are writing a custom print program from scratch for a custom smartform for which there is no standard form available what are all the things that need to be coded in the print program..
    My doubts on this are if we are configuring this form for output types of PO purchase order for mediums 1,2, 5 and 6 does any extra coding need to be done in the print program that is related to these mediums or is it just a configuration issue..
    Apart from data retrieval part and call the function modules to send the data to smartforms what are the other things that we need to code in a custom smartform..  Anything that we need to code related to printing issues..
    It would be great if someone can post a custom print program for any output type valid for mediums 1, 2, 5 and 6.
    Also my last doubt is do we need to do anything in SE11 in designing a smartform and in what context do we need it...
    Thanks and appreciate your help... Surely will reward for all the helpful answers..
    Thanks again..
    Kanthi..

    Hi,
    yes you need to create your own print program. You need to catch printing information and to send data to your smartforms.
    To send data to your smartforms you need to use structure describe in the data dictionnary.
    This is a peace of code for sending information to a smartform that will be print used an external program (Esker)
      DATA: it_data       LIKE TABLE OF zssf_bl WITH HEADER LINE,
            w_formname TYPE tdsfname ,
            w_fm_name  TYPE rs38l_fnam ,
            is_output  TYPE ssfcompop ,
            is_control TYPE ssfctrlop ,
            is_job_out TYPE ssfcresop .
    *  Récupère le nom du module fonction.
      MOVE 'Z_BL_STT' TO w_formname.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = w_formname
        IMPORTING
          fm_name                  = w_fm_name
        EXCEPTIONS
          OTHERS                   = 3.
    * Prépare les paramètres d'impression.
      is_output-xsfcmode   = 'X'.
      is_output-xsf        = 'X'.
      is_output-xsfoutmode = 'S'.
      is_output-xsfoutdev  = 'DOCL'.
      is_output-xsfformat  = 'X'.
      is_output-tdnoprev   = 'X'.
      is_output-tdnoprint  = ' '.
      is_output-tddest     = 'DOCL'.
      is_output-tdprinter  = 'PLAIN'.
      is_output-tdnewid    = 'X'.
      is_output-tdimmed    = 'X'.
      is_output-tddelete   = 'X'.
      is_control-no_dialog = 'X'.
      is_control-preview   = ' '.
      is_control-no_open   = 'X'.
      is_control-no_close  = ' '.
    * Prepare le formulaire
      CALL FUNCTION 'SSF_OPEN'
        EXPORTING
          user_settings      = ' '
          output_options     = is_output
          control_parameters = is_control
        IMPORTING
          job_output_options = is_job_out
        EXCEPTIONS
          OTHERS             = 5.
    * Appels du formulaire.
      CALL FUNCTION w_fm_name
        EXPORTING
          control_parameters = is_control
          output_options     = is_output
          is_bl              = zbl_soustrait
        TABLES
          it_data            = it_data
        EXCEPTIONS
          OTHERS             = 5.
    You need to catch information from the NAST table maybe
    Rgd
    Frédéric

  • Print program for the smartform for selecting the output type (email/fax)

    Hi All,
    Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
    can any body please let me know how  to put the condition for selecting the desired  output type ?
    Thanks in advance
    Rahul

    Hi
    It is not the output type that has to be changed
    it is the MEDIUM which you have to change and configure
    for printout medium is 1
    for FAX medium is 2
    for MAIL it is 7.
    so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
    Reward points for useful Answers
    Regards
    Anji

  • Standard samrtforms and print program for  Bill of Lading in delivery

    Is there a standard smartform  and print program for  Bill of Lading for delivery?

    Hi
    Check this:
    Print Program: RLE_DELNOTE.
    Smartform:   LE_SHP_DELNOTE.
    Regards,
    Vishwa.

  • Ho to find script and the related print program for print preview of PO

    Hi All,
    We are getting some text output on the print preview of a purchase order.
    How can we determine the driver script and the corresponding print program for this.
    Can you please guide on this.
    Thanks in advance.
    Regards,
    Sanjeet

    U Can check Driver program and form related to that program table is TNAPPR
    Goto NACE t.code
    Selct Application ---> click on output types
    then u wil get one window there select proper output type and
    double click on  processing  routines u wil get form name and related driver program name also
    Plz try this....
    Edited by: Upender Verma on Feb 9, 2009 1:33 PM
    Edited by: Upender Verma on Feb 9, 2009 1:37 PM

  • Print program for PO

    Hi..
    I'm trying to find the print program for MEDRUCK(Purchase Order). In NACE I found a program called 'SAPFM06P' for print output medium.. But it is a subroutine pool.. How to execute this program?
    Regards,
    Nithy

    Yes, the printing program is called by the form
    ENTRY_NEU in 'SAPFM06P'

  • Print preview for PO output

    Hi,
    I have an issue with viewing print preview for PO output.
    In Messages,output type has been defined.
    I am trying to display print preview of the PO outpit by clicking on the print preview button.
    Instead of displaying the print preview on my screen,the printout is directly fired in the printer.Please note I am trying to display just the print preview and not printing the PO.
    This happens even when I have not set 'Print immediately' indicator in Communication setting and have defined 'Send with application own transaction'.
    Your input on this would be of great help,
    Regards,
    Bikram

    Hi,
    Triggering print or Preview option is dependent on driver program assigned to output type in OMTB. It will be customized program. You need to do modification in your customized program.

  • Standard print program for order confirmation

    Hi All,
    I have created smartform for sales order confirmation,now i want to attach it to output type i need standard print program for order confirmation.Do we have any standard program for the same ?
    Thanks in advance
    Shrila

    Hi Shrila,
       refer to the thread below:
    Order confirmation  smartform
    With luck,
    Pritam.

  • 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

  • Print programs for (print) interactive forms

    Hello,
    I am looking for an (any) interactive form and the print-program belonging to this form.
    It can be any form from any moudule, as i only need it for testing purposes.
    Thank you!

    Hi,
      My requirement to migrate puchase order smartformto Adobe interactive form.
      I have mgrated my purchase order smartform to Adobe interactive form,
      activated form and interface.
    Question:  How do i trigger or my adobe interactive form purchase order in R/3.
                     I want to trigger the form from me22n -> print privew..
    I have configured in NACE (Output type customization)  with same samrtform print program with adobe form and Type  as PDF. But the adobe form is not trigering at all..  Can any know how do i trigger adobe form from ME22n.
    Is there any special print program for this please let me know..
    thx

  • How to write print program for smartforms

    Hi all
    I need to develop new smartform and its print program.
    But Im not experience in writing print program for smartform.
    Ive gone through the simple print program sample that use only one table as input and one table for output.
    But my smartforms require few tables for input and output.
    How should I define the Data?
    Can anyone guide me on how to write it.
    Thanks & Regards
    az

    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Reward points...

  • Sample print program for script.

    Hi
    I want to develop simple sapscript for displaying data from single internal table.
    so for that i have to wirte print program, if anyone have sample print program then plz send me.
    thanks.

    Hi,
    Check this.
    The print program is used to print the actual form ,the functions the print program has to do include retrieving of data from database tables , selecting a FORM and printing of TEXT ELEMENTS in a desired sequence.
                The function modules used in aprint prgram are :
    OPEN_FORM
    START_FORM
    WRITE_FORM
    CONTROL_FORM
    END_FORM
    CLOSE_FROM
    To start printing a form we must use OPEN_FORM and in the end we should use CLOSE_FORM to complete the spool request.
    Function modules in detail.
    OPEN_FORM function module
    This function module should be called first before any printing can take place , here we specify the name of the form and the print language.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       DIALOG         = 'X'
       DEVICE         = 'PRINTER'
       FORM            = form name
       LANGUAGE   = SY-LANGU
    OPTIONS      =
    EXCEPTIONS
       CANCELLED  = 1
       DEVICE          = 2
       FORM            = 3
       OTHERS        = 11
    IF SY-SUBRC NE 0.
    MESSAGE ...
    ENDIF.
    In the above function module the parameter
    FORM      = Name of form
    DEVICE    = PRINTER (print using spool),TELEFAX (fax output)
                       SCREEN (output to screen)
    OPTIONS = It is a structure of type ITCPO and it controls the various
                       attributes like number of copies , print preview etc.
    START_FROM function module
    This function module is called if we want to use different forms with similar characterstics in a single spool request,it must be closed by END_FORM function module.
    CALL FUNCTION 'START_FORM'
    EXPORTING
      FORM            =
      LANGUAGE    =
      STARTPAGE  =
    EXCEPTIONS
      FORM            = 1
      OTHERS        = 7
    IF SY-SUBRC NE 0.
    MESSAGE ...
    ENDIF.
    WRITE_FORM Function module
    This function module is used to write text in a window in the form using
    text elements (/:E element). We can specify whether the text is to be appended , replaced or added and in which portion of the window it will be printed i.e TOP, BOTTOM ,BODY. In this function module actual printing takes place.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT    =
       FUNCTION  =
       TYPE          =
       WINDOW    =
    EXCEPTIONS
       ELEMENT   =  1
        OTHERS    =  9
    IF SY-SUBRC NE 0.
    MESSAGE ...
    ENDIF.
    Here in this function module the ELEMENT specifies which textelement is
    printed . WINDOW specifies which window of the form to be print in.
    TYPE specifies the output area of the window TOP,BOTTOM,BODY.
    FUNCTION specifies whether the text is to be appended , replaced or added.
    CLOSE_FORM function module
    This function module should be called in the end and it has no exporting
    parameter.
    CALL FUNCTION 'CLOSE_FROM'
    IMPORTING
      RESULT     =
    EXCEPTIONS
        UNOPENED = 1
        OTHERS     =  5
    IF SY-SUBRC NE 0.
    MESSAGE ...
    ENDIF.
       Here the result parameteer returns the status information and print/fax parameters after the form has been printed.
    CONTROL_FORM function module
    This function module is used to insert SAPScript control commands like NEW-PAGE etc from whithin the ABAP program.
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
      COMMAND    =
    EXCEPTIONS
      UNOPENED   = 1
      OTHERS        = 3
    IF SY-SUBRC NE 0.
    MESSAGE ...
    ENDIF.
    --Ragu

  • To find print program for smartforms.

    pls tell me how to find print programs for smartforms.pls tell me with all steps.clearly.i tried with tanpr table but unable to find

    hi,
    Please take a look at the NACE transaction where all the output conditions will be configured. Drill down into you specific application and you should be able to find the print program as well as the smart form name.
    Steps..
    Use NACE and follow procedure as follows
    1)Choose Application from list(eg PO)
    2)Click OP type
    3)Chose one OP type from Right pane.
    4)Click on processing routines
    and you got it
    regards,
    keerthi

  • Standard print program for fi invoice smartform printing

    Hi friend,
    Is there any standard print program available for printing FI related invoice .
    I want print program for printing smartforms.
    I want to know any method for searching the standard print program for printing smartform in Fi module.
    Thanks & Regards,
    Sathish

    Hi,
    FI related Forms will be configure in SPRO.
    Goto SPRO and FI related applivcation.
    There you will find the related forms and programs.

Maybe you are looking for

  • Reading pdf files in Firefox

    Firefox for Android seems to have lost the ability to display pdf files from websites. Instead it downloads 2-3 files named with jumbled characters including the word "part", none of which I can open. There seems to be some interaction with MobiSyste

  • Bad Data treated as row delimiter

    HI, i'm having an issue about the SAP download file having a bad data treated by BODI as row delimiter. *Here is the error:* A row delimiter was seen for row number <12424> while processing column number <32> in file                                  

  • What are these posts from group ASSA doing here?

    assa - Novell - NetIQ - SUSE I see results on searches of this group also.

  • BI_PROCESS_ABAP Job cancelled in ecc

    Hi, I have a situation where BI_PROCESS_ABAP Job cancelled in ecc . The job details are . Please help me int this. why it got failed and how to fix this.

  • Mac users

    I need help!  I have a Mac & am using Photoshop Elements 11.  I have received the code:  Error 22: Windows does not have a constructor. Line 387 Once I was able to photomerge, but now I get this error message every time I try it.  Can someone please