Skip to Content
0
Former Member
May 30, 2008 at 06:48 AM

Error when Updating Ztable.....

45 Views

Hi,

i am trying to update one ztable by uploading data from flat file. the data was uploading correctly into the internal table.

But it was not inserting into the ztable and when the MANDT field was empty in the WA_RDATA i wrote the following logic to update the client number but it was showing error(STATEMENT "WA_RDATA-MANDT" is not defined. Check your spelling....).

WA_RDATA and IT_RDATA was similar to ZTFI_KHALIX table.

Can any one let me know why this error was coming and also why the Ztable was not inserting.

LOOP AT it_rdata INTO wa_rdata.

IF wa_rdata-mandt EQ space.

wa_rdata-mandt eq sy-mandt.

ENDIF.

break rtarpatl.

IF sy-subrc EQ 0.

INSERT into ztfi_khalix values wa_rdata.

ENDIF.

ENDLOOP.

Thanks & Regards,

Ramana