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
I bought my C5-03 last year because it had good voice controlled dialing and walking sat nav - which was brilliant when it worked.  I now have two major problems that are reducing the usefulness of the phone as a basic voice call device and as a navi [More]
Since the launch of BT sport my HD channels including new BT sport freeze after about 5 minutes.  Help suggests I restart Home Hub and BT vision box. This gets the system going for the next 5 minutes.  Note this is the behaviour whether accessing BT [More]
Hi all,    I have a requirement where i need a checkbox inside the smartform and this checkbox needs to be checked according to the data populated in the form. ( like: if value is populated in a variable the checkbox needs to be checked else if the v [More]
Hello, I need to delete some pages from a PDF.  Within the same document, I can delete some pages with no issue, but can't delete other pages.  Why not?Well, now it's not happening. Figures...  Thank you for responding.  If it happens again, I will w [More]
Hello, I want to write a query in jpa criteriaquery. Here is the query: SELECT node.category_name, (COUNT(parent.category_name) - 1) AS depth FROM category_subcategories AS node, category_subcategories AS parent WHERE node.lft BETWEEN parent.lft AND [More]
All: Anyone know of a keyboard command to open several Mail messages in their own windows? For example, I can't highlight all messages in the Inbox and then double click one of them to open them all in separate windows. Surprisingly, Mail lacks an Op [More]
Hi all, is there a command which I can use in Bex Analyzer to switch on the hierarchy display in one of the queries? The hierarchy is a fixed on. When first opening the workbook the hierarchy is switched off (so we see a flat list of cost elements) a [More]
Hi, I got the Adobe CS4 Premium on the original DVDs and copied them over to the HardDisk. I moved and can not find the original DVDs so I am trying to install the Adobe CS4 Premium to my new Macbook but got a problem I hope someone can help me with. [More]
Hi, I have a 28 MB .mov that I want to embed into a web page using Flash / Media Encoder. In Media Encoder settings it says the estimated file size will be 2486MB. Am I missing something? It is a long video of a ppt presentation (about 1 hour). I'm n [More]
hi all, im working on a smartform where i need to display data of trx VA01.After the initial screen of va01 in the Sales Tab when i double click the line item (Material field), it goes to a third screen where in Additional Data A tab  , Material Grou [More]