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

grey standard field

Hello,

I have a problem in which i have to grey either of the field kunnr or lifnr in a table maintenance generator of a ztable. If a user starts entering in kunnr then lifnr should be greyed or vice versa.

<priority set to normal by moderator>.

Thanks!!!

Edited by: Thomas Zloch on Sep 11, 2011 7:40 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2011 at 05:52 PM

    Hi

    I think you need to change the PBO of the screen generated by maintenance program generator: here you can insert a your own module into the loop of table control:

    LOOP AT EXTRACT.
      MODULE MY_LOOP_SCREEN.
    ENDLOOP.

    MODULE MY_LOOP_SCREEN.
       
       CHECK NOT <ZTABLE>-LIFNR IS INITIAL OR NOT <ZTABLE>-KUNNR IS INITIAL.
    
      IF NOT <ZTABLE>-LIFNR IS INITIAL.
        LOOP AT SCREEN.
           CHECK SCREEN-NAME = '<ZTABLE>-KUNNR'.
           SCREEN-INPUT = 0.
           MODIFY SCREEN.
       ENDLOOP.
      ENDIF.
    
      IF NOT <ZTABLE>-KUNNR IS INITIAL.
        LOOP AT SCREEN.
           CHECK SCREEN-NAME = '<ZTABLE>-LIFNR'.
           SCREEN-INPUT = 0.
           MODIFY SCREEN.
       ENDLOOP.
      ENDIF.
    
    
    ENDMODULE.

    But I think you need a validation in order to check the user doesn't fill both fields (KUNNR and LIFNR)

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 12, 2011 at 09:52 AM

    Hi,

    Check this article : [Dynamically Enable / Disable Fields in TMG|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80b077d7-5317-2e10-8db8-aaf6921ced4a]

    hope this helps u.,

    Thanks & Regards,

    Kiran

    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.