Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

iternal table

Hi talented ppl,

Go through the code below .........

TYPES: BEGIN OF ty_string,

str(300),

END OF ty_string.

DATA : I_HEADER TYPE STANDARD TABLE OF CHECK_HEAD WITH HEADER LINE,

WA_HEADER TYPE CHECK_HEAD.

DATA : I_TRAILER TYPE STANDARD TABLE OF CHECK_REC WITH HEADER LINE,

WA_TRAILER TYPE CHECK_HEAD.

DATA : i_string TYPE TABLE OF ty_string WITH HEADER LINE,

wa_string TYPE ty_string .

i_HEADER-RECTP = 1.

i_HEADER-BANKL = 30009 .

i_HEADER-ACCNR = 21469 .

i_HEADER-CRDAT = 20070103.

i_HEADER-ISO_CURR_CODE = 'CAD'.

APPEND I_HEADER.

i_HEADER-RECTP = 1.

i_HEADER-BANKL = 30010 .

i_HEADER-ACCNR = 21470 .

i_HEADER-CRDAT = 20070105.

i_HEADER-ISO_CURR_CODE = 'CAD'.

APPEND I_HEADER.

I_TRAILER-RECTP = 5.

I_TRAILER-VALUT = 20070902 .

I_TRAILER-CKNUM = 0023452.

I_TRAILER-AMOUNT = 100000.

I_TRAILER-PDATE = 20050902.

APPEND I_TRAILER.

I_TRAILER-RECTP = 5.

I_TRAILER-VALUT = 20070902 .

I_TRAILER-CKNUM = 0023456.

I_TRAILER-AMOUNT = 200000.

I_TRAILER-PDATE = 20071002 .

APPEND I_TRAILER.

I have 2 internal tables with data as above.

now i want to populate my i_string table with the above records as follows :

line 1 should have : first line of i_header.

line 2 should have : first line of i_rec.

line 3 should have : second line of i_header.

line 4 should have : second line of i_rec.

all this should be in string format..........according to the standard structures

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question