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

print bps function log

Former Member
0 Likes
449

hi gurus!

i m workin about call a bps function since a transaction, so far so good; but before call bps function i do some abap actions and i save the log (for every action) in order to print (to the user) the number of read , new or changed registers ( I use this varaible for that:

DATA: g_t_logmsg TYPE TABLE OF bal_s_msg

)

What I need to do is to show the log of the bps function the same way the other, but bps function triggers its log on a "it_return" variable

(

it_return TYPE TABLE OF bapiret2 WITH HEADER LINE.

)

so how can i CAST " it_return " to be appened to " g_t_logmsg " in order to print the all log complete?

Regards

Joseph

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
415

Hi,

You need to loop the internal table [array] it_return, and appended it into internal table [array] g_t_logmsg.

Do something like:

data: wa_bal_s_msg type bal_s_msg.

loop at it_return.

wa_bal_s_msg-MSGTY = it_return-BAPI_MTYPE.

wa_bal_s_msg-MSGID = it_return-ID.

  • do the rest for the other component

append wa_bal_s_msg to gt tlogmsg.

endloop.

Regards,

Lim...

1 REPLY 1
Read only

Former Member
0 Likes
416

Hi,

You need to loop the internal table [array] it_return, and appended it into internal table [array] g_t_logmsg.

Do something like:

data: wa_bal_s_msg type bal_s_msg.

loop at it_return.

wa_bal_s_msg-MSGTY = it_return-BAPI_MTYPE.

wa_bal_s_msg-MSGID = it_return-ID.

  • do the rest for the other component

append wa_bal_s_msg to gt tlogmsg.

endloop.

Regards,

Lim...