cancel
Showing results for 
Search instead for 
Did you mean: 

One field gets cleared from ALV to internal table

Former Member
0 Kudos

I have an ALV grid in a view in which i append a row and add some data. This is giving me a very strange problem.

I appended a row in the ALV and then filled up the data in the row. I filled three fields, two of them dates and one a decimal field. Then i saved this data. No problems here.

Now the next time i come on this ALV grid view, i see the previously saved row. I now append another row and fill in some data again. This is where the surprise comes. Out of the two date fields, the first date field is losing its value and is getting cleared when i get the ALV data in an internal table...(using the following code)

node_et_indices_1->get_static_attributes_table( IMPORTING table = lt_indice ).

the lt_indice has the following structure...

field type

MANDT MANDT

BUKRS BUKRS

ZZINDICE ZEAGR_INDICE

ZZITEM CHAR3

ZZDESC CHAR40

ZZINVAL DATS 8

ZZFIMVAL DATS 8

ZZVATR DEC

ZZUATR DEC

ERNAM ERNAM

AEDAT AEDAT

ZCORRIG CHAR1

WAERS WAERS

________________

out of these, the fields zzinval, zzfimval and zzvatr are being populated from webdynpro and the rest of the fields (including the key fields) are populated in the internal table later and then saved to the database.

After executing the above statement, the value in ZZINVAL is 00000000, while on the screen i have entered 01.02.2007. The same does not apply to ZZFIMVAL which holds the value 28.02.2007 as entered on the screen. ZZVATR also holds the correct value entered.

Any ideas why only one of the fields might be getting cleared like this?

The problem does not occur when i am saving only a single row from the ALV.

Please help!!

regards,

Priyank

______________________________

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have checked that the node itself is not containing the value.

How and what can i check for this. I have mapped the ALV in different views similarly and they are working?

Any ideas on where can i check ??

regards,

Priyank