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

default values in module pool

Former Member
0 Likes
2,556

Hi all,

I am developing one module pool program.There are 2 screens in this object.In the first screen there are four fields.One of the field is order type.In this order type field i one to set FD as default value,so that when this screen comes up then FD will be in order type field.How I can do that?

Waiting for your response.

Thanks in advance.

Raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,319

Hi,

Try it:

parameters: p_ordertype type ordertype default 'FD'.

Regards,

Chris Gu

5 REPLIES 5
Read only

Former Member
0 Likes
1,319

Hi,

In the PBO assign the default value to the screen field declared in the program.

Regards,

Midhun Abraham

Read only

Former Member
0 Likes
1,319

you can set this in the PBO module.

check if the field is initial and set the values based on it.

Eg:-

if ordertype is initial. "Initially if there is no value in the field 'Ordertype'

ordertype = 'FD'.

endif.

Read only

Former Member
0 Likes
1,319

Hi,default the value in the PBO of that screen,like :


Module PBO_OUT.
w_order = 'FD'. " Order type
endmodule.

Thanks & regards,

Rock.

Read only

Former Member
0 Likes
1,319

Hi

You can asiign the defualt value in the PBO of your module pool.

Regards

Neha

Read only

Former Member
0 Likes
1,320

Hi,

Try it:

parameters: p_ordertype type ordertype default 'FD'.

Regards,

Chris Gu