Application Development 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: 

To fill Structure

Former Member
0 Kudos
141

hello..

can anyone tell me how to fill a structure with the input parameter?

thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos
103

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???

5 REPLIES 5

Former Member
0 Kudos
104

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???

0 Kudos
103

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..??

0 Kudos
103

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.

Former Member
0 Kudos
103

hi,

C_T_LOG-EBELN   = U_T_EKKO-EBELN.
C_T_LOG-TYPE    = 'I'.
C_T_LOG-NUMBER  = '167'.
C_T_LOG-ID      = 'FMFG'.

Former Member
0 Kudos
103

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.