cancel
Showing results for 
Search instead for 
Did you mean: 

How to make disable / Inactive Text field / Sales doc.header note in VA02 ?

Former Member
0 Kudos

Dear Experts,

To make text field as mandatory I done the text determination process for Consignment Fill Up (Doc. Type - ZPKB). I done the configuration in SPRO to make it mandatory to maintain in Consignment Fill Up - VA01. Now Client want to restrict the end user to make changes in Texts / Sales document Header Note So, In VA02 Screen the Text field box it has to come in Disable/ Inactive, System should not allow end user to change (in VA02) the maintained text in VA01. Pleas provide me Solution earliest.

Best Regards,

Srikith

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Me not abaper. But I think it should work

Put a stop at line 291 of program: MV45AF0C_CUA_SETZEN

CALL FUNCTION 'SD_FIELD_INPUT_CHECK'

EXPORTING

tabname = 'KUAGV'

fieldname = 'KUNNR'

IMPORTING

display_status = da_subrc.

IF da_subrc NE 0 OR t180-trtyp = chara. <------ Debug and stop here.

cua_exclude-function = fcode_auftraggeber_anlegen.

APPEND cua_exclude.

ENDIF.

Using VA02, go to Header text and when in above line, change da_subrc = 0 and t180-trtyp = A

See if you can get all the text field in Display Mode.

If above works, do you coding properly here by check the screen name = VBEP-BNFPO for item text and VBKD-IHREZ_E for header text.

Please revert your results.

Former Member
0 Kudos

Dear Alan,

Thanks for your reply. Seems it's very helpful but we not implemented. We restricted the end Users from not to change the Description in VA02. We not given access to end user id's. The below coding we used.

IF sy-tcode = 'VA02'.

IF vbak-auart = 'ZPKB'.

DATA: j_message(120).

IF sy-uname = 'xxxxxxx' OR sy-uname = 'xxxxxxxx' OR sy-uname = 'xxxxxxx' OR sy-uname = 'xxxxx''.

ELSE.

MOVE 'You Are Not Authorised To Make Changes In The Document' TO j_message.

MESSAGE j_message TYPE 'E'.

ENDIF.

ENDIF.

ENDIF.

Best Regards,

Srikith

Lakshmipathi
Active Contributor
0 Kudos

Please try with Function Module READ_TEXT

G. Lakshmipathi

Former Member
0 Kudos

Hi,

You need to create a variant using transaction SHD0 for sales order creation and assign the transaction variant to sales order type using transaction VOV8.

Thanks,

Mihir

Former Member
0 Kudos

You can find solutions here:

Former Member
0 Kudos

Dear Alan,

I checked with my ABAPER. The given link does not helped us in this scenario.

Best Regards,

Sridhar. P