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
Similar Messages
-
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 -
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 -
i want the name of the driver program & form name in smartform for Invoice .
kindly help.tksHi,
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 -
In sap scripts how to display the driver program
Hi,
I Want to know the sap scripts How to display the output to driver programHi,
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 -
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 -
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 PriyaHi 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 -
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...
MohitHi 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. -
Driver program name for script j_1i_57f4 challan
hi .... plz i needed driver program name for delivery challan script : J_1I_57F4 . i tried to find it but since the output is displayed only from sp02 im unable to get its driver program name . i have to add certain fields in that form and corresponding logic in that form .
thanks and regards .hi
If u check the TNAPR table u will get the Driver Program as J_1I57FPN , allu have to do is to Activate the SAP SCRIPT DEBUGGGER and check the values and also in the driver program above and check whihc values are coming and not.
surya -
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.DHi 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. -
Script not displayed threw driver program
script is not displayed threw driver program i have only one window n one main window n only text in tahat still its not displayed n gives error " Form zasi_sript4 language EN is not active a
no errors". code is below
*& Report ZASI_SRIPT4P
REPORT ZASI_SRIPT4P.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'zasi_sript4'.
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 'START_FORM'
EXPORTING
FORM = 'zasi_sript4'.
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 'WRITE_FORM'
EXPORTING
ELEMENT = 'E1 '
FUNCTION = 'SET'
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.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'E2'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'window1'
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
CALL FUNCTION 'END_FORM'
IMPORTING
RESULT = zasi_sript4p.
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SPOOL_ERROR = 3
CODEPAGE = 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.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi,
here you no need to write start form and end form
REPORT ZASI_SRIPT4P.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'zasi_sript4'. " change here
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 'WRITE_FORM'
EXPORTING
ELEMENT = 'E1 '
* FUNCTION = 'SET'
* 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.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'E2'
* FUNCTION = 'SET'
* TYPE = 'BODY'
WINDOW = 'window1' "is this same window or different window? if same window ,give name as '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.
ENDIF.
CALL FUNCTION 'CLOSE_FORM'
* IMPORTING
* RESULT =
* RDI_RESULT =
** TABLES
** OTFDATA =
** EXCEPTIONS
* UNOPENED = 1
* BAD_PAGEFORMAT_FOR_PRINT = 2
* SEND_ERROR = 3
* SPOOL_ERROR = 4
* CODEPAGE = 5
* OTHERS = 6
IF SY-SUBRC 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
with regards
Naresh -
Standard driver programs,output type ,scripts,smartforms for SD reports
hi experts,
Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
maniHi,
Check this out
NACE
You can track the form and the print program used for that form
The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
NACE is used to create output type while creating the output type you will mention forms, and driver program.
that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
so check in NAST, TNAPR table
http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
Condition records in NACE?
and
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
and also
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
If it helps reward with points.. -
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,
AbhishekHI,
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 -
is there a way of finding out if a given program is a driver program for scripts.
reply asap.
points will be rewarded.Hi..
You can find the link between the Form and the Print program in Table <b>TNAPR</b>.
<b>Fields</b>
FONAM -> FORMNAME
PGNAM -> PROGRAM NAME
The other way to find is Open the Text elements of any window
and Select the Menu path Sytax->check
<b>Reward if Helpful</b>
Maybe you are looking for
-
Need to extend the airport distance
is there anyway to extend the distance or reach of the airpot?
-
Smaller Icons for Adobe Reader?
I am using Adobe Reader on a Netbook. The Select and Zoom toolbar's icons take up an inordinate amount of real estate on the screen. I have searched but have not been able to find how to make these icons smaller. Is it possible that their size cannot
-
SDKSILENT property in J2SE 5 Update 6
What does the property SDKSILENT do in the MSI pacakge? I have tried it with and without and I don't notice any difference.
-
Premiere Elements 11 "stops working" on first run
When I run Premiere Elements the first time it comes up with the message "Premiere Elements 11 has stopped working". On starting the second time, it starts ok until the system is booted again. This is from the Event log - Log Name: Application
-
What is SAP doing to counter Oracle Fusion
Hi, Please let me know what SAP is doing to counter Oracle Fusion which is due for release next year. Regards