‎2010 Apr 19 2:46 PM
Hi Gurus,
I have a requirement to transport DD table entries using a custom program. I am using the function module TR_REQUEST_CHOICE,
I am using this for the first time. My question is how to transport the deleted rows in the table using this function module. A sample code will be very useful.
Thanks
‎2010 Apr 19 3:53 PM
For sample code I suggest you check the where-used list of this function module.
Per my understanding, the deletion information is being transported via the primary key and the table data inside the transport request: if the key is there but no corresponding data, the entry will be deleted in the target system upon import.
Thomas
‎2010 Apr 20 2:24 PM
I thought the table could hold a row with all fields empty except the key fields ( even the key fields can be blank based on how the table is configured), so do you really think sending a blank line with the key fields filled will delete the entry and not overwrite it ?
‎2010 Apr 20 2:48 PM
Hello!
If you have no experience in programming transport system, I suppose, you shouldn't develop a custom program like you have described. How about creating a maintenance view and including table entries in a transport request in the standard way? Then you could release it and import everywhere you want.
Best regards, Eugene.
‎2010 Apr 20 3:03 PM
Yes, that was my first idea, however we have a lot of other validations and logic built into the program, we are not allowed to modify the table maintenance generated by standard SAP, so the only option that I have left is to build the transport system from the program.
‎2010 Apr 20 6:57 PM
Hi Gurus,
Does anyone know how to transport the deleted entry using the function module. A an example code will be helpful.
thanks,
‎2010 Apr 20 8:35 PM
You're repeating yourself. Actually you don't need to worry how those entries are being transported and deleted in the target system, the transport system does it for you, you just need to fill the key values into your transport and make sure there is no table entry for that key.
Don't keep asking for sample code, research yourself in the SAP system, this function module is being used many times in standard code.
Thomas
‎2010 Apr 20 9:07 PM
Thank you for your reply, unfortunately I do not know as much about SAP as you do but thanks again for taking interest in my query.
‎2010 Apr 20 9:08 PM
Will have to wait till it moves to quality system to be sure.