on 06-19-2007 2:16 PM
Hi,
I have filled in some program lines for selection of data. The line is:
READ table is_bil_invoice-HD_ADR
with key PARTN_ROLE = 'RE'.
However, this is not possiible as the internal table has no header. How to come around this in Smartforms ?
Thanks in advance.
Hello Peter
Be glad your itab does not have a header line otherwise it might spoil your application. Simply define a <b>workarea</b> for reading table entries, e.g.:
DATA:
ls_invoice LIKE line of is_bil_invoice-hd_adr.
READ TABLE is_bil_invoice-hd_adr INTO ls_invoice
WITH KEY partn_role = 'RE'.
" If you just want to check the existence of an entry use...
READ TABLE is_bil_invoice-hd_adr TRANSPORTING NO FIELDS
WITH KEY partn_role = 'RE'.
IF ( syst-subrc = 0 ).
...
ELSE.
...
ENDIF.
Regards
Uwe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check once whether you have declared the internal table properly in
Global Settings->Global Definitions->Global Data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.