How to insert internal table values into SAP Workflow Mail Body

Go transaction SWDD.

 

If you want to create a basic workflow, click on link.

Create a container element named ‘I_TABLE’.

 1

Open properties tab and select  Import, Export(not necessary) and Multiline parameters

 2

If you want to add specific values, open Initial Values tab, enter values.

 3

Copy your mail task number.

 4.jpg

Go transaction PFTC

Paste your task number and remove ‘TS’.

 5

Click on ‘Change’ button.

Open Container Tab and Click button Create.

Fill required fields like below

 6

Save changes and return to your workflow.

Under the body part of screen, click on Insert Expression button

 7

Select I_TABLE on the following screen

 8.jpg

Go transaction SBWP to look at your INBOX.

How to create ‘Container Element’ in SAP Workflow

This post gives information about creating ‘Container Element’ in workflow and use in expressions.

Double-Click to Create Button

 1

Fill required fields like in the following screen.

 2

Click on ‘Insert Expression’ button

3.jpg

Select created container.

 4

Then expression will be like:

 5

Press F8 to execute and enter zanil container parameter as you wish.

How to design a basic workflow in SAP

Go transaction SWDD

Enter your WF name and press ctrl+shift+f5 to create.

Following screen will be like:

1.jpg

Double-Click on ‘Undefined’ Step and Click on ‘User Decision’

2.jpg

Fill blank places required in the following screen. Then Press ‘Okay’.

3.jpg

We are going to add a mail after accept action.

Right-Click on ‘ACCEPT’ and click ‘Create…’

4

Select ‘Send Mail’

5

Fill ‘Subject’, ‘Body’ and click on Okay Icon.

6

Enter abbreviation and name of the workflow on the opening pop-up screen

Save and Activate application then press F8 to start.

Go to transaction SBWP

Make your last decision.

7

How to open debugger mode from txt file

If you can’t use “/h”, you can open debug mode by creating a txt file.

Firstly, open a txt file and write the codes below in.

1

 

[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand

 

Save txt file and exit.

Drag txt file and drop on pop up screen.

Debegger mode is  now switched on.

Dynamic Progress Indicator

This code provides user awareness about progress percentages.

Result:

 1

Code:

 

report  zanil   .

* SAP Progress BAR Example

data lt_bkpf       type table of bkpf      .

data ls_bkpf       type bkpf               .

data lv_lines      type i                  .

data lv_per        type i                  .

data dynamic_per   type p                  .

data lv_dy_per(3)                          .

data lv_text(40)                           .

startofselection.

  select from bkpf into table lt_bkpf   .

  describe table lt_bkpf lines lv_lines   .

  loop at lt_bkpf into ls_bkpf.

    wait up to seconds.

    clear dynamic_per.

    dynamic_per 100 sytabix / lv_lines ).

    lv_dy_per dynamic_per.

    shift lv_dy_per left deleting leading ‘ ‘.

    concatenate lv_dy_per ‘% Completed’ into lv_text.

    if dynamic_per gt lv_per or sytabix eq 1.

    call function ‘SAPGUI_PROGRESS_INDICATOR’

      exporting

        percentage dynamic_per

        text       lv_text.

    lv_per dynamic_per.

    endif.

  endloop.