2009 Jan 21 5:58 AM
hello..
can anyone tell me how to fill a structure with the input parameter?
thanks in advance
2009 Jan 21 6:01 AM
parameter:p_input type date.
data:wa type vbak. "structure of type vbak
wa-erdat = p_input. "filled with value
but wat structure u want to fill?can u pls be more clear???
2009 Jan 21 6:01 AM
parameter:p_input type date.
data:wa type vbak. "structure of type vbak
wa-erdat = p_input. "filled with value
but wat structure u want to fill?can u pls be more clear???
2009 Jan 21 6:05 AM
i_str_vddate_range-LOW
i_str_vddate_range-HIGH
this is the str which i need to fill by what is been inputed..
i'e: i_term_range-low
i_term_range-high
how do i proceed..??
2009 Jan 21 6:25 AM
select-options: i_term_range for field.
ranges:i_str_vddate_range for field.
if i_term_range-high is initial.
i_str_vddate_range-sign = 'I'.
i_str_vddate_range-option = 'EQ'.
i_str_vddate_range-low = i_term_range-low .
else.
i_str_vddate_range-sign = 'I'.
i_str_vddate_range-option = 'BT'.
i_str_vddate_range-low = i_term_range-low .
i_str_vddate_range-high = i_term_range-high .
endif.
append i_str_vddate_range.
2009 Jan 21 6:01 AM
hi,
C_T_LOG-EBELN = U_T_EKKO-EBELN.
C_T_LOG-TYPE = 'I'.
C_T_LOG-NUMBER = '167'.
C_T_LOG-ID = 'FMFG'.
2009 Jan 21 6:02 AM
Hi,
I am not getting ur question exactly.
In my understanding, we cant fill the structures using input.
Just creat a internal table using this structure and fetch the values from db table into ur internal table.
Hope this helps u.
thanks.