‎2007 Sep 05 7:31 AM
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.
‎2007 Sep 05 7:34 AM
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
‎2007 Sep 05 7:35 AM
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
‎2007 Sep 05 7:38 AM
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.
‎2007 Sep 05 8:34 AM
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