cancel
Showing results for 
Search instead for 
Did you mean: 

Data is not being passed on to BSP page, which was trggered from workfow

Former Member
0 Kudos

Here are my some more observations:

I could see the variables & values in the URL of Approval page, which was opened when the workitem is executed.

But when I looked at the source of Approval page from Menu->View->Source (In browser), value parameter in INPUT tag is set to " ". Page is being generated with value = " " , though in the BSP view layout form field is set with view attribute.

Here I have inserted the code snippet for one field "REQUESTOR"

1. Generated HTML scource code from browser:

<tr><td class="urCellBgBorder" valign="TOP" colspan="0">

<label id="RequestorName" ct="Label" for="REQUESTOR" class="urLblStd" title="Enter the Name" onclick="return htmlbLabelClick('REQUESTOR');" style="white-space:nowrap;"><span>Requestor Name:</span></label>

<td class="urCellBgBorder" valign="TOP" colspan="0">

<span id="REQUESTOR-r" class="urEdf2Whl"><input type="Text" class="urEdf2TxtEnbl urEdf2TxtRo" autocomplete="off" id="REQUESTOR" ct="InputField" name="REQUESTOR" st="r" readonly value=" " onblur="sapUrMapi_InputField_Blur('REQUESTOR',event)" onkeydown="sapUrMapi_InputField_keydown('REQUESTOR',event)" onkeyup="sapUrMapi_InputField_KeyUp('REQUESTOR',event)" onfocus="sapUrMapi_InputField_focus('REQUESTOR',event)" style="width:180;"></span>

2. BSP View layout

<htmlb:inputField id = "REQUESTOR"

width = "180"

doValidate = "true" disabled = "true"

value = "<%= REQUESTOR%>"/>

3. URL

http://igatecorp.:8061/sap(bD1lbiZjPTQwMSZ3PTMzODMyMjAr)/bc/bsp/sap/zunix/manager.do?ACCESS_LIST=uu&...

&REQUESTOR=Pramod&

REQ_PHONE=uu&REQ_TYPE=A&SAPWFCBURL=http%3a%2f%2f100%2e7%2e1%2e81%3a8061%2fsap%2fbc%2fwebflow%2fwshandler%3f_sapwiid%3d000000067686%26_saptask%3dTS95107916%26_saplogsys%3dXID-401%26_sapuname%3dKATKURIP%26_saplangu%3dE%26_sapxid%3d42A08C32FD042B1EE100000064070151%26sap-client%3d401

While debugging I have observed no value in "<%= REQUESTOR%>" neither in layout nor in do controller class-attribute "REQUESTOR".

Am missing any step? Do I need to impliment any other method before calling the view from do controler. If yes, what functionality should be incorporated in it. Please let me know if more details for better understanding of the issue.

We are following MVC approch.

Can any one please guide me on this.

Thanking you in advance.

Regards,

Pramod.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

One more observation:

When the view attribute is set manually, during (HTTP)Debugging when the controller is in view Layout, value is appearing on the page. From this what I understand is, Before calling the view in controller, view attributes has to be set. So, how can I access parameterIDs(@ tcode=wf_extsrv)/Wrokitem container elemetns in the DO_REQUEST/DO_INITATTRIBUTES/DO_INIT method so that they can be passed to view attributes. ParameterID

I have ensured that do-controller&view attribute names match with parameterids(@ tcode=wf_extsrv), expecting that the data will move automatically from parameterids to do-controller&view attributes. But its not happening. I am sure data is availble to BSPApp/Browser from Wrokflow as I could observe parameterids&Values in the URL.

Any hints please, on how to deals with this.

Thank you,

Pramod.