cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in executing report in background in CS workflow

Former Member
0 Kudos

Hi All,

I am using ECC 6.0 version.

In my scenario , Once notification is closed , workflow should trigger. and along with this , one report should execute in background with input parameter as a Notification no. from workflow . Report should pick up input parameter dynamically.As I know instead of function module we can choose report option in business object .

My question is how that report will get input parameter as notification no.& How I do the binding for this (Between report & workflow)?

Valuable suggestions are excepted.

Regards,

Sheetal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

you can call the required method of workflow to your report program and get the notification number.

this will work.

ashok

Former Member
0 Kudos

Hi Sheetal,

You can create a subtype of your standard BO. In this way you can execute and pass parameters to your report directly.

For this create a subtype and in it create a method (give any relevant name), goto ABAP tab and enter name of your report. After that click on your method (you just created) and click on button 'Program'. Select 'Yes' when it asks for automatically generating code. You will find an access to your report is created (you can pass your parameters now). Also do not forget to delegate your 'ZBO' to the standard BO.

Best regards,

Abir.

Former Member
0 Kudos

Hi Abir ,

Thank for ur reply . What procedure u have told me that already done in my scenario . But my problem is how to get that notification no as dynamically in report.

For e.g . Suppose i have created notification and Notification No is generated as '12345'. This notification i want as a input parameter to report .

So how i should get it ?

Please reply.

Regards,

shital

Former Member
0 Kudos

I think if the notification no is key field you can access it by Object-key-Notification no. or if it is retrieved in an attribute you can use macro

SWC_GET_PROPERTY

Thanks

Arghadip

Former Member
0 Kudos

Hi Sheetal,

As I had mentioned earlier (you have already implemented), add the report to your BO as a method. Then click on method and then click 'Parameters'. Create the required parameters, which is 'Notification No.' and go to the system generated 'Program'. Here you will have to do a bit of macro coding. Obtain the No. (once you add as parameter, you will get it through binding) and pass to report.

You might also retrieve (only if required or only in certainb cases) values, for that observe how the attributes are retrieved on the basis of key field.

Best regards,

Abir.