Is there any function to split string value into diff junks
Hi guys i have a string value as below
14507|||Subterranean Masquerade||||||Subterranean Masquerade
you can say ||| is a field delimiter.
i want to split each field identified by ||| delimiter and store in a collection table.
is there any easy way to that?
Thanks
Asif
actually i want to use DIY$ dynamic view and what i did.
1) I created a object type as xyz_row_type with 4 attributes.
2) then i created a collection type xyz_tab_type of xyz_row_type
3) now i want to create a function which will return me xyz_tab_type
i am using a utl_file.get_line(file_name,f_line_txt)
each line has the four elements delimited by '|||' shown below
14522|||Lessig|||Minna|||Lessig, Minna
i want to split each element for each attribute of xyz_row_type.
How can i do this?
Similar Messages
-
Is there any function module todelete decimal values
hi all
is there any function module todelete decimal values not converting charcter or numeric values i want to change my value with decimals to with out decimals.
please give me suggetion.
Thanks
Ramana reddyhi dear
you can use type P or I
Data W_VAL type P.
Data W_VAL type I.
or assigned dictionary field like Mara-MATNR as getting your value
Rewards if Useful. -
Split String value into internal table at Carriage return
Hi All,
I have given a string type context ( text edit box ) to the user to enter the values. The data can have carriage returns also.
My Requirement is that I want to split the data at carriage returns and store it in my tables.
I tired with a constant value of '%CR_LF' as available in CL_ABAP_CHAR_UTILITIES but to no good result.
Can the Experts suggest some solution?/??
Thankx in advance.
Regds,
SriniHi Srini,
Have you looked at your string containing the text in the debugger to verify that you really have <CR>+<LF> (i.e. reflecting CL_ABAP_CHAR_UTILITIES=>CR_LF, which should be easily visible when looking at the hex codes of the string)? Maybe it's just a <LF> (i.e. CL_ABAP_CHAR_UTILITIES=>NEWLINE). Might be good to do a REPLACE first using a regular expression for identifying the line feeds and then doing the SPLIT.
Cheers, harald
p.s.: If you still cannot get it to work, provide some more details of what you're doing... -
Is there any function module to give absolute value of a number?
Hi,
Is there any function module to give absolute value of a number?
That has similar functionality to the Built in Function ABS.
Please let me know.
Thanks,
cshi,
why are you looking for any function module.
You can easily get it by mathematical function ABS .
Syntax : <Turget Variable> = ABS <Source Variable>
\[removed by moderator\]
Anirban Bhattacharjee
Edited by: Jan Stallkamp on Jun 27, 2008 4:19 PM -
Is there any function modules or BAPI's
Is there any function modules or BAPI's that would delete the original partner and then add a new partner.Iam using BAP
bapi_alm_notif_data_modify
But iam not able to change partner in notification header
Please give your input for sovling itDear Rama,
In the bapi_alm_notif_data_modify, there are 2 structure
NOTIFPARTNR STRUCTURE BAPI2080_NOTPARTNRI OPTIONAL
NOTIFPARTNR_X STRUCTURE BAPI2080_NOTPARTNRI_X OPTIONAL
Pass yr partner value in NOTIFPARTNR, and against the value make it "X" in the NOTIFPARTNR_X , then u can change the partner value.
Give point if helpfull
Thanks -
Is there any functionality for AVERAGE in ALV, like do_sum, subtot?
Hi Experts,
In my_alv report, am doing sub/totals for prices, by using do_sum, subtot functions.........fine. But, I need to do/display the AVERAGE value for Discount % column?
Is there any functionality for AVERAGE in ALV, like do_sum, subtot?
thanqhi
check these links out
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
regards
vijay
reward points if helpful -
Is there any function module to convert the date format
Dear ABAPers,
Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
Thanks & Regards,
Ashok.hi,
create custom function module or copy the below code in the report ..and use it
the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
""Local interface:
*" IMPORTING
*" VALUE(DATE) LIKE SY-DATUM
*" EXPORTING
*" VALUE(FORMATTED_DATE)
*" EXCEPTIONS
*" INVALID_DATE
TABLES: TTDTG.
DATA: BEGIN OF T_DATE,
YYYY(4) TYPE C,
MM(2) TYPE C,
DD(2) TYPE C,
END OF T_DATE.
DATA: DAY(3) TYPE N.
DATA: VARNAME LIKE TTDTG-VARNAME.
IF DATE IS INITIAL.
CLEAR FORMATTED_DATE.
EXIT.
ENDIF.
check document date format
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
DATE = DATE
EXCEPTIONS
PLAUSIBILITY_CHECK_FAILED = 1.
IF SY-SUBRC NE 0.
RAISE INVALID_DATE.
ENDIF.
MOVE DATE TO T_DATE.
CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
WRITE T_DATE-DD TO DAY.
CONCATENATE DAY ',' INTO DAY.
CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
SEPARATED BY SPACE.
ENDFUNCTION.
the output is :--Convert a DATE field into a full format date eg. March 23, 2000
Regards,
Prabhudas -
Is there any function module? Fiscal week no problem
Hi friends,
I want how to get physical week for given date.
Ie for 01-04-2009 week no is 1.
Is there any function module?
Pls suggest
Regards
MoosaHi,
Use the below code.
DATA: v_ersda TYPE sy-datum VALUE '20090618'.
DATA: v_month(2) TYPE c,
v_week(2) TYPE c,
v_full_week LIKE scal-week.
MOVE v_ersda+4(2) TO v_month.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
date = v_ersda
IMPORTING
week = v_full_week
EXCEPTIONS
date_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE v_full_week+4(2) TO v_week.
WRITE:/5 'Month = ', v_month.
WRITE:/5 'Week = ', v_week.
Regards,
Kumar Bandanadham -
Is there any function module for converting text to hyperlink?
Hello all,
I am designing an application in BSP wherein the user can enter hypertext values for some
of the data enteries in the database table. Is there any function module available for converting
text into hypertext. Eg. if the user enters 'www.mypersonalwp.com' then it should convert this
text value into a hyperlink.
Thanks in advance.
Gurmahima.Hi,
Refer the given below link
http://help.sap.com/saphelp_erp2004/helpdata/EN/85/ce25c2d7ae11d3b56d006094192fe3/content.htm
Hope it helps you
Thanks
Arun Kayal -
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 -
Is there any way to put the values inthe system matrix which is non editabl
is there any way to put the values inthe system matrix which is non editable...
this Q is not that much priority since i had achieved the requirement other way round by having user defined matrix ... but if i get the way for this it will help my add on performance much better...Hi Raj, I didnt get all the details but here some ideas how you can solve your issue:
Depending in the system form you are working you can always use a DBDataSource in order to manipulate the rows in a matrix. It's much better as using the objects of the matrix itself. In this case you can use:
oMatrix.FlushToDataSource()
oDBDsource.SetValue("U_Quan", pVal.Row, "101")
oMatrix.Clear()
oMatrix.LoadFromDataSource()
As you can see in SetValue i'm obtaining the Column, then the row number and then setting a NEW value for this cell.
Please consider if you can use DBDataSource instead of UserDataSource.
If the answer is yes then you can use the following:
oMatrix.FlushToDataSource()
'//Get the line you want
matrix.GetLineData(pval.row)
'//Call the Userdatasource assigned to that column
UserDataSource = UserDataSources.Item("ItmCode")
'//Set the new value
m_UserDS.ValueEx = "A02520"
oMatrix.LoadFromDataSource()
You can also use:
oMatrix.Columns.Item("ItemName").Cells.Item(l_rownum).Specific.String = "A02520"
In case you are not assigning the string in a combobox of course.
Good luck!
Felipe -
Is there any function make lwuit - List line wrapping?
Is there any function make lwuit - List line wrapping when the string is too long to display?
Please Help~
Thanks a lot.did you check LWUIT [API documentation|https://lwuit.dev.java.net/nonav/javadocs/index.html] or their forum?
-
Is there any function that output address by inputing the address no.?
Is there any function that accept an address number as input paramenter and return an address so that I don't need to build it myself?
Thanks!FU ADDRESS_INTO_PRINTFORM ADDRESS_TYPE
Text
Address type: 1,2,3 or ' '(default)
Description
There are three address types:
Address type '1': 'Normal' address (company or organization); the address structure used in most SAP applications as 'Address'.
Address type '2': Address of a person
Address type '3': Work address, usually the address of a contact person in a company
The default address type SPACE is treated as type '1' and is required for the upwards compatibility of the function module.
The interface parameters ADRSWA_IN and ADRSWA_OUT are only used in address type SPACE.
The other address types use:
ADDRESS_1 or ADDRESS_2 or ADDRESS_3 for the attributes, and
SENDER_COUNTRY, RECEIVER_LANGUAGE, NUMBER_OF_LINES, STREET_HAS_PRIORITY and LINE_PRIORITY for control.
The parameters COUNTRY_NAME_IN_RECEIVER_LANGU, LANGUAGE_FOR_COUNTRY_NAME and NO_UPPER_CASE_FOR_CITY are address type-independent.
The address attributes can be read directly instead of being passed in the structures ADDRESS1/2/3, if the address is in the Central Address Management tables.
The Business Address Services keys must be passed instead of the structures ADDRESS1/2/3:
Address type 1: ADDRESS_NUMBER
Address type 2: ADDRESS_NUMBER and PERSON_NUMBER
Address type 3: ADDRESS_NUMBER and PERSON_NUMBER
The following parameters are used (Import) or filled (Export):
Address type 1
Import parameters:
ADDRESS_1
ADDRESS_TYPE
ADDRESS_NUMBER
SENDER_COUNTRY
RECEIVER_LANGUAGE
NUMBER_OF_LINES
STREET_HAS_PRIORITY
LINE_PRIORITY
COUNTRY_NAME_IN_RECEIVER_LANGU
LANGUAGE_FOR_COUNTRY_NAME
NO_UPPER_CASE_FOR_CITY
Export parameters:
ADDRESS_PRINTFORM
ADDRESS_SHORT_FORM
ADDRESS_SHORT_FORM_S
ADDRESS_DATA_CARRIER
ADDRESS_DATA_CARRIER_0
NUMBER_OF_USED_LINES
NAME_IS_EMPTY
ADDRESS_NOT_FOUND
ADDRESS_PRINTFORM_TABLE
Address type 2
Import parameters:
ADDRESS_2
ADDRESS_TYPE
ADDRESS_NUMBER und PERSON_NUMBER
SENDER_COUNTRY
RECEIVER_LANGUAGE
NUMBER_OF_LINES
STREET_HAS_PRIORITY
LINE_PRIORITY
COUNTRY_NAME_IN_RECEIVER_LANGU
LANGUAGE_FOR_COUNTRY_NAME
NO_UPPER_CASE_FOR_CITY
Export parameters:
ADDRESS_PRINTFORM
ADDRESS_SHORT_FORM
ADDRESS_SHORT_FORM_S
ADDRESS_DATA_CARRIER
ADDRESS_DATA_CARRIER_0
NUMBER_OF_USED_LINES
NAME_IS_EMPTY
ADDRESS_NOT_FOUND
ADDRESS_PRINTFORM_TABLE
Address type 3
Import parameters:
ADDRESS_3
ADDRESS_TYPE
ADDRESS_NUMBER und PERSON_NUMBER
SENDER_COUNTRY
RECEIVER_LANGUAGE
NUMBER_OF_LINES
STREET_HAS_PRIORITY
LINE_PRIORITY
COUNTRY_NAME_IN_RECEIVER_LANGU
LANGUAGE_FOR_COUNTRY_NAME
NO_UPPER_CASE_FOR_CITY
Export parameters:
ADDRESS_PRINTFORM
ADDRESS_SHORT_FORM
ADDRESS_SHORT_FORM_S
ADDRESS_DATA_CARRIER
ADDRESS_DATA_CARRIER_0
NUMBER_OF_USED_LINES
NAME_IS_EMPTY
ADDRESS_NOT_FOUND
ADDRESS_PRINTFORM_TABLE
Address type SPACE (default value; the previous interface up to Release 3.0B):
Import parameters:
ADRSWA_IN
ADDRESS_TYPE
ADDRESS_NUMBER (only for special cases such as Japan)
COUNTRY_NAME_IN_RECEIVER_LANGU
LANGUAGE_FOR_COUNTRY_NAME
NO_UPPER_CASE_FOR_CITY
Export parameters:
ADRSWA_OUT
NAME_IS_EMPTY
ADDRESS_PRINTFORM_TABLE
The following parameters correspond to each other (on the left the individual parameter - on the right the fields in the old interface structures ADRSWA_IN and ADRSWA_OUT):
ADDRESS_NUMBER - no equivalent
PERSON_NUMBER - no equivalent
SENDER_COUNTRY - ADRSWA_IN-INLND
RECEIVER_LANGUAGE - ADRSWA_IN-SPRAS
NUMBER_OF_LINES - ADRSWA_IN-ANZZL
STREET_HAS_PRIORITY - ADRSWA_IN-WAREN
LINE_PRIORITY - ADRSWA_IN-PRIOR
COUNTRY_NAME_IN_RECEIVER_LANGU - no equivalent
LANGUAGE_FOR_COUNTRY_NAME - no equivalent
NO_UPPER_CASE_FOR_CITY - no equivalent
ADDRESS_SHORT_FORM - ADRSWA_OUT-LINEK
ADDRESS_SHORT_FORM_S - no equivalent
ADDRESS_DATA_CARRIER - ADRSWA_OUT-LINED
ADDRESS_DATA_CARRIER_0 - ADRSWA_OUT-LINED0
NUMBER_OF_USED_LINES - ADRSWA_OUT-ANZZL
NAME_IS_EMPTY - no equivalent
ADDRESS_NOT_FOUND - no equivalent
ADDRESS_PRINTFORM_TABLE - no equivalent
The parameters are described in the parameter documentation. -
Is there any Function module available for GR IR for purchase order
Hi
Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
One way to create a custom fuction to fetch the details from MSEG and BKPF.
Can somebody suggest a better solution.
Thanks in advance.
Ruhi HiraWhich table in BAPI_PO_GETDETAILS exactly has these information ?
PO_HEADER_TEXTS
PO_ITEMS
PO_ITEM_ACCOUNT_ASSIGNMENT
PO_ITEM_SCHEDULES
PO_ITEM_CONFIRMATIONS
PO_ITEM_TEXTS
PO_ITEM_HISTORY
PO_ITEM_HISTORY_TOTALS
PO_ITEM_LIMITS
PO_ITEM_CONTRACT_LIMITS
PO_ITEM_SERVICES
PO_ITEM_SRV_ACCASS_VALUES
RETURN
PO_SERVICES_TEXTS
EXTENSIONOUT
NFMETALLITMS
Regards
Ruhi Hira -
i share an itunes account with me mum is there any way to split my phone off while not deleteing my mums stuff as well?
You can select with items so sync if you dont want everything on there. Just click the iphone in itunes and click music. THere you can pick and choose what you sync.
Maybe you are looking for
-
OLE objects linked to MS Word/MS Excel do not update in InfoView
I am facing the following problem: - Embedded a Word document as linked OLE object into a crystal report and stored it to Enterprise repository. - When opening the report with CR Developer from my workstation, links are updated and changes made in th
-
[CF8] Enabling RDS after install on Apache 2.2.4
when I uncomment the RDS sections in web.xml and restart cf, I only get error 500s My apache error log says: Couldn't initialize from remote server, JRun server(s) probably down. the mx technote just says to uncomment the code and restart, I can't fi
-
I am using the XML taglib from JSTL 1.1 (SDK 1.5.0_03, Tomcat 5.5.9) in a JSP page. I am unable to get a node-set count; it always returns 0. I can loop through the docment and retrieve values, but no node functions (count( ), position( ), etc.). Exa
-
SSaudit for ASO cubes in 11.1.1.3?
Hello Gurus - I was wondering if anyone has been able to get the SSaudit feature working on ASO cube on version 11.1.1.3 to get the .atx and .alg file generated? We tried but it doesn't seem to work for us. Also, the "send" activity itself doesn't se
-
10g database fails to start after 3rd reboot
Hi, I've reloaded my test server several times and loaded 10g with the default "orcl" database. Works just fine, reboot a couple times and it still works. Around the 3rd reboot the database instance fails to start. I even have to reload the OS to cle