How we modify print program in script

hi gurus.
how we modify print program in script, please tell elaborately.

Hi ..
first of all ... u have to check which is the print program for the given layout...
how u can find out is ... in NACE transaction... for certain o/p type .. there will be configuration done against the layout .. i mean for the particular layout .. a print program wud be assigned.
another way to find out the print program is thru table TNAPR..
once u find out the print program.. make sure u have to make changes in the print program .. i  mean once u decide "for the requirement u have to make changes to the print program.
Reward points if it is useful.
Thanks,
Manjunath MS

Similar Messages

  • How to find print program from script

    Hi,
    How can i find the print program from the script .
    i unable to find in TNAPR table.
    thanks,
    srii

    Hi Sridhar,
    U can find in NACE transaction.
    Please check this link
    search print program and sap script
    with po no how to find script and  print program for that  po.
    Best regards,
    raam

  • How to know print program for SAP Script

    Hi friends,
    how to know print program for SAP Script form name ?

    Hi ,
      You can use the following code changes in the layout & see..
    You have to create a program Z_BC460_EX4_HF for that..
    /:PERFORM GET_NAME IN PROGRAM Z_BC460_EX4_HF
    /:  USING &CUST&
    /:  CHANGING &NAME&
    /:ENDPERFORM.
    Dear &NAME&
    The ABAP routine could be defined as follows:
    IMPORTANT: The structure itcsy must be used for the parameters.
    REPORT Z_HENRIKF_SCRIPT_FORM .
      tables scustom.
      form get_name tables in_tab structure itcsy
                           out_tab structure itcsy.
      read table in_tab index 1.
      select single * from scustom
        where id = in_tab-value.
      if sy-subrc = 0.
        read table out_tab index 1.
        move scustom-name to out_tab-value.
        modify out_tab index sy-tabix.
      else.
        read table out_tab index 1.
        move 'No name' to out_tab-value.
        modify out_tab index sy-tabix.
      endif.
    You could also fill the ouput parameter table this way
       READ TABLE out_par WITH KEY 'NAME1'.
       out_par-value = l_name1.
       MODIFY out_par INDEX sy-tabix.
    endform.

  • How to attach print program and sap script for F150 transaction

    How to attach print program and Z sap script for F150 transaction

    Hi,
    you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
    Kostas

  • PO Print Program and Script

    Hi All,
    Where I can find a Print Program and Script associated with a particular PO.
    Please suggest.
    GS

    Hi,
    Go to me22n or me23n. Give the PO no . Click on Messages > See whether any output type exists or not. If exists then go to tyransaction nace . In th application select EF -Purchase Order. Click output type> In the output type search your output type Select it and then click on Processing routines you will see the program name & form name.
    You can check with the output type in TNAPR table also . By giving output type in KSCHIL field it will give u print program & Form name.
    Thanks,
    Abhijit

  • How to fetch Print program name of a SAP script?

    Hi abapers,
    Could you please tell me how to fetch the name of a script's print program with the help of the script's name?
    I have tried with table TNAPR and T-code NACE,it didnt help.
    Is there any function module that returns the print program's name.
    Please reply.
    Thanks,
    Suchi.

    hi ,
    GOTO SE71 Txn
    Enter standard script name.
    Click on Display.
    "in menu bar
    "form------>Check--->text ----->press enter
    Now you can view the standard print program name
    Thanks & Regards

  • Regarding how to find print program when you know Layout set in SAP SCRIPT

    Hi,
    I have a issue i know one Layout set name[SE71] in SAP Scripts i want to find out the print program for that can any body tell me how can we find.
    The Layout set name is <b>F140_CUS_STAT_J1</b>
    i need to find print program for that.
    Can anybody solve my issue.
    Thanks & Regards,
    Rayeez.

    Hi,
    I don't think <b>TNAPR</b> will give me any enries as this layout set<b>[F140_CUS_STAT_J1]</b> in related to FI module<b>[Japan Invoice]</b>.
    Also as per second reply i dont know about output type/Application so that i can go from NACE.
    Generally FI related Forms will be executed directly from report[Print Program] itself.
    If anybody knows solution please post it.
    Thanks & Regards,
    Rayeez.

  • Urgent plz how to find print program

    Hi,
    I have script (FORM) name how can i find the print program .
    the t.code is f.58
    Thanks,
    srii.

    Hi,
    go to program RSNAST00.
    Put a brkpt on line no. 875 i.e.
    PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCOD  US_SCREEN
                                                             IF FOUND.
    now run the script. TNAPR-PGNAM will be program name.
    Reward pts if usefull.
    Regards,
    Dhan

  • How to search print program

    HI FRIENDS.............
    I know the form name then ,How to search its print program  name?

    Hi Sateesh,
    Use the  NACE transaction:
    Please check this link
    search print program and sap script
    with po no how to find script and  print program for that  po.
    Source : https://forums.sdn.sap.com/click.jspa?searchID=15095030&messageID=5629547
    Have A Good Day
    Chaitanya.

  • 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...

  • How to find print program of pdf form

    hi,
    i want to know how can i find print program of pdf forms

    Hi,
    You can take a look  at the FP_PDF* test programs in SE38. Additional documentation and information on <a href="http://help.sap.com/saphelp_nw70/helpdata/en/96/6ee0d5b39640d68fc0078fc575114a/frameset.htm">help.sap.com</a>.
    Regards,
    Francois

  • How to modify standard programs

    HI FRIENDS..........
    is there any way to modify standard programs.....

    Hi Suresh,
    in the past it was necessary to modify standard programs. Today SAP offers lots of possibilities to modify programs without doing what SAP calls MODIFICATION.
    Have a look at the <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm">Enhancement Framework</a>, especially the different <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/70/63da4023a28631e10000000a1550b0/content.htm">Enhancement Technologies</a>
    If you do not understand everything, don't worry: Nobody does but it gives you some hints.
    Let us know why and where you think about modification. I'm convinced there are many nice solutions on hand.
    Regards,
    Clemens

  • 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

  • How to modify print options in PrinterJob

    Hi,
    I am trying to modify print options in PrinterJob programmatically, instead of using PrinterJob.PrintDialog().
    I tried to create a HashPrintRequestAttributeSet instance, but it can't be set to PrinterJob directly. I tried calling PrinterJob.PrintDialog(attributes). AfterI clicked the Print button, I didn't see the change in my PrinterJob. Is there a way to set all these attributes to PrinterJob programmatically and bypass the UI?
    Thanks in advance!

    Michel,
    I have logged in using the following URL: http://<machinename>:<port>/em. The URL eventually changes to http://<machinename>:<port>/em/console/ias/oc4j/administration upon successful login.
    I clicked on the Application Server and then clicked on administration link but I dont see Server Properties. I only see the following under Properties section:
    EJB Compiler Settings
    J2EE Websites
    JSP Properties
    Logger Configuration
    Thread Pool Configuration
    Shared Libraries
    I am sure I am missing something here.Can you please help me figure that out please.?

  • How to Debug Standard Program & Custom Scripts in Cheque Printing

    Hii
    Am working on APP Cheque Printing...
    here am using standard driver Program 'RFFOUS_C'
    and two customised script for Cheque print and payment advice print..
    please let me know , How to dubug my cutostomised script while printing through F110 .....
    its not working evenif am activating Debugger in Script or also through RSTXDBUG Prgm
    Note : In APP ,  when am Processing  through F110 , In background mode processing takes place and finally Spool is generated....
    Awaiting for ur reply...
    Thanks in Advance
    Edited by: LU JACK on Sep 19, 2008 1:18 PM

    Hi,
    Go to SE71 , give form name ZXXX and go utilities activate debugger
    Go to SE38 give driver program name 'RFFOUS_C' .and execute click OK button give printer name like LP01 and see print preview or print
    it will go debugger mode.
    it will help ful you.
    Regards,
    Bhupal.
    Edited by: bhupal reddy on Sep 19, 2008 1:34 PM
    Edited by: bhupal reddy on Sep 19, 2008 1:35 PM

Maybe you are looking for

  • Stock reservation report For customer wise and Document wise

    Dear sd experts ... In my company  we have kept some reserved stock to some customers By using MB1B-412E M.type now Requirement is I want to see how much stock kept in reservation for Customers and Document wise also I Have checked in CO09 But not po

  • Using Expressions to stop and start movement of solid layers

    I have two solid layers ( a red square and a blue square). The position of the red square is [129,239] and the blue square is to the right of the red square with a position [301, 240].  I would like the blue square to move to the right for 2 seconds,

  • Color display issues in Fireworks

    I have been having problems with how colors are displaying in Fireworks CS4.  Some colors appear to be extremely desaturated and was hed out, yet when exported or viewed in another application, they appear vivid and vibrant. Similarly, some jpeg file

  • HT201209 can I buy a gift card online and redeem it right away?

    can I buy a iTunes gift card online, and redeem it right away?

  • Toshiba external HDD PX1267E-1G32 not recognized

    I have two hard drives of the same kind (px1267E-1G32) and they were working prefectly, but suddently they both didn't work on my computer anymore. I tried it on other devices but it's not working at all: theres no sound of the engine anymore when I