To print values in Text
Hi,
I created one smartform in that I am using 'SPELL_AMOUNT' FM to display net amount. I am passing net value and currency as 'INR' . Ex: if i am passing Net value as 2000000. The out put is 'TWO MILLION' is there any way i can make it as 'TWENTY LAKHS' .
Please help me.
Thanks,
Naresh.
Functionality
This function module converts an amount or number into words. It can be used as follows:
Convert a number into words
To do this, the transfer parameters LANGUAGE and AMOUNT have to be entered.
Convert an amount into words
To do this, the fields LANGUAGE, CURRENCY, and AMOUNT have to be entered.
Set the number of places before and after the decimal point for an amount
To do this, the parameters CURRENCY and AMOUNT have to be entered. The LANGUAGE field must be transferred with the value SPACE. This option optimizes the runtime of the function module.
The structure SPELL transfers the converted amounts. The function module enters the number of places before and after the decimal point in the NUMBER and DECIMAL fields, the amount in words in the WORD and DECWORD fields, and the figure in words in the DIGnn fields. The numbers converted into words can be protected by a star or some other FILLER.
Notes
If you are using the first two functions, the system always checks whether the language required for the conversion is also entered in the calling program.
Example
Program RF_SPELL contains a sample call of the function module. You can use it for test purposes.
Further information
The FB uses table T015Z (figures and numbers in words) for the conversion. You may have to modify this table since the grammar for numbers in other languages may differ from the rules of grammar for Central European numbers (especially between German and English). Take note of the following languages:
Reward if helpful
Similar Messages
-
Dear All,
I had come across one issue.
In the Purchase order print i am printing the item text and also the header text.
But in this if it is having the symbol " & " then the text after the "&" symbol was not printing.
After that symbol it was skipping.
Can anyone help me in this.Hi,
'&' is used for priting variable's values e.g suppose there is a variabel 'lv_var' and if i want to print the value of it in script i have
to write code as '&LV_VAR&' (& in the start and end of the variable name), and this is why the text after '&' in your line item, is
not getting printed.
To resolve this issue just replace '&' with 'and' (hope is is being used for AND).
Regards,
Raj Gupta -
How to print out the text for Info record in ME23?
Dear all,
I need to print out a report of PO data. need to print out the text from Info record note (like the picture shown below) in ME23, how should I pull that field and display out?
I need the solution urgently. Hope experts can help.
Thank you very much.
[http://img293.imageshack.us/img293/238/inforecordnd1.png]Please check below sample code:
PARAMETERS: p_ebeln TYPE ebeln OBLIGATORY.
TYPES: BEGIN OF ty_ekpo,
ebeln TYPE ebeln,
ebelp TYPE ebelp,
END OF ty_ekpo.
DATA: i_ekpo TYPE TABLE OF ty_ekpo,
wa_ekpo TYPE ty_ekpo.
DATA: l_name TYPE tdobname,
i_tline TYPE TABLE OF tline,
wa_tline TYPE tline.
CONSTANTS: c_id TYPE tdid VALUE 'F02',
c_object TYPE tdobject VALUE 'EKPO'.
AT SELECTION-SCREEN.
SELECT SINGLE ebeln INTO p_ebeln
FROM ekko
WHERE ebeln = p_ebeln.
IF sy-subrc NE 0.
MESSAGE e001(00) WITH 'Enter valid PO Number'.
ENDIF.
START-OF-SELECTION.
SELECT ebeln ebelp INTO TABLE i_ekpo
FROM ekpo
WHERE ebeln = p_ebeln.
LOOP AT i_ekpo INTO wa_ekpo.
CONCATENATE wa_ekpo-ebeln wa_ekpo-ebelp
INTO l_name.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = c_id
language = sy-langu
name = l_name
object = c_object
TABLES
lines = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc EQ 0.
LOOP AT i_tline INTO wa_tline.
WRITE:/ wa_tline-tdline.
" Format wa_tline-tdline in the way you need to print out
ENDLOOP.
ENDIF.
ENDLOOP.
Regards
Eswar -
How to print sub total text in ALV
Hi All,
I have a prblem in printing sub total text in ALV. I am passing the text for sub total in ALV layout to the field SUBTOTALS_TEXT. Even then the text is not displayed where as this is working for TOTAL with the field TOTALS_TEXT.
Could any one provide me the solution please?
Thanks & Regards,
S.LakshmiHi Lakshmi,
Please refer to the following code :
report zalv10.
type-pools: slis.
data: g_repid like sy-repid,
gs_print type slis_print_alv,
gt_list_top_of_page type slis_t_listheader,
gt_events type slis_t_event,
gt_sort type slis_t_sortinfo_alv,
gs_layout type slis_layout_alv,
gt_fieldcat type slis_t_fieldcat_alv,
fieldcat_ln like line of gt_fieldcat,
col_pos type i.
data: begin of itab,
field1(5) type c,
field2(5) type c,
field3(5) type p decimals 2,
end of itab.
data: begin of itab1 occurs 0.
include structure itab.
data: end of itab1.
data: begin of itab_fieldcat occurs 0.
include structure itab.
data: end of itab_fieldcat.
Print Parameters
parameters:
p_print as checkbox default ' ', "PRINT IMMEDIATE
p_nosinf as checkbox default 'X', "NO SELECTION INFO
p_nocove as checkbox default ' ', "NO COVER PAGE
p_nonewp as checkbox default ' ', "NO NEW PAGE
p_nolinf as checkbox default 'X', "NO PRINT LIST INFO
p_reserv type i. "NO OF FOOTER LINE
initialization.
g_repid = sy-repid.
perform print_build using gs_print. "Print PARAMETERS
start-of-selection.
TEST DATA
move 'TEST1' to itab1-field1.
move 'TEST1' to itab1-field2.
move '10.00' to itab1-field3.
append itab1.
move 'TEST2' to itab1-field1.
move 'TEST2' to itab1-field2.
move '20.00' to itab1-field3.
append itab1.
do 50 times.
append itab1.
enddo.
end-of-selection.
perform build.
perform eventtab_build changing gt_events.
perform comment_build changing gt_list_top_of_page.
perform call_alv.
form build.
DATA FIELD CATALOG
Explain Field Description to ALV
data: fieldcat_in type slis_fieldcat_alv.
clear fieldcat_in.
fieldcat_ln-fieldname = 'FIELD1'.
fieldcat_ln-tabname = 'ITAB1'.
*FIELDCAT_LN-NO_OUT = 'X'. "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
fieldcat_ln-key = ' '. "SUBTOTAL KEY
fieldcat_ln-no_out = ' '.
fieldcat_ln-seltext_l = 'HEAD1'.
append fieldcat_ln to gt_fieldcat.
clear fieldcat_in.
fieldcat_ln-fieldname = 'FIELD2'.
fieldcat_ln-tabname = 'ITAB1'.
fieldcat_ln-no_out = 'X'.
fieldcat_ln-seltext_l = 'HEAD2'.
append fieldcat_ln to gt_fieldcat.
clear fieldcat_in.
fieldcat_ln-fieldname = 'FIELD3'.
fieldcat_ln-tabname = 'ITAB1'.
fieldcat_ln-ref_fieldname = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
fieldcat_ln-ref_tabname = 'MSEG'. "<- REF TABLE IN THE DICTIONNARY
fieldcat_ln-no_out = ' '.
fieldcat_ln-do_sum = 'X'. "SUM UPON DISPLAY
append fieldcat_ln to gt_fieldcat.
DATA SORTING AND SUBTOTAL
data: gs_sort type slis_sortinfo_alv.
clear gs_sort.
gs_sort-fieldname = 'FIELD1'.
gs_sort-spos = 1.
gs_sort-up = 'X'.
gs_sort-subtot = 'X'. ***CRUCIAL STATEMENT****
append gs_sort to gt_sort.
clear gs_sort.
gs_sort-fieldname = 'FIELD2'.
gs_sort-spos = 2.
gs_sort-up = 'X'.
*GS_SORT-SUBTOT = 'X'. **THIS SHOULD NOT BE UNCOMENTED*
append gs_sort to gt_sort.
endform.
form call_alv.
ABAP List Viewer
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
i_structure_name = 'ITAB1'
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sort[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
it_events = gt_events[]
IT_EVENT_EXIT =
is_print = gs_print
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = itab1
exceptions
program_error = 1
others = 2.
endform.
HEADER FORM
form eventtab_build changing lt_events type slis_t_event.
constants:
gc_formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
*GC_FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = lt_events.
read table lt_events with key name = slis_ev_top_of_page
into ls_event.
if sy-subrc = 0.
move gc_formname_top_of_page to ls_event-form.
append ls_event to lt_events.
endif.
define END_OF_PAGE event
READ TABLE LT_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_END_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO LT_EVENTS.
ENDIF.
endform.
form comment_build changing gt_top_of_page type slis_t_listheader.
data: gs_line type slis_listheader.
clear gs_line.
gs_line-typ = 'H'.
gs_line-info = 'HEADER 1'.
append gs_line to gt_top_of_page.
clear gs_line.
gs_line-typ = 'S'.
gs_line-key = 'STATUS 1'.
gs_line-info = 'INFO 1'.
append gs_line to gt_top_of_page.
gs_line-key = 'STATUS 2'.
gs_line-info = 'INFO 2'.
append gs_line to gt_top_of_page.
CLEAR GS_LINE.
GS_LINE-TYP = 'A'.
GS_LINE-INFO = 'ACTION'.
APPEND GS_LINE TO GT_TOP_OF_PAGE.
endform.
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = gt_list_top_of_page.
write: sy-datum, 'Page No', sy-pagno left-justified.
endform.
form end_of_page.
write at (sy-linsz) sy-pagno centered.
endform.
PRINT SETTINGS
form print_build using ls_print type slis_print_alv.
ls_print-print = p_print. "PRINT IMMEDIATE
ls_print-no_print_selinfos = p_nosinf. "NO SELECTION INFO
ls_print-no_coverpage = p_nocove. "NO COVER PAGE
ls_print-no_new_page = p_nonewp.
ls_print-no_print_listinfos = p_nolinf. "NO PRINT LIST INFO
ls_print-reserve_lines = p_reserv.
endform.
<b>Please reward points if helpful.</b>
Regards,
Amit Mishra -
Conditon in smartforms to print an include text
Dear all ,
I am printing a PO which includes a special instructions at the end of PO.
So, there are 8 lines in the special instructions.
In the 7th line there is a text related to warranty.
All the 8 lines are printed in same Text.
Now the requirement is ... in the 7th line i need to print an include text which is being fetched from me22n transaction.
If the include text is initial then the layout should remain as usual . else the include text should be printed in the 7th line.
Remember ,, all the 8 lines are in one text only...
Kindly guide me ,Hi Rahul,
use the READ_TEXT function module.
CONSTANTS:
c_txtid TYPE thead-tdid
VALUE 'F08',,
c_txtobj TYPE thead-tdobject
VALUE 'EKKO',
c_lang TYPE thead-tdspras
VALUE 'E'.
DATA:
lt_lines TYPE STANDARD TABLE
OF tline.
DATA:
lfs_line TYPE tline,
lfs_ekpo type ekpo.
DATA:
lw_name TYPE thead-tdname.
READ TABLE IT_EKPO INTO lfs_ekpo INDEX 1.
IF SY-SUBRC EQ 0.
LW_NAME = lfs_ekpo-EBELN.
ENDIF.
data:
GT_TXTLINES type STANDARD TABLE OF TLINE,
GFS_TXTLINE type tline.
refresh GT_TXTLINES.
clear GFS_TXTLINE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = c_txtid
language = c_lang
name = lw_name
object = c_txtobj
archive_handle = 0
local_cat = ' '
IMPORTING
HEADER =
TABLES
lines = GT_TXTLINES
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
read table GT_TXTLINES INTO GFS_TXTLINE INDEX 1.
Regards,
Pratap -
How do I print just the text in a power point opened in preview
How do I print just the text in a power point opened in preview
In the front panel, right click on the listbox object and select create>attribute node.
In the diagram click on the attribute node and select "Item Names".
Connect the desired array of string to the attribute node.
BigBen -
Displaying Variables values with Text also in the selection screen of repor
hai
I have one InfoObject ZPLANT .When i try to excute the report then im getting only the Values of ZPLANT(not Text of those values) .Like below
ZPLANT :-
101 -
(im getting like this)
101 London Plant ( i want like this ,when i try to excute the report).
Please tell me how to do .
rizwanYes kamaljeet ,
When we press F4 , then we will gwt some values .
I want those values with description also ..
Pls tell me how can i get those F4 values with text in the selection screen of report .
i ll assing the points
rizwan -
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari -
Print/Save Selected Text to PDF
I want to use Mozilla Firefox very much for a long time. I like it because the UI is very clean, easy to use, the icon vey pretty. When I use in my Android Mobile, it is very easy and intelligent to select content of page site. Very good!
But I had to install Chrome instead so I've always been using "Print a selected content to PDF" but I couldn't find ways to do that with Firefox. Chrome is doing very good.
I searched all add-ons, pdf printer software but they are only saving or printing all the page (website) to PDF.
Please help me the ways to save a selected content to PDF. Thanks very much.Hii hanh01001..
I think i know one solution to the problem
https://addons.mozilla.org/en-US/firefox/addon/print-selected-text/?src=api
this is an add on that is used to print the selected text only..
have a nice day :) :)
---Thanks tracy :) -
Smartview 11.1.2.5- Cannot change value in Text-List Dropdowns- Excel Crashes
Using latest/greatest Smartview with 64-bit Office and Windows 7. I have a native essbase app utilizing text-lists. I am trying to update text-value through smartview. Smartview automatically produces a drop down to select a value from the linked text-list. However- as soon as a different value is entered or selcted in this cell with the drop-down list- Excel crashs. I have reproduced this consistently everytime. I have no way to change values for text-measure accounts linked to text-lists. I feel this is and incompatabiliyt issue with office 64-bit.
SmartView using the forms. It appears this issue has been logged as issue number 6566082 as seen here: http://docs.oracle.com/cd/E17236_01/epm.1112/readme/sv_1112200_readme.html
But I can't seem to find out where I can get information on the status of this issue and whether it's been patched in future versions. -
I filled in a fillable pdf form and when i print it, the text in the fillable section gets cut off. What do I need to do to get the entire text to be printed. Any help is appreciated.
ThanksWhat has this to do with Pages? You probably did this in Preview.
Peter -
How can I print off a text message conversation?
I have to print off a text message conversation and I was wondering if there is any other way to print them off instead of using screen shots?
An alternate utility you may want to look into is DigiDNA's Disk Aid. You install it on a computer, Mac or PC, connect you phone to it and are able to back up everything on the phone and have access to all the stuff in there. Not free but really worth every penny. Free if you work or study in higher ed.
-
How can i print out old text messages?
how can i print out old text messages?
As Ann said, it does depend on your phone. One third party app that works on many phones (especially older models, but not all phones) is BitPim ( http://www.bitpim.org/ ) but it can potentially harm/brick your phone if you don't know what you are doing - use it with caution. I have used it successfully to get texts and photos off an old flip phone that was deactivated and had no sd card.
Newer smartphones can download apps that will give you the ability to print out texts. -
How do I print only the text on the monitor screen?
I would like to be able to print only that portion of a text that is on the monitor screen. How do I do that?
I have an Epson Workforce 325 printer, and an HP desktop computer PCPlease see the following to print only the text portion of the web page. I am assuming you wish to print just the text & not the ads or additional irrelevant items to avoid wasting ink.
See:
[[Printing a web page]]
'''If this solved your issue, please select ''solved ''& chose the appropriate ''solution'' to close this ticket/question posting'''. -
Looking for app to either print or save text messages in windows
I saw a couple of posts for this feature but it was for mac. does anyone know if printing or saving text messages is possible? thanks
Ugly work arounds:
1) Take screenshot (hold front and press and release top and import)
2) use a web translator: http://insend.de/
3) Poke through shareware: http://www.softpedia.com/downloadTag/backupiPhoneSMS
Good work around:
Bug Apple for the feature http://www.apple.com/feedback/iphone.html
Maybe you are looking for
-
How to make the pic showed on ipod 5th while playing mp3
can anyone teach me the way as captioned, very appreciate your help.
-
How to make sure frames are present
i am trying to open two web pages in a single window , but while browsing i am not able to keep my frames , when i press some links the frames r lost. What should i do to keep my frames in place and open pages without losing any frames i have used al
-
Hello, for this problem i have altready an OSS message open, but maybe someone has a solution for this problem, because we are a bit in hurry. My whole JDI and NWDS is SPS14. I created External Library DC`s (EXTLIBS) and connected this track to anoth
-
Need help
-
I am experiencing difficulty with watching any type of video.
I have both Adobe flash and Adobe X plus I have Goggle Chrome and it still tells me I need to upgrade, each time I do successfully I might add it doesn't take and I get the same message. Please help!!