Need a split logic.
I am having a string, for example : (1) 6V_EGD, i need 6 out of this
(2) 107V_EGDH, i need 107 out of this.
Plz send me the logic for this.
hi,
try this one......
data : st_1 type string value '6sahg'.
data : ch_1 type c.
ch_1 = st_1.
write : ch_1.
o/p : 6
data : st_1 type string value '623sahg'.
data : ch_1(3) type c.
ch_1 = st_1.
write : ch_1.
o/p : 623
Mark the post answered once ur problem is solved ....
Similar Messages
-
Hi Experts,
I need to a code snippet or a sample program which has the split logic functionality.
I know that in HR ABAP we have a standard functionality using PROVIDE and ENDPROVIDE which performs the split based on the records in the specific period from the infotypes.
Need the same functionality but I don't want to use PROVIDE and ENDPROVIDE.
Kindly help me in this requirement or share me your knowledge if have gone through this requirement.
Regards,
Thirumoorthy RHi,
the major advantage of PROVIDE - ENDPROVIDE ist it's greatest disadvantage as well.
The fields fencing the validity (usually BEGDA and ENDDA) for each involved table, will be set according to each resulting split-interval.
If this is, what you're trying to avoid, you'll have to do a nested loop.
Assuming you have two internal table A and B, both having BEGDA and ENDDA.
You then could do something like:
LOOP AT A into wa_a.
LOOP AT B into wa_b where begda LE wa_a-endda and endda ge wa_a-begda.
* Do something clever here
ENDLOOP.
ENDLOOP.
Note, how the intervals are built by comparing the fields overcross, thus giving you in the inner loop, all entries that are at least one day valid within the interval set by the outer loop.
Hope it helps.
Best regards - Jörg -
Hi gurus,
could anyone plz tell me the load logic and the splitting logic for the following scenario:
Conversion of General Ledger Balances from the various legacy systems into SAP. The balances will be loaded month for the current year only.
SAP has a Limitation of 999 line items per Document. If the conversion of the general ledger balance exceeds the 999 document line item limit, the record being loaded will need to be split into multiple documents to comply with size limitations.
The purpose of this document is to define General Ledger header and line item fields that will need to be populated.
could anyone plz tell me how 999 documents can be splitup from n number of records using LSMW.Hi Karthik,
For handling this situtation:
1. First declare variable in global declaration wity type P
data: ws_numrec type p.
2. In the BEGIN_OF_RECORD of LSMW put this piece of code:
ws_numrec = ws_numrec + 1.
if ws_numrec GT 999.
transfer_transaction
endif.
Hope this will help you.
Regards
Krishnendu -
Hi,
I have an image element in the source schema and the value which i will be getting in that field will look this
; NS2151--C1819ISPT-20.jpg; NS2151--C1819ISPT-20-1.jpg; NS2151--C1819ISPT-20-2.jpg; NS2151--C1819ISPT-20-3.jpg
Now i need to split the string and create fields in the destination
The incoming field can have 1 to 4 .jpg image names separated by semi colon. if i have one .jpg i have create one custom attribute in the destination and if have 2 image names i have to create 2 custom attributes in the destination and so on.
Is there any way that i can handle this logic in the map
Thanks
sreeHi Sree,
I would advise you to use recursive XSLT Template for this.
Links below will help you achieve this.
http://social.technet.microsoft.com/wiki/contents/articles/23662.biztalk-create-repeating-records-from-comma-separated-values.aspx
http://kentweare.blogspot.in/2008/08/biztalk-mapper-transforming-comma.html
Rachit -
Help needed in splitting files using BPM
Hello experts,
I am working on an interface where i need to split files within BPM.
I know,i can achieve it in Message Mapping by mapping Recordset to Target structure and then using Interface Mapping within Transformation step.But i dont want to follow this.Is there an alternative way to achieve this within BPM.
I have an input file with multiple headers and i need to split for each header.My input file looks like this:
HXXXXXABCDVN01
MXXXXXXXXXXXXXX
MXXXXXXXXXXXXXX
SXXXXXXXXXXXXXX
HXXXXXABCDVN02
MXXXXXXXXXXXXXX
MXXXXXXXXXXXXXX
SXXXXXXXXXXXXXX
HXXXXXABCDVN03
MXXXXXXXXXXXXXX
SXXXXXXXXXXXXXX
Is there a way, where i can specify this condition within BPM , that split files for every H.
Thanks in advance.
Regards,
SwathiHi,
have your target structure with occurence as 0...unbounded in the mapping and map the header filed to the root node (repeating parent node) of the target structure....this will create as many target messages as the header fileds....if you want to send these messages separately then use a block in BPM with ForEach option....
Splitting and Dynamic configuration can be applied in the same mapping.
Regards,
Abhishek.
Edited by: abhishek salvi on Dec 18, 2008 12:59 PM -
Need to split Quicktime movie files
Hi Group!
I have a bunch of movie files (MPEG4) that I need to split.
I'm thinking a workflow like this:
- open movie in qt pro
- create out-point at the 65 minute mark
- cut it
- create new movie
- paste it
- rename it to oldname_"Part1"
- save it
- close it without saving
- rename remaining file to oldname_"Part2"
- save it
- close it without saving
So far I have the split/cut/paste part working, but I can't figure
out how to name a open movie file in Quicktime.
(I'm new to all this, as you can tell, and the Library in the Script Editor
for the Quicktime components did not really explain a lot to me).
Any help appreciated!
Thanks!Try something like this…
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">set save_folder to path to movies folder as Unicode text
tell application "QuickTime Player"
set my_movie to the front movie
set my_file to save_folder & my suffixwith_extension(mymovie's name, "_Part2")
save my_movie in my_file -- use for a reference to the original
-- save self contained my_movie in my_file -- use for a portable file
end tell
to suffixwith_extension(filename, suffix)
if file_name contains "." then
tell (a reference to AppleScript's text item delimiters)
set {tid, contents} to {contents, "."}
set file_name to file_name's text items
tell (a reference to file_name's item -2) to set contents to contents & suffix
set {file_name, contents} to {file_name as Unicode text, tid}
end tell
else
set file_name to file_name & suffix
end if
return file_name
end suffixwithextension</pre> -
Need to split the document in 950 line iteam record in LSMW
HI ALL,
I am posting documents using LSMW for Tcode FB01. But some documents having more no of line items like 1000.
But SAP will allow only 950 line tems for each documents. In this sistuvation we need to split the data as 950 and 50. we need to post 2 different documents with same header data.
<removed by moderator>.
regards,
srikanth
Moderator message: please do not ask for documents being sent to you directly.
Edited by: Thomas Zloch on Nov 15, 2010 2:18 PMThere are a couple of things you can do:
instead of posting the individual line itame detail, post summary items.
Create a dummy offset account. Total the first 950 items and post the remainder to the offset. Then do the same for the remaining items. The total to the offset will be zero.
If you search the forum, you will find more details on this.
Rob -
MRP, need to split total order in three week
Hi SAP GURU,
i need to split total order in three weeks. how i can make setting so that after MRP execution system will create proposals like 1st week302nd week 303rd week 40
Thanks,
SAP PQDear
Goto MD61-Enter Material -Goto User Parameters -Select Weekly (W) -Enter Weekly bucket qty in case u have PIR as your demand
In case if you have Sales Order oriented qty then you can use Scheduling agreement kind of forecasting in VA31 instea of MD61 or Yo can try Period Lot Size WB in Material master and logging Sales Order qty .
Check both cases in sandbox and look at MD04 result
regards
JH -
Need to split value based on "+"
Hi All,
I need to split my input value based on "+" symbol.
Sample Input Value : 4506407171+4506661488+4506661489+4506548333
Out put Value 1: 4506407171
Out put Value 2: 4506661488
Out put Value 3: 4506661489
Out put Value 4: 4506548333
Please suggest a UDF
Thanks & Regards,
Mahi.Hi Mahi,
The + sign is a special character and needs to be escaped before splitting. Please see code below:
UDF: Context Type
Argument: inp (String)
for(int a=0;a<inp.length;a++){
String tmp[] = inp[a].split("\\+");
for(int b=0;b<tmp.length;b++){
result.addValue(tmp[b]);
Regards,
Mark -
Do we need to split up windows ( xp ) on a mac pro ?
Bonjour,
Do i need to split up windows on my mac pro ? ( "défragmenter" in french)
XP is on my first drive on a part of 120 Gb. I use boot camp.
Tank you.Contrary to other comment,
You do not need to repartition your boot drive on a Mac Pro in order to install Windows.
You can format and install a Windows BootCamp partition on any internal drive, not just the boot drive.
I prefer not to put both on the same drive (safer, better performance for Windows).
There is a pdf manual that is part of BootCamp on Leopard or when it was downloaded off Apple in the past before it expired and was pulled. There is also the option to save instructions in the BootCamp Assistant Utility when you launch it.
The only reason to defrag is to consolidate free space, in case there is not enough free contiguous space in order to re-partition and create a 2nd partition out of the available space which can and usually is very FRAGMENTED.
The ideal (and actually quicker 99% is to backup the drive, erase, and restore and then run BootCamp again and try to partition it again...
... if I am understanding what you want to do and were asking about. -
Hi
I am required to add batch splitting logic in below code.
Any one tell me how to do this
PERFORM get_invoice_data.
PERFORM filter_invoice_data.
FORM get_invoice_data.
SELECT k~vkorg k~vbeln k~fkart k~vtweg k~fkdat "CHOYT CHG#1589121
k~waerk k~bzirk k~regio
k~BSTNK_VF "Mod-010++
p~posnr p~vkgrp p~vkbur p~mvgr5 p~matnr
p~arktx p~fkimg p~vrkme p~netwr p~mwsbp
p~aubel p~vgbel p~vgtyp
p~charg p~werks k~fkart
k~xblnr
INTO CORRESPONDING FIELDS OF TABLE t_vbrp
FROM vbrk AS k INNER JOIN vbrp AS p
ON k~vbeln = p~vbeln
WHERE k~vkorg IN s_vkorg "<< MOD CHOYT CHG#1589121
AND k~fkdat IN s_fkdat
AND k~vtweg IN s_vtweg
AND k~rfbsk = 'C' " Accounting document has been created
AND vkgrp IN s_vkgrp
AND vkbur IN s_vkbur.
ENDFORM. " get_invoice_data
FORM filter_invoice_data.
DATA lt_vbpa LIKE t_vbpa OCCURS 0 WITH HEADER LINE.
If not t_vbrp[] is initial. "Mod-004++
REFRESH lt_vbpa.
SELECT vbeln parvw kunnr
FROM vbpa
INTO CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln
AND posnr = '000000'. " Header partner
SELECT vbeln parvw kunnr
FROM vbpa
APPENDING CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln
AND parvw = 'WE'. " Header partner
Endif. "Mod-004++
SORT lt_vbpa BY vbeln.
t_vbpa[] = lt_vbpa[].
LOOP AT lt_vbpa WHERE vbeln = t_vbrp-vbeln
AND parvw IN s_parvw
AND kunnr IN s_kunnr.
EXIT.
ENDLOOP.
IF sy-subrc <> 0.
DELETE t_vbrp.
ENDIF.
ENDLOOP.
IF c_prf = 'X'. "KA01
SORT t_vbrp DESCENDING BY posnr vbeln fkart. "KA01
SORT t_vbrp DESCENDING BY vgbel fkart.
LOOP AT t_vbrp WHERE rfbsk NE 'C'.
t_vbrp_c = t_vbrp.
APPEND t_vbrp_c.
DELETE t_vbrp.
ENDLOOP.
SORT t_vbrp_c DESCENDING BY vgbel vgpos vbeln.
DELETE ADJACENT DUPLICATES FROM t_vbrp_c
COMPARING vgbel vgpos fkart.
LOOP AT t_vbrp_c.
t_vbrp = t_vbrp_c.
APPEND t_vbrp.
ENDLOOP.
SORT t_vbrp.
ENDIF. "KA01
ENDFORM. " filter_invoice_dataHi Kumar,
You should format your code before posting... I have done it and put it just below :
PERFORM get_invoice_data.
PERFORM filter_invoice_data.
FORM get_invoice_data.
SELECT k~vkorg k~vbeln k~fkart k~vtweg k~fkdat "CHOYT CHG#1589121
k~waerk k~bzirk k~regio k~BSTNK_VF "Mod-010++
p~posnr p~vkgrp p~vkbur p~mvgr5 p~matnr
p~arktx p~fkimg p~vrkme p~netwr p~mwsbp
p~aubel p~vgbel p~vgtyp p~charg p~werks k~fkart k~xblnr
INTO CORRESPONDING FIELDS OF TABLE t_vbrp
FROM vbrk AS k
INNER JOIN vbrp AS p
ON k~vbeln = p~vbeln
WHERE k~vkorg IN s_vkorg "<< MOD CHOYT CHG#1589121
AND k~fkdat IN s_fkdat AND k~vtweg IN s_vtweg
AND k~rfbsk = 'C' " Accounting document has been created
AND vkgrp IN s_vkgrp AND vkbur IN s_vkbur.
ENDFORM. " get_invoice_data
FORM filter_invoice_data.
DATA lt_vbpa LIKE t_vbpa OCCURS 0 WITH HEADER LINE.
IF NOT t_vbrp[] IS INITIAL. "Mod-004++
REFRESH lt_vbpa.
SELECT vbeln parvw kunnr FROM vbpa
INTO CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln
AND posnr = '000000'. " Header partner
SELECT vbeln parvw kunnr FROM vbpa
APPENDING CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln AND parvw = 'WE'. " Header partner
ENDIF. "Mod-004++
SORT lt_vbpa BY vbeln.
t_vbpa[] = lt_vbpa[].
" I believe that you have forget the following line, isn't it?
LOOP AT t_vbrp.
" ^^^^^^^^^^^^^^
LOOP AT lt_vbpa WHERE vbeln = t_vbrp-vbeln
AND parvw IN s_parvw
AND kunnr IN s_kunnr.
EXIT.
ENDLOOP.
IF sy-subrc 0.
DELETE t_vbrp.
ENDIF.
ENDLOOP.
IF c_prf = 'X'. "KA01
" Are you sure you want to sort your internal table twice ???
SORT t_vbrp DESCENDING BY posnr vbeln fkart. "KA01
SORT t_vbrp DESCENDING BY vgbel fkart.
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" I don't understand why you delete some lines in T_VBRP
" that you after insert again in T_VBRP
" (a sort change nothing to the content)???
LOOP AT t_vbrp WHERE rfbsk NE 'C'.
... " here I have skipped some lines
ENDLOOP.
" ^^^^^^^^^^^^^^^^^^^
SORT t_vbrp.
ENDIF. "KA01
ENDFORM. " filter_invoice_data
I have insert some remarks about your code : some lines seems strange! But for your question, what do you mean by batch splitting logic? Could you explicit? Thanks!
Samuel -
I need to install Logic X pro in my laptop. My IOS is 10.7.5 and I have 16Mb memory. Shoud I update my IOS to the latest version?
you can't install logic pro x on a iOS device....you said laptop so i guess you mean OS X not iOS ....you can't have 16mb ram/memory but probably 16gb....but to your question...
NO DO NOT UPDATE, logic pro x is working better on mavericks then on yosemite! -
Just bought a new imac, need to take logic off my macbook pro and install onto my imac
Just bought the new imac, and I need to get logic pro 9 off my macbook pro and onto my imac. Both my install licenses are used, so will I have to buy a new license as well. If any and all help would rock. Thanks, JASON
How did you receive Logic? Reinstall from the distribution media. You may be able to move the Logic application, but unless you know what and where the support files are it may prove difficult for it to work correctly.
I would assume you can obtain another license by calling AppleCare Customer Service unless you are moving Logic to a new computer and removing it from the other computer. In this case you do not need to purchase another license. -
Reg:I have GL a/c no one i need to split into 3 GL a/c no
I have GL a/c no one i need to split into 3 GL a/c no
1) First one is opening stock some restriction (like Business Transaction Sum total of all the business transaction for last period selected - (sum total of all debits - sum total of credits), when transaction type = RMWE + (sum total of all debits - sum total of credits), when transaction type = RMRU, RMWA, RMWL)
2) Second (First +1) one is purchases some restriction (Sum total of All debits - Sum total of All credits)
3) Third (First +2) one is issue some restriction (Sum total of All debits - Sum total of All credits)
How to do please guide me
Regards,
jkHI
1) First one is opening stock some restriction (like Business Transaction Sum total of all the business transaction for last period selected - (sum total of all debits - sum total of credits), when transaction type = RMWE + (sum total of all debits - sum total of credits), when transaction type = RMRU, RMWA, RMWL)
*Info Provider level -- through Transformations -- Formula If Then else for your 1st and normal* / OR Routine
Query -- RKF
2) Second (First +1) one is purchases some restriction (Sum total of All debits - Sum total of All credits)
Info Provider Level -- Transformation -- ((Formula 1 ) + one is purchases some restriction (Sum total of All debits - Sum total of All credits)
Query -- RKF
3) Third (First +2) one is issue some restriction (Sum total of All debits - Sum total of All credits)
Info Provider Level -- Transformation -- ((Formula 1 + 2) one is purchases some restriction (Sum total of All debits - Sum total of All credits)
QUERY--Rkf
Hope it helps -
I need to split 2 different sales taxes to 2 separate GL Accounts
On a customer sales order, I have a need to split two different sales taxes for a single lineitem to two different General Ledger (GL) accounts. I know that a sales tax code (2 digit) is defined on the UTXJ pricing condition and that this tax code in combination with the account key associated with the tax type is used to determine the GL account to be used. However, in all of my current business situations, all taxes (state, city, and local) get posted to the same GL account as there doesn't appear to be a way to control the tax code at an individual tax pricing condition level. Has anyone been able to do this?
Here's my example:
Order 123, lineitem 1 has a JR1 tax pricing condition. The main UTXJ pricing condition contains a CX sales tax code. It should get posted to GL account GL001.
Order 123, lineitem 2 also has a JR2 tax pricing condition. The UTXJ pricing condition (from above) contains a CX tax code. However, it should get posted to GL account GL002.
Any help would be appreciated. Thanks.Hi Friend
Then in order 123 in the line-item 1 say the material is a finished material , so your will be doing sales cycle OR->LF->F2
Then in order 123 in the line-item 2 say the material is a Trading material , so your will be doing ME21N->MIGO->MIRO->BILLING
So even though you assign CX tax code it gets posted to G/L account GL001. But even though the lineitem 2 has CX tax code it will be posted to G/L account GL002 because you will be assigning the stock in OBYC
Regards
Srinath
Maybe you are looking for
-
Black screen with Quicktime and VLC, no codec?
I'm trying to view a mov file with QT Pro 7.5 or latest VLC and both show no video, only sound. In QT, when I ask for info to see codec, only says 16-bit Integer (Big Endian), Stereo (L R), 48.000 kHz Uncompressed 10-bit 4:2:2, 720 x 486 (640 x 480),
-
Download link for BEA Workshop trial version not working
Hello All, I am trying to download BEA Workshop Studio 3.3 trial version (of 30 days) since last 2 weeks. However the download link- http://workshopstudio.bea.com/downloadNitroX.do is not working. Kindly tell me an alternate link (or mirror site) fro
-
Pros and Cons using "Type" vs "Element" in Req/Resp Messages PL?
Assume I have an asynchrone BPEL process and want to define the inbound myBPELRequestMessage and myBPELResponseMessage. As well known I can specify (in "Structure") a "Type" or "Element" for the Message. What is recommended? From my point of view for
-
I can't log og to app store from my macbook pro..Help!
Whenever i try to log on to the app store to update, it keeps telling me something like my computer isn't registered, but it is! it just keeps saying contact support. works fine on my iphone and ipad though! i have no idea what to do :-(
-
i have macbook air 13,3" but when i go to:From the Apple () menu, choose About This Mac. Click More Info. For OS X Mountain Lion, click System Report. MacBook Air 11 inch mi 2011, why why please