cancel
Showing results for 
Search instead for 
Did you mean: 

Cats webdynpro : Set working time in timesheet table for weekly view tab

Former Member
0 Kudos

Hi all,

I was trying to default the daily working hour for current logged in day in the Timesheet table.

I got the webdynpro project created from ess/cats and checked out the necessary files for modification.

But when I went into the component VcCatRecordEntry->VcCatTableWeek(View)-Layout, its empty which tells me that timesheet table is created dynamically.How can I set default value to a table that is created dynamically.I found it bit hard to understand the flow of implementation.Please help.

Thanks

Anjana

Accepted Solutions (0)

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

>

> Hi all,

> But when I went into the component VcCatRecordEntry->VcCatTableWeek(View)-Layout, its empty which tells me that timesheet table is created dynamically.How can I set default value to a table that is created dynamically.I found it bit hard to understand the flow of implementation.Please help.

> Thanks

> Anjana

The dataEntry table is actually built in the ListViewerSlim.Java.. it is not a WebDynpro Component as such & you can find it under the src>packages> of the ess~cat Dc..

I would suggest you try to default the values thru' th CAts User exits instead of making changes to the frontend.. this WebDynpro is very very different form the other ESS stuff..

~Suresh

Former Member
0 Kudos

Hi Suresh,

Thanks for your valuable inputs. I went and looked into the java file and found bit different.I dont see how they are getting the column headers like Saturday,Sunday,Monday...

Basically I need to keep one 'Submit' button on top of my table and on click, it should populate 8 hrs in the correspounding column.For eg. if its monday, it should default 8 hrs in monday column so that user dont have to manually type it in and also save these working hrs in the backend system without further click on 'Save' or 'Review'.

I still need to check with the ABAPers regading the user exit.

Also, Is it possible if I create a custom webdynpro application where I can use a BAPI that takes in the current day from my webdynpro and update the cats database and send an export parameter with success or error message.

Thanks

Anjana

suresh_datti
Active Contributor
0 Kudos

BY getting rid of Save/Review you will be missing the Data Validations that occur before CATSDB is updated. Also I don't quite understand the need for a custom WebDynpro.. anyway, you can definitely do it using a BAPI to update CATSDB.

~Suresh

Former Member
0 Kudos

Hi Suresh,

As I understand that CATSDB update is possible with custom BAPI, for my requirement(default 8hrs on timesheet table on 'Submit' button and save it in the backend CATSDB) can I create a new button 'Submit' on top of timesheet table in webdynpro and in actionhandler of that button execute the BAPI to update the CATSDB with 8hrs for the current loggen in user for that day?( In this case I may not able to default 8hrs in the timesheet table.)

Right now I dont have any model in my VcCatRecordEntry Component. Can i create a new model in this component and execute the BAPI to update the CATSDB with 8hrs and display a 'Data saved successfully' message to the end user.Please advice.

Thanks

Anjana