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

getting default values in module pool screen

Former Member
0 Likes
5,226

Hi frenz,

I have a requirement like in module pool i am supposed to bring 4 fields from ddic,in which the first two fields should have a default value i.e when the pbo is processed itself the input values should be displayed in first two fields.....can some one help me out to solve the issue.

thanks

prem

Edited by: prem kumar on Jun 19, 2008 1:30 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,279

HI

PBO .fill the required fields with default values ...it will work.........

PBO.

module default_values.

module default_values.

p_datum = sy-taum.

endmodule

6 REPLIES 6
Read only

Former Member
0 Likes
2,280

HI

PBO .fill the required fields with default values ...it will work.........

PBO.

module default_values.

module default_values.

p_datum = sy-taum.

endmodule

Read only

Former Member
0 Likes
2,279

write one module in pbo in that fill fields which need to be displayed

field1 = value.

Read only

former_member784222
Active Participant
0 Likes
2,279

Hi Prem,

Try populating the fields in LOAD-OF-PROGRAM event.

regards,

S. Chandramouli.

Read only

former_member195383
Active Contributor
0 Likes
2,279

suppose u are using field1 field2 on screen...

then in PBO create a module

module def_val.

inside it write.

field1 = '100'.

field2 = '101'.

here 100 and 101 are the default values that u r going to assign....

that will solve ur issue..

rewrd points if the ans is helpful...

Read only

Former Member
0 Likes
2,279

Hi,

When you create the screen...jus double click on the field.There One option will be there : TEXT.

There you can give your default value.

Regards

Sandeep Reddy

Read only

srinivasan_perumal
Discoverer
0 Likes
2,279

Hi,

I also faced this kind of issues like in my case i want to create a new field in the screen 9000 and by default a calculated date needs to be shown to the customer. but when i execute this its not showing the date(its blank). Then what i did is i created a new field in the custom table(eg: zcustomer-zz_validto) and i dragged the field in the screen 9000 and then in module program of PBO i used my logic to pass the date value to the created field zcustomer-zz_validto. Now its working well i hope you also try this for your case.

Thanks & Regards,

Srinivasan Perumal