‎2009 Mar 19 3:45 AM
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
‎2009 Mar 19 5:46 AM
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...
‎2009 Mar 19 5:46 AM
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...