Customising, form entry, smartform, internal table
I need a suggestion....
We have a standard program to call a smartform when invoked from customising. This program can be called from anywhere so there is no data being passed to it. All data selection should be done within the smartform.
Program: ... form entry using pi_ret type SYSUBRC pi_scr type c. ... call function 'SSF_FUNCTION_MODULE_NAME'..... call function fm_name.... endform
This works fine in most cases but....not always.
if we get 5 HU's, using VL74 the smartform is called 5 times.
Within the smartform we get the data with, e.g.
DATA: l_char(23) TYPE c. FIELD-SYMBOLS : <temp> TYPE ANY TABLE. l_char = '(SAPLKKBL)T_OUTTAB'. ASSIGN (l_char) TO <temp>.
so, now <temp> refers to an internal table with 5 HU's but, as the SF is going to be called 5 times, we only want to process one line of the table.
So, how do I know each time I come into the SF which HU to print?
Is there a way, using <temp> to delete the actual line processed in '(SAPLKKBL)T_OUTTAB'?
Should I use import/export to memory?