2006 Sep 07 8:17 AM
i am using the user Exit EXIT_SAPLMEREQ_010 and writing the code
*&---------------------------------------------------------------------*
*& Include ZXM02U12 *
*&---------------------------------------------------------------------*
DATA : v_bukrs TYPE mseg-bukrs.
SELECT SINGLE bukrs INTO v_bukrs FROM aufk
WHERE aufnr = im_t_ebkn-aufnr.it gives the error
"IM_T_EBKN" is a table without a header line and therefore has no component called "AUFNR".
kindly suggest
abhishek
2006 Sep 07 8:29 AM
Hi
im_t_ebkn-aufnr is a table without header line, so:
data: v_ebkn type ebkn.
read table im_t_ebkn into v_ebkn index 1.
SELECT SINGLE bukrs INTO v_bukrs FROM aufk
WHERE aufnr = ebkn-aufnr.
Max
Hi
im_t_ebkn-aufnr is a table without header line, so:
data: v_ebkn type ebkn.
read table im_t_ebkn into v_ebkn index 1.
SELECT SINGLE bukrs INTO v_bukrs FROM aufk
WHERE aufnr = ebkn-aufnr.
Max
2006 Sep 07 8:29 AM
Hi
im_t_ebkn-aufnr is a table without header line, so:
data: v_ebkn type ebkn.
read table im_t_ebkn into v_ebkn index 1.
SELECT SINGLE bukrs INTO v_bukrs FROM aufk
WHERE aufnr = ebkn-aufnr.
Max
2006 Sep 07 8:32 AM
Hi,
The table that you have reffered is a defined as a table type and does not have a header line so you cannot refer to the field in a where clause. you can do 2 things
a) create a Range with reference to the aufnr in the im_t_ebkn and call on the select single with respect to that.
b) try this code
loop at im_t_ebkn assigning <l_field_symbol>
SELECT SINGLE bukrs INTO v_bukrs FROM aufk
WHERE aufnr = <l_field_symbol>-aufnrThis Might solve your error
Anirban M.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |