Attaching Script & Driver Program to Transaction QM03 (Quality Management)

Hi Experts,
I have created a new script with a driver program. I need to attach it to tha transaction QM01, QM02, QM03. I have assingned it to the transaction & its working fine till the time of Print Privew. But When I give the Print command for that it is not going to the printer & giving me the following error:
1) The first error it gives : SHOP PAPER WILL NOT BE PRINTED.
2) & the second one is :   Express document "Update was terminated" received from author "XXXXXX".
Please help as its a go-live issue.
Regards,
Raman.

Hi Biju,
Please check that in ur driver program whether u have created the Entry routine in that u can call ur smartform.
Put breakpoint before u r calling ur smartform in driver program an chk whether data is populating correct in ur variables or internal table.
Then chk the variable and internal table which u r passing are correct and compare with import,export and table parameter of smartform.
See standard progarm 'RLB_INVOICE' for ur refference.
Reward if useful.
Edited by: Anil Mane on Apr 3, 2008 7:34 AM

Similar Messages

  • Script -driver program

    Hi,
       I am working on dunning. i need to find the driver program of the script. i went to insert->symbol->program symbol..theres no program..i went to TNAPR table and gave the form name..i get no entries...i went to NACE..but am not sure of the application area and the output type..can pls help

    Hi,
    Plz check the following link :
    PLS SEND ME A SAP SCRIPT DRIVER PROGRAM.........
    Hope it will help you.
    Thanks & Regards,
    Sarita Singh Rathour

  • PLS SEND ME A SAP SCRIPT DRIVER PROGRAM.........

    I CANNOT RUN ANY OF THE CODING ...........

    hi
    this is an ex.. but u definitely need to go through the links
    REPORT ZPSAPSCRIPT.
    TABLES : EKKO,
    EKPO,
    KNA1,
    USR01,
    MARA,
    MAKT.
    DATA : BEGIN OF ZOPTION.
    INCLUDE STRUCTURE ITCPO.
    DATA : END OF ZOPTION.
    PARAMETERS: P_EBELN LIKE EKKO-EBELN,
    P_EBELP LIKE EKPO-EBELP.
    CLEAR EKPO.
    SELECT SINGLE * FROM EKPO
    WHERE EBELN = P_EBELN AND
    EBELP = P_EBELP.
    CLEAR KNA1.
    SELECT SINGLE NAME1 FROM KNA1
    INTO KNA1-NAME1
    WHERE KUNNR = EKPO-KUNNR.
    CLEAR MAKT.
    SELECT SINGLE MAKTX FROM MAKT
    INTO MAKT-MAKTX
    WHERE MATNR = EKPO-MATNR AND
    SPRAS = SY-LANGU.
    CLEAR USR01.
    SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
    ZOPTION-TDDEST = USR01-SPLD. "Output device (printer)
    ZOPTION-TDIMMED = 'X'. "Print immediately
    ZOPTION-TDDELETE = 'X'. "Delete after printing
    ZOPTION-TDPROGRAM = 'ZPQRPRNT'. "Program Name
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX = ' '
    ARCHIVE_PARAMS = ' '
    DEVICE = 'PRINTER'
    DIALOG = ' '
    FORM = 'Z_TESTSCRIPT'
    LANGUAGE = SY-LANGU
    OPTIONS = ZOPTION
    IMPORTING
    LANGUAGE = SY-LANGU
    EXCEPTIONS
    OTHERS = 1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'HEADER'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'HEADER'
    EXCEPTIONS
    ELEMENT = 1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'MAIN'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    ELEMENT = 1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'FOOTER'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'FOOTER'
    EXCEPTIONS
    ELEMENT = 1.
    CALL FUNCTION 'CLOSE_FORM'
    EXCEPTIONS
    UNOPENED = 1
    OTHERS = 2.
    also you can check at
    http://help.sap.com/saphelp_47x200/helpdata/en/d6/0dc169494511d182b70000e829fbfe/frameset.htm
    http://www.sapmaterial.com/sap_scripts.html
    regards
    asha

  • Driver Program for Smartform

    i want the name of the driver program & form name in smartform for Invoice .
    kindly help.tks

    Hi,
    Go to transaction NACE, select application V3 - Billing then click on output types.
    click on medium type.
    For ex: NEU for print output, then on left hand side select processing routines, then you can see smart form/ script & driver programs associated with that.
    Reward if it is useful
    Praneeth

  • BDC for MM02 - Quality management

    Hi Friends,
    I need to create BDC program for MM02 with Quality Management View.
    My problem is with the sequence of the QM view in MM02 for different material types as per with recording.
    Kindly suggest me to resolve the issue.
    Thanks & Regards,
    S.Suresh
    Edited by: The Rock on Nov 7, 2011 1:43 PM

    Hi S.Suresh,
    I would simply read table QMAT to check if material/plant has Inspection Type '01'.
    Then, in case Inspection Type needs to be created, just call the BAPI_MATINSPCTRL_SAVEREPLICA FM with structure INSPECTIONCTRL properly filled-in.
    If successful, then remember to call BAPI_TRANSACTION_COMMIT.
    Hope this could help.
    Bye,
    Flavio

  • In sap scripts how to display the driver program

    Hi,
        I Want to know the sap scripts How to display the output to driver program

    Hi,
    Go to NACE Transaction.
    Select application for ex: if sales V1.
    Click on output types.
    Select the output type for ex : BA00
    Double click on Processing routines.
    There you can find the Driver Program name and Script/smart form name.
    Reward if useful.
    Thanks,
    Raju

  • 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

  • How to find out the script name used in driver program

    Hi Folks ,
                 I want to find out the Scripts(print program) used in my driver pogram .
    How is it possible any Tcode availble for this ?
    Thanks ,
    Jaga.D

    Hi Jagadish,
    Go to transaction SE38 and open the program RSNAST00. There search for the subroutine TNAPR_LESEN.
    Set a break point at that subroutine and leave. When printing the data from a transaction to a script or form (Like VA01 or VL02N), debugger is started when the processing reaches the subroutine in RSNAST00. There double click on the field TNAPR-FONAM. continue step-by-step execution. The field will display the name of the script or form that is currently being used.
    Another way to do this is to go to transaction NACE and check the transaction for which you want to find out the script. There you will find the script and print program that have been set for a particular transaction.

  • 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

  • How to assign copied driver program to script form rvinvoice01

    how to assign copied driver program to script form rvinvoice01

    Hi,
    You can do this by using NACE transaction.
    In NACE t-codewe have the application for each one. based on the application output type can be defined, based on output type script and print progrma can be defined.
    If suppose data can be read from EDI then we should go for condition records.
    So whenever we execute the script first composer checks the output type and then execute the program. in program whenever opn form FM will be populate then script will open first. After that again program till another FM will populate if it then script will populate........like it is cycle proces. Composer does all these things and at last it will submit that output to spool.
    Go to the Transaction NACE.
    choose the related sub module.. like billing or shipping
    doubel click on Output Types
    Choose the Output Type for which whcih you wanted your script to trigger
    Then select the Output Type and double click on Processing Routine
    Then go to create new entries--> Select the Medium (1- print output), then enter your Script and Print Program detls --> Save and come out
    Now go to the Transaction (for which you have created the output type)... Issue output--> Select the output type --> Print....
    however, you need admin permission. Usually BASIS people do thid configuration.
    Hope this helps.
    Regards,
    Richa

  • Attaching driver program to the smartform

    Hi
    i have created a new smartform and now i want to attach it to the driver program that i wrote.
    can anyone tell me how to do that pls...
    its very very urgent.. thanks in advance..

    Hi Ravi,
    Please check this link for function module
    http://www.erpgenie.com/abap/smartforms_described.htm
    http://www.erpgenie.com/abap/smartforms_detail.htm
    As Adil said u need to write a driver program in which u need to call the function module  which is generated by the smart form.
    Use SSF_FUNCTION_MODULE_NAME function module.
    Here are some tutorials regarding smartforms.
    Please check this link
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    If u want to assign to the transaction then u need to assig it in NACE transaction.
    Go to NACE.
    select EF Purchase Order application and click on Output types push button.
    now u get a screen . here select NEUS output types and double click on processing routines folder on the right side of the screen.
    Now here give your form name in PDF/Smartform Form Field in Print Output
    Medium
    Best regards,
    raam

  • How to find Driver program for an Particular Script Excluding TNAPR, NACE

    Hi Friends,
    I had an problem now, that I need to find the driver program for Dunning 'F150' which I already checked in TNAPR table and NACE transaction code, but I couldn't find any desired results on this search. Kindly can anybody suggest me for getting out of it as I need to make some changes over the driver program. Your help is mostly appreciated.
    Thanks in Advance,
    Murali.

    hi,
    try this.
    goto se71 transaction.give your form name click display.in menu goto form - check -texts and press enter.
    you will get all the print programs used for that script.

  • Printing Line Items in Script without using driver program

    How to print the line items of a internal table in sap script without using driver program? I am not supposed to edit anything in the driver program. Pls help me to solve this problem...

    Hi,
    You can try by creating a new driver program and a new FORM ENDFORM inside that for this purpose.
    Regards,
    Gaurav

  • Driver Program and Script

    Hi,
    I have a script and corresponding driver program. How do I check at what point a window in a script is getting printed. Because, I can see values in the driver program which are not getting printed in the script ( in an address window in this case). There is no 'write_form' with that address window name in the driver program. Please guide me.
    Thanks & Regards,
    Vishnu Priya

    Hi Priya,
    The write Form function module has attributes like
    window name,
    text element
    and the variable consisitng of data,
    This is the place where you window gets called
    Reward if use full.
    karthick

  • Driver program in SAP Script

    Dear all
           I want to make a driver program in sapscripts for Delivery note...since i am new to this topic then also i am done with the layout . please help me the program. i want the example code which is easy to read and understand.
    thanks in advance...
    Mohit

    Hi Mohit,
    Go through the following code.
    START-OF-SELECTION.
       PERFORM GET_DATA CHANGING WA_MARC
                                 I_MARC.
       PERFORM GET_DATA1 CHANGING I_MARC
                                  I_VBAP.
       CALL FUNCTION 'OPEN_FORM'
         EXPORTING
         APPLICATION                       = 'TX'
         ARCHIVE_INDEX                     =
         ARCHIVE_PARAMS                    =
         DEVICE                            = 'PRINTER'
         DIALOG                            = 'X'
           FORM                              = 'ZPAVSCRIPT1'
           LANGUAGE                          = SY-LANGU             .
       IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    LOOP AT I_VBAP INTO WA_VBAP.
       CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT                        = 'MAIN'
          FUNCTION                       = 'APPEND'
          TYPE                           = 'BODY'
          WINDOW                         = 'MAIN’.
       IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'          .
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    In the script layout,create a MAIN window,in that create a Text element (i named it MAIN in my program).
    call these functions using button "Pattern" in toolbar.
    In the above forms Get_data & get_data1,write the required code.....
    This is the example code to b written in driver program...
    Dont forget to reward points if helpful....
    Pavan.

Maybe you are looking for