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

dialog programming

Former Member
0 Likes
326

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

1 REPLY 1
Read only

Former Member
0 Likes
307

Hi Hema,

Delete these fields mean clear the values of these fields.

put this code on PAI of the specific screen:

IF LFA1-ZZSTATUS EQ 'ACTIVE'

LFA1-EKORG = SPACE "or repective structure's EKORG

LFB1-BUKRS = SPACE "or repective structure's BUKRS

ENDIF.

Hope it will solve ur problem.

Regards

Krishnendu