Query on Function Module for conversion of text - language specific
Hi,
In my interface program i have query regarding CDHDR table.
Problem: Object Class(CDHDR-OBJECTCLAS). The technical name of the object name shall
be translated to meaningful business text
For EXample. I am getting the value for the field OBJECTCLAS is EINKBELEG shall be converted as 'Purchasing Document'
Kindly suggest me if there any standard SAP function module is available to convert the German text into English
Hi,
to pass the internal table to a tables parameter
both must be of same type
if both are of same type
u can use INT1[] = INT2[] to pass internal table value to internal table of FM
if structures are not same then
u will have to loop thru int1 and move values selectively to int2 and everytime append int2
this should sove ur prob
tc
saji
Similar Messages
-
Function Module for Translation of text from Lower to Upper Case
Hi All,
Can any one give me function module for translation of text from lower to upper case.
If we use Translate statement for the program in the Extended Syntax check it is giving error.
Thanks in advance.
Regards,
srinivasHi Srinivas,
You can use any of the Function Modules below.
AIPC_CONVERT_TO_UPPERCASE
2054_TRANSLATE_2_UPPERCASE
HR_99S_CONV_UPPER_CASE
Please reward if useful.
regards,
Raj -
Function module for conversion in basic unit of measure....
Hi,
Can someone give me a function module, which will convert the Unit of measure into basic unit of measure
Say a a material has 3 CA (Cases) in a PO and the conversion factor(UMREZ in table MARAM) for CA for that material is 4 and converison for MP (Master pack) is 12,then
3CA = 9 PC = (9/12) MP
But I want a function module which will do this conversions ?Hi,
Use MD_CONVERT_MATERIAL_UNIT
Thanks,
Naren -
Function Module for conversion from one UOM to any other UOM
Hi All,
I need to convert a quantity value that user inputs in any UOM and want to convert this Quantity to 'KG' in CRM
Can any one please tell me any Function Module to do so?
NOTE: I need this in CRM
Thanks and Regards
Shekhar
Edited by: shekhar tagra on Jul 26, 2010 4:54 PM
Edited by: shekhar tagra on Jul 26, 2010 4:55 PMHi ,
i'm using the conversion function UPX_CRM_CONVERSION_FACTOR in planning layout where there is in column the calendar week.
So when select one week, the function return 0 instead if i select more than one week, only on the last week, the conversion factor is 0.
Why this function have this behavior? I would that the conversion factor is the same for all week.
Thanks.
Andrea -
Function module for conversion from dollar to indian currency
what is the standard function module used for the conversion of one type of currency to other?
try this CONVERT_TO_LOCAL_CURRENCY.
Otherwise go to se37 and search for ConvertCurrency -
Any function module for calling a text editor in subscreen?
Hi,
I would like to know if there is any function module that can be used to call a text/note editor and can be displayed in a subscreen of a main screen (dialog programming)? This text/note editor should not be able to edit, but for display only.
Please help. Thanks...>
Pablo Casamayor wrote:
> Hi,
>
> maybe this can help:
>
> check program SAPTEXTEDIT_TEST_1
> in this program pay attention to:
>
>
> MODULE pai INPUT.
>
> CASE ok_code.
> ....
> WHEN 'FIND'.
> PERFORM find_text.
> ....
> WHEN 'HIGHLIGHT'.
> highlight = 1.
> PERFORM highlight_lines USING highlight.
>
>
>
> *&---------------------------------------------------------------------*
> *& Form FIND_TEXT
> *&---------------------------------------------------------------------*
> FORM find_text.
> found = 0.
> IF case_sensitive = 'X'. " button on Dynpro
> case_sensitive_mode = editor->true.
> ELSE.
> case_sensitive_mode = editor->false.
> ENDIF.
> IF whole_word = 'X'. " button on Dynpro
> whole_word_mode = editor->true.
> ELSE.
> whole_word_mode = editor->false.
> ENDIF.
>
> CALL METHOD editor->find_and_select_text
> EXPORTING search_string = search_string
> case_sensitive_mode = case_sensitive_mode
> whole_word_mode = whole_word_mode
> CHANGING string_found = found.
> * Flush for proper work of the following if statement
> CALL METHOD cl_gui_cfw=>flush.
> IF NOT search_string IS INITIAL.
> IF found NE 0.
> MESSAGE s000 WITH text-013.
> ELSE.
> MESSAGE s000 WITH text-014.
> ENDIF.
> ENDIF.
> ENDFORM. " FIND_TEXT
>
> *&---------------------------------------------------------------------*
> *& Form HIGHLIGHT_LINES
> *&---------------------------------------------------------------------*
> * -->P_HIGHLIGHT text *
> *----------------------------------------------------------------------*
> FORM highlight_lines USING p_highlight.
> IF selection EQ 'X'.
> CALL METHOD editor->highlight_selection
> EXPORTING highlight_mode = p_highlight
> EXCEPTIONS has_no_effect = 1.
> IF sy-subrc NE 0.
> * add your handling
> ENDIF.
> ELSE.
> CALL METHOD editor->highlight_lines
> EXPORTING
> from_line = from_line
> to_line = to_line
> highlight_mode = p_highlight
> EXCEPTIONS has_no_effect = 1.
> IF sy-subrc NE 0.
> * add your handling
> ENDIF.
> ENDIF.
>
> ENDFORM. " HIGHLIGHT_LINES
>
> and this link:
> http://help.sap.com/saphelp_45b/helpdata/EN/0e/514035634d761fe10000009b38f889/frameset.htm
>
> Best regards.
>
> Edited by: Pablo Casamayor on Apr 17, 2009 9:19 AM
Hi Pablo,
I have look through the program SAPTEXTEDIT_TEST_1. This program does the Text Selection and Highlighting the Text only after the buttons of each of the function is clicked.
My requirements will be, having all the selected text (with a string pattern) to be highlighted when this text editor is displayed. Is this possible?
Really thanks for your replies...
Regards,
Chuak Fen -
Function module for error message with language param
any Function Module that has language param in it?
thanks,Dear Rayann,
Use FM FORMAT_MESSAGE.
Thanks & Regards,
Nagaraj Kalbavi -
Function module for getting the text.
Hi ,
Is there any funcion module to get the message text if i pass the message no and message class as the exporting parameter.
Useful answers will be rewarded.
Regards,
neslin.hi...
use this one
BAPI_MESSAGE_GETDETAIL
ok and following are for display
LMON_MESSAGE_DISPLAY
LTIF_MESSAGE_DISPLAY
reward..points -
Function Module for BOM for posting BOM component long text
Is there any SAP provided Function Module for posting BOM components long
text if so please let me know as it is very urgent for me.Hello Sridevi,
The following customer exits are available for BOM, please check the excect one.
http://help.sap.com/saphelp_46c/helpdata/en/4a/d286ba5a1111d3b47b006094b9d648/frameset.htm
Hope this helps.
Regards
Arif Mansuri -
Function Modules for Text determination
Hello,
Could someone please point me to Function Modules for the following:
1) Given a transaction type (say '0000'), I need the text Det. procedure for that transaction type.
2) Now, given the Text Det. Procedure, I need the set of all Valid Text Types (For eg: A0002, A0001, etc..).
Thanks and Regards,
NishaHi all,
any idea about this topic? -
Function module for detailes description of Order and long text in task
Hello gurus,
please help me with Function module for detaile description of Order and long text in task list(operation Tab)?
regards,
YKHi,
You should be able to read the Order short text directly from table AUFK. The Order long text or task list long text can be read by using FM "Read_text". Use Goto> Header on every long text screen to identify the parameters that need to be passed hen using this FM.
Regards
Narasimhan -
Hi is there any function module for radix conversion
Hi,
I need to convert number of base 36 to decimal number. Is there any function module for that.
i.e) z to 35
10 to 36
11 t0 37Hai,
This program perfectly converts a number from one number system to another number system.
REPORT Z_RADIX_CONVERSION.
PARAMETERS:
P_S_RAD(2) TYPE N, " Source Radix
P_D_RAD(2) TYPE N, " Destination Radix
P_S_NUM(5) TYPE C. " Source Number
*" Data declarations...................................................
Work variables *
DATA:
W_LEN TYPE I,
W_FACT TYPE I,
W_D_NUM(5) TYPE N,
W_T_LEN TYPE I,
W_NUM TYPE C,
W_NUM1 TYPE I,
W_REM TYPE I,
W_INDEX TYPE I VALUE 20,
W_T_NUM(30) TYPE C,
W_T_NUMBER(5) TYPE N.
IF P_S_RAD GE 1 AND
P_S_RAD LE 16 AND
P_D_RAD GE 1 AND
P_D_RAD LE 16.
IF P_S_RAD EQ 01 AND P_S_NUM CO '0 ' OR
P_S_RAD EQ 02 AND P_S_NUM CO '01 ' OR
P_S_RAD EQ 03 AND P_S_NUM CO '012 ' OR
P_S_RAD EQ 04 AND P_S_NUM CO '0123 ' OR
P_S_RAD EQ 05 AND P_S_NUM CO '01234 ' OR
P_S_RAD EQ 06 AND P_S_NUM CO '012345 ' OR
P_S_RAD EQ 07 AND P_S_NUM CO '0123456 ' OR
P_S_RAD EQ 08 AND P_S_NUM CO '01234567 ' OR
P_S_RAD EQ 09 AND P_S_NUM CO '012345678 ' OR
P_S_RAD EQ 10 AND P_S_NUM CO '0123456789 ' OR
P_S_RAD EQ 11 AND P_S_NUM CO '0123456789A ' OR
P_S_RAD EQ 12 AND P_S_NUM CO '0123456789AB ' OR
P_S_RAD EQ 13 AND P_S_NUM CO '0123456789ABC ' OR
P_S_RAD EQ 14 AND P_S_NUM CO '0123456789ABCD ' OR
P_S_RAD EQ 15 AND P_S_NUM CO '0123456789ABCDE ' OR
P_S_RAD EQ 16 AND P_S_NUM CO '00123456789ABCDEF ' .
W_LEN = STRLEN( P_S_NUM ).
W_T_LEN = W_LEN - 1.
DO W_LEN TIMES.
W_NUM = P_S_NUM+W_T_LEN(1).
CASE W_NUM.
WHEN 'A'.
W_NUM1 = 10.
WHEN 'B'.
W_NUM1 = 11.
WHEN 'C'.
W_NUM1 = 12.
WHEN 'D'.
W_NUM1 = 13.
WHEN 'E'.
W_NUM1 = 14.
WHEN 'F'.
W_NUM1 = 15.
WHEN OTHERS.
W_NUM1 = W_NUM.
ENDCASE.
W_D_NUM = W_D_NUM + W_NUM1 * ( P_S_RAD ** W_FACT ).
ADD 1 TO W_FACT.
SUBTRACT 1 FROM W_T_LEN.
ENDDO.
ELSE.
WRITE'Invalid Number'(003).
ENDIF.
ELSE.
WRITE'Enter radix between 1 and 16 '(002).
ENDIF.
W_T_NUMBER = W_D_NUM.
IF P_D_RAD = 1.
DO W_D_NUM TIMES.
WRITE'O'.
ENDDO.
ELSE.
WHILE W_T_NUMBER NE 0.
W_REM = W_T_NUMBER MOD P_D_RAD.
CASE W_REM.
WHEN 10.
W_T_NUM+W_INDEX(1) = 'A'.
WHEN 11.
W_T_NUM+W_INDEX(1) = 'B'.
WHEN 12.
W_T_NUM+W_INDEX(1) = 'C'.
WHEN 13.
W_T_NUM+W_INDEX(1) = 'D'.
WHEN 14.
W_T_NUM+W_INDEX(1) = 'E'.
WHEN 15.
W_T_NUM+W_INDEX(1) = 'F'.
WHEN OTHERS.
W_T_NUM+W_INDEX(1) = W_REM.
ENDCASE. " CASE W_REM.
SUBTRACT 1 FROM W_INDEX.
W_T_NUMBER = W_T_NUMBER DIV P_D_RAD.
ENDWHILE.
ENDIF.
WRITE:
/10 'The Equivallent number in Base'(001),
P_D_RAD,
'is',
W_T_NUM.
<b>Reward points if helpful .</b>
regards,
rama pammi -
Any Function module for Date conversion
Hi,
In my output the date is coming like 80999898 but the actual date is 01.01.1900.
Could you please tell me is there any Function module for that.
Regards,
TusharUse the conv. exit CONVERSION_EXIT_INVDT_OUTPUT for this purpose.
BR,
Suhas -
Function Modules for Format Date, Month Name and Quarter value.
Hi All,
1. I am getting the date field from the Flatfile, so i need to format the date to YYYYMMDD. Is there any Function module for that in BW.
2. Based on the above Formated Date i have to find out the Name of the Month like JANUARY, FEBUARY etc.
3. Based on the same above Formated Date i need to find out the Quarter like 1, 2 etc.
Could you please let me know if any function modules are there for the above questions in BW not in ABAP, why i mention is some Function modules are there in ABAP but not in BW.
Thanks in advance.
Regards,
srinivasHi ,
1.If your input date format is MMDDYYYY then Use SDATE as conversion routine in trans strucutre to convert into YYYYMMDD.
2.By passing year as input parameter for the following FM you would get all the months with text.Using READ statement in routine you can get month name
MONTH_NAMES_GET
3.For Quarters you can use the following FM:
TSTR_PERIODS_QUARTERS
hope it helps...
regards,
Raju -
Function Modules for Data and Time
Hi all,
I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
Thanks in advanceHi Ranjith,
i think this will b usefull for you..
SAP Bar Chart Function Modules and what they are used for
Function module
Used for
BARC_GRAPHIC_PBO
Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
BARC_GRAPHIC_PAI
Analyzing data returned by the graphic
BARC_SET_TIME_AXIS
Setting start and end of time axis
BARC_SET_OPTIONS
Setting options
BARC_ADD_CHART
Creating a chart
BARC_SET_CHART_ATTRIB
Setting chart attributes
BARC_ADD_SECTION
Creating a section on the time axis
BARC_SET_SECTION_ATTRIB
Setting section attributes
BARC_ADD_RIBBON
Adding a ribbon to the time axis
BARC_SET_RIBBON_ATTRIB
Setting attributes for ribbons in the chart
BARC_ADD_GRID
Adding a time grid
BARC_SET_GRID_ATTRIB
Setting grid attributes
BARC_ADD_LAYER
Adding a layer (graphic elements)
BARC_SET_LAYER_ATTRIB
Setting layer attributes
BARC_ADD_LINE
Adding a line
BARC_ADD_CALENDAR
Creating a calendar
BARC_SET_CALENDAR_ATTRIB
Setting attributes for a calendar
BARC_ADD_TIME_PROFILE
Creating time profiles
BARC_SET_TIME_PROFILE_ATTRIB
Setting attributes for time profile
BARC_ADD_INTERVAL
Adding a time interval
BARC_SET_INTERVAL_ATTRIB
Setting time interval attributes
BARC_ADD_TIME_OBJECT
Creating a time object
BARC_CONVERT_DATE
Creating a date string in bar chart format
BARC_REVERT_DATE
Converting a date string in bar chart format to date and time
BARC_ADD_DATELINE
Creating a date line
BARC_SET_DATELINE_ATTRIB
Setting dateline attributes
BARC_GET_PROFILE_CONTENTS
Obtaining profile contents for customizing a chart
BARC_GET_COLUMN_WIDTH
Selecting new column width
BARC_SET_COLUMN_WIDTH
Setting the column width
BARC_GET_TEXTINDEX
Obtaining the text index of a field
BARC_SET_LABELS
Positioning the chart display
BARC_SET_COLUMN_ATTRIB
Setting column attributes
BARC_SET_ROW_ATTRIB
Setting row attributes
BARC_SET_ROW_HEIGHT
Setting the line height
BARC_SET_MAXCHARTS
Setting the maximum number of charts sent
<b>If its usefull reward points
</b>
Maybe you are looking for
-
TS1702 my ipad wont let me open iTunes!?
When I go to open itunes on the ipad the message says i might be connecting to a server that is pretending to be itunes. what do I do now!?
-
Can you share iCloud drive storage with family members?
Seems like this would be a common question but Apple Support search came up empty. So, can you share iCloud drive storage with family members?
-
Can I copy existing TM Back Ups to new Time Capsule?
Hey All.. I am thinking about buying a 500GB Time Capsule but first wanted to know if it was possible to transfer all the existing back ups that have been done to my Western Digital 500GB Hard Drive. I have had the WD drive connected to my iMac for 3
-
Safari can"t verify website message
I have been receiving the message: Safari cant verify the website "static.ak.facebook.com" for all websites for the past few hours. What is the problem? How to correct this?
-
Help requested... Safari has stopped working
Safari opens but will time out before opening a web-page... the message I get is "Safari could not open the page 'http://www.ireland.com/' because the server stopped responding". I get this message for all pages I try to open. I've had to have Firefo