Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Nov 23, 2011 at 01:33 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Nov 22, 2011 at 08:48 AM

    You can find solutions here:

    Disable input for material text in VA01

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Alan,

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

      Best Regards,

      Sridhar. P

  • avatar image
    Former Member
    Nov 22, 2011 at 09:52 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 22, 2011 at 02:46 PM

    Please try with Function Module READ_TEXT

    G. Lakshmipathi

    Add comment
    10|10000 characters needed characters exceeded