‎2007 Jan 19 11:00 AM
HI,
<b> IF sy-subrc = 0.
t_data2_temp-vsbed = w_sales-vsbed.
IF w_sales-augru EQ 'Z47'.
t_data2_temp-zzconfdate = w_sales-zzconfdate_c.
ELSE.
t_data2_temp-zzconfdate = w_sales-zzconfdate.
ENDIF .
t_data2_temp-kwmeng = w_sales-kwmeng.
MODIFY t_data2_temp TRANSPORTING vsbed
zzconfdate
kwmeng
WHERE s_vbeln = t_z0co_so_link-vbeln.
ENDIF.</b>
This is the code i used in my program.
here the problem is with <b>if</b>
actually it is not showing any error when i check it but when i press the pretty printer a window is popup with information there is a syntax-error.
when i commented the following lines
<b>IF w_sales-augru EQ 'Z47'.
t_data2_temp-zzconfdate = w_sales-zzconfdate_c.
ELSE.
t_data2_temp-zzconfdate = w_sales-zzconfdate.
ENDIF .</b>
it is not showing any error and pretty printer also working fine.
Please tell me what is the problem in the if statement which i used in the mentioned code.
‎2007 Jan 19 11:11 AM