Doubt in Script
Hi Gurus,
I want Ur help to resolve these problems.
1. I want to print 'Duplicate copy' While taking print of a form morethan once.
but it should be handled directly by coding.
2. i want to take 2 copies of print at a time automatically. we should not manually
change printer settings.
Its urgent.
Hi Guru,
thank u very much.
i tried in this way, error will be corrected.
options-TDCOPIES = 2.
append options.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZSAP'
LANGUAGE = SY-LANGU
OPTIONS = options.
what abt my 1st question? did u know that.
the question is
i have to print 'duplicate copy' in the print copy, if i take print a paticular page more that once.
i did this using program, but i want to know is there anyway to print this automatically in the print out.
Similar Messages
-
b Urgent.Doubt in Scripts regarding itcsy.
Hi All, I have the requirement to modify the Standard Script (F140_ACC_STAT_01) and Print Program name is (RFKORD10) to add three fields at item level to display to print <b>Due Date ,Past Due and PO# number </b>.for these fields i am using <b>RF140-VSTID ,RF140-VZTAS and BSID-SGTXT</b>. In the Print Program i am able to see those fields also. but when i execute program i am not getting the values for those fields . For this Can i call the External Subroutine to display those values. if so what conditions should i have to follow and which table i have to use . At item level Can we use the external subroutines. Otherwise i need to modify the Standard Print Program.Please suggest me. it will be greatful if you help me.
There are two things -
1. Did you attach ur custome program to driver program?
2. The important thing, even the fields are there in driver program, but is it sending it to Script during WRITE_FORM. Try to search for that.And check out the structure in Script, what fields it has and is any of them is useful for you.Otherwise write a routine before calling any Text Element in the main window
or in secondary window.
Regards,
Amit
Reward all helpful replies. -
Doubt in script(Unknown symbol)
Hi,
I am gettin error in scripts(Unknown symbol l_vtweg).
In print program I have used this variable.
select single vtweg from dic table into l_vtweg
where cond.
then y I am geting this error? any idea plz?
Regards
DivakarRuntime errors occur if the declared data type is unknown; if the length of the declared data type does not match the type of the assigned field and if the alignments are incompatible.
Regards
Vivek
reward points if this helps -
Hi,
I am gettin error in scripts(Unknown symbol l_vtweg).
In scripts i declared as &L_VTWEG&
In print program I have used this variable.
select single vtweg from dic table into l_vtweg
where cond.
then y I am geting this error? any idea plz?
Regards
Divakarhi,
Debug the script and check. SE71->utilities-Activate Debugger. In most of the cases, check for variables names as they are case senstive.
Regards,
Richa. -
Hai guys ..doubt in script...
hai ..
I Customized the Medruck. Now i want print the PO..
Is ther any standard Program for that ..
How Can I print the back of the page using Script pro ?
wat is the use of protect ... end protect.
tanx and regards..
R@j@Hi,
Look at the transaction NACE, you will get all the information about MEDRUCK, i think application type is EU.
if you use Protect and endprotect, the paragraph won't go into next page in the middile, i mean the entire paragraph will be printed in one page, this will stop the page break.
See the below threads for Duplex printing:-
Re: Need help with Duplex printing of sap scripts. URGENT !
Re: Sapscript
Regards
Sudheer -
how to change a standard script like if the requirement is some additional data what do we do ? and for every window do we need to call the function WRITE_FORM to enter data into it from driver program ?
Hi Hari,
let me explain about this what ever i know. Suppose you have one script that already u copied from 000 client. now you need to add one window and address will be poplate, Then first of all create one window in layoutset and call the corresponding parameters. Now for printing this window you should call write_form in the program and pass this element (means window) to that FM. Now window will be populate. For populating for values you can mention the subroutine and pass the parameters to program.
Hope this helps you, reply for queries, Shall post you the updates.
Regards.
Kumar. -
Hi...
I haven't developed any objects in scripts but i got some requirement in scripts.Please help me in understanding the requirement...
The following is my requirement.....
Develop two programs that will call a grouping of shipment and delivery outputs and print them.
This program will be attached to an output type named ZOUT. This output type will call t-code vt70 if on the shipment header or vl71 if on the delivery header.
Call appropriate t-code and print the following outputs.
Thanks in Advance.
BalajiHi,
Could any one please help me in understanding the requirement.
Thanks,
Balaji -
hi guru,
in my script
form GET_VALID_CONDTYPES tables in_tab structure itcsy
ex_tab structure itcsy.
data : lc_datbi(10),
lc_datbi_ext(10),
lc_date(10).
loop at in_tab.
case in_tab-name.
when 'DATBI'.
move in_tab-value to lc_datbi.
in form i wrote &EKOMD-DATBI&(VALUE IS FETCHING FROM ekomd STRUCRE)
the probleam is in_tab-value = 29.06.2009 (develovment system)
in_tab-value = 2009.06.29 (quality system)
why the deviation is coming in different clients.my user setting is same for bothe the clients.
please let me knowHi
In Script all u do is after u get the value is use
/: Perform ........
/: Endperform
/: SET DATE MASK = 'DD.MM.YYYY'
P1 &lc_datbi& WHERE P1 is the Paragraph format
For more information Check the below link
http://it.toolbox.com/wiki/index.php/Sap_script#6.6.09Formatting_Date_Fields:_SET_DATE_MASK
surya
Edited by: suryareddy on Aug 11, 2009 10:54 AM -
Doubt about script commit_redundancy?
Hi, folks!
Could i use the scritp commit_redundancy of CSS11501 on CSS11150?
Because the script commit_redundancy of CSS11501 works better than the script on CSS11150.
How can send that script the one CSS to another?
I wrote one script on notepad, how can I send this to CSS?
thanks,
RenatoCopy that file from one CSS to FTP or TFTP server and the using COPY CORE Command you can transfer this file to another CSS.To get more information, use the below link.
http://www.cisco.com/warp/public/117/basic_css_lb_config.html -
Script without assigning to the output type
hi
i have some doubts in scripts ple tell me
how can we execute the script without assigning the form & print program to output type in nace?Please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting further.
-
Convrting a Script data into excell sheet
Hi Masters,
A very good morning to all,
This is kalyan.
I have doubt on scripts.
How will we convert a script data into spreed sheet (or) Excel sheet or any other.if it possible how?
please put a lights on this issue.kindly give a valuable solutions.
Thanks in advance,
kalyan.hi kalyana,
refer to follwinf links
1) to print in PDF
[http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm]
2)
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556
SAP SCRIPT TO PDF OUTPUT
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/downloadSAPScriptoutputtoPDF+file.&
Function Module: CONVERT_OTF
reward points if helpful
Rohan Malik -
hi experts
i have one doubt,
sap script is client dependent and smart form is client independent how?
and why we say it client dependent and independent.SAPscript are client dependent.
They need to be copied from one client to another for testing. this can be done from SE71->utilities->copy from Client.
For transferring between server as like other objects they need to be transport.
As for smartforms they are client independent and all changes are available at the same time in all clients for execution.
Unlike smartforms, if you want to use or modify a sapscript in a different client you need to copy it from that client or client '000'.
This is applicable to it accessory components like graphics, texts..etc -
How to debugg a script when the Required out put is like Fax or email
Hi this is Durga Prasad i have small doubt in scripts can any one clarify that one plz normally we will do that one with activating debugger but when a special requirement is like fax or e mail how we will do that one
"how to debugg a script when the Required out put is like Fax or email"
Thanks in advance
Durga Prasad.Hi
DEBUG Smartform:
1) One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be,
insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
script
1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.
As per ur question there is nothing new with script debugging,
it is same as normal report debugging...
SMARTFORMS DEBUGGING
For smartforms debugging you can do this.
1. Execute the smartform (execute button in SMARTFORMS transaction)
2. Take the generated function module and display it in SE80.
3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
Tcode - SFTRACE
Re: How to Debug a Smartform
Debug of smartform and sapscript.
Debugging SmartForms
Debugging of a subroutine pool.
SCRIPT
There are 2 separate kinds of debugging available when you try to debug scripts.
1. Debugging the print program : This is the normal debugging we do for our report programs.
2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:
a .In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
b. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
refer to the link below
http://www.howforge.com/how-to-debugging-sapscript-form
Look at the BLOG here, it is well explained
/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
Regards
Anji -
Need to get the input dynamically and write the records
hi everyone,
iam having a doubt in scripts,
1.i need to get the input from user
(input is the table name)
2.if the input matches with the tables in the database and the n it has to write the records in a csv format.
3.the fields should be delimited by comma.
is it possible to write a script or procedure.
the script should be a generic one.
thanks and Regards,
R.Ratheeshhi
,,actually my column_names are.
select T24_ACCOUNT_NUMBER||','||
NULLIF(T24_CUSTOMER,NULL)||','||
NULLIF(T24_CATEGORY,NULL)||','||
NULLIF(T24_ACCOUNT_TITLE_1,'')||','||
NVL(T24_ACCOUNT_TITLE_2,'')||','||
NULLIF(T24_SHORT_TITLE,'')||','||
NULLIF(T24_SHORT_TITLE,'')||','||
NULLIF(T24_POSITION_TYPE,'')||','||
NULLIF(T24_CURRENCY,'')||','||
NULLIF(T24_LIMIT_REF,NULL)||','||
NULLIF(T24_ACCOUNT_OFFICER,NULL)||','||
NULLIF(T24_OTHER_OFFICER,NULL)||','||
NULLIF(T24_POSTING_RESTRICT,NULL)||','||
NULLIF(T24_RECONCILE_ACCT,'')||','||
NULLIF(T24_INTEREST_LIQU_ACCT,NULL)||','||
NULLIF(T24_INTEREST_COMP_ACCT,NULL)||','||
NULLIF(T24_INT_NO_BOOKING,'')||','||
NULLIF(T24_REFERAL_CODE,NULL)||','||
NULLIF(T24_WAIVE_LEDGER_FEE,'')||','||
NULLIF(T24_PASSBOOK,'')||','||
NVL(TO_CHAR(T24_OPENING_DATE,'YYYYMMDD'),'')||','||
NULLIF(T24_LIMK_TO_LIMIT,'')||','||
NULLIF(T24_CHARGE_ACCOUNT,NULL)||','||
NULLIF(T24_CHARGE_CCY,'')||','||
NULLIF(T24_INTEREST_CCY,'')||','||
NULLIF(T24_ALT_ACCT_IDa,NULL)||','||
NULLIF(T24_PREMIUM_TYPE,'')||','||
NULLIF(T24_PREMIUM_FREQ,'')||','||
NULLIF(T24_JOINT_HOLDER,NULL)||','||
NULLIF(T24_RELATION_CODE,NULL)||','||
NULLIF(T24_JOINT_NOTES,'')||','||
NULLIF(T24_ALLOW_NETTING,'')||','||
NULLIF(T24_LEDG_RECO_WITH,NULL)||','||
NULLIF(T24_STMT_RECO_WITH,NULL)||','||
NULLIF(T24_OUR_EXT_ACCT_NO,'')||','||
NULLIF(T24_RECO_TOLERANCE,NULL)||','||
NULLIF(T24_AUTO_PAY_ACCT,NULL)||','||
NULLIF(T24_ORIG_CCY_PAYMENT,'')||','||
NULLIF(T24_AUTO_REC_CCY,'')||','||
NULLIF(T24_DISPO_OFFICER,NULL)||','||
NULLIF(T24_DISPO_EXEMPT,'')||','||
NULLIF(T24_ICA_DISTRIB_RATIO,NULL)||','||
NULLIF(T24_LIQUIDATION_MODE,'')||','||
NULLIF(T24_INCOME_TAX_CALC,'')||','||
NULLIF(T24_SINGLE_LIMIT,'')||','||
NULLIF(T24_CONTINGENT_INT,'')||','||
NULLIF(T24_CREDIT_CHECK,'')||','||
NULLIF(T24_AVAILABLE_BAL_UPD,'')||','||
NULLIF(T24_CONSOLIDATE_ENT,'')||','||
NULLIF(T24_MAX_SUB_ACCOUNT,NULL)||','||
NULLIF(T24_MASTER_ACCOUNT,'')||','||
NULLIF(T24_FUND_ID,'') FROM T24_CACCOUNT;
this is the order
but while my output looks like
SQL> set serveroutput on
SQL> set verify off
SQL> set heading off
SQL> spool /emea/dbtest/tamdbin/bnk/bnk.run/DATA.BP/SAM_ACC.csv
SQL> exec input_table('T24_CACCOUNT');
declare cursor c2 is select
rownum||','||T24_WAIVE_LEDGER_FEE||','||T24_PASSBOOK||','||T24_OPENING_DATE||','
||T24_LIMK_TO_LIMIT||','||T24_CHARGE_ACCOUNT||','||T24_CHARGE_CCY||','||T24_INTE
REST_CCY||','||T24_ALT_ACCT_IDA||','||T24_PREMIUM_TYPE||','||T24_PREMIUM_FREQ||'
,'||T24_JOINT_HOLDER||','||T24_RELATION_CODE||','||T24_JOINT_NOTES||','||T24_ALL
OW_NETTING||','||T24_LEDG_RECO_WITH||','||T24_STMT_RECO_WITH||','||T24_OUR_EXT_A
CCT_NO||','||T24_RECO_TOLERANCE||','||T24_AUTO_PAY_ACCT||','||T24_ORIG_CCY_PAYME
NT||','||T24_AUTO_REC_CCY||','||T24_DISPO_OFFICER||','||T24_DISPO_EXEMPT||','||T
24_ICA_DISTRIB_RATIO||','||T24_LIQUIDATION_MODE||','||T24_INCOME_TAX_CALC||','||
T24_SINGLE_LIMIT||','||T24_CONTINGENT_INT||','||T24_CREDIT_CHECK||','||T24_AVAIL
ABLE_BAL_UPD||','||T24_CONSOLIDATE_ENT||','||T24_MAX_SUB_ACCOUNT||','||T24_MASTE
R_ACCOUNT||','||T24_FUND_ID||','||T24_ACCOUNT_NUMBER||','||T24_CUSTOMER||','||T2
4_CATEGORY||','||T24_ACCOUNT_TITLE_1||','||T24_ACCOUNT_TITLE_2||','||T24_SHORT_T
ITLE||','||T24_MNEMONIC||','||T24_POSITION_TYPE||','||T24_CURRENCY||','||T24_LIM
IT_REF||','||T24_ACCOUNT_OFFICER||','||T24_OTHER_OFFICER||','||T24_POSTING_RESTR
ICT||','||T24_RECONCILE_ACCT||','||T24_INTEREST_LIQU_ACCT||','||T24_INTEREST_COM
P_ACCT||','||T24_INT_NO_BOOKING||','||T24_REFERAL_CODE SRC from T24_CACCOUNT; r2
c2%rowtype; begin for r2 in c2 loop dbms_output.put_line(r2.SRC); end loop;
end;
1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222284001,2222222,6001,,,,,TR,USD,,,,,,,,
2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222384001,2222223,6001,,,,,TR,USD,,,,,,,,
3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222484001,2222224,6001,,,,,TR,USD,,,,,,,,
4,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222584001,2222225,6001,,,,,TR,USD,,,,,,,,
5,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222684001,2222226,6001,,,,,TR,USD,,,,,,,,
6,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222284001,2222222,6001,,,,,TR,USD,,,,,,,,
7,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222384001,2222223,6001,,,,,TR,USD,,,,,,,,
8,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222484001,2222224,6001,,,,,TR,USD,,,,,,,,
9,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222584001,2222225,6001,,,,,TR,USD,,,,,,,,
10,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222684001,2222226,6001,,,,,TR,USD,,,,,,,
11,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222284001,2222222,6001,,,,,TR,USD,,,,,,,
12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222384001,2222223,6001,,,,,TR,USD,,,,,,,
13,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222484001,2222224,6001,,,,,TR,USD,,,,,,,
14,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222584001,2222225,6001,,,,,TR,USD,,,,,,,
15,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,222222684001,2222226,6001,,,,,TR,USD,,,,,,,
here if we look at the select statement the previous one ,its starts from middle and
picking up the records.i dont know y.and also its not writing the records in the path (spool)which i have given..can u pls check it out if possible.
thanks ,.
R.Ratheesh -
Doubt on occurs 0 & script.....
HI
THIS ARIJIT
CAN ANYONE TELL ME THE
1)HOW TO CREATE BUTTON IN SELECTION SCREEN???
2)IN CASE OF ITAB WHEN WE DEFINE OCCURS 0 THEN A 8 KB PAGE IS ALLOCATED..
IF I DEFINE OCCURS 1 THEN THE PAGE SIZE IS 16 KB...PLESE CLEAR MY DOUBT??
3) CAN ANYONE TELL ME HOW MANY NUMBERS OF MAIN WINDOW IN SCRIPT IN ONE PAGE WE CAN DEFINE MAX 1 MAIN WINDOW
BUT IN SMARTFORMS WE CAN DEINE HOW MANY NUMBER OF MAIN WINDOW IN ONE
PAGE?? PLESE CLEAR MY DOUBT??
I WILL REWARD BY POINT..for the first point
check this link.
Button in a selection screen
for second point.
DIff btn occurs 0 and occurs n
for third point
Smartforms: How many main window can i have in a page ?
regds,
kiran
Maybe you are looking for
-
I made a path how can I select it
i made a path how can I select it
-
How to select a row dynamically in a TreeTable?
I am trying to select a row in a treeTable when the user right clinks on a row. how I do this? I tried giving the following. I don't see visually that the row is selected. What I try to achieve this? ....me.getX() here "me" is the MouseEvent. I see t
-
How to Save a File form a JAVA code into the CDrive
Hello, i need to create a file and save it in the Cdrive of my computer. I could create the file and get the command prompt to ask me the file name to save it. However, my problem is that the file is saved in the Cdrive with nothing inside! I can man
-
Hello! I've moved all the music files into a different HDD and redirectet the iTunes folder in the preferences, but it won't find the files. is there a way it can work out? thanks a lot
-
I'm a newbie to Blackberry - What is the first step to correctly using the instrument ?
I'm a newbie to Blackberry - What is the first step to correctly using the instrument ? I just acquired my first blackberry phone model-9810. What are the different simple steps or the procedure that I should follow to correctly use this instrume