Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

code

Former Member
0 Likes
289

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.

1 REPLY 1
Read only

Former Member
0 Likes
259

check if table t_data2_temp has header or not?