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

bdc

Former Member
0 Likes
573

hello sap gurus,

Can any one tell me how we come to know whether call transaction processed or not ?

if the system suddenly crushed how we know it processed or not ?

regards,

vijaya.

7 REPLIES 7
Read only

Former Member
0 Likes
555

Hi

Each call transaction gives you the message back in the message table. Due to you call transaction, some document has been created or changed.

Try to search for the message with type 'S' and has the same message number which is getting triggered when you have created the document.

Regards

Divya

Read only

Former Member
0 Likes
555

hi,

You can Check the status of the CALL Transaction Method by using BDCMSGCOLL structure.

The Messages are stored in the table type of BDCMSGCOLL.

You can Retrieve those messages and check the status.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
555

This message was moderated.

Read only

Former Member
0 Likes
555

Can any one tell me how we come to know whether call transaction processed or not ?

if the system suddenly crushed how we know it processed or not ?

what do you mean by system crushed?is it for proccesing abort?if yes than see the transaction for which you created BDC else see BDCMSGCOLL table for message.

Amit.

Read only

Former Member
0 Likes
555

Hii!

To get the information about success or failure of call transaction

You have to declare a workarea and internal table of type bdcmsgcoll in your program. All the messages will be stored in this internal table.

and call the transaction in this way


CALL TRANSACTION '<tcode>' USING t_bdcdata MODE 'N' MESSAGES INTO <internal_tab>.

Now loop the internal table of type bdcmsgcoll and within it call the function

FORMAT_MESSAGE


LOOP AT <internal_tab INTO <workarea>.
  CALL FUNCTION 'FORMAT_MESSAGE'
   EXPORTING
     id              = fs_msg-msgid
     lang            = sy-langu
     no              = fs_msg-msgnr
     v1              = fs_msg-msgv1
     v2              = fs_msg-msgv2
     v3              = fs_msg-msgv3
     v4              = fs_msg-msgv4
   IMPORTING
     msg             = w_msg
 EXCEPTIONS
   NOT_FOUND       = 1
   OTHERS          = 2
            .
  IF sy-subrc <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  WRITE: / w_msg.
ENDLOOP.

Regards

Abhijeet

Read only

Former Member
0 Likes
555

Hi Vijaya,

We can get the information regarding CALL TRANSACTION from the message table of tyep BDCMSGCOLL.

All types of messages are stored in the table type of BDCMSGCOLL.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
555

Hi Vijaya.

I would like to suggest,

I cannot judge the situation with respect to system crash.

But, The Transaction - STAD - Workload Monitor

Helps in getting the Time, Memory used, Transfer bytes as well as the detailed analysis in relation with Transaction also.

The log file details can be downloaded by the DOWNLOAD button in Text file.

Hope that's usefull.

Good Luck & Regards.

Harsh Dave