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
Similar Messages
-
Purpose of RSTXTRAN program for SAP-Script ?? ??
Purpose of RSTXTRAN program for SAP-Script ?? ??
when it is required to run that program ?Hi sarit,
Purpose of RSTXTRAN program for SAP-Script Transfer of SAP script Texts to a Correction.
The report RSTXTRAN allows a set of SAP script texts (or the text key) to be transferred to a correction or repair of the transport system. The name of the correction/repair can either be transferred as a report parameter, or the correction/repair can be selected later in a selection window. The text key can be qualified generically using the asterisk character (*).
When the report has been executed, the list of selected texts appears. Individual texts can be deselected in this list. When the function "Continue" is executed, the final list of texts which are to be transferred is displayed. The transfer of texts to the correction/repair can now be activated by the appropriate function, and must be confirmed in a dialog box.The requirements for this as follows.
There is a correction/repair in which the selected text keys can be entered, if it is not being processed. The report can only insert text keys in corrections or repairs, not however in transport requests. However, the objects contained in a correction can be transferred to a transport request with the correction and transport system transaction.
It should also be noted that the report selects texts in the current client, but that the transport system generally exports texts from client 000.
When the report has been executed,the output can be a list of the selected texts. Information about whether transfer to the correction/repair was possible is displayed for each text key.
Reasons for failed transfer include
o the correction/repair is currently being processed
o the correction/repair does not exist
For Example
All German standard texts with the ID ST, whose names begin with SAPSCRIPT, are to be entered in the correction B20K009999. The report parameters are then assigned values as follows:
o Correction: B20K009999
o Text object: TEXT
o Text name: SAPSCRIPT*
Thanks,
Usha -
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. -
What is print program for sap script?
some of the print program of sap script.
and also guide me to use that programfor which sapscript ?
you can use table TNAPR to find the print program and layoutset for output types. Maybe it will help you.
regards,
Hans -
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 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..
gauravHi,
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 -
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 PMHi 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 -
HAI,
WHICH IS THE DEMO OR EXAMPLE PROGRAM FOR SAP SCRIPT IN SAP
THANK YOUHi
See the sample code for Script driver Program to display the PO details
You have to design the Script layout in SE71 and see the output
*& Report ZTEST12121
*& SAPScripts Example 1
REPORT ztest12121.
*DATABASE TABLES
TABLES: ekko,ekpo,lfa1.
*INTERNAL TABLES AND STRUCTURES
DATA i_ekko LIKE ekko.
DATA i_ekpo LIKE ekpo OCCURS 0 WITH HEADER LINE.
DATA i_lfa1 LIKE lfa1.
*PARAMETERS
PARAMETERS: p_ebeln LIKE ekko-ebeln.
*VARIABLES
DATA MAT TYPE STRING VALUE 'MAT NO'.
DATA iTe TYPE STRING VALUE 'ITEM NO'.
DATA QTY TYPE STRING VALUE 'QTY'.
DATA UOM TYPE STRING VALUE 'UOM'.
DATA NET TYPE STRING VALUE 'NET PRICE'.
Data var type integer value 0.
*DATABASE SELECTS
*Header data
SELECT SINGLE * FROM ekko INTO i_ekko WHERE ekko~ebeln = p_ebeln.
IF sy-subrc = 0.
*Item Data
SELECT * FROM ekpo INTO TABLE i_ekpo WHERE ekpo~ebeln = p_ebeln.
IF sy-subrc NE 0.
WRITE 'PURCHASE DOCUMENT ITEM DATA ERROR'.
ELSE.
*Vendor Details
SELECT SINGLE * FROM lfa1 INTO i_lfa1 WHERE lfa1~lifnr = i_ekko-lifnr.
IF sy-subrc NE 0.
WRITE 'VENDOR DOCUMENT ITEM DATA ERROR'.
ENDIF.
ENDIF.
ELSE.
WRITE 'THIS PURCHASE DOCUMENT NUMBER DOESNOT EXISTS'.
ENDIF.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
form = 'ZSCRIPT_1'
language = sy-langu
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
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 = 'OFFICEAD'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'OFFICEAD'
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 = 'PODET'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'PODET'
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 = 'TOP'
FUNCTION = 'SET'
TYPE = 'TOP'
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.
LOOP AT I_EKPO.
var = i_ekpo-netpr * i_ekpo-menge.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'BODY'
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.
ENDIF.
ENDLOOP.
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.
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
Reward points if useful
Regards
Anji -
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 -
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.. -
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> -
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. -
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.
VinodOk. 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. -
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
Maybe you are looking for
-
Opening a sub-folder of a KM Repository via URL
Challenge: Using a map as the preliminary interface (url iview) the user clicks a region of that map. A PORTAL PAGE is loaded (2 columns, narrow, wide) In the WIDE column is the map the user originally used to select a region. In the NARROW column is
-
Payment terms - selected customer
Hi Experts, Payment Terms Is it possible to define payment term for a selected customer(s) for a selected product,if possible, how to assign. Vijay Edited by: Vijay on Dec 22, 2007 4:36 PM Edited by: Vijay on Dec 22, 2007 4:37 PM
-
Displaying a trigger error in forms
In a before inserting table trigger, if inserted values are not correct, I raise an error : RAISE_APPLICATION_ERROR(-20001,'Error message !'); What I want is to display this error message in forms instead of the error 40508 - ORACLE error: unable to
-
How to cancel downloading process in JAVA ftp?
I tried to write a java ftp client to transfer files within our network. One of very usefully function I want to add is to cancel the transfer while files are downloading or uploading. I can do this on file uploading by closing "ftpclient.put(filenam
-
Can you help with encryption issue with iBook G3?
I have an iBook G3 with operating system 10.2.8. As of yesterday, I am having troubles connecting with my wireless service. It works fine when I plug the DSL cable in. The wireless icon shows up several networks; the one we are paying for is checked.