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

Problem with the date field in Table Control

Former Member
0 Likes
597

I have created a table control in my module programming. One of the column in the table control is a date field which is I/O field.

Now if I enter a value in date field column and hit enter the date field is reset. I dont want the field to get reset and accept valid date field.

I have set type of the column as DATS and I havent used any dictionary fields. The column is from the internal table in the program.

Please suggest

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
505

In your PAI, in the LOOP AT <itab> did you

- check date validity

- update internal table

* Sample
LOOP AT itab.
  FIELD itab-field MODULE checkfield.
  MODULE updateitab.
ENDLOOP.

Look also at SAP documentation like [Table Controls|http://help.sap.com/abapdocu/en/ABENTABLE_CONTROL1_ABEXA.htm] or [Table Controls in ABAP Programs|http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac9f35c111d1829f0000e829fbfe/frameset.htm]

Regards,

Raymond

I have created a table control in my module programming. One of the column in the table control is a date field which is I/O field.

Now if I enter a value in date field column and hit enter the date field is reset. I dont want the field to get reset and accept valid date field.

I have set type of the column as DATS and I havent used any dictionary fields. The column is from the internal table in the program.

Please suggest

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
506

In your PAI, in the LOOP AT <itab> did you

- check date validity

- update internal table

* Sample
LOOP AT itab.
  FIELD itab-field MODULE checkfield.
  MODULE updateitab.
ENDLOOP.

Look also at SAP documentation like [Table Controls|http://help.sap.com/abapdocu/en/ABENTABLE_CONTROL1_ABEXA.htm] or [Table Controls in ABAP Programs|http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac9f35c111d1829f0000e829fbfe/frameset.htm]

Regards,

Raymond

Read only

Former Member
0 Likes
505

the code which you pasted in PAI is not working. It throws out an error saying itab is not defined.