‎2008 May 06 12:59 PM
Hi Guy's,
I am struck up at Update the database table using tabstrip control.( Created one push button name save, using this button trying to update the database table)
Please friends help me.
Thanks and Regards,
Sai.
‎2008 May 06 1:13 PM
What is the issue you are facing? Also, please paste the code that is being triggered when you are pressing the SAVE button.
~Sid
‎2008 May 06 1:22 PM
Hi Sid,
MODULE STATUS_0100 OUTPUT.
INSERT INTO HRP1001 values wa_p2.---it is
MODULE USER_COMMAND_0100 INPUT.
WHEN 'SAVE'.
INSERT HRP1001.
Please check the code where i did the mistake.
Thanks and Regards,
Sai.
‎2008 May 06 1:49 PM
Do you have an OK_CODE on the 100 screen?
MODULE USER_COMMAND_0100 INPUT.
CASE ????. " <=== Missing
WHEN 'SAVE'.
INSERT HRP1001.
ENDCASE. " <=== Missing
Have you defined the button with an Fuction Code? Is that FC = 'SAVE' ? Save is usually set in the GUI Status, but it is not limited to just one of this value. You could use SAVE in multiple Event Objects.
‎2008 May 06 1:42 PM
plz check the structure of wa_p2 is same as of db table fields, secondly are you inserting a new record( For new record use INSERT) or updating an existing record (Then use UPDATE).
If you specify a non-table-type work area wa, a row is created from its contents for insertion in the database table. The content of the row to be inserted is taken from the work area wa without taking its data type into consideration and without conversion from left to right according to the structure of the database table
If there is a type mismatch perhaps its being set to initial values.. plz check your db table also for the values after you press enter. Or debug your code to see what value is being transfered.
~Sid