Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to move dynamic values and show on the screen in output only field

Former Member
0 Kudos
198

how to move dynamic values to the output only field so that you can change it and show what y want to show on the screen. how this functionality is implemented in pbo

8 REPLIES 8

Former Member
0 Kudos
99

if u want to make a display only field as input field ...

den in pbo..

do...

LOOP AT SCREEN.

IF field is initial. "condition

IF screen-name = 'FIELD'. "display only field name.

screen-input = 1.

ENDIF.

endif.

modify screen.

ENDLOOP.

Former Member
0 Kudos
99

Hi,

Write your requirement clearly to get it resolved.

based on your condition, set

field = value. (ur dynamic value).

Thanks,

Srilakshmi.

0 Kudos
99

ia m again reiteterating my requirement

i ahve a screen where i have one field which is output only

now what i want is to show different texts in that field based on the t-code(custom).

for example if i entert-code 'zcreate' that field should show create and if i enter t-code as'zdisplay' that field should show diplay when i call the screen. i want this processing in my pbo

0 Kudos
99

just pass the value in pbo...

PBO.

MODULE FILL.

MODULE fill.

If tcode = 'ZCREATE'.

v_text = text-001. "Create

elseif tcode = 'ZDISP'

v_text = text-002. "Display

ENDIF.

ENDMODULE.

0 Kudos
99

what is v_text here my field name is PROCESSK I.E SCREEN-NAME='PROCESSK'

0 Kudos
99

In pbo, code like below,

loop at screen.

if tcode = 'ZCREATE'.

if screen-name = 'PROCESSK'.

processk = 'Create'.

modify screen.

endif.

elseif tcode = 'ZDISPLAY'.

if screen-name = 'PROCESSK'.

processk = 'Display'.

modify screen.

endif.

endif.

endloop.

Thanks,

Srilakshmi.

0 Kudos
99

MODULE fill.

If tcode = 'ZCREATE'.

processk = text-001. "Create

elseif tcode = 'ZDISP'

processk = text-002. "Display

ENDIF.

ENDMODULE.

Former Member
0 Kudos
99

THANKS