Split field
hi,
i have field type char40 (name) with 4 words and space between them
what is the best way to part the word to 4 different fields.
e.g.
name
abc defg aaaa bbbb
i wont
field1 - abc
field2 - defg
field3 - aaaa
field4 - bbbb
Regards
Use Key word SPLIT.
Sample code:
DATA: str1 TYPE string,
str2 TYPE string,
str3 TYPE string,
itab TYPE TABLE OF string,
text TYPE string.
text = 'What a drag it is getting old'.
SPLIT text AT space INTO: str1 str2 str3,
TABLE itab.
Hope this helps.
Regards
Vinayak
Similar Messages
-
Function Module for splitting(field) in CO02 t-code
Function Module or enhancement for splitting(field) in CO02 t-code Need function module for inserting a value in field(Max No of splits) in Transaction CO02
Message was edited by:
Mohan KumarYou can use this SAP enhancement PPCO0012 to display your own additional
information on a separate tab page in the production order header. You
can also make user fields avaialble for input, change them, and return
the changes to the order header. -
Splitting Fields Values from A to B, C, D
I am new to portal forms and need some help on managing fields
values. The requirement is I want the value of a field to split
up into three different fields. for example : Field A has
value 'THIS IS FOR TESTING' and B, C, D fields should
have 'IS','FOR','TESTING' respectively.. This should happen as
soon as i leave the field 'A'.
I would be very thankful if anyone can help me with this.
Thanks!!Maps have a smart feature that recall your ending location.
If you had one map with start and end location, i.e. San Francisco to Paris, adding a second map, will already display Paris as a start location.
This is true with both Globe and Flat maps.
However, to adjust zoom level with Flat Maps, you can click the Crop tool bar and access the Ken Burns effect, adjusting the zoom on the Preview Window. -
How to Split field into multiple fields in Import Manager without delem
Hi
Is there any method to Split a record in MDM without using delimitter?
I dont want to use any delemitter My field content in Source is PRODLABELPACK and I want to split it into 3 fields in destination Field1= PROD
Field2=LABEL Field3=PACK
I know how to split it if the content is PROD_LABEL_PACK .But we dont want to use delimiter in the firld and want to use some substring function
Regards
PrashantYou Can use below FM SWA_STRING_SPLIT -
First Use READ_TEXT FM.
then loop into
loop at tline.
Here use 'SWA_STRING_SPLIT' -> Pass tdline and append the text into other internal table.
endloop
Thank you
Seshu -
Split Field and MultiValue parameter
I have a multi-value parameter. Options for example are: Zebra, Elephant, and Seal. Then I have a table (actually a sharepoint list) which one field contains other animals in delimited fashion. For example: Elephant;Lion.
What I have set up is a filter (on either the datasource or the tablix) of [Field] IN @parameter which works fine... as the field isn't also multi-valued. I've tried using the Split function, but then it errors trying to evaluate the filter expression.
What I want to do is to return the row if any selected parameter matches any value in the field.
Does that make sense? I'm trying not to get too wordy. Thanks in advance for any responses.Hi There
You might be able to do this by the help of some custom code so please do the following
Create a custom function in your report which will convert your string to array as you know your fields contain string value you need to convert that in to array first so please go to your report properties
and code and paste this function
Public Shared Function ConvertStringtoArray(sourceString as String) As string()
Dim arrayOfStrings() As String = sourceString.Split(",")
return arrayOfStrings
End Function
Public Shared Function ConvertStringtoArray(sourceString as String) As string()
Dim arrayOfStrings() As String = sourceString.Split(",")
return arrayOfStrings
End Function
Now in you tablix filter please do the expression like this
=instr(join(code.ConvertStringtoArray(Fields!Country.Value),","),join(Parameters!CountryPram.Value,","))
=instr(join(code.ConvertStringtoArray(Fields!Country.Value),","),join(Parameters!CountryPram.Value,","))
Where please change Parameters!CountryPram.Value to your parameter value and please change Fields!Country.Value to your sharepoint list fields values.
I am assuming that you have used multivalued parameter
I am putting some screenshot for your help
If you have any question please let me know
Many thanks
Syed Qazafi Anjum -
Batch Split field in KNVV Table
Dear All,
While checking the table KNVV - Sales Area Data, I found the field Batch Split. In OBD2 I am not able to see this field? Could you please tell me why we are using the field Batch Split and where we are using that and how we can use that?
Waiting for positive reply
Regards
RahulHello Rahul
Please see OSS notes 423893 and 385048. They say "As of Release 4.6, flag 'Batch split allowed' is no longer used on the shipping screen of the customer master record."
Thatu2019s why it does not figure in the definition of account group- Field status screen. I guess it is a field maintained for compatibility reasons with older releases. -
Splitting field into two columns
HI,
I'm told it is possible to have a field be split up into multiple columns in the details section of a report rather than having it listed in a single column. How can this be accomplished? I've heard it has something to do with subreports.
For instance, instead of this:
Bob
Jane
Sally
Barbara
Jim
Dave
It could look like this (columns not lined up in this example, not sure how to do it on this forum):
Bob Jane
Sally Barbara
Jim Dave
ThanksNo need to use subreports
In section expert for the deatils section check box - Format with multiple columns
A new tab appear - Layout - Define width to set up number of columns required.
Ian -
Hi,
I have a 'Company Code' field in an input file that can contain 1 or multiple company codes, separated by comma (,). e.g it could be anything from '1105' to '1105,3000,2000,2200' etc up to about a max of 20 company codes.
I don't think it's efficient or good programming to do the following;
SPLIT l_bukrs_string AT ';' INTO
l_bukrs1
l_bukrs2
l_bukrs3
l_bukrs4
l_bukrs5
l_bukrs6.
etc etc up to the maximum (I would be declaring up to 20 more fields).
The ideal would be if I can get the list of company codes (from the field), into a range. So as per my example above, I would left with a range R_BUKRS that contains the single values 1105,3000,2000,2200. I can then loop at this range later on and do the rest of my company code specific processing.
And ideas - possible use of field symbols? Thanks alotHi
You can use same slit statement to store data in internal table.
My idea is to slit the file into internal table and use this internal table like for all entries in or like select-options.
SPLIT text_flie AT ',' into table IT_BUKRS.
select * from dbtable for all entries in it_BUKRS
condn
Hi Shrini you I posted on the same time, I did not copied, sorry
Thanks,
Anmol.
Edited by: anmol112 on Feb 15, 2011 9:25 AM -
Hi all,
I am trying to split a string type filed, which data is like L75401, I need to get the first 4 characters. Tried DIM on formula - did not work (no error found on formula but when bring the formula to the report the formula filed is blank)- however it did worked on other fields . I believe the reason could be due this filed having numbers and letters in it !?? any ideaSo that's what you meant, your original post said DIM and I could not see how that could possibly work
mid(yourfield, 1,4)
Should return same result.
Ian -
Audio drift with HDV (25fps 48k) footage and split field recorder audio (48k)
Split audio and audio from captured footage start synced but split sound drifts increasinly over time.
I've tried with 24bit (audio) as it was captured on field recorder and a 16bit converted file - same issue.
Weirdly, when I time compress split audio (100.4%) - waveforms visually line up but when rendered or playedback, drift is STILL THERE ie - even if I play back split audio only, I'm hearing playback drifting/delayed by a second or two towards the end of the hour long shot. So audio corresponding to peaks in waveform happens (increasingly) well after playhead hit and passes the peak. (I hope that makes sense)
Any suggestions? I've already missed a deadline because of this issue. Thanks in advance.
VIDEO
***** Analyzed File Results *****
*** General Parameters ***
- Name: PRISM talk OOC Melb.mpeg
- Container: Mpeg Transport Stream
- Size: 12.133 GB
- Duration: 1h 2mn
- Bitrate: 26.1 Mbps
*** Video Track Parameters ***
- Format: MPEG-2 Video
- Bitrate: Max.: 25.0 Mbps / Average: 24.4 Mbps / Min.: Undefined
- Frame rate (fps): Max.: Undefined / Average: 25.000 / Min.: Undefined
- Encoding profile: Main@High 1440
- Image size: 1440*1080
- Pixel Aspect Ratio: Undefined
- Display Aspect Ratio: 16:9
- Interlacing: Progressive
*** First Audio Track Parameters ***
- Format: Mpeg-1 layer 2 (mp2)
- Bitrate: 384 Kbps
- Resolution: Undefined
- Rate: 48.0 KHz
- Channel(s): 2 (stereo)
- Position: Undefined
*** Miscellaneous ***
- Subtitle(s): No Subtitle
- Album: Undefined
- Performer: Undefined
- Genre: Undefined
- Encoded date: UTC 2012-10-14 12:41:03
- Album artist: Undefined
AUDIO
***** Analyzed File Results *****
*** General Parameters ***
- Name: 1004.WAV
- Container: Microsoft Wave
- Size: 2.309 GB
- Duration: 2h 13mn
- Bitrate: 2 304 Kbps
*** Video Track Parameters ***
- Format: No video track
- Bitrate:
- Frame rate (fps):
- Encoding profile:
- Image size:
- Pixel Aspect Ratio:
- Display Aspect Ratio:
- Interlacing:
*** First Audio Track Parameters ***
- Format: Uncompressed PCM
- Bitrate: 2 304 Kbps
- Resolution: 24 bits
- Rate: 48.0 KHz
- Channel(s): 2 (stereo)
- Position: Undefined
*** Miscellaneous ***
- Subtitle(s): No Subtitle
- Album: Undefined
- Performer: Undefined
- Genre: Undefined
- Encoded date: 2012:10:14 13:03:52
- Album artist: UndefinedThanks but yes I did do that, and the waveforms visually align even when zoomed all the way in - from the original post:
"Weirdly, when I time compress split audio (100.4%) - waveforms visually line up but when rendered or playedback, drift is STILL THERE ie - even if I play back split audio only, I'm hearing playback drifting/delayed by a second or two towards the end of the hour long shot."
Literally, playhead passes over a peak then corresponding audio is heard dealyed, well after (and drift increases over time).
I can only surmise this is a bug with Premiere as I've done this process countless times without error in FCP. Not particularly happy with the lack of solution and time wasted on this. -
Could anyone provide a solution what this field SPLIT is meant for in Timesheet table CATSDB.
Because we are facing a problem when we try to use this field in the BAPI Insert or Change for Timesheet.
Regards,
GangaHello Rahul
Please see OSS notes 423893 and 385048. They say "As of Release 4.6, flag 'Batch split allowed' is no longer used on the shipping screen of the customer master record."
Thatu2019s why it does not figure in the definition of account group- Field status screen. I guess it is a field maintained for compatibility reasons with older releases. -
FDMEE Jython Import Script - Split field function
Hi folks,
I have to admit, this Jython gives me heavy headaches!
Actually it is a simple challenge, but I am struggling around with it for hours now. Perhaps one of you guys can help.
I want to create an Import Script in FDMEE 11.1.2.3.500.17. The source file (tab delimited) contains a column with following entries:
What I want to achieve in the first instance is to import the figure after the first dot. E.g. from H-00275A.3.4.1 I want to import the 3.
I have written an import script, based on a sample script written in FDMEE admin guide (page 273):
I have assigned that script to the respective column in the Import Format:
Seems easy. But for whatever reasons it does not work. The problem is: even the log file is not helping, as it seems to be endlessly growing when I want to open it (after becoming 30MB I canceled). By the way: without that script Import works.
Any ideas? Help is much appreciated!
Cheers
CarmonteDear SH,
You are right! I am such an idiot!
I have spent almost a day with troubleshooting. And in the end it was just one letter that I have overlooked, even though I have checked it thousand times!
I know that function name and script name has to be in line. Parce vs Parse won't work of course.
It works now!
Thanks a ton for your help. You saved my day!
Cheers
Carmonte -
MDM Syndication - Is it possible to split a text field?
I am trying to find a way to manage multilingual R/3 Purchase Order Text in MDM. The problem I am having is that we want to maintain this as one field in MDM, which the only feasible option appears to be a Text Large field. Text fields are too short now that they are only 333 characters, Lookups are not involved so this cannot be a multivalued Text field, Text Blocks don't seem to work for this, and Qualified Lookups don't appear to handle the multi-lingual aspect.
The problem is, somehow this one large text field needs to be broken down when sent back to R/3, as R/3 can only handle 133 characters per line. As far as I can tell, there is no way to do this.
Can anyone help?
Thanks!Hi Ryan,
I am trying to find a way to manage multilingual R/3 Purchase Order Text in MDM. The problem I am having is that we want to maintain this as one field in MDM, which the only feasible option appears to be a Text Large field. Text fields are too short now that they are only 333 characters, Lookups are not involved so this cannot be a multivalued Text field, Text Blocks don't seem to work for this, and Qualified Lookups don't appear to handle the multi-lingual aspect.
The problem is, somehow this one large text field needs to be broken down when sent back to R/3, as R/3 can only handle 133 characters per line. As far as I can tell, there is no way to do this.
If I have understood your probelm correctly, then I think you want to import the Multilingual data in MDM. You can easily do that by Pivoting the source and then Importing the MUltilingual data into MDM.
Then in the Syndicator, you can split the Multilingual Fields BY Language BY Value, (which is a feature present in the Syndicator)into Various fields, which you can indivually map it to the different destination fields. For this, you must have multiple fields in your Destination side so that you can map them individually with the Splitted fields.
Please refer below to get info on the above mentioned feature:
http://help.sap.com/saphelp_mdm550/helpdata/en/ff/37e4c6857449388ddb6c77f160ac4f/frameset.htm -> GO to-> Multilingual Support-> Multilingual Opeartions->Splitting Multilingual Source Items.
I think this what is what your requirement is. For refrence , kindly go through the link below, which will guide you to import the Multilingual Data and then Syndicate the file in .CSV format.
End to End Solution to Multilingual Master Data :
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e42521-0645-2b10-d1b2-e9f6fab39856
Multiple Languages in MDM Part 1: Console Settings for Multilingual Master Data -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30fddcb9-2a40-2b10-a9a9-db552d687617
Multiple Languages in MDM Part 4: Syndicating Data in Multiple Languages -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50b2702d-2b40-2b10-549e-92c0e88c8135
Hope it helps.
Thanks and Regards
Nitin Jain -
Document Splitting Function in 6.0 dectvt & reactvt
Dear All,
At our client site, some user with access to customisation, deactivated the Document Splitting by checking the Inactive Tick for the Company Code.
This came to light after some days. This directly affected out Business area balance sheet.
Now client wants to reactivate Document Splitting.
My question is -
1) Can we do it now again?
2) If yes, what problems we may face?
We have started working on it.
If anybody of you has any experience / suggestions, pl help.
Thanks & regards,
GovDear Gov,
First you stop giving IMG authorization to users.
u check for required fields in document splitting,
and find when they de activated this function,
if it is very period is very less or transactions are less u better to assign required fields in all those transactions before activating.
If the splitting fields are not available system will not accept clearing transactions. and your statement of affairs also will show wrong information.
you can activate at any point of time
regards -
Document Splitting Function in 6.0 deactivation & reactivation
Dear All,
At our client site, some user with access to customisation, deactivated the Document Splitting by checking the Inactive Tick for the Company Code.
This came to light after some days. This directly affected out Business area balance sheet.
Now client wants to reactivate Document Splitting.
My question is -
1) Can we do it now again?
2) If yes, what problems we may face?
We have started working on it.
If anybody of you has any experience / suggestions, pl help.
Thanks & regards,
GovDear Gov,
First you stop giving IMG authorization to users.
u check for required fields in document splitting,
and find when they de activated this function,
if it is very period is very less or transactions are less u better to assign required fields in all those transactions before activating.
If the splitting fields are not available system will not accept clearing transactions. and your statement of affairs also will show wrong information.
you can activate at any point of time
regards
Maybe you are looking for
-
E-book will not open in Adobe Digital Editions
I have Adobe Digital Editions 1.7.1 and when I try to open my ebook in it, I get this message: Document is licensed for a different user account. Not sure what this means, because when I try to open the ebook on its own, it takes me to the web page t
-
IPhoto Albums not Appearing in List to Sync with Nano
I have a second gen nano. I want to sync an iPhoto album on it. When I look at the Photos tab in iTunes, there are no albums listed in the "selected albums" box. In fact, the radio button for that choice is grayed out as well. How can I get the "sele
-
Issue: Cannot open message catalog LIBTUX_CAT
Hello I am using a webservice that connects through Tuxedo. Tuxedo starts ok but when I call my service I receive the following error: [13 Feb 2009 14:05:13 GMT][WARNING][][##: Exception raised in setting up security : : RemoteException : ][receive()
-
Ipod mini not recognized in ihome
My iPod is not getting recognized in 3rd party iHome and other devices that can play iPod etc. I have a Honda Odyssey and this iPod mini is not being recognized there as well. I have an iPhone and iPad and they both work fine on these devices. The ve
-
Alternative for SO_NEW_DOCUMENT_SEND_API1 in ECC 5.0?
Hi Would like to know what is the alternative method to implement the logic to send email in ECC 5.0 . SO_NEW_DOCUMENT_SEND_API1 seems to be obsolete . Primarily I would like to know the difference between the following 2 function module. SO_OBJECT