Application Development and Automation 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: 
Read only

ALv value

Former Member
0 Likes
663

hi,

we are working with OO ALv like kunnr/data1/data2

the three firlds are editable,when we append a new row to the alv and i put a wrong kunnr,the alv display a log with an error indicating that kunnr is wrong ,also another error saying that tha value in data2 is incorrect but data2 has initial value, same happens with data1

any suggestion how to get rid from this problem ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
631

hi

check those field values already there because i think kunnr is primary key or may be all those three fields is primary key

5 REPLIES 5
Read only

Former Member
0 Likes
631

Hi ,

can you please share the code how you are validating the Kunnr.

Read only

Former Member
0 Likes
631

You should declare the fields in which u dont want to get an error i.e. Kunnr etc of type c of the desired length.

At present u must be declaring the internal table which u are pasing to ALV with type kunnr for this field.

Read only

Former Member
0 Likes
632

hi

check those field values already there because i think kunnr is primary key or may be all those three fields is primary key

Read only

Former Member
0 Likes
631

Hi,

I think you are entering the existiong combination of values...ca you please chekc that

regards,

Rama reddy

Read only

Former Member
0 Likes
631

hi antony

In OOPS world u have to use Event handler for class "cl_gui_alv_grid" and event name is "print_top_of_page".

or you may refer the thread link as a reference for solving your problem

Regards

Saurabh goel