Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

Insert objects in Transport request from program.

$
0
0

I am trying to insert table entries in a transport request thorugh program.

Program Id :R3TR

Object Id :TABU

 

I have tried FM :  TR_REQUEST_CHOICE, but it is raising exception no 4.

  NO_OBJECTS_APPENDED  = 4

Code Snippet:LL FUNCTION '

CALL FUNCTION 'TR_REQUEST_CHOICE'

     EXPORTING

       IV_SUPPRESS_DIALOG   = 'X'

      IV_REQUEST_TYPES     = 'K'

*     IV_CLI_DEP           = ' '

       IV_REQUEST           = gs_request_header-TRKORR

       IT_E071              = gt_e071

       IT_E071K             = gt_e071k

*     IV_LOCK_OBJECTS      = ' '

*     IV_TITLE             =

*     IV_START_COLUMN      = 3

*     IV_START_ROW         = 7

      IV_WITH_ERROR_LOG    = 'X'

*     IV_NO_OWNER_CHECK    = ' '

*     IV_FOREIGN_REQUEST   = '   '

*     IT_E071K_STR         =

*     IT_OBJ_ENTRIES       =

     IMPORTING

       ES_REQUEST           = gs_request

     EXCEPTIONS

       INVALID_REQUEST      = 1

       INVALID_REQUEST_TYPE = 2

       USER_NOT_OWNER       = 3

       NO_OBJECTS_APPENDED  = 4

       ENQUEUE_ERROR        = 5

       CANCELLED_BY_USER    = 6

       RECURSIVE_CALL       = 7

OTHERS               = 8.


debugger snapshot:

d1.PNG

d2.PNG

d3.PNG

Now, i am trying to achieve same using FM TR_EDIT_CHECK_OBJECTS_KEYS.

It is also raising exception  CANCEL_EDIT_SYSTEM_ERROR

Message:

No key fields are defined for table ZTABL_PROCESSHDR.


Please guide me how to rectify this.


Viewing all articles
Browse latest Browse all 8735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>