cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Text Fields in User Defined Tab

Former Member
0 Kudos

I would like to know how we can add Text fields in a Tab that we have created in cProjects. At present a blank page opens if we click the Tab.

Regards,

Rajesh Kumar

Accepted Solutions (1)

Accepted Solutions (1)

former_member189058
Active Contributor
0 Kudos

Dear

Rajesh,

you need to create a view in the z-application that is being called for the addiitional tab page.

The view needs to be called in the DO_REQUEST method of the controller that is being used for the additional page.

Regards,

Reema.

Former Member
0 Kudos

Hai Reema,

Thanks. Created a view in the application.

Now how do we call this view in DO_REQUEST. Is there any coding to be written? If yes, can you send me a sample one. The view I have created is in the name of "review.bsp" and the Controller class for this view is "CL_BSP_CONTROLLER".

In case you need more info please tell me.

Regards,

Rajesh Kumar

former_member189058
Active Contributor
0 Kudos

Dear Rajesh

Here is the code that needs to be writen in the DO_REUEST method of your controller.

Data: lr_view TYPE REF TO if_bsp_page.

lr_view = create_view( view_name = 'review.bsp' ).

call_view( lr_view ).

I would suggest you to get more information about MVC architecture and Development using MVC if you really need to do developments of this kind.

Regards

Reema

Pl award appropriate points and close the thread if your queries are answered.

former_member201206
Active Contributor
0 Kudos

Hi Rajesh,

The issue may be not so complicated as you think.

First of all, which cProject release do you have? 3.1 or 4.0.

Both release have customizing to allow the user create his own tabreiter without any codes.

Kind regards,

Zhenbo

Former Member
0 Kudos

Hi Zhenbo,

I am using cProjects 3.1.

Regards,

Rajesh Kumar

former_member189058
Active Contributor
0 Kudos

Rajesh

In cProjects 3.10, in order to add fields from SPRO you need to do the following:

1. Extend the table for which you want to display the additional field, eg if you want to display an additional tab page with certains fileds on the project defintion, extend the table dpr_project. Make sure you include your additional fields in the customer include in the table. It is meant basically for extending the table.

2. Do customization for the node: Global Enhancements for Project elements

Read documentation for the settings.

In case you have aquery pl post back.

Enjoy!!

Regards

Reema.

Former Member
0 Kudos

Hai Reema,

We have already used the enhancement for extending the table and have added few custom defined fields in the "Basic Data Tab" under Project Definition by extending the table DPR_PROJECT. It works fine.

Due to client requirement, now we need to <b><u>relocate these fields to the new tab</u></b> that we have created in Project Definition level.

Already a blank tab page has been created.

Can you pls tell us how to proceed further?

Regards,

Rajesh Kumar

former_member189058
Active Contributor
0 Kudos

Rajesh

Go to SPRO :

SAP Customizing Implementation Guide -> Collaboration Projects -> Collaboration Projects -> Define Field Groups for customer fields

For having a tab page that is visibale only when u r at project definition:

Object Type: DPO (Project Definition)

Field Group ID: (ID) eg ZTAB_DPO

Field Group Name: This will appear as the text on the TAB

Make sure active check box is checked.

Select the entry made above and double click on “Customer Fields for Field Group”.

Customer Field will be the additional fields that you have added in the customer include in the table dpr_projects

Select Mode and Field Type.

Make sure active check box is checked.

Double click on the folder “Field Group as per Project Type”.

Click on new entries.

Select the project Type for which you want the tab to be displayed

Object Type : DPO (Project definiton)

Field Group ID (ZTAB_DPO)

Make sure active check box is checked.

Reema

Pl award appropriate points and close the thread if your queries are answered.

Former Member
0 Kudos

Hi Reema,

THANK YOU very much for providing timely help. The problem has been solved using your guidance.

Thank You once again.

Regards,

Rajesh Kumar

Answers (0)