cancel
Showing results for 
Search instead for 
Did you mean: 

Gray-Out custom field in VA02 Schedule line.

1,230

Hi Everyone.

I brought a custom Date field in Sales Order Creation(VA01), Edit(VA02) & Display(VA03) by appending Zstructure to VBEP table. and successfully data entry is done through VA01.

But I want to Make it Gray-out in VA02 if i get a value in z custom field in schedule line. (it should not be editable in VA02).

1). I tried in include : MV45AFZZ by sending screen-input = 0.

2). Even I tried giving screen-input = 0 in Table Control : TCTRL_PEIN in Screen Number 4500 in (MODULE:FELDAUSWAHL) in main program SAPMV45A .

Please Help me How to find out the solution to gray-out a zcustom field in schedule line in VA02.

.

Accepted Solutions (1)

Accepted Solutions (1)

Yes I got it.

in MV45AFZZ - USEREXIT_FIELD_MODIFICATION, i added code like this...

IF XVBEP-etenr is not INITIAL and
XVBEP-zzrevised_date is NOT INITIAL and
screen-name = 'VBEP-ZZREVISED_DATE' and
( SY-TCODE EQ 'VA02' OR SY-TCODE EQ 'VA32') .
IF XVBEP-zzrevised_date is NOT INITIAL.
if screen-name = 'VBEP-ZZREVISED_DATE'.
screen-input = 0.
modify screen.
endif.
endif .
ENDIF.

And.... in SAPMV45A - screen number 4500 - Layout, maintain your group2 as "L00" than its done.

thanks for All experts.

Sandra_Rossi
Active Contributor
0 Kudos

And thanks for the feedback!

Answers (1)

Answers (1)

0 Kudos

Yes z001603 Those fields I appended to Standard VBEP table.

Sandra_Rossi
Active Contributor
0 Kudos

Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

0 Kudos

OK got it. New to this posting session. Now i got it.