SAP ABAP - Select Concat Field Value
* SELECT SINGLE belnr, gjahr, STRING_AGG( ebeln, ',' ORDER BY ebeln ASCENDING ) AS ponum
* FROM @lt_inv_po as podata** FROM acdoca
* WHERE bukrs = @<fs_data>-bukrs AND
* belnr = @ls_rdata-belnr AND
* gjahr = @<fs_data>-gjahr AND
** rldnr = '0L' AND
* ebeln <> ''
* GROUP BY belnr, gjahr INTO @DATA(lv_ponum).
*
* ls_rdata-ponum = lv_ponum-ponum.
* CLEAR lv_ponum.
Comments
Post a Comment