on 02-06-2014 6:36 PM
Here's what I want to do with a WDA enabled infotype.
I would like to insert a challenge-ing dialog box between an infotype's list and the actual form editor.
Think :
"Enter your passphrase?" _________________________
or something similar.
If the correct information is entered, we allow the user to proceed to the detail editor.
If not, we do not let the user proceed (perhaps we let the user try n-1 more times).
So, my beginner mentality leads me down a few routes
1) just configure it (hoping the validation question already exists somewhere I don't know about (wishful thinking)
2) tie some popup into what happens when someone clicks the pencil
3) tie some popup into the beginning of the actual edit page
4) hopefully use some preconfigured uibbs to make this happen
and 5) - worst case, least elegant, I'm thinking maybe I can actually present a field on the original list window and validate it on the pencil action
Thanks...
...Mike
EHP6 FOR SAP ERP 6.0
Popups are possible, in the feeder class CL_HRESS_PER_DETAIL from the method process_event we should be able to do the needfull. you can write a preset or post exist for this method and you can call the FPM open_dialog_box, if you put a break point in process event, then you will understand and you will get answers to most of your questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note: I’ve looked around quite a bit, but have not been able to find an example of prompting a user for more data through a dialog box popup and returning back to the ovp. I look forward to creating a detailed blog entry when done. |
Allow me to restate what I want to do.
The original overview page shows various areas, like Banks and Addresses, etc, listed using FPM_LIST_UIBBs. Next to each of the records, there is a PENCIL. When you click the PENCIL, it takes you to the edit form (FPM_FORM_UIBB).
I want to present the user with another web dynpro after the ‘click of the pencil’ but before the ‘display of the edit form’. Based on data set in the inserted web dynpro, we would choose to continue to the edit form, or not, so I would need some way to return data to the calling environment.
Here’s what I have done, using 0009 as an example.
I created a very simple Web Dynpro to be included in the Dialog Box : ZWD_TRUEFALSE
Quite simply, this has a CheckBox, a Continue Button, and (not sure I needed this) an interface method that can return the state of the checkbox
Implemented Interface: IF_FPM_UI_BUILDING_BLOCK
Application: ZWD_A_TRUEFALSE
Application Configuration: ZWD_AC_TRUEFALSE
Component Configuration: ZWD_CC_TRUEFALSE
Environment
OverView
Application: HRESS_A_PERSINFO
Application Configuration: HRESS_AC_PERSINFO
Component Configuration: HRESS_CC_PER_OVP
Example FPM_LIST_UIBB
Component Configuration: HRESS_CC_PER_OVR_BANK_XX
So I enhanced the overview’s CC, creating enhancement ZHRESS_ENH_PERSINFO.
Under Navigation, I pressed “New”, Dialog Box, Save. Then I added My UIBB as
Component ZWD_ TRUEFALSE, ConfigID, ZWD_CC_TRUEFALSE and WindowName ZWD_ TRUEFALSE.
I explicitly activated my enhancement.
I also enhanced method CL_HRESS_PER_OVERVIEW->if_fpm_guibb_list~process_event(), adding the following code at the implicit location at the top of the method
* Check 0009
if MV_INFTY = '0009' .
* Open Dialog Box
data lo_fpm type ref to if_fpm.
lo_fpm = cl_fpm_factory=>get_instance( ).
if lo_fpm is bound .
lo_fpm->open_dialog_box( 'PAGE_18_52FC……' ).
endif .
endif .
So, I have two issues here, and a question.
Issue 1) When I press the pencil next to an IT 0009 record, the webdynpro I called is rendered in a dialog box, but comes along with an Error message “No valid content area found”.
Issue 2) The dialog box comes up when I press the PENCIL in other infotypes as well – not just 0009. It looks like Process event is cycled for them too – I think I need another If condition but I am unsure as to what it is
And the question, once the user inputs the required data in the dialog box web dynpro. How do I return control, and data, to the caller?
Thanks…
…Mike
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.