Sei sulla pagina 1di 15

1 Execute transaction SE11

2. Select the Radio Button Domain


3. Give the name of the domain as GRAC_ENVNNT in the input
field next to this radio button
4. Click on the Create Button. It will open up a wizard to
define more parameters for this domain
5. In short Description give it as "Environment"
6. In the Properties tab give the package name as
GRAC_ACCESS_REQUEST.
7. In the "Definition" tab give the data type as CHAR with
length as 3 and Output length also as 3.
8. In the "Value Range" tab enter 3 rows with key value
pairs like the following
Fix Val
Short Description
DEV
Development
PRD
Production
TST
Testing
9. Save and activate this structure by clicking the
appropriate icons
10. Execute transaction SE11.
11. Select the Radio Button
Data Type.
12. Give the name of the data type as
"GRAC_S_API_ASSOCIATED_ROLE_VAL" in the input field
13. Click on the Change Button
14. Navigate to tab titled "Components"
15. Add two more line items to this structure with
following details and press enter
Component
Typing method Component Type
Data
Type Length
MAX_DUR_MONTHS
Types
GRAC_MAX_DURATION_MONTHS INT2
5
MAX_DUR_YEARS Types
GRAC_MAX_DURATION_YEARS
INT2
5
16. Save and activate this structure
17. Execute transaction SE11.
18. Select the Radio Button
Data Type.
19. Give the name of the data type as "GRAC_S_UI_ITEM_DATA"
in the input field
20. Click on the Change Button
21. Navigate to tab titled "Components"
22. Add one more line item to this structure with following
details and press enter
Component
Typing method Component Type Data Type
Length
CALC_VALID_TO Types
GRAC_VALID_TO DATS
8
23. Save and activate this structure
24. Repeat Steps 17 to 21 with only difference that name
of the data type is "GRAC_S_API_REQUEST_BUSROLESNAP".

25. Add one more line item to this structure with following
details and press enter
Component
Typing method Component Type Data Type
Length
ACTUAL_END_DATE
Types
GRAC_VALID_TO DATS
8
26. Save and activate this structure
27. Execute transaction se38
28. Give Program Name as z_2048_acconfig and click on
create button
29. Give some appropriate title or copy same name in title
field .Click Type as "Executable Program" and Save.
30. Copy the code from attached file "Z_2048.txt" into
source of this program and save and activate it
31. Execute this program and configuration parameters shall
be inserted into your table.
32. Repeat Steps 17 to 21 with only difference that name of
the data type is "GRAC_S_REQUEST_BUSROLESNAP".
33. Add one more line item to this structure with following
details and press enter
Component
Typing method Component Type Data Type
Length
ACTUAL_END_DATE
Types
GRAC_VALID_TO DATS
8
34. Save and activate this structure.
35. Execute transaction SE80
36. On Top dropdown select option Web Dynpro Comp/Intf.
37. On Bottom dropdown give name as
GRAC_UIBB_ACCESS_REQUEST
38. Press enter
39. Double click on the node COMPONENTCONTROLLER
40. On right hand side detail pane you will see a tabbed
view
41. Select or double click on tab titled "Attributes"
42. All attributes defined will be seen under this tab.
Click on the change mode on the top menu bar
43. Add following attribute with property "Public" Checked
MT_ROLE_TYPE
GRAC_T_API_RLTYPE
44. Save and Activate the controller

Changes to Add Message Content


1. Execute transaction se91
2. In Input Field for Message Class give the name GRAC_ROLE_MESSAGES.
3. Click on the change button
4. Give the message number as 263 and put the following content for the message
Actual End date can not be earlier than today so is defaulted to today.

5. Save and Activate.


Following are Manual Changes for Component GRAC_UIBB_ADD_DEF

1.

Execute transaction se80 . Navigate to Webdynpro Component View and put the
component name as GRAC_UIBB_ADD_DEF. Press Enter

2. Navigate to Tab titled Context. Go to the root node. right click so that you will get
sub menu .Select the option Create-->Node. Give the node name as
BUS_ROLE_VALIDITY, Dictionary structure as
GRAC_S_API_ROLE_VALIDITY, Cardinality as 1..1 Selection as 0..1.

3. Press save and now select this newly created node. right click on it and choose option
create Using wizard --> followed by Attributes from Component of Structure
.It will open up the structure GRAC_S_API_ROLE_VALIDITY. Select the rows titled
ROLEID,ACTUAL_END_DATE,MAX_DUR_DAYS,MAX_DUR_MONTHS,
MAX_DUR_YEARS and SYSTEM_VALIDITY.

4. Save and activate it and you shall see the node as follows

5. Now open the node Views and navigate to V_BUSVALIDITY_PERIOD. Press the
edit/change icon and then navigate to the tab titled Context on the right hand side .
6. Context tab will display two partitions Viewers Left hand side partition refers to
context of this view and right hand side in general shows the context of component
controller and any associated interface controllers. In our case it should show context
tree of component controller. From the context tree of component controller
grac_uibb_add_def.componentcontroller Select the node
BUS_ROLE_VALIDITY Now keeping he mouse button pressed try to drag and
drop it to left hand side panel at root level of context for view
v_bus_validity_period accept all prompts .The mapping of context will be created
on this action showing a small arrow from bus_role_validity node of the view
towards corresponding node of component controller.

7. Now go back to View Node and open view titled


V_ROLE_VALIDITY and create a node mapping of same node
from component controller to this views context as
mentioned in step 6

8. Save and activate


9. Now go to tab titled Layout and Press edit button in case we are out of change mode.

10. Navigate to tab titled Layout for the same view and add two more UI elements Button and
Transparent Container
Button properties should be as shown in screenshot

11. Transparent container properties should be as shown in screenshot

12. Mapping of visible property mentioned in last 2 steps is done by selecting context nodes
element of the view as shown.

13. Under transparent container created in Step 11 Now create three more child elements
HorizontalGutter, Label and Text View as shown

14. Properties of HG should be as follows

15. Properties of V_P are as follows

16. Properties of TV_BUSROLEVALIDITY are as follows

17. Put following logic inside the newly created action for this view
method onactionsetvalidity .
wd_comp_controller->select_validity_period( ).
endmethod.

18. Now change the component name in left panel input box below the dropdown in which
webdynpro component/interface is selected and press enter to navigate to
grac_uibb_access_request as shown below

19. Navigate to tab titled Context and select the node n_item_data. Click on edit/change if
not in change mode. Now right click and select the option Create using the wizard followed
by Attributes from component of structure. Select the additional attribute CALC_VALID_TO
as shown

Press Activate button


20. Navigate to tab titled attributes and add a new attribute called mv_called_from type
public and data type as String

Save and activate .


21. Double click on component controller and on detail pane select the tab titled Methods
22. Replace the content of methods uploaded in grac_uibb_access_request.zip. File names
are same as method name of the component controller whose source code was not copied
automatically by this note.
23. Open the node titled Custom Controllers . Select EUPController by double clicking on it so
that detail panel gets opened with same details

24. Click on tab titled context and select node n_item_data by double clicking on it. Press
edit/change icon if not in change/edit mode.
25. Right click and select option Update Mapping. Accept the prompt

26. Now you will see new node CALC_VALID_TO added as shown

27. Save and Activate


28. Now click on tab titled Methods
29. Replace the content of methods uploaded in eupcontroller.zip.
File names are same as method name of the component controller whose source code was
not copied automatically by this note.
30. Save and activate

Potrebbero piacerti anche