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: 

ABAP program for inserting records into table by using CSV file & should lock in TR

Former Member
0 Kudos

Hello To all

I am creating a ABAP program for inserting records into table by using CSV file
but I want those records should lock in TR
( If we insert one by one records using SM30 then we got popup to save entry in TR )


how can I achieve this ?

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Did you try to use the FM associated with table maintenance (Integrating Enhanced Table Maintenance in Customer Developments) The low level FM allows parameter for transport request number.

Create first one with a FM like TR_INSERT_REQUEST_WITH_TASKS or select/create it with a popup with a FM like TRINT_REQUEST_CHOICE.

2 REPLIES 2

raymond_giuseppi
Active Contributor

Did you try to use the FM associated with table maintenance (Integrating Enhanced Table Maintenance in Customer Developments) The low level FM allows parameter for transport request number.

Create first one with a FM like TR_INSERT_REQUEST_WITH_TASKS or select/create it with a popup with a FM like TRINT_REQUEST_CHOICE.

former_member188458
Active Participant

You can try FM -'TR_REQUEST_CHOICE' to add the Table entries in TR , to whichyou pass

it_e071 "PAss table details
it_e071k " PAss Key value For each table entry concatenated

Below link is really good to get a sample code

https://wiki.scn.sap.com/wiki/display/ABAP/Transporting+Table+Entries+in+ABAP+programmatically