Sitemap

Amicuk Programming Answers

Internal table transfer data to the other

2015-10-11   Views:0

Advertisement

Hi Guys, I am trying to insert from one of my internal table itab1 to the other table itab2, the itab2 will have only one field with length of may be 1000 charachters, all the fields thats gonna go  from itab1 to itab2 should be pipeline delimited. P

Hi Guys,
I am trying to insert from one of my internal table itab1 to the other table itab2, the itab2 will have only one field with length of may be 1000 charachters, all the fields thats gonna go  from itab1 to itab2 should be pipeline delimited. Please try to help me.
Thanks
Rajeev Gupta

The replay answer
Advertisement
Rajeev,
Have you gotten it to work yet?
Here is a slight change to review as well.  This removes the hard-coding of  DO 3 TIMES.   Instead, it determines how many fields exist in TAB1  - and places that value into feld UU.  
Then uu is used in the DO loop.
REPORT ZSEND .
field-symbols: <l_field> type any.
field-symbols: <ls_table> type any.
data: out_fld(1000).
data: begin of tab1 occurs 0,
        f1(10),
        f2(20),
        f3(30),
      end of tab1.
data: begin of tab2 occurs 0,
        f1(1000),
      end of tab2.
tab1-f1 = '1f1'.
tab1-f2 = '1f2'.
tab1-f3 = '1f3'.
append tab1.
tab1-f1 = '2f1'.
tab1-f2 = '2f2'.
tab1-f3 = '2f3'.
append tab1.
data: uu type i.
describe field tab1 type tab1 components uu.  "determine # of fields
loop at Tab1.
  clear out_fld.
  do uu times. " uu = number of fields in a row of Tab1
    assign component sy-index of structure Tab1 to <l_field>.
    concatenate out_fld <l_field> into out_fld separated by '|'.
  enddo.
  append out_fld to Tab2.
endloop.

Go to See the other 6 answers

Internal table transfer data to the other

Category:DefaultRelease time:2015-10-11Views:130

Hi Guys, I am trying to insert from one of my internal table itab1 to the other table itab2, the itab2 will have only one field with length of may be 1000 charachters, all the fields thats gonna go  from itab1 to itab2 should be pipeline delimited. P[More]

How to pass internal table with data in ABAP OO

Category:DefaultRelease time:2015-10-11Views:130

Hi experts , Here is the problem... I create a screen 100 and use the internal table to get data from database, and then press the button on screen 100 , it will call screen 200. I use ABAP OO code in screen 200, and i want to keep the internal table[More]

Can we create global internal table in data dictionary

Category:DefaultRelease time:-0001-11-30Views:130

help me i want to know whether we can create global internal tables in data dictionaryHi Swathi, The whole concept of internal table is to manipulate the data at runtime. This replaces the concept of two dimentional array in other languages. The powe[More]

How can i compare 2 internal table's data which have  same structure ?

Category:DefaultRelease time:-0001-11-30Views:130

hi friends, i want to know how  to compare 2 internal table's data which have  same structureDATA: BEGIN OF LINE, COL1 TYPE I, COL2 TYPE I, END OF LINE. DATA: ITAB LIKE TABLE OF LINE, JTAB LIKE TABLE OF LINE. DO 3 TIMES. LINE-COL1 = SY-INDEX. LINE-CO[More]

Internal table -Logic-Data manipulation

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have following requirement. Input Internal table *A T1   1   3 *A T2   4   5 *A T3   1   2 *B T4   1   2 *B T5   3   6 *B T6   1   7 Output *A T1   1     3 *A T2   4     5 *B T6   1     7 basically i should delete overlapping records  eg: since[More]

Pass Date from Internal table to Date field of Deadline(in expression tab)

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I need to set deadline in workflow according to dates in Internal table. So please guide how to achieve this.Thanks Rick for taking interest in my issue. Business scenario:- --> when PO is created delivery date is given in PO. --> Now all mat[More]

Populating dynamic internal table with data

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have an internal table with the data like the below       profit  lineId  amount       center        s21     70     1000        s21     80     1200        s22     70      800 In the above internal table the number of distinct lineIDs will be va[More]

Filling dynamic internal table with data from other internal table

Category:DefaultRelease time:-0001-11-30Views:130

Hi Friends, My problem is that i have already built a dynamic internal table (class int_table->create) but now i want to fill it with data from other internal table. The dynamic table column name and the field value of the data filled internal table[More]

Sorting internal table by date

Category:DefaultRelease time:-0001-11-30Views:130

Hello experts,                         i wat to sort internal table in asscending order and am using the code as follows,             APPEND wa_final TO it_final.             sort it_final by edatu vbeln  ASCENDING. am getting output as 05.09.2008   [More]

Filling Dyanamic Internal table with data

Category:DefaultRelease time:-0001-11-30Views:130

Hi All I have a following requirement. 1.. I have internal table with 1 text field of length 1000, this is field with data uploaded from text file having data tab seprated 2. I have a dyanamic table in which i have to fill the using the above interna[More]

Displaying internal table fields data based on user selection

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, I am having a checkbox for each field in the internal table. and i only have to display the fields of the internal table which the user has selected based on the check boxes provided. Could you plz help me out, how can i display the data of o[More]

Hot
Hi folks, Any clue about this error? 5200:Error executing query: Invalid Item ID. ThanksThis might help: http://adistrategies.com/index.php?loc=knowledge1&item=291 Cheers, MehmetRead other 2 answers [More]
Hi all, scenario is proxy to file i am passing a field value as Country - India and in the file the value is in this way Country âu20ACu201C India and i need to get it as Country - India  in the .csv file Its a one to one mapping can anybody tell me [More]
I copied some .jpg files to an SD card to pop into the SD card slot on my new Panasonic plasma tv. When I setup a slide show every other file says "cannot read file 01" . All the pictures are there but there are these hidden files ( I Assume) ev [More]
Hi experts, Given a BP, I want to find out to which Org. Unit it belongs to and furthermore the name and email of the General Manager of that Org. Unit. Any hints or ideas on how to go about it? Thanks in advance.Hi, maybe one of this options will he [More]
I have tried everything to create a dotted line in Photoshop CC 6, using the line tool looks terrible, and nothing else works. Why is such a simple thing so difficult in the ridiculous tool?Are you using the brush tool? You can adjust spacing in the [More]
Hi, I'm having a very strange problem when I try to save a JTree to a file, whos name is specified by the user through a chooser.showSaveDialog. Basically I have a method to save the tree which i used before i introduced the filechooser. The saving w [More]
Hi there, A small question, but the answer has been eluding me. I have just gotten a new imac with Leopard, my first experience with it. I have the airport status showing in the menubar, and it also displays the time connected. I don't want to see th [More]
Any help is much appreciated. I revisited a project today that I have not touched in a year or so and I am getting an error in some C++ code that is accessed using JNI. The header file is unable to see jni.h I installed the java developer package acc [More]
This forum is difficult to navigate for some of us who are used to forums designed like Audio Masters. Since Adobe is considered a leader in software, why not offer a better BB?[email protected] wrote: > This forum is difficult to navigate for some o [More]
Hi can someone help me pls. I have just brought ATV and I am having problems watching rented films from my Mac to ATV. I live on a boat so my broadband is slower than what you get in a house. I was hoping to go to my mums and download a few films eac [More]