Skip to Content
0
Former Member
Feb 16, 2009 at 07:06 AM

How to WRITE a work area of type GLPCT into a list in ECC6.0?

17 Views

Hi,

I need to wirte a workarea of type glpct as output in the list in ECC6.0. I dont want to include all the 105 fields in the structure in the WRITE statement. Please find the sample code (errored) below.I need your valuable suggestions to simplify this case.

Note : (In ECC6.0 it is not allowing us to write the structured workarea directly on the list.)

DATA : wa_glpct TYPE glpct,

wa_str TYPE string.

SELECT * FROM glpct INTO wa_glpct UP TO 1 ROWS.

MOVE wa_glpct TO wa_str.

ENDSELECT.

IF sy-subrc EQ 0.

WRITE : wa_str.

ENDIF.