Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Web Dynpro

Former Member
0 Likes
469

Hi,

I did one object by using web dynpro, here i will store Employee Id and Employee Name to database by using function module(Customised function module), but if i save dublicate employee id, i need to display warning message 'This employee id already exist', how i can do in Function module. If any one know please help me.

2 REPLIES 2
Read only

Former Member
0 Likes
433

Remember that a form is really just a UI for collecting data. A PDF form can be used to collect data online (connected to your SAP system) or offline, e.g. you could send it as a mail attachment, fill it in, and email it to a central point for uploading into the system.

2) The main requirements for using SAP Interactive Forms are:

a) A NW04 (6.40) or NW04s (7.00) WebAs (Java Stack) to run Adobe Document Services. This is the critical component that assigns ReaderRights to the document, e.g. so that the user can change the data and save it on the document. You could run a WebAs like this alongside your R/3 4.7 - e.g. if you have an XI system or Enterprise Portal you could use that system to run Adobe Document Services. Every form you create must be generated via the Adobe Document Services to get the Reader Rights. Note: Get a NW04s environment if you can - as this release has usefuul new features such as loading attachments to the PDF, using digital signatures, etc.

b) A WebDynpro application to generate the Adobe form via Adobe Document Services, and to execute the Adobe Form when using online mode, and to upload offline forms. Tutorials on how to do this are available in SDN - have a look at the Adobe section within WebDynpro. Note: From ECC 5.0 there are some standard WebDynpros apps provided, but in R/3 4.7 you will need to write your own.

c) There's also a licensing requirement for any production custom forms (SAP provided forms and cosmetic changes to those forms are free) so make sure you get your SAP account manager involved to help sort out how your intended usage will fit in with your current license agreement and any discounts that may apply.

3) To use the "form" with workflow has some additional requirements:

a) You need to store the data entered via the form somewhere that is accessible by Workflow. The easiest approach here is to use the standard form handling technique Internet Service Requests. Transaction QISRSCENARIO will let you define all of the form fields, give you BADIs for doing validation, raising workflow events, etc. Also from ECC 5.0 onwards using Adobe forms as the form entry is a standard option for this technique, so this will help reduce the upgrade impact when you eventually do upgrade.

b) Assuming you use ISRs, have your WebDynpro App call the function module ISR_PROCESS_EVENT to pass the data to R/3 and do the validation checks.

c) Assuming you use ISRs, you use the BOR object for notification such as BUS2078, as your main object for the workflow. The form data is attached to the notification and can be retrieved using function module ISR_SPECIAL_DATA_GET.

d) If you want to call your WebDynpro App from SBWP (I take you don't have Enterprise Portal?) then use transaction WF_EXTSRV to define the web service to call your WebDynpro app and generate a workflow task for it. Also you must configure transaction WF_HANDCUST to enable R/3 to handle web services. Note: If you do have the Enterprise Portal, you can use transaction SWFVISU instead.

I'd strongly recommend you read the ISR cookbook at http://service.sap.com/isr as well. ISRs aren't the only way to use Adobe forms with R/3 but they are extremely handy if you want to use your Adobe form with Workflow.

As for Lotus Notes, you can use your WebDynpro app to generate and send/receive a form to/from an email address. You can also put a hyperlink in your workflow task to call your WebDynpro app and use RSWUWFML2 (swap to Enhanced Notifications when you upgrade) to send out a mail with the hyperlink attached as per usual.

You'll also find some useful threads on Adobe forms and Workflow in the SDN BPM Forum. So if you have workflow specific questions try raising them in the BPM forum

Read only

Former Member
0 Likes
433

hi,

we hav mesage editor option in code wizard i guess u might be aware of tht so

where ever u want to validate in code u can call code wizard and in tht we hav options like

Generate Mesage there give some method name and write code as per ur requirement .then it calls the function module kind of thing and u need to pass the text to be displayed..

try this it will work..

Regards,

Sana M.

reward if helpful....