Skip to Content
author's profile photo
Former Member

Following Requirements

Hello All,

We have following requirements:

#We need to create a web form in jsp and initialize some

of the required fields using data from SAP

  1. We need to handle the client side eventing of the events that occur on the web controls.

  1. WE need to perform validations when the form is being submitted andmy be pop up an error message when some data is incorrect.

  1. If at all every field is properly populated then we need to submit the form and it should trigger the appropriate workflow (a customized one) and send mails to the lotus notes and also send the work item in the universal work;ist on the portal.

  1. We know for sure that all this can be done using a terminology called as Internal Service Requests or Personnel Change Requests.

The documentation for the same can be found on

http://service.sap.com/isr

and http://service.sap.com/pcr

But we are stuck at some of the few basic questions like

  1. Is the data being fetched from SAP during initialization of the form? if yes then how??

  1. How are the events that are being generated on various web controls like textview, drop down list, check boxex, radio button groups handled?

  1. If some validations are required to be done on the data that is entered on the form before submitting it how do we do that and most importantly where do we do that?

We know for sure that when the form is submitted the function that is being called is "ISR_PROCESS_EVENT".

For your information:we are on EP6.0 sp2 and use jcoclient service to connect to SAP.

Thanks in Advance for All the Suggestions and Information regarding how to proceed further.

Pradeep

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Mar 02, 2004 at 01:32 PM
    1. Is the data being fetched from SAP during initialization of the form? if yes then how??

    -Use the JCO to call transactions in SAP which returns the fields you need.

    See for example https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/sap java connector - jco - client programming for more information on JCO

    1. How are the events that are being generated on various web controls like textview, drop down list, check boxex, radio button groups handled?

    -Define these controls through HTMLB elements on jsp pages (I am guessing you are using JSPDynpages to build you portal component (should be documentation on portal). You can then specify either client side function calls or server side event calls for each action.

    1. If some validations are required to be done on the data that is entered on the form before submitting it how do we do that and most importantly where do we do that?

    -Not sure what the easiet method is, but one could for example use an HTMLB button with the onClientClick event set to the validating method and onClick set to the java code event handler. If the javascript method in onClientClick returns true the onClick method will be called

    Add comment
    10|10000 characters needed characters exceeded