Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Uploading Dynamically created Internal table form Flat file

Former Member
0 Likes
321

I am creating dynamic internal table as follows:

*-create dynamic internal table

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = i_fldcat[]

IMPORTING

ep_table = i_modify.

ASSIGN i_modify->* TO <fs_tab>.

The dymamic internal table is created with the given Ztable in the selection screen.

Now the problem is when I try to upload this table <fs_table> using function module Call function 'UPLOAD'.

The first column of flat file is getting updated in Mandt of <fs_table>.

I want to update sy-mandt in MANDT of <fs_table> and the rest of the fields with flat file data.

e.g.

Flat file data:

100 white

101 black

<fs_table> structure is getting uploaded as below

mandt zcode zdesc

100 white

101 black

if the clint is 700

it has to be uploaded as

mandt zcode zdesc

700 100 white

700 101 black

Can someone knows what should be the approach or any other function module to be used ?

Message was edited by:

Mahesh Sahu

1 REPLY 1
Read only

Former Member
0 Likes
303

See the answer in your previous thread and close this thread. why do you want to have many threads for one question.