cancel
Showing results for 
Search instead for 
Did you mean: 

Start routine

Former Member
0 Kudos

Hi SDN,

I have created one internal table in start routine with identical structure of communication structure...........I know tht there would be an Internal Table already with name Data_package.......i dont wan to distrub it thats why i created another internal table to do some manupulations

Now my question is how to Fill the data to New internal Table.......from which table should i copy the data to internal table.........im loading data from Flat files.

Points will be rewarded

Thanks

sujan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Declare the internal table with fields u want to copy.

TYPES:BEGIN OF t_compcode,

/bic/g00000526 TYPE /bic/oig00000526,

currency TYPE /bi0/oicurrency,

END OF t_compcode.

Define the internal table

DATA : i_compcode TYPE STANDARD TABLE OF t_compcode.

use the select statement below goes its syntax

select field one field 2

form ODS or wat ever

into table i_compcode ( internal table)

where (comp fields) x= data_package x.

hope u got it and later on in the update routine u can use the read statement to read the records into the workarea form the internal table.

Assign points if applicable

Thanks

puneet

Former Member
0 Kudos

Hi Puneet,

Can i Fetch data from PSA Table into new internal table.....if it is posible give me some specific code.

Regards

Sujan

Former Member
0 Kudos

Hi,

DATA: inttab TYPE STANDARD TABLE OF data_package

WITH HEADER LINE

WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.

intab[] = data_package[].

/manfred

Answers (1)

Answers (1)

Former Member
0 Kudos

In the start routine you can fill your internal table from DAT_PACKAGE[] itself if you are going to do any manipulation with the in coming data from flat files..

Regards

Former Member
0 Kudos

Hi Dash,

How to Fetch data from Data_package to new Internal Table....

Could you give some specific code......I included all Info objects which are there in Data_package into New internal table....so now how to write code..

Regards

sujan