Application Development and Automation 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: 
Read only

PBO Default values assignment problem

Former Member
0 Likes
1,131

Hi,

i am unable to pass the default value to the screen field in the PBO event. How to use the text field in PBO to assign some default value. When i am trying to pass the value using the screen field name it saying field does not exist.

Kindly guide me how to achieve this.

BR,

Rajani

8 REPLIES 8
Read only

Former Member
0 Likes
970

Dear Rajan,

whatever field names u have in the screen, declare with the same name and with same type in the top include.

It will take values automatically

Regards

Sajid

Read only

0 Likes
970

Hi Sajid,

I declared my variable in my top include of new subscreen that i created, but still i am not able to do that.

As this screen is for a screen exit, even after declaring the variable also i am not able to show the default value.

BR,

Rajani

Read only

0 Likes
970

Hi Rajani,

Try declaring the field name in the PBO itself and assign value to it..

sample code:



 DATA: pb_telecit(20) TYPE c.                             

Check your condition here.. (if any)
  IF sy-subrc EQ 0.
    pb_telecit = 'YTEXT'
  
  ENDIF.

Read only

Former Member
0 Likes
970

Hi,

Please check if you have declared the field name in the TOP Include...

Read only

Former Member
0 Likes
970

Hi,

Check if the name of variable defined by you & its corresponding screen name are same. If not, then it will not be displayed.

Regards,

Rajneesh

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
970

Checkwhether the text field is populated with new values or not and not the i/o field.

Read only

Former Member
0 Likes
970

Please maintain the field name in TOP include and use the same field for other screens.

Read only

Former Member
0 Likes
970

Closing my thread.