Smart form requirement(related to TLine table output)
Hi,
I am trying to display smartform developed in ABAP from webdynpro java as a PDF .The output is taken from a BAPI which is returning the output in TLINE table. I have tried printing the table output which consists of special characters but I am not able to get the output from the BAPI.
Can anybody please tell what can be done for the same.Looking forward for the reply.
Regards,
Pawan
Hi Pawan,
I should clarify. If you are planning to use Web Dynpro your first task is to get data into the Context Controller of the Web Dynpro component you are using. Data is obtained via an Adaptive Web Service model which is generated for you by Web Dynpro if you provide it a WSDL. So you need to create a Web Dynpro Project (If you plan to use the NWDI which most projects will it is best to create development component project of type Web Dynpro rather than just a Web Dynpro project), Anyhow once you you will an empty models folder in the project. Right click this to be prompted for the model type. The model will be generated if the WSDL meets the criteria for generating a model. If it is created you still need to initiatlize the model in the wdDoInit() method of the Web Dynpro component controller and place the model nodes correctly in the Context of the Component Controller.
This is accessed using wdContext from wdDoInit(). Once the data is properly in the context you will need to use context mapping to map the data into the context of the view controller from which it can be applied to the UI components in the Views layouts.
Similar Messages
-
Calling a Smart Form on Click of a Table Row..
Hi All,
I have one requirement.
I have developed one applicaiton, in which from R3, the values are coming in form of a table. Now, on Click of a Table row, it should call a smart form developed in R3 for that selected row attribute. Also the smart form should open in a new window, so that user can take a print of it.
How to add this new view and how to get the selected Row value ?
Please help me.Hi,
To open the new window, I have added blow code:
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("InfoPopup");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.open();
but, getting error message as : IWDWindowInfo cannot be resolved
what should be the import parameter? Also please tell me how to search for the Import parameters for the respected attribute/code?
Please help. -
Hi
I have a web service BAPI whose table's content I want to display either in smart form,sap script or any other tool from Portal end.I am using webdynpro for java.
Please let me know how it can be performed?
Looking forward for the reply.
Regards,
PawanHi Pawan,
I should clarify. If you are planning to use Web Dynpro your first task is to get data into the Context Controller of the Web Dynpro component you are using. Data is obtained via an Adaptive Web Service model which is generated for you by Web Dynpro if you provide it a WSDL. So you need to create a Web Dynpro Project (If you plan to use the NWDI which most projects will it is best to create development component project of type Web Dynpro rather than just a Web Dynpro project), Anyhow once you you will an empty models folder in the project. Right click this to be prompted for the model type. The model will be generated if the WSDL meets the criteria for generating a model. If it is created you still need to initiatlize the model in the wdDoInit() method of the Web Dynpro component controller and place the model nodes correctly in the Context of the Component Controller.
This is accessed using wdContext from wdDoInit(). Once the data is properly in the context you will need to use context mapping to map the data into the context of the view controller from which it can be applied to the UI components in the Views layouts. -
Smart form problem with multiple pages & table problem
Hi experts,
I have a problem with my smart form with multiple pages
Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
Regards,
PJI would suggest another approach to this problem.
Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
The table should flow as you would be using the Main window for this one.
As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
Hope this resolves your problem.
Regards,
Ancy
Edited by: abapfreak on Oct 4, 2010 11:52 AM -
SMART FORMS: Frame Border of a Table in whole Window
Hello there.
The situation:
I have a table in the main window which is filled via an loop over an internal table.
I don´t know the exact point of start from the table because before printing the table I print dynamic texts which can have different length.
The frame of the table should end everytime at the end of the main window. If I have more than one page the first page is correct but the frame ends with the last position. But the frame should end at the end of the main window.
The minimum length does not help because the main window is on the first page shorter than on the following pages.
Can I use the footer of the table in this case? Do you have any idea?
I can´t imagine that SAP have no solution in this case.
Greetings
MarkHi!
Unfortunetaly it is really urgent.
Can´t nobody give me any feedback?
Greetings
Mark -
Hi,
when execute the program to show smart form, it comes up with error "Output could not be displayed (it may not be complete)"
can you please let me know the reason for this error and how to resolve it?
waiting for kind replies...
Regards
Shabbarcheck whether there any run ttime errors on the form..
open the Tcode..SFTRACE.. then activate Trace. in one session.. after this .. in onother session Run the form... after u gettin the errror... come back to SFTRACE... press Refresh button on the bottom.. then
u'll find the 1 entry with today date and u r user name... select that press on Display... u'll find the wexact problem..
the problem colud be lay out
Message was edited by:
Naresh Reddy -
Hi,
i am supposed to develop a new smart form which has to get its output same as an existing report. Is there any way to convert the report output into the smart form can any one help pleaseHi Beginner,
Create smartform and execute the form u will get a function module then click on pattern (from main program)and give the function module name in main program .
then that smart form will be printed.
Thanks
Sreeja
Rewards if useful.... -
hi experts i am new in smart form i know script
could u guide plz
in scripts we have predefined forms and corresponding driver programs like MEDRUCK, RVORDER01 using this we can modify our layout according to client requirement.
1. can u please provide predefined forms and print programs in smart forms and plz tell me 2. wht modifications we will do real time in smart forms
3. how to create table in smart forms
4. how to debug and how to transport smart forms
5. can u please provide some FAQ's in smart formsHi Sayeed,
Go through this important URL:
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
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
This is the program:
Converting SMART FORMS output to PDF format
REPORT zsuresh_test.
Variable declarations
DATA:
w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
w_fmodule TYPE rs38l_fnam,
w_cparam TYPE ssfctrlop,
w_outoptions TYPE ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string.
Internal tables declaration
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold OTF data recd from the SMARTFORM
t_otf_from_fm TYPE ssfcrescl,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
This function module call is used to retrieve the name of the Function
module generated when the SMARTFORM is activated
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_form_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = w_fmodule
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Calling the SMARTFORM using the function module retrieved above
GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
format of the output
w_cparam-no_dialog = 'X'.
w_cparam-preview = space. " Suppressing the dialog box
" for print preview
w_cparam-getotf = 'X'.
Printer name to be used is provided in the export parameter
OUTPUT_OPTIONS
w_outoptions-tddest = 'LP01'.
CALL FUNCTION w_fmodule
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = w_outoptions
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = t_otf_from_fm
JOB_OUTPUT_OPTIONS =
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.
t_otf[] = t_otf_from_fm-otfdata[].
Function Module CONVERT_OTF is used to convert the OTF format to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = W_bin_filesize
BIN_FILE =
TABLES
otf = T_OTF
lines = T_pdf_tab
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 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.
To display File SAVE dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILE_NAME =
FILE_FILTER =
INITIAL_DIRECTORY =
WITH_ENCODING =
PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = w_FILE_NAME
path = w_FILE_PATH
fullpath = w_FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = T_pdf_tab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Find userexits with transaction code:
Selection Text: P_TCODE: Transaction Code to Search
Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc, "SAP® Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP® Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP® Modifications
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Rewords some points.
Rgds,
P.Naganjana Reddy -
i have copied the purchase order smart form and activated it and know i have the function moudule which need to be used in program but i am not shure how to do that can any one tell me how i need to write the coding for simple purchae order and then pass on the data to the smart form so that it displays the output.
What you do for inserting lines is to select line one of the screen table and then click the insert button.
Do this for each line in your BDC and then you only have to worry about line one of the table:
Code:
Form Add_Item_Line Tables t_Item_Data
using pu_program type Program_Name
pu_screen like sy-dynnr
pu_insert_line like sy-ucomm
pu_insert_at like sy-tabix
pu_werks like Zorder_Header-Dwerk.
Data: t_characteristics type Order_Lines,
w_Characteristic like Zorder_Line.
Perform Zbdc_Screen using pu_Program pu_Screen.
Perform Zbdc_Field using c_OkCode pu_insert_line. <----
Perform Zbdc_Screen using pu_Program pu_Screen.
Loop at t_Item_Data into w_Characteristic.
Is this actually part of the item line or is it a
Characteristic ?
Translate w_Characteristic-AtNam to Upper Case.
Case w_Characteristic-AtNam.
When 'MATNR'. " Material
Perform Zbdc_Subscript using 'VBAP-MATNR'
pu_insert_at
W_Characteristic-AtWrt.
Perform Zbdc_Subscript using 'VBAP-WERKS'
Looking at it from a modification point of view, the aim will be always to bring the line of the table that you're interested in to line one of the table
so again you only need to handle line one of the screen table. Some of the codes for this are 'POPO' in Purchase order processing, and 'SORT' in CO02:
Code:
Now loop round the P/O and delete all of those that we don't want
Loop at t_ekpo.
Keep this P/O Line item ?
MOVE SY-TABIX TO W_POPO.
PERFORM ZBDC_SCREEN USING 'SAPMV50A' '0270'.
PERFORM ZBDC_FIELD USING 'BDC_OKCODE' '=POPO'.
PERFORM ZBDC_SCREEN USING 'SAPMV50A' '0111'.
PERFORM ZBDC_FIELD USING 'RV50A-POSNR' W_POPO.
PERFORM ZBDC_FIELD USING 'BDC_OKCODE' '/00'.
Read Table t_vl31_asn with key ebeln = t_ekpo-ebeln
ebelp = t_ekpo-ebelp.
If sy-subrc <> 0.
Not found - discard this one.
PERFORM ZBDC_SCREEN USING 'SAPMV50A' '0270'.
PERFORM ZBDC_FIELD USING 'RV50A-LIPS_SELKZ(01)' 'X'.
ELSE.
Change the quantity....
WRITE T_VL31_ASN-MENGE TO W_MENGE UNIT T_VL31_ASN-LMEIN.
CONDENSE W_MENGE NO-GAPS.
PERFORM ZBDC_SCREEN USING 'SAPMV50A' '0270'.
PERFORM ZBDC_FIELD USING 'LIPS-LFIMG(01)' W_MENGE.
EndIf.
EndLoop.
Hope this helps.
Award points if found usefull.
Cheers,
Chandra Sekhar. -
Reg:Smart Form o/p options
hi friends
i need to design a smart form for which 2 pages of output is mandatory. it mean one page shows the taxable items and the other shows non-taxable items. so i need to print the 2 pages as common everytime . where i can set the option so that it displays the two pages everytime based on the conditionsHi
After running the taxable items loop in the first page of the table, Create a command node..there go to the next page as second page and in the conditions tab, check the check box "End Of Main Window". So, everytime after first page is printed, it will go to second page.
Regards,
Vishwa. -
How to get material number in smart form driver prog attached to MM01:NACE?
Hi,
I have attached driver program of smart form to MM01 usinfg nace.
On save smart form should get generated.
Can anybody guide me how to get material number from MM01 in driver program on saving MM01.
as of now am not getting values in smart form.
What additional lines to be coaded in driver program to get material number.
Thanks.hi,
use nast table in your import paramaters of smart forms.
In the Nast table you can find a field with object key which holds the Material Number.
Hope this helps.
Thanks,
subash -
Adding Cell in a row in Smart Form
Hi All,
Can anybody please tell how to add a cell in the row of a table in smart forms.
ThanksHi,
Select the table, so that you can see the table painter. In that press the Details tab. You'll get the cell's width details. If you want to add an cell, then enter it's width for it. Also, note that the accumulation of all the cells width in a row should match with that of the Table.
Regards,
Hema.
Reward points if it is useful. -
Suppress leading spaces while displaying an amount field in a Smart form
Hi all,
In a smart form, I am using fields like KONV-kbetr and VBAP-netwr each of them currency type and 2 decimal places. I want to suppress the decimal places and also the leading spaces while displaying these fields in a smartform cause when this field is inserted in a sentence, a lot of gap is there between the field and the words of the sentence. I dont want to change the field length cause it can be that huge in some cases.
Please help.
Thanks ,Hi, if you would place it in a sentence, it would be an option to concatenate the text and values into one string and then condense it.
concatenate <text> <value> into lv_sentence.
condense lv_sentence.
but another way is to use codes for displaying values in smartforms:
This is from a smartforms PDF i have..
Output Options for Field Contents
Use the Formatting options to adapt the value of a field before printing it. You can enter the
relevant parameters directly behind the field name. Make sure to write the short forms of the
different options in uppercase letters. Some of the options can be combined.
General Information
The formatting options are not suited for all data types of fields (for example, for character fields
you need no exponential representation). You must distinguish between numeric fields and
character fields.
Numeric Fields
If specified, the system first evaluates the length (<length>).
If no length is specified, the system displays the value in its overall length.
The trailing blank indicates a positive sign. To suppress it, use formatting option S.
Any offset <offset> specified is ignored.
Sequence of evaluation: (<length>), sign to the left(<),Japanese date (L), suppress blanks (C),
right-justified display (R), insert fillers (F).
Character Fields
By default, the system displays the value of a field in its overall length, but truncates trailing
blanks.
Sequence of evaluation: suppress blanks (C), <offset> and (<length>), right-justified display (R),
insert fillers (F).
Overview
Formatting Options for Fields
Syntax Description
&field+<offset>& Skips <offset> places of the field value (character fields only). If the
offset is greater than the length of the value, nothing is displayed.
&field(<length>)& Sets the output length to <length>.
&field(*)& If the field is defined by a Data Dictionary type, Smart Forms set the
output length to the value specified there.
&field(S)& Suppresses the sign
&field(<)& Displays the sign to the left of the number
&field(.<nat.number>)& Limits output of decimal places to <nat.number>
&field(E<nat.number>)& Displays the field value with the fixed exponent <nat.number>. The
mantissa is adapted to this exponent by shifting the decimal
character and inserting zeros.
SAP Smart Forms (BC-SRV-SCR) SAP AG
Output Options for Field Contents
72 April 2001
&field(T)& Suppresses thousand indicators when displaying fields of types
DEC, CURR, INT, and QUAN.
&field(Z)& Suppresses leading zeros of numbers
&field(I)& Suppresses display of initial values
&field(K)& Deactivates a conversion routine specified in the Data Dictionary.
&field(R)& Right-justified display. Use this option only when specifying an
output length as well.
&field(F<filler>)& Replaces left-justified blanks in the value by the fill character <filler>.
&field(L)& Converts and a date field to a local date and displays it. The date is
then formatted using edit mask JPDAT.
Since this representation uses Japanese characters, use it in the
Japanese version of the SAP System only.
&field(C)& The system takes the field value as a sequence of words separated
by blanks. Option C shifts these words to the left and leaves only
one blank inbetween as separator. Any leading blanks are
suppressed. This effect corresponds to that of the ABAP statement
CONDENSE. -
Why the control parameters changed when print smart form
Hi experts:
I set the control parrameters in my source code to print the smart form, I use the loop table for printing, but I found the print device changed automatically, only the frist page is ok. that means, the control paramenters lost when loop. how to solve it?
this is my source:
LOOP AT it_outtab INTO wa_outtab WHERE flag = 'X' .
ssf_open ls_control_param outopt ls_composer_param.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE 'Call SSF_FUNCTION_MODULE_NAME Error' TYPE 'E'.
ENDIF.
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 lf_fm_name
EXPORTING
control_parameters = ls_control_param
zgl_k_stru = wa_outtab
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE 'Call LF_FM_NAME Error' TYPE 'E'.
ENDIF.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ssf_close .
MOVE-CORRESPONDING outopt TO ls_composer_param.
ls_composer_param-tdimmed = ' '.
ls_control_param-no_dialog = 'X'.
IF outopt-tdpreview = 'X'.
EXIT.
ENDIF.
ENDLOOP.Hi Prabhat,
Please check following point in your smartform design.
1) In your smartform design, how many pages do you have? (Check the page format and margins, have a look at form painter
as well)
2) Check out the navigation from one page to another page.
3) Debugg the form and check at what point the last page is been added.
Regards,
Amee. -
How to display smart form stored in SAP in Webdynpro java( TLINE table)
Hi
I have a requirement where I have to display the smart form from WD Java end.
The BAPI is producing output in TLINE(TDLINE(132),TDFORMAT(2)). I am trying to concat both(TDLINE+TDFORMAT) and put in the interactive form but I am not able to get the output from BAPI.
Is it because the TLINE format is not supported in the WD java. How can I solve the issue.
Looking forward for the reply.
Regards,
PawanHi..
Try this PDF URL.... u might get useful things...
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
Web Dynpro Java
yours GS
Maybe you are looking for
-
Cursor memory use in a background job
I am researching a solution for a client, and need help as I'm admittedly an Oracle greenhorn. They run 10g Enterprise Edition. {color:navy}*The problem*{color}: create a low-priority background process that uses DB inactivity windows to read through
-
Motion 4: zooming in with all layers
I'm creating an opening sequence in Motion 4 and I can see a problem coming. First the white circle draws itself. Then the center photo fades in. Then, one after another, the town names and dots appear in alphabetical order. The final effect should b
-
Referencing "image" form elements using Safari
I'm trying to write an Applescript which uses Safari's do JavaScript feature to reference the elements of forms in web pages. I've run into a puzzle in cases where the page designer chose to use an element of type "image" for form submission. It look
-
Hi I am trying to connect a Lock In Amplifier - Manufacturer: AMATEK , Signal Recovery 7270 DSPLock In Amp.I downloaded their drivers and labview codes to check interfacing of the device. When I run the main vi, it runs and shows no error code but th
-
IOS Security Msg On AIR 3.7
Hi, I am using the new 3.7 SDK with my mobile Flex application, and have a situation where my externally loaded swf is generating mysterious messages in the debugger console. The mobile app downloads and caches swf files from a server, then loads the