Changing script to smartforms fro chk priniting
Hi ,
I have to do a check priniting using the F110 transaction.
We were previously using a Script but then as per one requireemnt where in the number was to displayed in a white colour in a black box ;as this functionality cannot be acheived using the script, I was think whether we can use a smartform and assign it the corresponding print program.and use it in the F110 transaction.
Thanks and regards,
Avi.
Hai Avinash
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING MODE = 'BATCH'
REPORT = 'MYREPORT'
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
look into this link
http://help.sap.com/saphelp_nw04/helpdata/en/d5/6243ea8a4111d4b605006094192fe3/content.htm
You need to set the USER_SETTINGS perameter in your SmartForm to SPACE
Thanks & Regards
Sreenivasulu P
Similar Messages
-
Hello ,
<b>Background :</b>
1) After I migrate Script to smartforms . I get around 200 windows .
As 200 windows have been defined in a script .( 1 window per box).
2) The layouts are pretty complex and it would take around 2-3 days to create a new smartform .
3) I cannot use the existing scripts for a few modifications have to be made to header and footer and it's easier to make them in smartforms
4)The output after migration is good . A few Modifications But it's fine.
<b>Problem :</b>
i)Would it lead to a performance problem due to presence of 200 windows if I migrate .
ii)Would it lead to maintainance problem if I migrate as I cannot see all the 200 windows at once in the form painter . I can see only the window on which I have placed the cursor .
Kindly Help me find a solution.Thanks Sooness .
Actually there are around 12 scripts .
So Total Development time will be around 30 days if I create a new smartform. since the layout is very complex .
And 9 days if I migrate scripts to smartforms with changes ..
So the Conflict in my my mind is whether to go for less Development Time now and maintainance problem later
<b>Would a good TS / FS documented as follows suffice :</b>
1) By taking a printout of the layout .
2)Writing the variable name in each window .
3)Scanning it and using it as FS.
I feel FS/TS is usually not read afterwards .
So even after documentation , Maintainace problem will not be solved .
I do not have that much time . So I would have to put extra efforts at night for creation of new smartforms.
i have to deliver them in 15/20 days .
So Do you suggest putting extra efforts now to make a new smartforms to avoid maintainence problem later .
Kindly give your valuable suggestion.
Message was edited by:
Gaurav
Message was edited by:
Gaurav -
Function module for converting sap script to smartforms?
hi ,
wat is the name of function module for converting sap script to smartforms?
regard's
Deepak sharmaHi,
No function module is there..
But go to T-code..Smartforms and in the menubar..
Utilities-->Migration->Import SApScript Form.
U can thus migrate SAPScipt to smartforms...
How ever a lot of changes have to be done in the migrated one,,
Regards -
How to transport scripts and smartforms layouts
Hi All,
would you let me know how to trasport scripts and smartform along with layouts???
thanks in advance for your replies.
Regards,
RiyazSAP Script Form
If you want to copy the forms between clients on the same system (between a client 100 and 150 on a DEV box for example) Use the copy between clients option available from the Utilities menu of SE71. If you want to transport the form between DEV & QA or QA & PRD then follow the normal transport
procedure (ensuring that your BASIS team know to import your form into each client of the new box).
Regarding the Print Program, follow the standard procedure for normal ABAP Objects. Do SCC1 for transfer between clients on same system and normal transport procedure to different system.
SMART FORMS
A Smartform is transported no differently than any other object. if it is assigned to a development class that is atteched to a transport layer, it will be transported.
The definition is transported, and when called, the function module is regenerated.
This leads to an interetsing situation. On the new machine, it is very likely the function module name will be different than the name on the source system. Make sure, before you call the function module, you resolve the external name to the internal name using the 'SSF_FUNCTION_MODULE_NAME' function module.
Typically, generate the SF, then use the pattern to being in the interface. Then change the call function to use the name you get back from the above function module.
Hope this helps.
Vinodh Balakrishnan -
Change VL70 to Smartform (from SapScript)
I need to change the form output on VL70 from SapScript to SmartForm. I converted the SAPscript to a SmartForm but I can't figure out where the SAPscript is being called from to call the new SmartForm. If anybody could give me some assistance I would be grateful.
Regards,
DavisHi,
Sap script will have a Driver program, and this both Driver program and Script will be configured in the NACE transaction, so for this smartform you need a Driver program to call the Smartform(Generate the function module and call the function module) ..
Look at this one
Re: Migrating SAP script to Smartform
Regard
Sudheer -
Migrating the SAP-Scripts to smartforma which are related to Finance(FI)
Hi,
Do we can migrate the SAP-Scripts to Smartform which are related to Finance(FI) & those SAP-Scripts are called by a standard print program (RFFOUS_C)
Urgent answer need please!!!
Thanks,Hello,
Yes you can migrate script to smartform there are different ways to migrate.
Use program SF_MIGRATE..
to migrate from scripts to smartforms.
Reward if helpful.
Viswam. -
In which table scripts and smartforms are stored
in which tables scripts and smartforms are stored
eg scripts in tadir.Hi this may be of some help.
SD
SALES ORDER/ENQUIRY/QUOTATION
Output type : BA00
ScriptForm Name : RVORDER01
Driver Program Name : RVADOR01
smartform name
DELIVERY NOTE
Output type : LD00
ScriptForm Name : RVDELNOTE
Driver Program Name : RVADDN01
smartform name : LE_SHP_DELNOTE
Smartform Driver Pgm: RLE_DELNOTE
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
MM
PUCHASE ORDER/RFQ/CONTRACT
Output type : NEU
ScriptForm Name : MEDRUCK
Driver Program Name : SAPMF06P
smartform name : /SMB40/MMPO_L
smartform driver program: /SMB40/FM06P
GOODS RECEIPT
Output type : WE01
ScriptForm Name : WESCHEINVERS1
smartform name : /SMB40/MMGR1_A
smartform driver program: /SMB40/M07DR
GOODS ISSUE
Output type : WA01
ScriptForm Name : WA_SCHEINVERS1
smartform name : /SMB40/MMGI1_A
smartform driver program: /SMB40/M07DR
FI Forms
Account Statement : F140_ACC_STAT_01
Cheque Printing : F110_PRENUM_CHEK
Balance Confirmation: F130_confirm_01
Dunning Form: F150_DUNN_01
check the link below it provides steps to convert sap scripts to smartforms
http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
SMARTFORMS -Driver Program
PO: /SMB40/FM06P
SO: /SMB40/RVADOR01
GR: /SMB40/M07DR
with regards,
Hema Sundara.
pls give points if u find this helpful. -
What is the functionality of &VBDKR-NETWR( 10)& in sap script and smartform
Dear All,
I came across this &VBDKR-NETWR(<10)& when I was migrating the script as smartform. I would like to know wht is functionality of &VBDKR-NETWR(<10)& i.e. <10's meaning. I am facing problem in printing the amount. So many alignment problems are coming.
Please help me on this.
Thanks in Advance.
J.hi,
&VAR(<10)& means output will be printed with sign to tjhe left (<) and output length is 10 (10)
here an overview with the most use formating symbols
&VAR(En)& Exponent number (n)
&VAR(Ff)& Fill character
&VAR(K)& Ignore conversion rules
&VAR(<)& sign to the left
&VAR(>)& sign to the right
&VAR(.n)& number of decimals
&VAR(+n)& offset
&VAR(Z)& omit leading zeroes
&VAR(S)& omit leading sign
&VAR(T)& omit thousand sepearator
&VAR(n)& outputlength n
&VAR(R)& right justified
&VAR(C)& condensed
&VAR(I)& suppress initial value
success,
Gr,. Frank -
String search in SAP Script and Smartforms
Hi All,
We have an urgent requirement where we need to search for a character string in all SAP Scripts and Smartforms in our system.
It would also help if we can get the names of programs/function modules which are internally generated for the same.
Any pointers on the same would be helpful.
Regards,
SaurabhYou can create a variable window in the main window.
You can restrict the last item of the main window by varying the size of main window. In your wite-form ,
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ITEM'
function = 'SET'
type = 'BODY'
window = 'MAIN'
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
codepage = 9
OTHERS = 10.
IF sy-subrc <> 0.
DO this. in the bottom of the main window, create a variable window.
you can add your text in the variable window inside main window.
it will be displayed just after the item ends.
Reagrds,
Pritha.
Message was edited by:
Pritha Agrawal -
Unicode enabling for ABAP scripts and smartforms
Hi All,
Could any one please advice us how we can identify whether the script or smartform is unicode updated or not and how we can convert the non unicode scripts and smartforms to unicode scripts and smartforms.
Thanks,
Srikanth.Dear srikanth...This is an scripting forum...not a sap script forum...Please post your question on the abap forum. Thanx -:)
Greetings,
Blag. -
FI transaction code used in script and smartforms
hiii dudes,
i want the FI transaction codes which is used in the script and smartforms.......Hi Sonia,
I re-loged, but in vain.
Regards,
rajesh -
Urgent : Regarding Adobe Forms ,Scripts and Smartforms
<i>
Hi Floks
Any body having Adobe Printing Forms ,Scripts and Smartforms documents Links can you send me to me . Its will be help full to me
thanks
suresh</i>Hi Suresh,
SCRIPTS
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://www.thespot4sap.com/articles/SAPscript_Introduction.asp
http://www.onestopsap.com/sap-miscellanous/sap-script/
http://sap.niraj.tripod.com/id19.html
http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
http://www.thespot4sap.com/Articles/SAPscript_commands.asp
Smartforms
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm -
How 2 transprot script to smartforms.
How 2 transport script to smartforms. send me the possibilities
Trx SMARTFORMS: Utilities->Migrate Sapscript Form
In this way the system'll create a smartform based on the original SAPSCRIPT, but it can only generate the sapscript parts: Text Element, Windows, pages .......
Best Regards,
Vibha
*Please mark all the helpful answers -
Changing script from CS2 to CS4
Hi everyone!
Having a bit of a problem (not to mention working against a deadline) with an old CS2 script created for a client. ESTK throws up an "Undefined is not an object" error.
Below is the code that seems to be the culprit. ESTK stops on the line after the .place(), assuming here that it's because the .place() doesn't return a proper object or something like that (I hate when they change scripting around too much).
Basically, what it does is placing an image into the first paragraph of a table cell. It then tries to set the dimensions to a "maximum" size and then fits the image proportionally to those dimensions.
> tmpBild = "B0000843.jpg"; //temporary for testing
newTable.rows[newTable.bodyRowCount-1].cells[4].contents = "\r";
tmpPara = newTable.rows[newTable.bodyRowCount-1].cells[4].paragraphs.item(0);
tmpPara.justification = Justification.centerAlign;
tmpImg = tmpPara.place( PICBASE + tmpBild );
tmpImg.parent.visibleBounds = ["0mm","0mm","38.236mm","38.236mm"];
tmpImg.parent.geometricBounds = ["0mm","0mm","38.236mm","38.236mm"];
tmpImg.fit( FitOptions.proportionally );
tmpImg.parent.fit( FitOptions.frameToContent );
tmpImg.parent.strokeColor = "Paper";
tmpImg.parent.strokeAlignment = StrokeAlignment.centerAlignment;
tmpImg.parent.strokeWeight = "5pt";
tmpImg.parent.strokeType = app.strokeStyles.item("Thick - Thin");
Can anybody help convert this so it works for InDesign CS4? In the meantime, I will try to take care of the rest of the script.
Btw, I have/had a scripting
b reference
in PDF format for InDesign CS2, is there anywhere that I can download that for CS4, I know it was very helpful back then.What I ended up doing was create roughly enough pages in the document and create linked text frames on all pages, thus letting the table created in the first text frame flow as long as the document has enough pages. In the end processing, I then remove all the pages but the first one, effectively getting one page with one text frame containing all table contents.
This was the only way I could find to get around this problem. No matter what I did, placing content into a table cell that was overflowing a text frame just didn't work.
Here's the part where I create the pages (variable myMaxPages contains your estimated maximum number of pages). Please note in app.documents.add() that it is set to false to NOT open a window (speeds it up very slightly if you have a huge number of pages). You can remove the false and the myDocument.windows.add() statement if you don't want this or for debug purposes. The formatting mechanism on these forums seem broken, but the following code should be ok/readable once properly formatted.
>myDocument = app.documents.add( false );
with(myDocument) {
for( i = 0; i < myMaxPages; i++ ) {
myPage = pages.item(i);
with(myPage) {
if( i > 0 ) { myPrevFrame = myTextFrame; }
myTextFrame = textFrames.add();
with( myTextFrame ) {
if( i == 0 ) {
myTable = tables.add();
with( myTable ) {
bodyRowCount = 1;
columnCount = 5;
} else {
if( i > 0 ) { previousTextFrame = myPrevFrame; }
if( i < myMaxPages - 1 ) {
pages.add();
myDocument.windows.add();
While fiddling with it, I also updated my image placement code a bit:
> var myCell = myTable.rows[myTable.bodyRowCount-1].cells[4];
myCell.contents = "\r";
myCell.paragraphs.item(0).justification = Justification.centerAlign;
var myRect = myCell.insertionPoints[0].textFrames.add();
myRect.contentType = ContentType.unassigned;
myRect.visibleBounds = ["0mm","0mm","38.236mm","38.236mm"];
myRect.geometricBounds = ["0mm","0mm","38.236mm","38.236mm"];
var myFile = File(PICBASE + tmpBild);
if( myFile.exists ) {
var myImage = myRect.place( myFile );
myRect.fit( FitOptions.proportionally );
myRect.fit( FitOptions.frameToContent );
Maybe this helps someone, maybe it doesn't. Can't say that I'm happy with the behaviour of getting errors and being unable to place content in table cells that is overflowing out of a text frame, but I needed to solve it, and this is how I did it.
Of course, if anyone else has a better solution to placing images into table cells that may be in the overflowing part of a text frame, go ahead and share with the rest of us, please. -
what are the advantages of script over smartforms???
Hi harshu,
Advantage of scripts over smartforms is ,
labels can be created in scripts but not in forms
and scripts are client dependent where forms are not..
in detail:
SAPscript technology is based on a mainframe product from the 1980s, while Smart Forms have only been around since (roughly) 2001. With that sort of time gap, there are bound to be significant differences between the two tools. As you have noted correctly, client dependence is a fundamental one.
Although SAPscript has had some incremental improvements over time, its forms have always been -- under the hood -- relatively passive objects, with minimal embedded logic. These forms were designed to be driven and controlled by ABAP programs, much in the way ABAP programs read in database tables to produce reports; if you ever download a SAPscript form (e.g., via utility program RSTXSCRP), and look at the portable text file it produces you'll see what I mean. Many text objects (e.g., invoice header texts) are bound directly to documents which are client-dependent, so it makes sense for these text objects to also be client-dependent. From a complexity standpoint, SAPscript forms are close enough to these text objects where I can see how it made sense at the time to make them client-dependent too.
Conversely, a Smart Form is significantly more robust and complex. For instance, it can contain program nodes and nested tables with patterns. When a Smart Form is compiled, it generates an ABAP function module and these are always client-independent.
pls go through the link for more info..
Regarding SAP Scripts and Smart Forms...
pls reward if helps.
cheers.
Maybe you are looking for
-
Blue screen tint with Yosemite 10.10.1 - MBP 15" Mid 2010 Model 6,2
Who is having this issue, have you resolved it, and how did you do it: Coinciding with Yosemite 10.10.1. my entire screen has begun to take on a blue tint. This was not an issue with 10.10.0. This is a MacBook Pro 6,2 with 4GB system RAM. Graphic
-
Is there some fix for this? this also affects my LR4. PS CC works fine and all other apps.
-
Secondary Hard drive in a Envy dv7-7233nr Laptop
hello this laptop supports a secondary hard drive. I need to know where to get the right Mounting kit for it. I have the Hard drive i want to use and a cable i got on Ebay for it. now all i need is a Cradle /mounting kit. Please help. Thx
-
Displaying only cost center groups
Hi BW Gurus! There's a standard cost center group and cost center hierarchy in the source system that I was able to extract. My cost center infoobject (0COSTCENTER) had that hierarchy data. My question is, in the instance that I want to display only
-
Error creating Non BM 3.8 sp5 slave VPN server
Hi NetWare 6.0 sp5 and BM 3.8 sp5. I am trying to add a non BM server to as a VPN slave. I am using Craig Johnsons manual which is pretty nicely detailed. I get through all the screens but at the end when I hit OK it gives this error. The Site To Sit