Skip to Content
0
Mar 31, 2020 at 05:02 AM

SLT Additional Field Binding in Include Program

99 Views Last edit Mar 31, 2020 at 05:03 AM 2 rev

Hi Expert,

i have one extra column called INSERT_TS where the value will get from logging table field -IUUC_TIMESTAMP.

I am using rule assignment of event-related with assignment type - BOR and include below program.

ASSIGN ('<WA_R_ZTMDG_ECHO_TEST>') TO <ls_record>.
ASSIGN ('_WA_IO_S_LOGTAB-IUUC_TIMESTAMP') TO <lv_timestamp>.

IF sy-subrc = 0.
ASSIGN COMPONENT 'INSERT_TS' OF STRUCTURE <ls_record> TO <lv_insert>.
IF sy-subrc = 0.
<lv_insert> = <lv_timestamp>.
ENDIF.
ENDIF.

Is there any solution to bind the field without assign component of the INSERT_TS to the structure of receiver work area?

The purpose is to exclude any hard coded table name (in my case -ZTMDG_ECHO_TEST) inside the program as we have more that one table that will use this template.

Thanks & Rgds,

Jessica