Smartforms - reg
what is the print program and smartform for purchase order.
Hi Naresh,
print program is:SAPFM06P
Smartform: /SMB40/MMPO_L
Enter T,code NACE>SELECT Application EF>Output types-->Click on NEU Outpou type then click on Proceesing Routines.
Regards
Kiran Sure
Similar Messages
-
Reg: passing totals /subtotals of a ALV to a smartform
I have a editable ALV report which has a button to call a smartform . Once the user edits some fields I need to pass the refreshed total to the smartform. I want to know - in what structure the totals/subtotals of the ALV report are stored.
Banu,
Even if you figure out how to get the subtotals / totals from a ALV, I would still suggest you to use the features of SMART Forms to calculate the same again in the form.
http://help.sap.com/saphelp_nw04/helpdata/en/55/610e2db57911d4b62c006094192fe3/content.htm
So, that way if your form is triggered even without doing the subtotalling done by the user you are on the safer side as the form will still display what you have designed it for.
Regards,
Ravi
Note :Please mark all the helpful answers -
Reg .. functions used in smartforms
Hye Friends,
Im not getting y we use the functions SSF_OPEN AND SSF_CLOSE in smartforms.
what is the basic defn of both and for what purpose they are used in.
Many thanks
SunnyHi
go through this:
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 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.
for Smartforms material
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
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Reward points if useful
Regards
Anji -
Reg smartforms - creating a new page for each customer number
Dear friends,
This is a sample program for smartform.
Below is my coding ...
TABLES : KNA1.
SELECT-OPTIONS : S_KUNNR FOR KNA1-KUNNR.
TYPES : BEGIN OF ZFS_KNA1,
KUNNR TYPE KNA1-KUNNR,
NAME1 TYPE KNA1-NAME1,
ORT01 TYPE KNA1-ORT01,
END OF ZFS_KNA1.
DATA : ITAB TYPE STANDARD TABLE OF ZFS_KNA1 INITIAL SIZE 0,
WA TYPE ZFS_KNA1.
SELECT KUNNR NAME1 ORT01 PSTLZ LAND1 FROM KNA1 INTO TABLE ITAB WHERE KUNNR IN S_KUNNR.
Now i am having one secondary window (cusotmer number) and main window(name and city).
I am able display list of cm nos, names and city in one page.
But i want to display name, city and number of customer in one single page.
suppose 5 customer numbers are there.....then 5 seperate pages should be displayed.
pls help me.
Regards,
S. VinodHi,
In your loop node... you have sort criteria....
give the fieldname of the customer number KUNNR and check the check box under the begin of sort event...
An event node is created... under that event node... create command node for triggering new page and dont forget to tick the checkbox for " not on first page" in the conditions tab....
and under that you can create text elements to display the data
regards
padma -
Reg: Printing multiple lines of line item in a smartform?
Hi Experts,
I have a query regarding printing multliple line items in a smartform. In this form i dont have control on the font size because the client is using some generic type format to print the data in EPSON LQ 590.
Here this generic type drivers, it has his own default font.
If i print using the normal EPSON LQ 590 drivers, alignment is perfectly fine. But in generic case its totally different.
My query is in my item row there are 7 columns. If one of the column exceeds the space which i have assigned for that particular cell, it should go to next line automatically. How should i do this?
Then there should be a line space between 2 rows of data. How should i do this?
Please help me on this.
Another query is date is getting displayed as 19.07.2009, due to the space problem in that particular cell i need to display as 19.07.09. Please tell me how should i do this also?
Waiting for the reply.
Thanks and Regards,
Abdur RafiqueUse smartstyles for the same to mke sure it goes into next line. Also you can set space between 2 lrows to one line.
For the date issue..use the following piece of code...
DATA: w_date TYPE sy-datum,
w_char TYPE char8.
CONCATENATE w_date+6(2) w_date+4(2) w_date+2(2) INTO w_char SEPERATE BY '.'. -
Reg creation of patterns in smartforms 4.6c
Hi,
I know that there is an option to create patterns in the smartforms version 4.7.But is there any way to create the required patterns of our own in smartforms version 4.6c.
thanks in advance
regards,
karthikCheck this help for the table painter in the Smartforms:
http://help.sap.com/saphelp_nw70/helpdata/EN/4b/83fb4edf8f11d3969700a0c930660b/frameset.htm
I am not sure, if the same table painter is available in the 4.6C
Regards,
Naimesh Patel -
Hi,
1) What is the difference between the copy and final window in smartforms?
2) What is the difference between at-selection screen output and initialization in reports?
Points will be rewarded for correct answer.
Regards
sathish<i>Copies window:</i>
You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.
<i>Final window:</i>
You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.
Check this link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/243fe0beee11d4b633006094192fe3/frameset.htm
<i>AT SELECTION-SCREEN OUTPUT</i>
This is used to dynamically set the screen field attributes
<i>initialization</i>
this is used to set the default values to the scree fields.
Regards,
Naimesh Patel -
Reg : smartform in abap-hr
hi ,
In hr-abap we have the smartforms i.e hrforms i got the standard smartform... SAP_PAYSLIP_US ... is this smartform wat we use is same as in abap... smartform or different.. also i need the information related to this smartform SAP_PAYSLIP_US.. and driver program....Hi
RPCEDTX0 is the standard program which takes of Remuneration Statements(payslips) for payroll. It has a include RPCEDSZ9 which can control the form routines of the form which is used as a payslip. However, the selection of form which can be used a payslip is controlled from IMG settings. You can always edit this form using a smartform if you are using SAP_PAYSLIP_US as your payslip.
Which version of SAP you are working on?
Regards
Waz -
Hi All,
Cud u pls let me know
1. the differences between scripts and smartforms..???
2. differences between standard text and text module in smartforms???
3. how do u upload graphics(logos) in smartforms?
Its really very urgent.
Thanx in Advance.Hi,
1. The Following are the differences :-
a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
(like For the same form u can have one page with Landscape orientation and 2nd page with portrait orientation which is not available with scripts...)
b) It is possible to have a smartform without a main window.
c) Labels cannot be created in smartforms.
d) Routines can be written in smartforms tool.
e) Smartforms generates a function module when activated.
( Here u need to use the function module (thats been generated when u have activated the smart form) to call the smart form in your print program )
f) Here u can give colors to windows , texts , window edges .... which is not possible with scripts !!!
g) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file
h) The most important one is these smart forms are CLIENT INDEPENDENT
2. Text module (an encapsulated text) can be reused in several forms, whereas Standard text can be used in any form any number of times by calling its name, once it is released.
3. Use the SE78 T Code to upload graphics .
Hope this resolves your query.
Reward all the helpful answers.
Regards -
Reg : continous printing in smartforms
Hi,
Am doing report for customer discount details in smartforms , if i give customer range in selection screen
i.e from 50027 to 50031.
i will have 5 customers,in which i want print each customer in seperate page continously...
Regards,
vino.Hi Vinoth,
If your page layout is same for all the customers then its feasible to use this:
Right click >> Create>> Flow Logic >> Command .. go to page2
This u can include in the end of the first page .
but before this when u finished with printing of the first page see that u set some flag since the
COmmand node has conditions which trigger the page defined in Go To.
Hence u can print different customers in one spool request.
The other option of printing within the loop is also possible but it has one drawback.
everytime u call the function module for printing it creates new spool request,
hence if u hav 50 customers u will get 50 spool request which wight be inconvenient to handle in the long run.
Hope this helps you.
Best Regards,
Navin fernandes. -
Hi all
atter giving the values in the selection screen, i am generating the output in Smartforms. After coming back to selection screen , i am changing the values in the seletion screen ., But the output of the forms remains same as the previous one.
What could be the solution?
Regards
karthikclear the variables and refresh internal table.For going back to selection screen give leave to transaction <tcode>.
-
Reg: Subtotal and final total in smartform?
Hi Experts,
I'm working on a smartform where i need to display the line items from lips table.
This is my final internal table.
TYPES : BEGIN OF it_final,
matnr TYPE lips-matnr, "Article
vbeln TYPE likp-vbeln, "Delivery Number
arktx TYPE lips-arktx, "Article Description
vrkme TYPE lips-vrkme, "Unit of Measure
lfimg TYPE lips-lfimg, "Delivery Quantity
kunag TYPE kunag, " Sold To
name TYPE name1, " Name
charg TYPE lips-charg, "Batch Number
vfdat TYPE lips-vfdat, "Expiry Date
lgort TYPE lips-lgort, "Storage Location
matkl TYPE lips-matkl, "Merchandise Category
wgbez TYPE t023t-wgbez, "Merchandise Category Desc
lgpbe TYPE lips-lgpbe, "BIN Number
pikmg(20) TYPE c, "Picking Quantity
route TYPE likp-route, "Route
END OF it_final,
For one material number, there will be many line items, I need to have a subtotal for a particular material and at the end i need afinal total for all the material number.
I have sorted my internal table as sort it_final ascending by matnr vbeln.
Then this internal table is moved to smartform.
In smartform i'm using table to display the complete data. Here i need to segregate into subtotal and total.
Please help me to display the data in below format.
For Ex:
MATNR DESC QTY VBELN
1000001 tea 12 3500000012
1000001 tea 02 3500000013
subtotal 14
1000006 salt 01 3500000013
subtotal 01
1000008 sugar 02 3500000015
1000008 sugar 02 3500000012
1000008 sugar 02 3500000013
1000008 sugar 02 3500000016
subtotal 08
Total 23
Thanks in advance.
Guys, The data is not getting displayed in Preview properly. Please edit and read it or copy in the notepad and read it.
Regards,
Abdur Rafique
Edited by: abdur rafique on Aug 8, 2009 3:38 PMHI,
for the total it is easy.
Just calculate the total in a variable just before the table in the smartforms.
Display the total variable in the FOOTER section of the table.
To display the subtotal you will have to do i bit of workaround.
In the table create 2 LINE TYPES.
The 1st line type will have the four columns to display MATNR DESC QTY VBELN.
The 2nd line type will be of single column which will be used to display the subtotal.
In the main section of the table create 2 rows of the above line types.
In the 1st row display the MATNR DESC QTY VBELN as normal.
In the 2nd row display the subtotal.
This should be done as follows:-
Add one more column in your internal table as follows:-
MATNR DESC QTY VBELN SUBTOTAL.
Now you have to do some coding to create your internal table as follows:-
MATNR DESC QTY VBELN SUBTOTAL.
1 test 10 100001
1 test 10 100002
1 test 20 100003 40
2 test2 10 100006 10
3 test3 50 100009
3 test3 60 100010 110
This internal table should be created before displaying the table in the smartforms.
Then this internal table should be used in the smartforms.
The subtotal column should be shown in the 2nd row of the main area of the TABLES.
Also add a condition to it that it should be shown only when the column SUBTOTAL of the table contains any value.
So in this way you will be able to achieve your required output.
i hope you understand my idea.
regards,
Ankur Parab -
Reg smartform background n print prob?
hi experts
i have a requiremnt my sf has to run in backgorund mode by default. how to make it ?
and i have to put a check box on my selection screen for print if the user checked it print should come . how to get this functionality?
thanks & regardsHi Deepu,
Refer to my post below thread
Re: smartform into pdf...
Regards,
Sravanthi -
Reg : SMARTFORM name and DRIVER PROGRAM
Dear Gurus,
Can anybody help me out in providing standard SMARTFORM name and also driver Program for
'ANNUAL MAINTENANCE CONTRACT CONFIRMATION' in CS(Customer Service) module.
Cheers,
Loverboy KHi,
there is on a standard system no smartform for you. So you have to do your thing with the standard sapscript.
However there have been some BestPractices projects at SAP. There they have a lot of standard smartforms. Maybe you can download them from SAP somewhere the name will something
with MMCON or MMDLS in it.
you have to find out yourself because i do not have it here to send it to you.
Gr., Frank -
Reg SMARTFORM emailing n fax options?
hi friends
i have to run my smartform in background mode and there is a requirement to fax and emailing
the output. how to make my form run in background , email n fax ?
thanks & regards
thirupai
Edited by: rafi md on Dec 20, 2008 1:32 PMHI
you may use the FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF' to convert the fom
into PDF.
But first to get the printed form from the spool, use FUNCTION
'RSPO_FIND_SPOOL_REQUESTS'.
Then you may send it to your PC, email, fax, etc by reading the record in
the lines of table IT_PDF_OUTPUT.
Note: You may also use program RSTXPDFT4 as a reference to get code
examples which uses different functions to perform the creation of PDFand
download the form to the PC,etc.
An example:
CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
EXPORTING
RQOWNER = SY-UNAME
TABLES
SPOOLREQUESTS = SPOOL_REQUESTS.
READ TABLE SPOOL_REQUESTS INDEX 1.
GD_SPOOL_NR = SPOOL_REQUESTS-RQIDENT.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = GD_SPOOL_NR
NO_DIALOG = C_NO
IMPORTING
PDF_BYTECOUNT = GD_BYTECOUNT
PDF_SPOOLID = PDFSPOOLID
BTC_JOBNAME = JOBNAME
BTC_JOBCOUNT = JOBCOUNT
TABLES
PDF = IT_PDF_OUTPUT
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11.
CHECK SY-SUBRC = 0.
Hope this will help send you in the right direction
Regards
Alok
Maybe you are looking for
-
Why does it keep telling me that my photos are referenced when I update my vault?
I recently imported all of my photos into Aperture and immediately set up a Vault to back them up. (I lost 4 years worth of photos so I've become a little paranoid about losing any more photos). I've also imported some additional photos directly from
-
How tdo I get rid of Explorer Image Pop Up
Does anyone know how to get rid of the little pop up window that appears in Explorer when someone rolls over an image and leaves there cursor there for a while.
-
White Background behind talent
I have been seeing lots of web videos with talent standing in front of pure white background. Is that a CG type effect, or simply a white background and can it be achieved with FCE?
-
Transaction or program which shows SAPS of the system
Hello experts, Is there any transaction or program or table in SAP system which shows the SAP Application Benchmark for Performance Standards(SAPS) ? Regards, Sanket Kelkar
-
Hi All: In BPS Cube when the request is yellow Iu2019m able to report on it by adding variable (All Data) on Request ID in the Query. Is this going to effect the performance, whatu2019s the mechanism behind using this variable? If I have 50 requests