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 make an multi-sheet excel file with SAP ABAP

Result:

 

Two sheets excel example.

Sheet1.

1

Sheet2.

2

Codes:

report  zanil.

*** Job: OLE Excel from SAP

***      with two sheets

**  Include objects

includeole2incl.

**  Table definitions

tables:  m_mbmps,

         zperlist1,

         zperlist2.

** Macro Definition

define ole_check_error.

  if &1 ne 0.

    message e000 with &1.

    exit.

  endif.

endofdefinition.

endif.

call method of h_excel  ‘Workbooks’ h_mapl.


Click here for the full code