06-05-2015 4:18 AM
Hello Friends,
I need to create and maintain a table. The table entries are in an excel sheet. If I save that table in a transport request and maintain the table in SM30, the table entries also can be moved into production.
But There are many values in that table So I wanted to make entries through BDC or any function module.
Please help me out how to make entries in that table.
Regards,
Priyanka
06-05-2015 7:46 AM
Hi Priya,
1. First of all if you save your BDC program in TR & moved to production, it will definately ask you for flat file to upload data.
2. If you save your BDC program in local object directory then you can not move it to production without putting it in TR. If you upload data in Development environment then it won't reflect in production even if you transport table's TR in production. You have to upload data there separetely.
But here why are you using BDC program to upload data in single table.
Just use FM 'GUI_UPLOAD' to take file data in ITAB and user Insert statement to pull ITAB data into your Ztable.
Hope it will help you.
Regards,
Keyur Pawar.
06-05-2015 5:09 AM
Priyanka,
If I understood correctly you have a table with TMG and you got large no.of entries in an excel which needs to be maintained in this table.Instead of manually maintaining them you want to do it through a program,Right ?.Why do we need a BDC for this,why not a program which is capable of uploading the data from excel and then updating the internal and then inserting into a Ztable.
K.Kiran.
06-05-2015 6:47 AM
Hello Kiran,
Thanks for the reply.I don't have any problem doing this through a FM/program. My question is If it is done through a program or BDC, will the table entries also transported? I have to run the same program with the same excel in production system to fill the entries.
Regards,
Priyanka.
06-05-2015 7:25 AM
hi Satya,
Don't complicate the process. just do a upload program for table update.
Run that program from production, it will upload the data into corresponding Ztable.
if you want some sample code... check SCN for ztable upload thread or reply me i will attach the code for dynamic table updation.
With regards,
sampath kumar.
06-05-2015 7:49 AM
Hello Sampath,
Thanks for the reply.
I am aware of the procedure you mentioned and followed the same procedure.But I got a doubt whether the table entries are stored in transport object or not. I think NO. To clarify the same I posted here.
Regards,
Priyanka.
06-05-2015 7:30 AM
How did you declare the dialog (recording routine & comparte flag of SE54 or transport option SOBJ)
Regards,
Raymond
06-05-2015 7:46 AM
Hi Priya,
1. First of all if you save your BDC program in TR & moved to production, it will definately ask you for flat file to upload data.
2. If you save your BDC program in local object directory then you can not move it to production without putting it in TR. If you upload data in Development environment then it won't reflect in production even if you transport table's TR in production. You have to upload data there separetely.
But here why are you using BDC program to upload data in single table.
Just use FM 'GUI_UPLOAD' to take file data in ITAB and user Insert statement to pull ITAB data into your Ztable.
Hope it will help you.
Regards,
Keyur Pawar.
06-05-2015 7:52 AM
06-05-2015 8:01 AM
hi priyanka,
yes it wont save.And you are going to run this program in target system,so no need to save this in request.
With regards,
sampath kumar.