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

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

Former Member
0 Likes
1,233

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
Read only

RaymondGiuseppi
Active Contributor
931

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
Read only

RaymondGiuseppi
Active Contributor
932

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.

Read only

former_member188458
Active Participant
931

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