cancel
Showing results for 
Search instead for 
Did you mean: 

Display table on Decision Task

Former Member
0 Kudos
664

Hi, I've to display the rows of PR on a decision task, it's possible to create a decision task like this:

Buttons

Description with logo and PR's items table

Custom Text.

How can I create this task?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

It's helpfull but it's not what I'm looking for

Former Member
0 Kudos

Hi I have a question,

I've seen it's possible to call a Module Pool's dynpro for a work Item.

It's possible to show a dynpro under the decision buttons into a work item?

If is it possible can you explain me how i can create this?

I need to show a simple table under the decision button but I've to tab the field of this table, it's possible?

Thanks!

bpawanchand
Active Contributor
0 Kudos

Yes You are right , you can make use of module pool screens in the workitem DISPLAY the steps that you need to follow in order to make use of the table control in the workitem is

1. Create a Function Group. ( SE80 )

2. Create the Screen in SE51 by giving the function group program name that you have created in step 1.

3. Give a screen number . Design the layout and write the required logic in the PAI and PBO modules.

4. Finally add the FUnction group name and screen number under the tab WORKITEM DISPLAY of decision step at Step specific tab page

Note: In the TOP include of the function group include the following includes

INCLUDE <WIDISP>.
INCLUDE <CNTN01>.

for more information regarding calling the screens in the workitem and how to pass the data between the workitem specific data check the [link|http://help.sap.com/saphelp_nw04s/helpdata/en/b8/83fb377409bd5ae10000009b38f889/content.htm].

Former Member
0 Kudos

Hi Pavan,

I like your solution and I've tried to do it but it doesn't work

I've created my Function Group and into the TOP there is include:

INCLUDE <WIDISP>.

INCLUDE <CNTN01>.

I've created my dynpro 0100 and into the tab of the Task there is my PROGRAM name and dynpro number under "Step specific tab page" under the tab "WorkItem Display"

When I open my WorkItem from the box I don't see my dynpro...

I'm sorry Can You Help me?

Former Member
0 Kudos

Hi Antonio,

as suggested u have to work on workitem DISPLAY.

Make an own copy of DECISION.DISPLAY.

inside of it is called the FM SWU_PROCESS_MANUEL_DECISION. Copy the entire FGR.

In the include SWU2F10 it's called the FM: SIN_WI_PREVIEW_HTML_BUILD.

Copy it in a Zcustom and copy it's entire FGR in a Zcustom.

Inside the include SIWWP2F02 is called a FM: SWU_GET_TASK_TEXTLINES.

The output of this FM is the table lt_html_task_text.

You can replace the content of this table with your own html code that will appear in the description of the Workitem.

An example of html code could be:

*table width="1000">

*tr>

*td bgcolor=#0c4f81 colspan="11">

*font color="white">

b>Approve order xxxxx/b>

*/font>

*/td>

*/tr>

This code will be putted insied the table:

APPEND '*table width="1000">' TO tb_html.

APPEND '*tr>' TO tb_html.

APPEND '*td bgcolor=#0c4f81 colspan="10">' TO tb_html.

APPEND '*font color="white" font size="3" family="tahoma">'

TO tb_html.

CONCATENATE 'Approve order xxxxx' '*/b>'

INTO l_buffer SEPARATED BY space.

APPEND l_buffer TO tb_html.

APPEND '*/font>' TO tb_html.

APPEND '*/td>' TO tb_html.

APPEND '*/tr>' TO tb_html.

(replace * with < )

have fun!

Former Member
0 Kudos

HI there what was your final solution?

Regards tatenda?

Former Member
0 Kudos

You have to create a custom DECISION-PROCESS on the Task, into the method the HTML dynpro the program creates the dynpro, you can change everithing you want.

Former Member
0 Kudos

Hi Antonio

I'm i'm trying to follow the steps involved here i've created my BO and would like to know if the HTML formatting is all i need to add, and wondering if i would still need to do the steps proposed by Pavan and if there is a connection between pavan's recommendation and Alessandro's reccommendation if possible please tell me exactly how to do it i would be very greatful.

Is there any function module that i need to use to create the HTML dynpro by feeding a table or am i lost?

Regards Tatenda.

Edited by: Tatenda Humphrey Itai Chaibva on May 26, 2009 4:17 PM

Former Member
0 Kudos

Add a decision task

Into decision task you have to change your method decision-proces with yourBO-zprocess (copy of standard) into this method you have to debug inside FM SWU_PROCESS_MANUEL_DECISION.

Duplicate every FM until the substitution of the HTML code.

Former Member
0 Kudos

Hi Antonio

Thanks so much for the help. One more thing i'm now at the FM SWU_GET_TASK_TEXTLINES and i'm wondering if i should copy this one or i need to modify the contents of the table lt_html_task_text after the FM has run. What would you advise?

Regards

Tatenda.

Former Member
0 Kudos

I've changed the content of the table after that FM and it works.

Try it.

Bye

Answers (3)

Answers (3)

Former Member
0 Kudos

If you do not want to go towards module pool...you can try for some alternative to display data in table format.You can create smartform or adobe form and display data in the format as per your requirement.

Now in workflow create a step above the user decision task where ...in the method of that task you create the link for this smartform\adobe form. Now this link will be available on the user decision ..and as soon user click on it ...it will pop up a page and displays your data in required format.

For creating link to smartform\adode forms ....there is alreday a good blog available in sdn.

former_member185167
Active Contributor
0 Kudos

Hello,

For the logo, search SDN for "logo". I believe WS70000640 shows an example.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

You can modify the task description of the task (just go to for example to transaction PFTC to edit the task. It is possible to add table there. If you have the table in your task container, just add it to the task description, and it will ask whether you want to have it as a continuous text or as a table.

I am not sure about the logo. Maybe it could be possible to add it to the description with the sapscript editor mode?

Regards,

Karri

Former Member
0 Kudos

Ok but the table is not tabulate, I've to show the rows of a Purchase Requisition and I must do a work like this:

LINE1 ->TAB-> MATNR ->TAB-> DESCRIPTION ->TAB-> QUANTITY ->TAB-> ETC

LINE2 ->TAB-> MATNR ->TAB-> DESCRIPTION ->TAB-> QUANTITY ->TAB-> ETC

LINE3 ->TAB-> MATNR ->TAB-> DESCRIPTION ->TAB-> QUANTITY ->TAB-> ETC

LINE4 ->TAB-> MATNR ->TAB-> DESCRIPTION ->TAB-> QUANTITY ->TAB-> ETC

LINE5 ->TAB-> MATNR ->TAB-> DESCRIPTION ->TAB-> QUANTITY ->TAB-> ETC

Is it possibile to create a HTML view like a ITEM PREVIEW with a F.M?

Edited by: Antonio Sanseverino on Apr 27, 2009 2:43 PM