Doubts in POWL Feeder Class
Hi Gurus,
We are building an application by integrating the POWL and custom Webdynpro.
As we all know there is a Feeder Class which helps in achieving our requirement.
I have few specific queries regarding POWL Query which are listed below. Can somebody please clarify these.
1. Should we delete and create the query again every time we modify the Query Parameters in IF_POWL_FEEDER~GET_SEL_CRITERIA.
Even clearing POWL cache in the report POWL_D01 didnt alter the Query Parameters.
2. Should we refresh C_SELCRIT_DEFS before populating our selection criteria. I have observed that when we run for the first time, Values added in the
C_SELCRIT_DEFS does not reflect in the application.
3. Whatever value we set in C_DEFAULT_VALUES will be available in the first run itself in the method IF_POWL_FEEDER~GET_OBJECTS or not.
4. We have added a drop down type field on the query. An empty entry appear always. How to remove this and set one of our drop down value as default always.
5. Can someone explain POWL Cache overview. When to refresh this.
Thanks in advance.
Regards,
Vinay Mutt
I also hope I can know how to do .
Pleae tell me if you have solved the problem .
Best regards ,
Similar Messages
-
Calling a Web Dynpro Application from POWL feeder class
Hi,
I know this question is asked before but never answered, but I try again......
I have a own POWL feeder class where I defined a button in method IF_POWL_FEEDER~GET_ACTIONS.
I know that this action can be handled in method IF_POWL_FEEDER~HANDLE_ACTION.
When pressing the button I want do call another web dynpro application.
How can I do this? -> Any Example Coding?
Thank you and best regards, EdgarHi Vineet,
it works, thanks a lot!!!! Best Regards, Eddy
P.S.: Here is the coding for triggering the event and passing parameters for the selected POWL table line:
METHOD if_powl_feeder~handle_action.
DATA: ls_parameter TYPE powl_namevalue_sty.
DATA: lt_flights TYPE ty_flights.
DATA: ls_flight TYPE sflight.
DATA: ls_selected TYPE rstabix.
FIELD-SYMBOLS: <lt_fligts> TYPE STANDARD TABLE.
IF i_actionid = 'EDIT'.
* Important: this triggers the event
e_portal_actions-fire_wdevent = abap_true.
* Pass parameters to event
ASSIGN c_result_tab TO <lt_fligts>.
lt_flights = <lt_fligts>.
* Determine the first selected row
READ TABLE c_selected INTO ls_selected INDEX 1.
* Read selected POWL data
READ TABLE lt_flights INDEX ls_selected-TABIX INTO ls_flight.
CHECK sy-subrc = 0.
* Pass parameters
ls_parameter-key = 'ACTIONID'.
ls_parameter-value = 'I_ACTIONID'.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'CARRID'.
ls_parameter-value = ls_flight-carrid.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'CONNID'.
ls_parameter-value = ls_flight-connid.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'FLDATE'.
ls_parameter-value = ls_flight-fldate.
APPEND ls_parameter TO e_portal_actions-parameters.
ENDIF.
ENDMETHOD. -
Some newbie POWL feeder class questions
Hi,
I'm just working with POWLs resp. the associated feeder class. At the moment I have two question that hopefully could be answered by someone:
1) Is it possible to modify the UI layout of the selection criteria in a way that they will be displayed in a configurable number of columns and not just one below the other?
2) I declared some criteria with "ls_seldef-kind = c_type_param.". The user should be able to work with wildcards for these criteria (option "CP"), but the criteria values given to the GET_OBJECTS method always do have the "EQ" option. This is not really useful for e.g. description fields. How can I change this?
Many thanks in advance for any help.I also hope I can know how to do .
Pleae tell me if you have solved the problem .
Best regards , -
POWL-Feeder-Class is called twice by class CL_POWL_MODEL
Hi all,
we are running sap erecruiting and there's an application called "dashboard" that uses the POWL-Technologie.
Now we noticed, that our feeder class is called twice when one particular "query" is called via dashboard:
once within method "handle_refresh_async" and twice within method "refresh_current" (methods of class "CL_POWL_MODEL").
As we don't want to have double runtime, does anyone know why the feeder class is called twice and how to prevent it?
Thanks in advance
Regards
CHRISHi Kris,
thanks for your reply.
I think the forum message you suggested does not apply to me. They talk about a refresh after an action.
In my case once the dashboard-query is requested by the user the feeder-class is called twice before the result is displayed.
Regards
CHRIS -
How to update POWL cache in the feeder class
Hi All,
I need to update POWL cache in the feeder class, While user removing the selected entries we will synchronize it to DB directly. But I have no idea how to update the POWL cache, Do you know any method to implement it?
Thank you very much!
JuliaHi,
In your method Handle_Action changing C_RESULT_TAB is nothing but a sort of local cache which sends the data to be displayed in POWL.
Can you try deleting the selected row ( can be fetched from c_selected ) from this C_RESULT_TAB parameter.
I guess this should do the trick.
Also when you change C_RESULT_TAB, then do remember to set the parameter E_RESULT_LINES_CHANGED as true.
Regards
Manas Dua -
POWL- Create object for feeder class not found
Hi,
I have developed a Webdynpro application and tried to integrate to POWL, but the application dumps saying cretae object of feeder class is not found.
I am new to POWL, can anybody help me in this regard.
Thanks,
Shailaja Ainala.- in se80 you need this kind of code
AUTHORITY-CHECK OBJECT 'Z:CPRO_RAP'
ID 'ZZ_MARKDIV_test' FIELD record-string+0(3)
ID 'ACTVT' FIELD '02'. "change access
IF sy-subrc <> 0.
AUTHORITY-CHECK OBJECT 'Z:CPRO_RAP'
ID 'ZZ_MARKDIV_test' FIELD record-string+0(3)
ID 'ACTVT' FIELD '03'. "read only access
IF sy-subrc = 0.
is_allowed = abap_true.
ENDIF.
ELSE.
is_allowed = abap_true.
ENDIF.
security team should setup the POWL
http://help.sap.com/saphelp_erp60_sp/helpdata/en/44/36ca0563df660ee10000000a1553f6/content.htm
http://help.sap.com/saphelp_erp60_sp/helpdata/en/42/d6652b755c1630e10000000a1553f7/content.htm
so if you see the code above there is a ID and filed associated with each object. -
How to findout Feeder Class for Contact person POWL
Hi Experts,
Can anyone tell me what is the Feeder class & how to find out Feeder class for Contact person POWL?
Can anyone tell me how to find out Feeder class for any particular POWL views.
Thanks & Regards
Sandeep.Dear Sandeep
you should consider the following transactions to obtain/configure POWL
===========================
FPB_MAINTAIN_HIER
Here you define you App. ID
POWL_TYPE
Here you define your TYPE and connections to Feeder Class
POWL_TYPER
Here you link App. ID + Type
POWL_QUERY
Here you define the Queries (views)
POWL_QUERYR
Here you link your Type + Query
===========================
So for the Feeder Class you should check POWL_TYPE. But the transactions above are all interconnected.
Kind Regards
/Ricardo Quintas -
How to find the Feeder class behind Incident creation in SAP EHS?
I have a requirement where i need to change the message text after clicking "Send" button while creating Incident.
How to find the feeder class and method which is called behind "Send" button ?
Thanks,
VimalI dont have such.. but you can set external debug point in function module POWL_QUERY_REFRESH
* get the result object type from the feeder
lr_feeder->get_object_definition(
EXPORTING
i_selcrit_values = lt_crit_para " selcrit dependent object def.
i_langu = l_langu "nt_1673495
i_type = i_query_data-type
IMPORTING
e_object_def = lr_object_def
In I_QUERY_DATA-TYPE you can see name of POWL ID.
Find it in transaction POWL_TYPE and you get name of feader class! -
How can I determine the feeder class for a WebDynpro component in SRM 7.0?
Hi experts.
I am trying to figure out how to add some columns to the list of contract items for this WebDynpro application/view:
Applikation: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro-komponent: /SAPSRM/WDC_CTR_DOTC_IT
Window: IV_L_FPC_CA_TREE
View: V_CTR_DODC_ITEMS
Configuration-ID: /SAPSRM/WDCC_FPM_CTR_DOTC_ITM
All the documentation I can find regarding the FPM says to change the feeder class, but nowhere I have seen do they explain how to determine the feeder class of an existing component/view.
I am hoping for your help!
Thanks!
Best regards
Per Hjorth ChristiansenThe term "feeder class" normally refers to the POWL search, not the actual document detail screen. You could just add one more column by enhancing the webdynpro view.
-
FPM embedded in POWL feeder detail component
Hi there
Been searching around for an example of FPM config being embedded in the POWL detail component (POWL_DETAIL_COMP_IF) and cant seem to find one.
I know it is possible to embed a POWL APP in an FPM and also use a POWL feeder inside a GUIBB List. Embedding a tab, form or list into the POWL details only makes sense.
Has anybody done this before, if so what were the gotchas if any?
Cheers
JSPJohn,
Sorry, but I have no answer for your question but:
"I know it is possible to embed a POWL APP in an FPM and also use a POWL feeder inside a GUIBB List. Embedding a tab, form or list into the POWL details only makes sense."
Hm, this is my problem. Need to embed a POWL within an FPM application. But as Chris Paine points out here ([Integrate POWL into OIF (Object Instance Floorplan) |Integrate POWL into OIF (Object Instance Floorplan);) this is not possible.
I have managed so far that the POWL is looking OK and I can get an LTA event in the feeder class method IF_POWL_FEEDER~HANDLE_ACTION. But when I trigger the FPM event handler there is nothing happening in the shared FPM component controller method PROCESS_EVENT that I am using. Oh my.
Have you seen such an example? When I read your question I get this feeling but maybe I misunderstood. I am on EhP4 by the way so that should be OK I guess.
<-- Oh come on now, naughty naughty. -->
Chris Paine? Thomas Jung? Anyone?
//Johan
Edited by: Neil Gardiner on Nov 9, 2010 4:25 PM -
How to replace a field's search help of DDIC in FPM feeder class?
Hi All,
I want to replace a field's search help in DDIC structure, for an example, in structure HCMT_BSP_PA_XX_R0009, the field BANKL(Bank Keys) has a search help named 'H_BANKL', I want to replace this search help with other one such as 'H_BANKEY' in the FPM feeder class CL_HRESS_PER_DETAIL, I redefined such method:
method if_fpm_guibb_form~get_definition.
field-symbols: <fs_field_description> like line of et_field_description.
call method super->if_fpm_guibb_form~get_definition
importing
es_message = es_message
eo_field_catalog = eo_field_catalog
et_field_description = et_field_description
et_action_definition = et_action_definition
et_special_groups = et_special_groups
ev_additional_error_info = ev_additional_error_info.
read table et_field_description assigning <fs_field_description> with key name = 'BANKL'.
set search help name of field 'bank key'
if <fs_field_description> is assigned.
<fs_field_description>-ddic_shlp_name = 'H_BANKEY'
endif.
endmethod.
I test it and found the search help window was replaced indeed, but all the value of import/export parameters in the new search help was lost, it means, the value of import paramer BANKS(Bank country) and the export parameter BANKA(bank name) were lost. Only the value of BANKL itself can be returned by the new search help window. Can you give me some suggestions about how to maintain the link( value exchange) between structure HCMT_BSP_PA_XX_R0009 and dynamically defined search help 'H_BANKEY' in FPM feeder class?
I tried to use sap memory ID but it doesn't works well.This question was answered at [Webdynpro Forum|how to replace a field's search help of DDIC in FPM feeder class?;:
That is because for the import and export of DDIC Search help values to work in WDA, not in FPM layer.Feeder Class can do nothing about it. -
Message handling in feeder class for component under FPM_FORM_UIBB
Hi,
I have created a component configuration under the component FPM_FORM_UIBB. The feeder class used is CL_HRESS_PER_DETAIL_0021_10. I have modified the method IF_FPM_GUIBB_FORM~GET_DATA to report an error message using the FPM message manager(code is hown below) if the field state is not filled.
The problem is that i get the error message below along with the standard success message that 'Data is Saved'.(and the data is actually saved on the back end)
Is there a way that i can stop additional processing after I report the error message? I
IF io_event->mv_event_id EQ 'FPM_SAVE'.
IF <lv_data_country> = 'US' AND <lv_data_state> IS INITIAL.
DATA: lv_message_manager TYPE REF TO if_fpm_message_manager,
lv_fpm TYPE REF TO if_fpm.
"Get handle to the IF_FPM interface
lv_fpm = cl_fpm_factory=>get_instance( ).
"Get handle to the FPM Message Manager
lv_message_manager = lv_fpm->mo_message_manager.
CALL METHOD lv_message_manager->report_message
EXPORTING
iv_message_text = 'State is mandatory'
io_component = me
iv_severity = 'E'.
ENDIF.
ENDIF.
Thanks in advance,
ReddyHallo reddy,
i think you need to append the error message to the et_messages exporting parameter. Further you cannot stop the processing of the instructions followed by the your logic.
Runtime is not going to stop when it encounter report-error-message. You have to do it yourself using if ..else construct.
You can also program it in process_event method and return ev_result as failed. In this way the fpm event phase model stops further processing. -
Adding custom fields in FPM_FORM_UIBB using feeder class
Hi,
We have requirement to add custom fields in form uibb using feeder class in Health and safety module at incidents report.
Please provide me some usefull documents and reference links.
Thanks
Murali Papana.Hello Murali,
1. Copy the Feederclass to customer namespace (ZCL_HRESS_PER_DETAIL_XX)
2. Create a new TYPE in you class; e.g. S_CUSTOM_FIELDS
3. Add a type definition
Example:
private section.
*"* private components of class ZCL_HRESS_PER_DETAIL_XX
*"* do not include other source files here!!!
"--- BEGIN - Enter here your type definition
types:
BEGIN OF S_CUSTOM_FIELDS,
YOUR_FIELD TYPE STRING,
END OF S_CUSTOM_FIELDS .
"--- END - Enter here your type definition
constants CV_ACTION_CODE_REFRESHFVALUES type FPM_EVENT_ID value '_REFRESH_VALUES_'. "#EC NOTEXT
constants CV_ACTION_CODE_ON_CNTR_SELECT type FPM_EVENT_ID value '_ON_COUNTRY_SELECT_'. "#EC NOTEXT
constants CV_ACTION_CODE_SELECTCOUNTRY type FPM_EVENT_ID value '_SELECT_COUNTRY_'. "#EC NOTEXT
constants CV_DATA_SHARING type STRING value 'DATA_SHARING_TEXT'. "#EC NOTEXT
constants CV_COMP_BOL_ATTR type STRING value 'BOL_OBJECT_ATTR'. "#EC NOTEXT
constants CV_DATA_SHARING_SPACE type STRING value 'DATA_SHARING_SPACE'. "#EC NOTEXT
constants CV_ADDRESS_COUNTRY_SPACE type STRING value 'COUNTRY_SPACE'. "#EC NOTEXT
methods GET_INFTY
returning
value(RV_INFTY) type INFTY .
methods CREATE_ADDRESS_ENTITY
exporting
!ET_MESSAGES type FPMGB_T_MESSAGES
value(EV_RESULT) type FPM_EVENT_RESULT .
4. Edit method IF_FPM_GUIBB_FORM~GET_DEFINITION
Add the following:
DATA lt_component_tbl TYPE ABAP_COMPONENT_TAB.
DATA LS_CUSTOM_FIELDS TYPE S_CUSTOM_FIELDS.
DATA ls_new_component TYPE ABAP_COMPONENTDESCR.
DATA lo_new_component TYPE REF TO CL_ABAP_typeDESCR.
DATA lo_new_component2 TYPE REF TO CL_ABAP_STRUCTDESCR.
FIELD-SYMBOLS <ls_new_field_descr> TYPE FPMGB_S_FORMFIELD_DESCR.
FIELD-SYMBOLS <fs_wa_mand_field> TYPE FPMGB_S_FORMFIELD_DESCR.
APPEND INITIAL LINE TO ET_FIELD_DESCRIPTION ASSIGNING <ls_new_field_descr>.
<ls_new_field_descr>-NAME = 'YOUR_FIELD'. "Enter here your field
<ls_new_field_descr>-LABEL_BY_DDIC = 'X'.
<ls_new_field_descr>-VISIBILITY = '02'.
<ls_new_field_descr>-DEFAULT_DISPLAY_TYPE = 'IN'.
" Get table of all fields, visible in GUIBB
CALL METHOD EO_FIELD_CATALOG->GET_COMPONENTS
RECEIVING
P_RESULT = lt_component_tbl.
" Describe data in LS_CUSTOM_FILED
CALL METHOD CL_ABAP_STRUCTDESCR=>DESCRIBE_BY_DATA
EXPORTING
P_DATA = LS_CUSTOM_FIELDS
RECEIVING
P_DESCR_REF = lo_new_component.
lo_new_component2 ?= lo_new_component.
" Add custom fields to field catalog
ls_new_component-name = 'LS_CUSTOM_FIELDS'. "type string,
ls_new_component-type = lo_new_component2. "type ref to cl_abap_datadescr,
ls_new_component-as_include = 'X'. "type abap_bool,
ls_new_component-suffix = ''. "type string,
APPEND ls_new_component TO lt_component_tbl.
TRY.
CALL METHOD CL_ABAP_STRUCTDESCR=>CREATE
EXPORTING
P_COMPONENTS = lt_component_tbl
* P_STRICT = TRUE
RECEIVING
P_RESULT = eo_field_catalog
CATCH CX_SY_STRUCT_CREATION .
ENDTRY.
5. In your GUIBB you have to replace the feeder class to your new customer feder class.
Hope, I could help you.
Best regards, Christian -
Exception handling in Data feeder class
Hi All,
I have written some code in the DATA class feeder. there i am catching some exception and i am displaying the exception using the message manager.
So after catching the exception , its going for dump because , the mo_message , the attribute of the data class has NULL values ,
But i can able to display the exceptions in form and list feeder classes . because i have referred the data class in both form and list attributes .
So its getting the instance , but i need to display the exceptions in the data class, how to get the instance of the message interface.
Please share !
Thanks,
Pradeep.Hi,
throw a new JBOException
Frank -
Get the handler for GUIBB Feeder class from Genil implementation class
Hello,
In BOL based GUIBB, the feeder class will call correspondence Genil implementation class, may I know if it is possible to get the handler or instance of the feeder class in the Genil implementation class, then we can call the method of the feeder class get some information about the feeder, e.g. the value of the parameter.
Thank you very much.
Best regards,
ShuminHello,
In BOL based GUIBB, the feeder class will call correspondence Genil implementation class, may I know if it is possible to get the handler or instance of the feeder class in the Genil implementation class, then we can call the method of the feeder class get some information about the feeder, e.g. the value of the parameter.
Thank you very much.
Best regards,
Shumin
Maybe you are looking for
-
Hi Friends, For reporting and documentation reasons I set up SAP Query report which almosts fits our needs. Regarding values, what we need is the total value (header or sum of all items) before and after tax. I am only able to display the BEFORE TAX
-
If i backed up my old phone why aren't my contacts syncing
i had a problem with my old phone so i went to the apple store and they told me to back up my information on my computer which i did so i went to the apple store today to exchange my phone for a new one since i got my last one in february, now i conn
-
Hi, I am including steps inside a sequence which calls sub sequences in a new thread. After calling each sub sequence in a new thread, I am putting Wait step which is configured to wait for the respective sub seueqnce to complete its execution. When
-
How can I add the same song more than once?
how can I add the same song to my ipod shuffle more than once?
-
I shot a time lapse video by mistake, how can I slow it down to see it
HHow can Islow down a time lapse video to see it. Shot by mistake