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
On my app store I what to update an app but the e-mail is my husband it in a light color making it so I can't change it to my e-mail address. It ask for a password can't give one because of the e-mail how do I change this I'm lock out?This is your hu [More]
In a playlist, my iTunes will play only one track and then it stops. Won't move to the next song, won't work in shuffle mode, just plays once and that's it! Any ideas? This just started a few days ago, maybe with a recent iTunes update? I'm in 11.0.3 [More]
How do I convert a pdf that is in preview to a word doc? DebI've found that some of the non-Adobe converters (and some of the free online converters) don't do such a good job as Acrobat Pro. If you want to try it out, you can download one of the free [More]
Hi all, I have some code that runs fine when using some older Xalan libraries: import org.apache.xalan.extensions.ExpressionContext; import org.apache.xpath.NodeSet;I was trying to upgrade to use the latest libraries (from what I understand are inclu [More]
Hi experts, I installed WAS 04s on my pc. But for that i used administrator login(for window), after intallation i switched to my usual login(for window). Here i tried to run the SAPMMC but surprisingly i could not see the J2EE processes(server, SDM [More]
Hi all, My manager has asked me to review SPDD and SPAU after an upgrade. In Deleted Objects, I have seen some dictionary objects in particular we have several "Table Indexes" here. Why has SAP deleted these table index? I haven't seen other cha [More]
Hi everybody, sorry for this question, but how can i extend a package in PI 7.1. I have created a package ZSP_Test. In this package i try to create a program but without success. I get the message: Cannot extend package ZSP_TEST. My Package Propertie [More]
Hello Experts,    Can any one list out all the content conversion parameters. i.e like <rowset structure>.fieldName <roeset structure>.endSeparator...... etc.   along with their explination. Thanks inadvance.for Example:See this Str.......... [More]
Consider this code: header.h: #include <iostream> class A{ int i; public: A() : i(101) {} void print(); void g(A&); cpp1: #include "header.h" inline void A::print() { std::cout << i << '\n'; } int main() A a; a.print(); g(a [More]
When I try to download an iTunes software update i get an error message that my start up disk does not have enough room.  What do I do?You probably have run out of space, I would delete (or move to an external drive) things that aren't being used as [More]