01-19-2009 8:41 AM
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
01-19-2009 8:46 AM
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
01-19-2009 9:00 AM
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.