Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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
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.
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
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
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
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