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
Once i select the allowMessageDelays to false i get my message in the error queue but if i select it as true then the message gets saved in the dms_limbo tables and we get the following error infinite times.I have given the maximum attempt as 3 but i [More]
Hello! Way back a few months ago when I purchased my MacBook, I had some display problems from the beginning. I talked to a service rep and they walked me through some potential fixes but eventually sent out a box for me to return my macbook in for r [More]
I have a two-finger scrolling problem with my 5- day- old Macbook (10.5, Firefox latest version). It was suggested in this forum that I turn off Horizontal scrolling. I did that, in fact I think I tried every combination of settings on the Keyboard & [More]
I am getting the following error: JBO-30003: The application pool (dpi.src.business.srcSchReportAppModule.srcSchReportAppModuleLocal) failed to checkout an application module due to the following exception: oracle.jbo.DMLException: JBO-26066: Error d [More]
Hello!! I have X64 bit machine with Windows 2003 server enterprise x64 edition installed. Is there a Oracle 9.2 version which I can install on this machine? In the site I found the Oracle 9.2 version for IA64. Could anyone give me any pointers as to [More]
I can mount shares, and I've specified every parameter I think could make a difference, but can't write to shares as any user but root. archangel $ sudo mount -t cifs -o guest,uid=barrucadu,gid=users,file_mode=0777,dir_mode=0777,rw //masonlap/share / [More]
Hi All, How can we determine that a particular balance sheet account (any GL account) is a bank account or not? Thanks, BhaskarHi Bhaskar, This is one option. There is one table SKA1 which stores all account codes. In that there is one field KTOKS. I [More]
Hi, Is it normal that i have no dashes near audio file opened in audio editor in the timeline ? I see the audio file in timeline, can move it, reduce, modifying speed, but totally unable to place a keyframe ! I tried with mp3 and wav files. Is it a b [More]
Hi, I've been to the Verizion store where me and my dad activated our cellphones to change my role to account manager(since me and my dad's phones were activated by my uncle-in-law, which means my phone lines are his sub-account or something). we wen [More]
Hello All mates!!! I am dealing a problem in APO, actually I am a very beginner in this system so I would appreciate be very thankful for any help and tips you could give me :O) The user is saying that to run the Heuristic there are two planning book [More]