cancel
Showing results for 
Search instead for 
Did you mean: 

Entering Data in Table (ABAP Web Dynpro )

knitinkumarsethy
Explorer
0 Kudos

Hi Experts,

I need help in ABAP Web Dynpro Table. I have a table where multiple line item rows are there.

In each row there is a input text field to enter the quantity. Usually the the user would not click the lead selection and enter the field value. The user would enter the value in any of the rows, but the lead selection will not change accordingly. therefore the validation will not work properly.

Kindly guide me the way.

Regards,

Nitin.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Have you got any buttons in teh view...yes you are right..One thing you do..do all the validations in the button handler...

Or else..

There is a context change log right....In teh modufyview...try to usethis change log method and throw the error....

But this would be tedious...

Regards,

Lekha.

Answers (1)

Answers (1)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If you have any button in the view,suppose like save or before leaving that particular view ypu can do the validations.

if you have a button.

What you can do is ,on action handler of button

Read the table and loop through it and do the validations.

CALL METHOD lo_nd_sap_prj_experience->get_static_attributes_table

IMPORTING

table = lt_sap_prj_experience.

LOOP AT lt_sap_prj_experience INTO ls_sap_prj_experience .

If ls_sap_prj_experience-data is ''. "write your condition here.

CALL METHOD lo_message_manager->report_error_message

EXPORTING

message_text = mesg.

Endif.

Priya