I have problem in following logic. S_werks is in selection screen.
read statement is always fails.
for example s_werks = 1201. it_z1ychclientid also have 1201 data
READ TABLE it_z1ychclientid WITH KEY
werks = s_werks.
IF sy-subrc = 0.
REPLACE 'PCCCPPPP' WITH it_z1ychclientid-prefix INTO p_pcfile.
CONDENSE p_pcfile NO-GAPS.
ELSE.
MESSAGE text-505 TYPE 'I'.
ENDIF.