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

regarding application in module pool program

Former Member
0 Likes
657

Hi...

suppose i have one application i.e.'yvtrans' is the transaction code for that applicaton.if i execute this transaction i will see the default values on each field of this application.how to code for this requirement,

thanks and regards,

k.swaminath reddy.

4 REPLIES 4
Read only

Former Member
0 Likes
638

Hi Swaminath,

Do u want to see the default vales in the application or u dont want to have that.

Please be clear with the requirement.

Regards,

Prasad

Read only

Former Member
0 Likes
638

Hi Swaminath,

Initialize the fields with particular values in INITIALIZATION event.

INITIALIZATION.

P_matnr = '0000000000000012'.

P_mtart = 'FERT'.

When will u execute the transaction you will get these vales as default on ur screen.

Regards,

Hemant

Read only

Former Member
0 Likes
638

HI,

do like this.

tables:mara.

parameters:param(10).

select-options:sel_opt for mara-matnr.

<b>initialization.

if sy-tcode = 'YVTRANS'.

param = 'abc'.

sel_opt-low = '1'.

sel_opt-high = '100'.

sel_opt-option = 'BT'.

sel_opt-sign = 'I'.

append sel_opt.

endif.

</b>

<b>reward if helpful</b>

rgds,

bharat.

Read only

Former Member
0 Likes
638

while defining the selection screen itself ....declare the value using Default keyword

ex:

SELECT-OPTIONS:s_matnr FOR ekpo-matnr default 'xyz'

Thanks and Best Regards,

Vinoth