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: 

Data from R3 to mysql DB

Former Member
0 Kudos

Hello everyone,

How do I download content directly to custom tables on mysql DB?

thanks

Emiliano

1 ACCEPTED SOLUTION

krishnendu_laha
Active Contributor
0 Kudos

Hello Friend,

You can not download data directly from R/3 to sql DB...

you have to first download into excel, text format....excel is recommended

Thanks

Krish

4 REPLIES 4

krishnendu_laha
Active Contributor
0 Kudos

Hello Friend,

You can not download data directly from R/3 to sql DB...

you have to first download into excel, text format....excel is recommended

Thanks

Krish

0 Kudos

hi, thanks for the answer.

so i have to first create some files and after with another application from sql take the data?

emiliano di giuseppe

0 Kudos

Hi Emiliano,

For non-automated table dumps you might be able to use SE16 or SE16N depending on your table size. From there you can save the data as a local file on your PC and then import them via LOAD DATA into MySQL. When doing that you should be careful though how you display the data. Usually I use ISO date format (YYYY-MM-DD) and a point as decimal separator. Furthermore I switch off the conversion exits.

I suspect based on your question that you don't have direct access to the SAP database - now that would be too easy, wouldn't it...

If you want to automate it, you could utilize the SAP JCo and create a custom RFC function module for retrieving table data (there are some in SAP, like RFC_READ_TABLE, but they all don't really work well, which you'll soon discover when you utilize it) and then download it via JCo. From Java you could easily load the data into MySQL via JDBC.

Cheers, harald

0 Kudos

ei thanks ....

i think that i will use PI with abap proxy ... maybe with some rfc i could arrive with pi to mysql DB .

Emiliano Di Giuseppe