Use the Smartform field parameter setting to resolve the issue of number, Amount field display in Smartform

Source: Internet
Author: User

In Smartform, fields of quantity and amount types are displayed in a way that is not on the same level as the other fields: &itab-menge (C) &, the following are several considerations for setting the Smartform field parameters:

1, when using Sfsy-formpages to display the total number of pages, if the page is greater than 9, the first 10 pages will be displayed as asterisks. Solution: You can add 3zc,&sfsy-page (3ZC) &/&sfsy-formpages (3ZC), but there may be a font upside down or overlap, with a separate window to hold the text showing the page number, And the type of the window is set to L (the final window) is OK.

2, if the Amount or Quantity field does not appear, you can specify the appropriate data type in the Currency/Quantity field tab.

3, Field not outputting more than 255 characters in a loop. This is happening because when you send a string to smartform with length >255 characters then it takes only 255 Characters. I overcomed This problem by splitting the string which is of around-char into two and then sending it to Smartform as Individual vairables and displaying the two variables one after the other in the Smartform.

Splits the text field into several character variables and then joins together to display it.

4, Output Format Setup instructions

Syntax description
&field+& displays data where the character variable setting is displayed, and the system will not display any data if the offset is greater than the length of the character variable
&field () & Set output length.
&field (*) & If the field type is the type defined in the ABAP data dictionary, the system will set the output length according to the length defined by the dictionary
&field (S) & Disable output symbol bit
&field (<) & Symbol bit is displayed on the left side of the data
&field (.) & Sets the number of digits that display decimals
&field (E) & Set as scientific marking method
&field (T) & prohibit the display of thousand points (for: DEC, CURR, int and quan several data types).
&field (Z) & prohibit the display of digital leading 0
&field (I) & Suppress null values
&field (K) & Prohibit type system output conversion by data dictionary defined conversion function
&field (R) & Right alignment (valid only if the output length is defined)
&field (F) & replaces the left space with the specified character.
&field (L) & Convert the date to a local display format, using the format specified by Jdat
&field (C) & the setting effect is the same as the condense statement for ABAP.

5, Smartform printing bar code

First in the SE73 to define a new barcode, pay attention to be sure to use the new only, the old is not print out. Then define a smartform style and put your defined barcode in the character style. Then do smartform on it, will need as a bar code variable format selected as the barcode format, the output will be based on variable data (such as materials, batches) to get the corresponding bar code.

(1). In the transaction se73, choose a barcode font that suits your
Requirements (do here by checking the system barcodes radio button)

(2). Click on the Printer barcodes RadioButton and make sure the
Barcode you chose in step 1 exists for the device type of your
Printer.

If you are need to create a new barcode font, create it in Step1, and
Enterthe hex barcode prefix and suffix (can is obtained from your
Printer manual), then in step 2, define a new Z_ device type as a
Copy of the device type of your printer and assign the system barcode
to the printer.

(3). In your layout set, define a character string with the barcode
The font chosen above in the Bar Code field.
Format the string that is want to print as a barcode using this
Character string.

6, debugging
If you add code to the Smartform, the editor is not allowed to set breakpoints.

One way to do this is to add a breakpoint statement break-point to your code, and the disadvantage is that you need to write a breakpoint sentence for each breakpoint you want to set.

Another method is that the code you add will come with a name such as '%co1 '.
Environment-> function Module Name,
He Function that generated to this smartforms is '/1bcdwb/sf00000227 ' (automatically generated Smartform)
T-code se37->/1bcdwb/sf00000227-> Goto-> Main program
The last include is the most useful for debug, double-click to enter, find FORM%global_init.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.