Skip to Content
0
Oct 30, 2012 at 01:11 AM

Regarding end routine

129 Views

Hi gurus,

I am uploading from dso into info cube

and my requirement is to change some caldays from bill date and sales doc number.

I put the code below into end routine part.

Data: wa_result_fields LIKE _ty_s_TG_1.

if BILL_DATE = '20.09.1208' and BILL_NUM = '0091360669'.

wa_result_fields-calday = '05.01.2010'.

endif.

if BILL_DATE = '20.09.1208' and BILL_NUM = '0091360701'.

wa_result_fields-calday = '05.01.2010'.

endif.

if BILL_DATE = '20.09.1208' and BILL_NUM = '0091360683'.

wa_result_fields-calday = '05.01.2010'.

endif.

the error message ın the ABAP edıtor is as below

E: Field "_TY_S_TG_1" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.

I would wonder why this code does have error and whether it works fine when updating the cube..

Regards.

Eddy.