Application Development 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: 

Uploading data from Dynamical Internal table

Former Member
0 Kudos

Hi,

I have uploaded the data present in the flat file into a dynamically created internal table . Now i have to upload this data present in the dynamically created internal table into database using BDC. How can I do this?

Thanks and Regards ,

Parvatha Reddy

2 REPLIES 2

Former Member
0 Kudos

Hi,

You have to either use Call Transaction or session method.

For this record the Tcode which you want to use using SHDB. Generate a program.

Fill BDCDATA Table and use

Call Transaction Using ...

or FM BDC_OPEN_GROUP, FM BDC_INSERT, FM BDC_CLOSE_GROUP

santhosh

Former Member
0 Kudos

Hi,

I had a problem while accessing the fields of dynamically created internal table .I have used the following code to access it.

SOLVED.

ASSIGN COMPONENT 'BUKRS' OF STRUCTURE <FS_2> TO <fs>.

IF sy-subrc = 0.

PERFORM BDC_FIELD USING 'RF02K-BUKRS'

<FS>

UNASSIGN <fs>.

ENDIF.