How to create a basic WebDynpro alv

Double-click on WD application.

 1

Enter component name on the following screen.

 2

Double-click on ‘COMPONENT CONTROLLER’ and click on ‘PROPERTIES’ tab

Click ‘Create Controller Usage’ button.

Select two components on the following screen.

 3

Create node at Component Controller Contex.

Double-Click on Interface Controller Usage.

 4

Click on ‘Controller Usage’ button on the following screen.

Drag and drop your node from Component Controller to Interface Controller.

 5

Create a ViewContainerUIElement on layout.

 6

Go to your defined Window and Create an ‘Embed View’ to your view.

 7

 8

Open your view’s WDOINIT method and write the following codes.

  datalo_node type ref to if_wd_context_node.

  datait_aoz type standard table of if_v_main=>element_aoz_table,

        is_aoz like line of it_aoz.

  select from zanil

  into corresponding fields of table it_aoz.

  lo_node wd_context->get_child_nodename ‘AOZ_TABLE’).

  lo_node->bind_tableit_aoz ).

 10

How to export table values to excel in WebDynpro

Create a button named ‘Export to excel’.

Define an action to your button.

clip_image001

Result:

clip_image003.jpg

clip_image005

Click here to see full code.

How to use ‘Container Operation’ in SAP WF

Create 3 Workflow Container Elements.

I_CURR: Current Quantity of Apples at shopping bag

I_USED:  Quantity that client used apples.

I_REMAIN:  Quantity of how many apples remains at client’s shopping bag.

Create container element ‘I_CURR’

 1

Set Import Parameter and Mandatory ‘X’.

 2

Do the same operation for I_USED

Set Import Parameter and Mandatory ‘X’.

Create container element I_REMAIN .

 3

Mark Export parameter ‘X’

 4

Create ‘Container Operation’

 5.jpg

Fill your expression fields like in the following screen

 6

How to create ‘Condition’ step on SAP Workflow

Click on the link to learn creating a basic workflow.

Create a condition step on your workflow

1

If you don’t know to create a container element, please click here.

Click on ‘Click here to create a new condition’

Double-click on  following page at data container.

My container name is ELEMENT_TEST

2.jpg

Then click on ‘=’ and write your value in Constant input field.

Click on OKAY button or press enter.

3

4