Application Development and Automation 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: 
Read only

Transport Table entries with custom program

Former Member
0 Likes
1,087

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

8 REPLIES 8
Read only

ThomasZloch
Active Contributor
0 Likes
1,034

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

Read only

0 Likes
1,034

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 ?

Read only

Former Member
0 Likes
1,034

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.

Read only

0 Likes
1,034

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.

Read only

0 Likes
1,034

Hi Gurus,

Does anyone know how to transport the deleted entry using the function module. A an example code will be helpful.

thanks,

Read only

0 Likes
1,034

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

Read only

0 Likes
1,034

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.

Read only

Former Member
0 Likes
1,034

Will have to wait till it moves to quality system to be sure.