How to split a Structure?
Hi All,
I am working in ABAP and is currently onto Workflows. I have a scenario wherein I have a structure and I have to split it and store in different containers.
I tried to move the data in the structure by declaring a string and moving onto it. But only upto around 565 chars can be moved to this string that if I try for above this, its showing a dump that structure size is different than the variable size.
I tried something like:
string = <fs>+250(250).
string501(250) = <fs>501(250).
string752(250) = <fs>752(250).
Another thing, I tried it with uniCode enabled.
Please do reply ASAP.
Thanks & Regards
Used intermediate atbles
Similar Messages
-
How to Split the message content?
Hi ....
I am having an input File like below format.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">
<Field1></Field1> -
0 to 1
<Filed2></Filed2> -
0 to 1
<Filed3></Filed3> -
0 to unbounded
</ns0:MT_ISO8583>
Here Field 3 is repeating many times. The value in the Field 3 has to be splitted and should be mapped to the target feilds. Field 3 will stop repeating until when the first value in the field 3 is N.
The length of the field is 142 characters in length.
The field should be splitted based on the following structure.
More data flag : 1 char (u2018Yu2019/u2019Nu2019) This indicates whether there are more records for the given criteria.
Number of statements : 2char (00 to 20) Number of statements in this fetch
The following are repeated as many number of statements
Transaction date : 8 char ( YYYYMMDD )
Transaction Id : 9 char (right justified, left padded with spaces)
Part tran serial num : 4 char (right justified left padded with spaces)
Tran Type : 1 char ( C - Cash, T - Transfer, L - Clearing )
Tran sub type : 2 char ( BI, CI, NP, NR)
Debit credit indicator : 1 char ( D - Debit, C - Credit )
Tran value date : 8 char ( YYYYMMDD )
Transaction Amount : 17 char ( with decimal )
Transaction particulars : 50 Char (left justified, right padded with spaces)
Transaction Posted date : 14 char ( YYYYMMDDHHMISS )
Instrument number : 8 char (right justified, left padded with spaces)
Balance at the end of the transaction : 17 char ( with decimal )
Can you help me , how to split the message content in the field3?
Below is the sample message.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">
<Field1>930000</Field1>
<Filed2>234259901406</Filed2>
<Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
<Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
<Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 0090209122637 14586. 42]]></Filed3>
<Filed3><N0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
</ns0:MT_ISO8583>
Thanks & Regards,
Leelausing substring to get values you want, and map to corresponding target nodes except:
fields3 ->count->Number of statement
Regards.
Liang -
J2EE Deployment 1.1 API and Split Directory Structure
How do you think the Deployment API from J2EE 1.4 will affect the WL split directory
structure?I believe they're orthogonal and wasn't expecting any split-directory
changes. Did you have any particular concerns?
-- Rob
Christopher R. Gardner wrote:
How do you think the Deployment API from J2EE 1.4 will affect the WL split directory
structure? -
How to split a line item to 2 line item.
Hi all !
I have a request, help me please !
In system I have a invoice with 1 line item value 1000 USD.
Customer payment 600$. a incoming payment with value 600$ will post to system.
I want incoming payment and invoice will auto clear 600$ but system can't auto clearing because value is not Identical.
I want line item of invoice will split to 2 line item. Line item 1 value 600$ and line item 2 value 400$.
Line item 1 of invoice will auto clear with incoming payment and system will exist a invoice with 1 line item value 400$.
How to split a line item to 2 line item ? Have FM for split a line item to 2 line item in SAP ?
If you have other solution for this request, help me please !
Thanks !Hi,
Have a look at Split line item - Sales Order
Regards -
How to split all the fields of output ls-l from an internal table
Hi all,
Using ls-l command i have brought the file attributes of a file like its read and write permissions,creation date ,path etc in a internal table.
Now how to split all these fields from the internal table or what should be the splitting criteria.
The field contents of internal table are like this:
-rw-rw---- 1 devadm sapsys 18360 apr 29......so on
I want to split this into different fields.
Kindly suggest.
Thank You.Hi,
I think the delimiter will be space. For date alone (Apr 29) you need to concatenate after the string has been split.
Thanks and regards,
S. Chandramouli -
How to create custom structure in smart forms & use them in interface
hi experts....
can anyone tell me how to use custom structure in
form interface (parameters) without creating any structure
in the dictionary.Hi Shrama,
If you want to use the structure in interface. You have to create structure in dictionary.
if you create in form or in report ..they won't recongnize the local structures.
Thanks,
Sunil -
I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!
video
What version of Premiere Elements do you have and on what computer operating system is it running?
Please review the following workflow.
ATR Premiere Elements Troubleshooting: PE11: Project Assets Organization for Scene and Highlight Grabs from Collection o…
But please also determine if your project goal is supported by
a. format of your source
and
b. computer resources
More later based on details that you will post.
ATR -
How to populate Tree structure from BAPI while tree grows or shrinks
Hi All
Currently I am populating the tree structure from BAPI based on the HLevel (Hierarchy Level) parameter, but when ever insertion and deletion happens in the tree at any level in the UI and at the same time i am updating these tree node values with HLevel value(example : 1 is first level , 2 is second level, 3 is third level etc) updating successfully& correctly into the BAPI, no issues.
Once it is updated into the BAPI, next time when i refreshed the UI then i am not populating the tree structure correctly from BAPI with updated new nodes based on the HLevel. when tree struture grows or shrinks in the BAPI after updating into BAPI from UI then i am not populating the tree sturcture correctly based on the HLevel value from the BAPI.
Please let me know any sample code how to populate tree structure correctly when tree structure grows or shrinks based on the HLevel value ( Hierarchy Level , for example : 1 is level , 2 is 2nd level , 3 is third level nodes etc)
anybody helps in this regard with sample code on the populating tree tructure then it would be great help to me.
Thanks in advance
Regards
Kalki Reddy
Edited by: KalkiReddy on Nov 29, 2009 3:48 PMBapi output node:
Value | Text | HLevel
01 | A | 1
0101 | AA | 2
010101 | AAA | 3
01010B | AAB | 3
0102 | AB | 2
02 | B | 1
0201 | BA | 2
This code is used to build the tree in wdDoInit method
IE_T_CatalogueNode catalogueNode = wdContext.nodeE_T_Catalogue();
int size = catalogueNode.size();
ICatalogoElement level1elem = null;
for (int i = 0; i < size; i ++)
IE_T_CatalogueElement catalogueElem = catalogueNode.getE_T_CatalogueElementAt(i);
if (catalogueElem.getLevel().equals("1"))
// 1 Livello
level1elem = wdContext.createCatalogoElement();
level1elem.setKATALOGART_CODE(catalogueElem.getKatalogart());
level1elem.setCODEGRUPPE_CODE(catalogueElem.getCodegruppe());
level1elem.setCODE(catalogueElem.getCode());
level1elem.setCODE_DESCR(catalogueElem.getKatalogart_Descr());
level1elem.setDESCR(catalogueElem.getKatalogart_Descr());
wdContext.nodeCatalogo().addElement(level1elem);
for (int j = i + 1; j < size; j ++)
IE_T_CatalogueElement catalogueElem2level =
catalogueNode.getE_T_CatalogueElementAt( j );
String level2 = catalogueElem2level.getLevel();
if (level2.equals("2"))
ICatalogoElement level2elem = level1elem.nodeChild().createCatalogoElement();
level2elem.setKATALOGART_CODE(catalogueElem2level.getKatalogart());
level2elem.setCODEGRUPPE_CODE(catalogueElem2level.getCodegruppe());
level2elem.setCODE(catalogueElem2level.getCode());
level2elem.setCODE_DESCR(catalogueElem2level.getCodegruppe_Descr());
level2elem.setDESCR(catalogueElem2level.getCodegruppe_Descr());
level1elem.nodeChild().addElement(level2elem);
for (int k = j + 1; k < size; k ++)
IE_T_CatalogueElement catalogueElem3level =
catalogueNode.getE_T_CatalogueElementAt( k );
String level3 = catalogueElem3level.getLevel();
if (level3.equals("3"))
ICatalogoElement level3elem = level2elem.nodeChild().createCatalogoElement();
level3elem.setKATALOGART_CODE(catalogueElem3level.getKatalogart());
level3elem.setCODEGRUPPE_CODE(catalogueElem3level.getCodegruppe());
level3elem.setCODE(catalogueElem3level.getCode());
level3elem.setCODE_DESCR(catalogueElem3level.getCode_Descr());
level3elem.setDESCR(catalogueElem3level.getCode_Descr());
level2elem.nodeChild().addElement(level3elem);
Damiano -
How to split table in the report so it shows on the next page?
Hi,
How to split table in the report so it shows on the next page? Im trying to fit long (many columns) table into my report page. It is too long however. I want it to wrap and show the rest on the next page. What I get now is table cut at the page end and rest is not visible.Yes, this might be that the amount of data will cause table to grow and exceed 1, 2, 3.. pages. In that case I would probably want to have, lets say , one half of columns on 1st page then the other on the 2nd page and then repeatedly the same sequence down across all pages. Is there a way to achieve this?
-
How to SPLIT data from Uploaded :AZT file at ";"
Dear All Experts,
I need to upload an :AZT file and then SPLIT the data of .AZT fiel at ";" into various fields into an internal table "itab" and then I need to save/update these data of internal table "itab" to database table "ZLT_AZT" . But I am facing some problems in the output. So please follow the following to understand my problem and please suggest me as how to SPLIT the data correctly at each ";".
1) The code that I wrote in se38.
2) The attachement; Projekt ABAP AZT file upload doubt5.jpg; the screen shot of the output that i am getting in internal table "itab" during debugging after my code is executed in se38
PROBLEM: I am unable to SPLIT the data at ";".
3) The attachement; Projekt ABAP AZT fiel upload doubt4.jpg: the screen shot of the data populated in database table "ZLT_AZT" in se11.
PROBLEM: i) I am not able to see all the columns. I am only able to see the 8 if 9 columns. I did go to Sellting--> Format List-->Choose Fields and selected all the fields but it didn't worked. Also I went to Settings-->User Parameters-->Databrowser and here I tried to change the width of output list but still it didn't work.
1) So the code in se38 is:
DATA itab TYPE STANDARD TABLE OF zlt_azt.
DATA wa_tab TYPE zlt_azt.
DATA: file_str1 type string.
Parameters: p_file1 type localfile.
At selection-screen on value-request for p_file1.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
STATIC = 'X'
CHANGING
file_name = p_file1.
Start-of-Selection.
file_str1 = P_file1.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_str1
tables
data_tab = itab
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT itab INTO wa_tab.
SPLIT wa_tab AT ';' INTO wa_tab-M2 wa_tab-k2 wa_tab-A2 wa_tab-P2 wa_tab-S2 wa_tab- D1 wa_tab-STD wa_tab-BES.
Write: sy-uline(120),
/ sy-vline,
2 wa_tab-M2,
11 sy-vline,
13 wa_tab-k2,
25 sy-vline,
27 wa_tab-A2,
32 sy-vline,
34 wa_tab-P2,
39 sy-vline,
41 wa_tab-S2,
46 sy-vline,
48 wa_tab-D1,
60 sy-vline,
62 wa_tab-STD,
72 sy-vline,
74 wa_tab-BES,
120 sy-vline.
ENDLOOP.
MODIFY zlt_azt FROM TABLE itab.
Looking forward to your valuable feedback to my new problems.
Best regards
Chandan KumarHi Chandan,
I am sorry for typing wrong at a place - Now try the corrected one
data it_string type stringtab.
data lv_string type string.
DATA itab TYPE STANDARD TABLE OF zlt_azt.
DATA wa_tab TYPE zlt_azt.
DATA: file_str1 type string.
Parameters: p_file1 type localfile.
At selection-screen on value-request for p_file1.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
STATIC = 'X'
CHANGING
file_name = p_file1.
Start-of-Selection.
file_str1 = P_file1.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_str1
tables
data_tab = it_string
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT it_string INTO lv_string. " <<<<< previously I wrote loop at itab>>>
clear wa_tab.
SPLIT lv_string AT ';' INTO wa_tab-M2 wa_tab-k2 wa_tab-A2 wa_tab-P2 wa_tab-S2 wa_tab- D1 wa_tab-STD wa_tab-BES.
append wa_tab to itab.
Write: sy-uline(120),
/ sy-vline,
2 wa_tab-M2,
11 sy-vline,
13 wa_tab-k2,
25 sy-vline,
27 wa_tab-A2,
32 sy-vline,
34 wa_tab-P2,
39 sy-vline,
41 wa_tab-S2,
46 sy-vline,
48 wa_tab-D1,
60 sy-vline,
62 wa_tab-STD,
72 sy-vline,
74 wa_tab-BES,
120 sy-vline.
ENDLOOP.
MODIFY zlt_azt FROM TABLE itab.
Regards,
Rachna -
How to use the structure in the EXIT_SAPMM06E_013 function module
Hello Experts,
Please guide me how to use the structure defined in function modules under table tab in the driver program for smart form to fetch the data. Please post some sample code if available.
Best Regards,
Sandesh.SreyamshCan you please elaborate little bit more what is the actual requirement?
-
How to split pdf files also how to downsize a pdf file?
how to split pdf files also how to downsize a pdf file?
Hi Ali,
If the PDF file you're starting with is larger than 100MB, ExportPDF won't be able to convert it.
To convert a file of that size and to create separate files, you'll need Adobe Acrobat. You'd need Acrobat to divide the file into smaller chunks for ExportPDF anyhow, so Acrobat is probably the best solution for you. You can learn more about Acrobat here: http://www.adobe.com/products/acrobat.html
Kindest regards, Stacy -
How does the event structure work & ...
How does the event structure work & and how to modify the case example if you want to change the name of the case? I haven't a look at the manual but nothing about event structure is mentioned.
I know how it works.. =P
-
How to split a password-protected PDF file?
There is a tutorial to let you know how to split a password-protected pdf file, check in here:http://www.kvisoft.com/tutorials/split-a-password-protected-PDF-file.html
Yup. You all are right. I ordered Adobe Acrobat today and the order is still processing. I can get to Adobe Acrobat.com but that too does not work. I guess I will have to wait until my order is processed before I get the keys to the kingdom. Thanks for your help and please forgive my ignorance.Regards,Bob
-
How to create a structure in a method
Hi
Would any please tell me how to delcare a structure in a method which contains a SAP defined structre in it . I have done it in normal ABAP but it not taking that syntax in ABAP objects method . Please tell me syntax for a method .
Thanks
AnitaHello Anita
I assume you tried the statement
DATA: begin of <struct>.
In methods we have to use the following approach:
TYPES: begin of ty_s_struc.
TYPES: field1 TYPE <fieldname>.
TYPES: field2 TYPE <struct-fieldname>.
TYPES: ...
TYPES: end of ty_s_struc.
DATA:
ls_struc TYPE ty_s_struc,
lt_itab TYPE STANDARD TABLE OF ty_s_struc
WITH DEFAULT KEY.
I prefer to place my type definition in the "TYPES section" (see push button "Types" in SE24). However, all types defined within your class are <b>private</b> meaning you cannot use them in the interface of public methods.
Regards
Uwe
Maybe you are looking for
-
A while back now I lost use of Acrobat Reader's loading feature while in Firefox. I have tried all of the suggestions that I can find in the Help Menu, on blogs, etcetera, and nothing has worked to re-enable it. The Acrobat Reader seems to work fine
-
Hi, I have accidently deleted safari from my iphone and can't find it to put it back. I did it ages ago as I didn't know what it was and I was trying to create extra space! Now when I click on a link say in an email, it doesn't come up with a brows
-
Unable to Post the Invoice.
Dear Gurus I have GRN of 2007 now i want to post the MIRO , but system is showing no items are selected.What could be the reason? 2) I have Old GRN , Still MIRO was not posted, here the problem is after several communications also vendor is not respo
-
BEx Variable default value does not pass thru to Webi report
Hi, It appears that the integration between BEx and BOBJ Webi does not support default values when the webi report is scheduled. This means that if Webi/Infoview is the delivery method, than clients require 2 reports. 1 for adhoc and 1 for scheduli
-
How changes the collection of a saved book in Lightroom?
I started to created a book in lighroom and did not use a collection. When I saved* the book Lighroom put the used photo in the book in a collection. But I want to see all the photos and not just the used photos. But i can not change the collection!