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

How to make a field in custom screen as display field in screen exit

Hi ,

I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .

Code which i have used .

in PBO

if sy-tcode = 'CO03'.

loop at screen .

if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.

( subscreen - screen name given in screen editor and resb-potx1 field name given in screen editor )

SCREEN-INPUT = '0'.

modify screen.

endif.

endloop.

endif.

and even i tried in PAI too .....

if sy-tcode = 'CO01' or sy-tcode = 'CO02'.

update resb set POTX1 = RESB-POTX1

where aufnr = i_aufnr.

elseif sy-tcode = 'CO03'.

*oop at screen .

*f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.

SCREEN-INPUT = '0'.

modify screen.

endif.

endloop.

endif.

but itshows as input field only ........how to make that custom field as display field in CO03

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 11, 2009 at 03:27 AM

    HI Andy,

    Try this out.

    FIrst check the sy-dynnr, if it is same as your custom screen number

    in PBO of your custom screen

    if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.

    loop at screen

    if screen-name = 'YOUR_SCREEN_NAME'

    screen-input = 0.

    modify screen

    endif

    endloop.

    endif.

    if it wont work they try using Tcode SHD0

    Hope this will serve your purpose.

    Regards

    Ramchander Rao.K

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ramchander ,

      Tried as you told in PBO still the same .........

      what name should be given in screen-name . can u tell me exactly . ( i had given the same name which i had given in screen editor for the screen i designed ) is that correct .

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.