Skip to Content

Configure field selection for equipment user-fields

Hi everybody.

After follow and deploy the helpful guide from @Jogeswara Rao Kavala available here in SCN (http://scn.sap.com/docs/DOC-54073#), I have one additional question: after creation of user-field, Is it possible, even using ABAP, to configure field selection for the new user field?

I've attached few pictures to make myself clear.

Thanks in advance.

Carlos Araujo

picture_003.jpg (139.9 kB)
picture_002.jpg (23.9 kB)
picture_001.jpg (85.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 12, 2015 at 10:28 PM

    Hello Carlos,

    It is not possible from here (spro). But these requirements can be well met from within the screen-exit itself. i.e. through codes written in the PBO and PAI modules. I have already touched upon this aspect in the same document after Step4 and below Almost done. I have provided a sample code there to make the fields to Display mode if the tcode is 'IE03' .

    • This Display code can be extended to other situations also and to individual z-fields through other IF syntaxes.
    • In the same manner simple codes can make all your Zfields Required (means Mandatory), Hide also.


    For example a code like:

    IF equi-eqtyp = 'A' .
    LOOP AT SCREEN.
    IF screen-name CS 'equi-zzito_zfield'.
    screen-active = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.

    in PBO Module hides the zfield if the Equipment category is 'A' .

    Similarly a code like

    IF equi-eqtyp = 'A' and equi-zzito_zfield IS INITIAL.
    MESSAGE: 'Please fill zfield' TYPE 'I' DISPLAY LIKE 'E'.
    ENDIF.

    in PAI Module will make the Zfield mandatory if the Equipment category is 'A'..

    For making zfields mandatory, I recommend user-exit IEQM0003 . Put the following code in include ZXEQMU02:

    IF data_equi-eqtyp = 'A' and data_equi-zzito_zfield IS INITIAL.
    MESSAGE: 'Please fill zfield' TYPE 'E' DISPLAY LIKE 'I'.
    ENDIF.

    This code makes the Zfield mandatory if the Equipment category is 'A' and stops SAVE event of the Equipment.

    These are tested codes, Adopt it to your situation.

    Regards

    KJogeswaraRao

    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.