10-19-2006 10:02 AM
hi to all
help me in this issue
in the selection screen two input parameters currency and text are there when the user enters these fields these should be update in ztable.
thanks in advance
kiran kumar
10-19-2006 10:06 AM
hi Kiran,
If i have understood your question correctly ..
do this way ..
if not ( p_curr is initial ) or
( p_text is initial ).
ztable-field = value.
modify ztable.
endif.
REgards,
Santosh
10-19-2006 10:03 AM
move these parameters into corresponding fields of ZTABLE and use MODIFY ZTABLE .
10-19-2006 10:06 AM
hi Kiran,
If i have understood your question correctly ..
do this way ..
if not ( p_curr is initial ) or
( p_text is initial ).
ztable-field = value.
modify ztable.
endif.
REgards,
Santosh
10-19-2006 10:06 AM
move these parameters into corresponding fields of ZTABLE work area and use MODIFY ZTABLE .
**use key fields also for modify/update.
Ramesh
10-19-2006 10:13 AM
Execute below code. It will help you.
start-of-selection.
read table ztable into wa_ztable with key <key1> = <value1>.
if sy-subrc = 0.
if p_curr is not initial and p_text is not initial.
wa_ztable-curr = p_curr.
wa_ztable-text = p_text.
modify ztable from wa_ztable.
endif.
endif.
Make sure currency and text fields have proper formats.
Let me know if you have any further queries.
Don't forget to mark helpful answers!
Gaurav Parmar.
10-19-2006 10:29 AM
hi
good
its simple ya select those two field value using the selet statement and update the data base table accordingly.
thanks
mrytyun^