Skip to Content
author's profile photo Former Member
Former Member

To add New Custom fields in VA01

Hi All,

I have added a new custom field on the Va01. I want to make this field as display when we go with Tcode VA03 and as a enable mode when we go with Tcode Va01 and Va02.

Please help me out.

Regards

Kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 08:58 AM

    hi,

    try with FORM userexit_field_modification routine in the MV45AFZZ user exit

    IF SY-TCODE = 'VA01' or SY-TCODE = 'VA02'.

    IF SCREEN-NAME = <ieldname>

    SCREEN-INPUT = 1.

    endif.

    else

    screen-input = 0.

    endif.

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      just a slight modification in the code given by sasi...

      IF SY-TCODE = 'VA01' or SY-TCODE = 'VA02'.

      loop at screen.

      IF SCREEN-NAME = <fieldname>

      SCREEN-INPUT = 1.

      endif.

      modify screen.

      endloop.

      else

      loop at screen.

      if screen-name = <fieldname>

      screen-input = 0.

      endif.

      modify screen.

      endloop.

      endif.

      rgds,

      PJ

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 09:06 AM

    You should you the screen 8309 of program SAPMV45A to add custom fields for header data, and screen 8459 of program SAPMV45A for item data.

    These screen are the subscreen of the additional data tabs.

    In the PBO of these screen you can manage input/output attribute by LOOP AT SCREEN/ENDLOOP, for example:

    IF SY-TCODE+3(1) = '3'.

    LOOP AT SCREEN.

    SCREEN-INPUT = 0.

    MODIFY SCREEN.

    ENDLOOP.

    ENDIF.

    Max

    Message was edited by: max bianchi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 09:23 AM

    I would like to add following additions in the logic suggested by Max bianchi .

    loop at screen.

    if screen-name = 'VBAK-NEW_FIELD1'

    screen-input = 1.

    modify screen.

    endif.

    endloop.

    Here NEW_FIELD1 is the new custom field on Va01

    regards

    Sujith

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.