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

FM RS_CORR_INSERT

rohit_trivedi
Product and Topic Expert
Product and Topic Expert
0 Likes
1,427

Dear All,

This is my second post concerning the same question.

I've inserted some entries in a database table. In that report, i also have a transport request number(User enters this on the selection screen, after creating one from se09).

Since this report runs only on DEV system, the appended

entries need to be passed to T and P system.

Now, i need to use this transport request number in my report and associate it with the table in which i've appended the entries. So that changes will be transferred to the subsequent system.

The relevant FM should be RS_CORR_INSERT.

Could you please help what all parameters should i pass?

And have anyone of you came across such situation b4?

Thanks,

Rohit.

2 REPLIES 2
Read only

Former Member
0 Likes
969

Hello Rohit,

The right way to do this is to define the database table as a customizing table ("C") and to create a maintenance dialog.

When you will enter data to that table using the created maintenance dialog, the system will ask you for a change request number automatically.

Sefy.

Read only

Former Member
0 Likes
969

Hi Rohit,

I have used the same function in one of my program

but not to transport table entries for programs.

See my sampl code and hope accordingly u can use for

table entries too.


data: dg_abap_devclass(30) type c.
* related to CORR_INSERT function
data: devclass       like tadir-devclass,
      korrnum        like e070-trkorr,
      author         like  sy-uname,
      transport_key  like  trkey,
      dg_abap(40) type c.

  call function 'RS_CORR_INSERT'
       exporting
            object             = dg_abap  "trdir-name
            object_class       = 'ABAP'  "object_class
            mode               = 'MODIFY'  "operation
            global_lock        = space  "global
            master_language    = 'E'  "trdir-rload
            devclass           = dg_abap_devclass
            korrnum            = space  "korrnum
            extend             = space  "extending
       importing
            transport_key      = transport_key
            korrnum            = korrnum
            devclass           = dg_abap_devclass
       exceptions
            cancelled          = 01
            permission_failure = 02.                        "#EC *
  if sy-subrc >< 0.
    message s130 with trdir-name.
  endif.

  

Hope this will help you.

Thanks&Regards,

Siri.