Hi,
I am working on a report.It is a dialog program.I have to make changes in XK02 transaction.I have created a field called status(lfa1-zzstatus) in this transaction.I have given 4 values for this field(active,balance out,archive,spare parts)When I enter the vendor number,company code(lfb1-sperr) and purchase organisation(lfm1-sperm) in XK02 transaction and select archive from status field,the purchase organisation and company code should be both deleted.Can anyone tell me logic to delete these two fields.I have written the logic to block these two fields when the archive option is selected from status field.How can I frame the logic to delete these 2 fields?I am sending you the logic I have written.
IF lfa1-zzstatus EQ c_ar.
IF RF02K-EKORG IS INITIAL OR
RF02K-BUKRS IS INITIAL.
MESSAGE E000 WITH TEXT-002 TEXT-003 TEXT-004.
ELSE.
LFB1-SPERR = 'X'.
LFM1-SPERm = 'X'.
ENDIF.
ENDIF.
Regards,
Hema