Bar graph click event not getting triggered
i specified methods in bean for bar graph's clickListener and clickAction.
graph data is getting rendered properly.
graph is based on SQL based read only VO which uses bind variables as well which are set on a button click to generate report
but on clicking on graph, control is not going to bean method which handles clickEvent
i have wasted lots of time for this
initially bean scope was backing, i tried with request and session as well nothing is getting control to bean
jdev 11 1 1 5
Hi,
+"i have wasted lots of time for this ..."+
And you wasted more time by not giving enough information about the graph configuration and the click listener signature. Note that we need a way to reproduce a behavior to give you some hints.
Frank
Similar Messages
-
Plugin events not getting triggered
Hello,
APEX version 4.1.0.00.32 and 4.2.3.00.08
Browser: latest version of Chrome browser
I'm trying to include plugin events for the Select2 APEX plugin but facing one rather annoying issue; the dynamic actions based on the plugin events are not getting triggered. These are the steps I have taken:
1. Registered several events with the plugin (e.g. slctchange, slctopen, slcthighlight, etc.). These events are based on the official Select2 documentation.
2. Modified the render function to include event handlers that trigger the appropriate Select2 event.
$("' || l_item_jq || '").on("change", function(e) {
apex.jQuery(this).trigger("slctchange", { val:e.val, added:e.added, removed:e.removed });
$("' || l_item_jq || '").on("select2-opening", function(e) {
apex.jQuery(this).trigger("slctopening");
$("' || l_item_jq || '").on("select2-open", function(e) {
apex.jQuery(this).trigger("slctopen");
$("' || l_item_jq || '").on("select2-highlight", function(e) {
apex.jQuery(this).trigger("slcthighlight", { val:e.val, choice:e.choice });
$("' || l_item_jq || '").on("select2-selecting", function(e) {
apex.jQuery(this).trigger("slctselecting", { val:e.val, choice:e.choice });
$("' || l_item_jq || '").on("select2-clearing", function(e) {
apex.jQuery(this).trigger("slctclearing");
$("' || l_item_jq || '").on("select2-removed", function(e) {
apex.jQuery(this).trigger("slctremoved", { val:e.val, choice:e.choice });
$("' || l_item_jq || '").on("select2-focus", function(e) {
apex.jQuery(this).trigger("slctfocus");
$("' || l_item_jq || '").on("select2-blur", function(e) {
apex.jQuery(this).trigger("slctblur");
I can confirm that the slctchange event (the first event in the list) is working properly both in APEX 4.1 and 4.2. Please note that I had to use apex.jQuery instead of $ to get it to work in 4.1. Might be because I overloaded jQuery in 4.1. Anyway, all others events are not getting triggered for some reason. The event handlers are getting executed for the appropriate event; that's not the problem. I guess the source of the problem lies with the trigger function. It simply doesn't trigger any of my dynamic actions.
To make things even more complicated, it is possible to trigger the events manually in console. So if I execute this statement:
apex.jQuery("#P20_SINGLE_VALUE_NEW").trigger("slctopen");
Then I get back the result from the dynamic action.
I tried a lot of different ways to trigger the plugin event. For example:
$("' || l_item_jq || '").on("select2-open", function(e) {
apex.jQuery(this).trigger("slctopen");
$(this).trigger("slctopen");
apex.jQuery(this).trigger("slctopen.BE_CTB_SELECT2");
$(this).trigger("slctopen.BE_CTB_SELECT2");
apex.jQuery("' || l_item_jq || '").trigger("slctopen");
$("' || l_item_jq || '").trigger("slctopen");
apex.jQuery("' || l_item_jq || '").trigger("slctopen.BE_CTB_SELECT2");
$("' || l_item_jq || '").trigger("slctopen.BE_CTB_SELECT2");
Nothing gets triggered...
Can anyone tell me what the problem is here? Thanks in advance.
Best regards,
NickHello,
APEX version 4.1.0.00.32 and 4.2.3.00.08
Browser: latest version of Chrome browser
I'm trying to include plugin events for the Select2 APEX plugin but facing one rather annoying issue; the dynamic actions based on the plugin events are not getting triggered. These are the steps I have taken:
1. Registered several events with the plugin (e.g. slctchange, slctopen, slcthighlight, etc.). These events are based on the official Select2 documentation.
2. Modified the render function to include event handlers that trigger the appropriate Select2 event.
$("' || l_item_jq || '").on("change", function(e) {
apex.jQuery(this).trigger("slctchange", { val:e.val, added:e.added, removed:e.removed });
$("' || l_item_jq || '").on("select2-opening", function(e) {
apex.jQuery(this).trigger("slctopening");
$("' || l_item_jq || '").on("select2-open", function(e) {
apex.jQuery(this).trigger("slctopen");
$("' || l_item_jq || '").on("select2-highlight", function(e) {
apex.jQuery(this).trigger("slcthighlight", { val:e.val, choice:e.choice });
$("' || l_item_jq || '").on("select2-selecting", function(e) {
apex.jQuery(this).trigger("slctselecting", { val:e.val, choice:e.choice });
$("' || l_item_jq || '").on("select2-clearing", function(e) {
apex.jQuery(this).trigger("slctclearing");
$("' || l_item_jq || '").on("select2-removed", function(e) {
apex.jQuery(this).trigger("slctremoved", { val:e.val, choice:e.choice });
$("' || l_item_jq || '").on("select2-focus", function(e) {
apex.jQuery(this).trigger("slctfocus");
$("' || l_item_jq || '").on("select2-blur", function(e) {
apex.jQuery(this).trigger("slctblur");
I can confirm that the slctchange event (the first event in the list) is working properly both in APEX 4.1 and 4.2. Please note that I had to use apex.jQuery instead of $ to get it to work in 4.1. Might be because I overloaded jQuery in 4.1. Anyway, all others events are not getting triggered for some reason. The event handlers are getting executed for the appropriate event; that's not the problem. I guess the source of the problem lies with the trigger function. It simply doesn't trigger any of my dynamic actions.
To make things even more complicated, it is possible to trigger the events manually in console. So if I execute this statement:
apex.jQuery("#P20_SINGLE_VALUE_NEW").trigger("slctopen");
Then I get back the result from the dynamic action.
I tried a lot of different ways to trigger the plugin event. For example:
$("' || l_item_jq || '").on("select2-open", function(e) {
apex.jQuery(this).trigger("slctopen");
$(this).trigger("slctopen");
apex.jQuery(this).trigger("slctopen.BE_CTB_SELECT2");
$(this).trigger("slctopen.BE_CTB_SELECT2");
apex.jQuery("' || l_item_jq || '").trigger("slctopen");
$("' || l_item_jq || '").trigger("slctopen");
apex.jQuery("' || l_item_jq || '").trigger("slctopen.BE_CTB_SELECT2");
$("' || l_item_jq || '").trigger("slctopen.BE_CTB_SELECT2");
Nothing gets triggered...
Can anyone tell me what the problem is here? Thanks in advance.
Best regards,
Nick -
in the code my event subtot_text is not getting triggered .... any solution plz
REPORT zver_alv_basic.
TYPE-POOLS slis.
DATA: BEGIN OF itab OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
netwr LIKE vbap-netwr,
END OF itab.
DATA: fcat TYPE slis_t_fieldcat_alv,
wa_fcat TYPE slis_fieldcat_alv,
i_sort TYPE slis_t_sortinfo_alv WITH HEADER LINE,
i_event TYPE slis_t_event.
SELECT vbeln
posnr
matnr
netwr
FROM vbap
INTO TABLE itab
UP TO 30 ROWS.
I_SORT-FIELDNAME = 'POSNR'.
I_SORT-TABNAME = 'ITAB'.
I_SORT-UP = 'X'.
I_SORT-SUBTOT = 'X'.
APPEND I_SORT.
Perform to populate ALV event
PERFORM sub_get_event.
To prepare field catalog
PERFORM sub_field_catalog.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
it_fieldcat = fcat
it_events = i_event
it_sort = i_sort[]
TABLES
t_outtab = itab.
*& Form SUB_FIELD_CATALOG
FORM sub_field_catalog .
PERFORM sub_fill_alv_field_catalog USING:
'01' 'VBELN' 'ITAB' 'VBELN' 'VBAP' ,
'02' 'POSNR' 'ITAB' 'POSNR' 'VBAP' ,
'03' 'MATNR' 'ITAB' 'MATNR' 'VBAP' ,
'04' 'NETWR' 'ITAB' 'NETWR' 'VBAP' .
ENDFORM. " SUB_FIELD_CATALOG
*& Form SUB_FILL_ALV_FIELD_CATALOG
FORM sub_fill_alv_field_catalog USING p_rowpos
p_fldnam p_tabnam p_ref_fieldname p_ref_tabname .
wa_fcat-col_pos = p_rowpos.
wa_fcat-fieldname = p_fldnam .
wa_fcat-tabname = p_tabnam .
wa_fcat-ref_fieldname = p_ref_fieldname .
wa_fcat-ref_tabname = p_ref_tabname.
IF P_FLDNAM = 'NETWR'.
wa_fcat-do_sum = 'X'.
ENDIF.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
ENDFORM. " SUB_FILL_ALV_FIELD_CATALOG
*& Form SUB_GET_EVENT
FORM sub_get_event .
DATA: wa_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 4
IMPORTING
et_events = i_event.
READ TABLE i_event INTO wa_event
WITH KEY name = 'SUBTOTAL_TEXT'.
IF sy-subrc = 0.
MOVE 'SUBTOT_TEXT ' TO wa_event-form.
MODIFY i_event FROM wa_event INDEX sy-tabix.
ENDIF.
ENDFORM. " SUB_GET_EVENT
*& Form subtotal_text
Build subtotal text
P_total Total
p_subtot_text Subtotal text info
FORM subtot_text CHANGING
p_total TYPE any
p_subtot_text TYPE slis_subtot_text.
Material level sub total
IF p_subtot_text-criteria = 'VBELN'.
p_subtot_text-display_text_for_subtotal
= 'VENDOR level total'(009).
ENDIF.
Plant level sub total
IF p_subtot_text-criteria = 'POSNR'.
p_subtot_text-display_text_for_subtotal = 'POSNR level total'(010).
ENDIF.
ENDFORM. "subtotal_text*& Report ZVER_ALV_BASIC
REPORT zver_alv_basic.
TYPE-POOLS slis.
DATA: BEGIN OF itab OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
netwr LIKE vbap-netwr,
END OF itab.
DATA: fcat TYPE slis_t_fieldcat_alv,
wa_fcat TYPE slis_fieldcat_alv,
i_sort TYPE slis_t_sortinfo_alv ,
wa_sort TYPE slis_sortinfo_alv,
i_event TYPE slis_t_event.
START-OF-SELECTION.
SELECT vbeln
posnr
matnr
netwr
FROM vbap
INTO TABLE itab
UP TO 30 ROWS.
wa_sort-spos = '01' .
wa_sort-fieldname = 'VBELN'.
wa_sort-tabname = 'ITAB'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO i_sort .
CLEAR wa_sort.
Wa_sort-spos = '02' .
wa_sort-fieldname = 'POSNR'.
wa_sort-tabname = 'ITAB'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO i_sort .
CLEAR wa_sort.
Perform to populate ALV event
PERFORM sub_get_event.
To prepare field catalog
PERFORM sub_field_catalog.
END-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
it_fieldcat = fcat
it_events = i_event
it_sort = i_sort[]
TABLES
t_outtab = itab.
*& Form SUB_FIELD_CATALOG
FORM sub_field_catalog .
PERFORM sub_fill_alv_field_catalog USING:
'01' 'VBELN' 'ITAB' 'VBELN' 'VBAP' ,
'02' 'POSNR' 'ITAB' 'POSNR' 'VBAP' ,
'03' 'MATNR' 'ITAB' 'MATNR' 'VBAP' ,
'04' 'NETWR' 'ITAB' 'NETWR' 'VBAP' .
ENDFORM. " SUB_FIELD_CATALOG
*& Form SUB_FILL_ALV_FIELD_CATALOG
FORM sub_fill_alv_field_catalog USING p_rowpos
p_fldnam p_tabnam p_ref_fieldname p_ref_tabname .
wa_fcat-col_pos = p_rowpos.
wa_fcat-fieldname = p_fldnam .
wa_fcat-tabname = p_tabnam .
wa_fcat-ref_fieldname = p_ref_fieldname .
wa_fcat-ref_tabname = p_ref_tabname.
IF p_fldnam = 'NETWR'.
wa_fcat-do_sum = 'X'.
ENDIF.
APPEND wa_fcat TO fcat.
CLEAR wa_fcat.
ENDFORM. " SUB_FILL_ALV_FIELD_CATALOG
*& Form SUB_GET_EVENT
FORM sub_get_event .
DATA: wa_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 4
IMPORTING
et_events = i_event.
READ TABLE i_event INTO wa_event
WITH KEY name = 'SUBTOTAL_TEXT'.
IF sy-subrc = 0.
MOVE 'SUBTOT_TEXT ' TO wa_event-form.
MODIFY i_event FROM wa_event INDEX sy-tabix.
ENDIF.
ENDFORM. " SUB_GET_EVENT
*& Form subtotal_text
Build subtotal text
P_total Total
p_subtot_text Subtotal text info
FORM subtot_text CHANGING
p_total TYPE any
p_subtot_text TYPE slis_subtot_text.
Material level sub total
IF p_subtot_text-criteria = 'VBELN'.
p_subtot_text-display_text_for_subtotal
= 'VENDOR level total'(009).
ENDIF.
Plant level sub total
IF p_subtot_text-criteria = 'POSNR'.
p_subtot_text-display_text_for_subtotal = 'POSNR level total'(010).
ENDIF.
WRITE :/ 'cow'.
ENDFORM. "subtotal_text } -
Event not getting triggered for a few users in production
Hi Experts!!
We have a workflow that gets triggered on the event REQUESTCREATED of BUS2089. In production, we see that for a few users the event is getting triggered and even the workflow is. But for a few users, the workflow is not getting triggered. However, we didn't check SWEQADM yet and are waiting to get auth to check the same. But before that, I need your valuable suggestions on this.
When I check SWEL, I cannot see any entries at all. Not even for the successfully processed ones.
Auth objects cannot be a reason, as all the users have same auth. Please suggest me on what else can be the reasons.
Your help is highly appreciable.Hello Srinivas !
Check in SWEQADM to know whether the event is on queue.If so, redeliver it.
If there is no event on queue, check the RFC queue( transaction SWU2 ) and ST22 for possible ABAP dumps.
Call work item list report (transaction SWI1) and check event linkages (transaction SWETYPV )of the users for whom the event is not triggered.Are you using BAdI or user- exit to trigger the workflow ? If so, check whether those are in active state.
Refresh the workflow buffers(transaction SWU_OBUF).Check either of the workflow versions are in active state.
Regards,
S.Suresh -
Event not getting triggered for PR generated through MRP run
Hi All,
Could anyone let me know how to get a workflow triggered for the ReleaseStepCreated event (obj - bus2105) when the PR is created through MRP run. The MD02 control paramters have the value '1'.
Interstingly the workflow triggers when the value is set to '2' or '3'.
Thanks,
AmeekarThanks Aman,
I checked field restrictions but there are none there. Actually i checked them for other object 'AOOMARA' which is being thrown as an exception when i am creating the PR through MRP run.
Exception says -> field not maintained.
So i guess, i need to maintain the field for Change Document but i am not sure how. COuld you please aid me with that.
Thanks A lot !! -
Events in USER objects type not getting triggered in PFCG
Hi,
We need to send some notifications to the concern person at the time of assiging roles to the user . There is an object type USER and has events like created,cloned, deleted, roles_changed. But these events not getting triggered.
I need to trigger the workflow. How do we activate the events as the entry doesnot exits in SWE2 tooo . Is ther any other way?HI munish
If the entry is not in swe2 Put the entry for the business object USER and use the receiver type as your workflow number.
Regards
vijay -
Double Click Event not fired for IE 11 with compatibility mode for HTML elemnt table
Hi,
I am facing an issue with Double click event(not getting fired on double click of mouse) for IE 11 with compatibility mode on HTML element "table" for Windows 7 64 bit machine.It runs fine on IE 10 with compatible mode with Windws 7 64 bit
machine -- double click event.
Can you please help to resolve the issue?
Thanks and Regards,
YogeshHi,
f12>Debug tab, click the 'start' button.....(select break on all exceptions from the dropdown on the Debug tab)
click your table and correct any errors that are listed in the Console of the developer tool.... probably you are using attachEvent I/o addEventListener. You should be using addEventListener for IE9 and higher and other web browsers.(it the w3c standard
(recommendation).
Post questions about html, css and scripting for website developers to the MSDN IE Web Development forum. Include with your question a link to your website or a mashup that shows the issue.
Rob^_^ -
Workflow not getting triggered from webdynpro event
Hello gurus,
I have a requirement in which if an employee changes his own information on the ESS portal, then an approval should be done by HR. For this i created a custom webdynpro application in which i fetch the employee data and check it with old data in one view and when user clicks save button the approval workflow should be triggered.
For this i created a custom BO using transaction SWO1. I added a 'CHANGE' event and 'send_data_to_wf' method.
In SWDD i created the workflow which is working fine when i test it in SWDD only. But when i trigger it using FM 'SWE_CREATE_EVENT', only the event is getting triggered and not the workflow. I checked the trace in transaction SWEL in which i can see the 'CHANGE' event under Event column but Name of Reciever Type column is emty. It should display my custom workflow ID. Please let me know where i m lacking or going wrong.
Regards,
Yayati EkboteHello Ricardo,
Thanks for immediate reply. Yes, the linkage is active in SWE2. My custom object type is ZHRAD and event is change. I also tried the FM 'SAP_WAPI_CREATE_EVENT'. But in this FM the event also doesn't get triggered. Using FM 'SWE_CREATE_EVENT' atleast triggers the event. I debugged the FM. The container inside the FM is remaining initial. I am posting my code which i am using.
DATA: pernr TYPE pa0001-pernr VALUE '40000001'.
DATA: objtype TYPE swr_struct-object_typ VALUE 'ZHRADCHO',
objkey TYPE sweinstcou-objkey,
event TYPE swr_struct-event VALUE 'CHANGE',
it_wfcont TYPE STANDARD TABLE OF swcont,
wa_wfcont TYPE swcont,
event_id TYPE swedumevid-evtid,
ret_code TYPE swedumevid-evtid.
wa_wfcont-element = 'PERNR'.
wa_wfcont-value = '40000001'.
APPEND wa_wfcont TO it_wfcont.
wa_wfcont-element = 'SUBTY'.
wa_wfcont-value = '1'.
APPEND wa_wfcont TO it_wfcont.
wa_wfcont-element = 'ENDDA'.
wa_wfcont-value = sy-datum.
APPEND wa_wfcont TO it_wfcont.
wa_wfcont-element = 'BEGDA'.
wa_wfcont-value = sy-datum.
APPEND wa_wfcont TO it_wfcont.
objkey = pernr.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = objtype
objkey = objkey
event = event
* CREATOR = ' '
* TAKE_WORKITEM_REQUESTER = ' '
* START_WITH_DELAY = ' '
* START_RECFB_SYNCHRON = ' '
* NO_COMMIT_FOR_QUEUE = ' '
* DEBUG_FLAG = ' '
* NO_LOGGING = ' '
* IDENT =
* IMPORTING
* EVENT_ID =
* RECEIVER_COUNT =
TABLES
EVENT_CONTAINER = it_wfcont
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK. -
Button's Event Handler Method not getting triggered
To add a button I have written the following code:
clear ls_button.
l_import = 'Mass Upload'.
l_enabled = 'X'.
clear ls_button.
ls_button-on_click = 'UPLOAD'. "IMPORT FILE
ls_button-text = l_import.
ls_button-enabled = l_enabled.
INSERT ls_button INTO rt_buttons INDEX 5.
Created a new Event Handler method for it and wrote the following code:
gr_file_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'ZSRQM_INCID_H/FileUploadwindow'
iv_usage_name = 'ZCufileupload'
iv_title = l_title ).
gr_file_popup->set_on_close_event( iv_view = me iv_event_name = 'upload' ).
gr_file_popup->open( ).
When i run in th component in debug mode,my event is not getting triggered.
Please suggest.
Regards
NajamTry the following code in first part...
clear ls_button.
l_import = 'Mass Upload'.
clear ls_button.
ls_button-on_click = 'UPLOAD'. "IMPORT FILE
ls_button-text = l_import.
ls_button-page_id = me->component_id.
ls_button-enabled = abap_true.
INSERT ls_button INTO rt_buttons INDEX 5. -
Bar Graph Click Listener Should Open a Tab
Hi,
We have got a special requirement: Our application has 6 tabs. The first tab is the Dashboard. On Dashboard, we have few bar graphs. And each graph represents the current status of remaining 5 tabs.
And the requirement is, when the user clicks on any bar graph, respective tab should get opened. We easily achieved this when using a button/ Command Link/ Command Image Link as because they are supporting action event.
In case of bargraph, we are not getting this happened. Could you please let me know if there any way for us to achieve this requirement.
And FYI … here is the dashboard screen shot of our application. As per the below URL, when user clicks on the bar of Request bar graph, the Requests tab should get opened.
https://picasaweb.google.com/112002138169335747235/IssueWithBarGraph?authuser=0&feat=directlink
Here is the code snippet for the same:
public void alertsBarGraphListener(ClickEvent clickEvent) {
UIComponent uiComponent = clickEvent.getComponent();
if (uiComponent instanceof UIGraph ) {
String id = uiComponent.getId();
List<UIComponent> panelTabs = this.mainMenuTabs.getChildren();
boolean foundTab = false;
for(UIComponent tab: panelTabs) {
if(tab instanceof RichShowDetailItem) {
String[] triggerIds = ((RichShowDetailItem)tab).getPartialTriggers();
if(triggerIds !=null) {
for(String triggerid : triggerIds) {
if(id.equals(triggerid)) {
this.dashBoardDetailItem .setDisclosed(false);
((RichShowDetailItem)tab).setDisclosed(true);
foundTab = true;
Please let me know your comments.
Thanks & Regards,
Kiran KonjetiAfter setting the disclosed property for the tabs, you would need to have PPR to the panelTab in order to reflect the changes in UI.
Here, is an sample based on your use-case:
TestPage.jspx:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
*<af:panelTabbed id="pt1" binding="#{TestPageBean.panelTab}">*
*<af:showDetailItem text="Graph" id="sdi1">*
*<dvt:barGraph id="barGraph1" subType="BAR_VERT_CLUST"*
*clickListener="#{TestPageBean.clickListener}">*
*<dvt:background>*
*<dvt:specialEffects/>*
*</dvt:background>*
*<dvt:graphPlotArea/>*
*<dvt:seriesSet>*
*<dvt:series/>*
*</dvt:seriesSet>*
*<dvt:o1Axis/>*
*<dvt:y1Axis/>*
*<dvt:legendArea automaticPlacement="AP_NEVER"/>*
*</dvt:barGraph>*
*</af:showDetailItem>*
*<af:showDetailItem text="Another Tab" id="sdi2">*
*<af:commandButton text="Button in another tab" id="cb1"/>*
*</af:showDetailItem>*
*</af:panelTabbed>*
</af:form>
</af:document>
</f:view>
</jsp:root>
*TestPageBean.java:*
package view.bean;
import java.util.List;
import javax.faces.component.UIComponent;
import oracle.adf.view.faces.bi.event.ClickEvent;
import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
import oracle.adf.view.rich.context.AdfFacesContext;
public class TestPageBean {
private RichPanelTabbed panelTab;
public TestPageBean() {
public void clickListener(ClickEvent clickEvent) {
List<UIComponent> showDetailItems = this.panelTab.getChildren();
for (UIComponent showDetailItem : showDetailItems) {
RichShowDetailItem currentRichShowDetailItem =
(RichShowDetailItem)showDetailItem;
currentRichShowDetailItem.setDisclosed(false);
if (currentRichShowDetailItem.getText().equals("Another Tab")) {
currentRichShowDetailItem.setDisclosed(true);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(this.panelTab);
public void setPanelTab(RichPanelTabbed panelTab) {
this.panelTab = panelTab;
public RichPanelTabbed getPanelTab() {
return panelTab;
Thanks,
Navaneeth -
User command is not getting triggered in interactive ALV with LIST display
Hi experts,
I have developed an interactive ALV report with LIST display. Here, the issue is, when i double click a record in the primary ALV list, the control must go to the USER COMMAND event which i have written in my report. But the user command event is not getting triggered at all when i double click any record.
It gives the following information instead.
"Choose a valid function".
(My user command name and its respective form name are same.)
Here is my code..
START-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
i_callback_user_command = 'TST1'
i_callback_pf_status_set = 'SET_PF_STATUS'
TABLES
t_outtab = <dyn_table>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
FORM tst1 USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Local data declaration
DATA: li_tab TYPE REF TO data,
l_line TYPE REF TO data.
* Local field-symbols
FIELD-SYMBOLS:<l_tab> TYPE table,
<l_wa> TYPE ANY.
* Create table
CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN li_tab->* TO <l_tab>.
* Create workarea
CREATE DATA l_line LIKE LINE OF <l_tab>.
ASSIGN l_line->* TO <l_wa>. CASE r_ucomm.
* When a record is selected
WHEN '&IC1'.
* Read the selected record
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
rs_selfield-tabindex. IF sy-subrc = 0.
* Store the record in an internal table
APPEND <dyn_wa> TO <l_tab>.
* Fetch the field catalog info
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'Z_DEMO_PDF_JG'
i_structure_name = p_table
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
Please advice what is the msitake i have done here..Read the following code:
pass the i_callback_user_command = g_user_command to the ALV function module and write the FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
as shown below.
thanx
Data for ALV display
DATA : gt_fieldcat TYPE slis_t_fieldcat_alv,
gt_events TYPE slis_t_event,
g_variant LIKE disvariant,
g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
g_status TYPE slis_formname VALUE 'SET_PF_STATUS',
gt_list_top_of_page TYPE slis_t_listheader,
g_repid LIKE sy-repid,
gf_pos TYPE i
Data for ALV display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_program = sy-repid
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
i_callback_user_command = g_user_command
i_save = 'A'
is_variant = g_variant
TABLES
t_outtab = it_print.
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
CASE selfield-sel_tab_field.
WHEN '1-KUNNR'.
READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
IF sy-subrc = 0.
SET PARAMETER ID 'BPA' FIELD wa_print-kunnr.
CALL TRANSACTION 'BP'.
ENDIF.
WHEN '1-MATNR'.
READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
IF sy-subrc = 0.
SET PARAMETER ID 'JP_ISS' FIELD wa_print-matnr.
CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN..
GET PARAMETER ID 'WRK' FIELD wa_zprint-werks.
SET PARAMETER ID 'VKO' FIELD wa_zprint-vkorg.
SET PARAMETER ID 'VTW' FIELD wa_zprint-vtweg.
CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN.
ENDIF.
Endcase.
Endform. -
Due to MODIF ID, SELECT query in START-OF-SELECTION not getting triggered
Dear SAP Gurus,
I'm stuck with this program, where, my program is not being executed, as in, my SELECT query in my event START-OF-SELECTION is not getting triggered. Since i hav used MODIF ID, for SELECT-OPTIONS, even after putting the entries in select-options...................when i click on the execute button, or press F8, the program still goes into the AT SELECTION-SCREEN OUTPUT event..........but i want it to goto START-OF-SELECTION event where my SELECT query is........what should i do??????????????
Please find the notepad file having the code, n exucse me for any selection-texts absence.
Need help from u in this issue.
Thanks in advance.
REPORT ZPPR_CONVSTAT NO STANDARD PAGE HEADING.
INCLUDE ZPPR_CONVSTAT_TOP. " data declaration
INCLUDE ZPPR_CONVSTAT_SEL_CRITERIA. " selection criteria
INCLUDE ZPPR_CONVSTAT_PBO. " event at selection-screen output
INCLUDE ZPPR_CONVSTAT_START_SELECTION. " event start-of-selection
INCLUDE ZPPR_CONVSTAT_F_START_OF_SEL.
*& Include ZPPR_CONVSTAT_TOP
TABLES : VBUK,
VBUP,
VBAK,
VBAP,
VBEP,
VBPA,
TVAK,
EKUB,
LIKP,
LIPS,
MARA,
MAKT,
MARC,
PLAF,
AUFK,
AFKO,
AFPO,
AFVC,
AFVV,
CRHD,
PBIM,
KNA1,
T134,
IOHEADER,
IOITEM.
TYPE-POOLS : slis.
TYPES : BEGIN OF ty_final,
werks TYPE vbap-werks, "Plant
auart TYPE vbak-auart, "Sales Order Doc. type
erdat TYPE vbak-erdat, "Sales Order Creation date
vbeln TYPE vbak-vbeln, "Sales Order No.
posnr TYPE vbap-posnr, "Sales Order Item No.
aedat TYPE vbak-aedat, "Sales Order Change Date
kwmeng TYPE vbap-kwmeng, "Sales Order qty.
vdatu TYPE vbak-vdatu, "Requested Delivery Date
lfimg TYPE lips-lfimg, "Sales Order Delivered Qty.
matnr TYPE vbap-matnr, "Material ID
arktx TYPE vbap-arktx, "Material Description
strgr TYPE marc-strgr, "Planning Strategy
vrkme TYPE vbap-vrkme, "UOM
plnum TYPE plaf-plnum, "Plan Order No.
gsmng TYPE plaf-gsmng, "Plan Order Qty.
auffx TYPE plaf-auffx, "Plan Order Firming Indicator u2013 Qty.
stlfx TYPE plaf-stlfx, "Plan Order Firming Indicator - Component
erdat2 TYPE aufk-erdat, "Production Order Creation Date
aufnr TYPE aufk-aufnr, "Production Order No.
prdqty TYPE afko-gamng, "Production Order qty.
pckqty TYPE lips-lfimg, "Packed Delivered Qty.
psamg TYPE afpo-psamg, "Allotted scrap
igmng TYPE afko-igmng, "Confirmed Yield Qty.
iasmg TYPE afko-iasmg, "Confirmed Scrap Qty
iamng TYPE afpo-iamng, "Expected Yield
wemng TYPE afpo-wemng, "Delivered Qty.
altscrp TYPE c LENGTH 6, "Allotted Scrap %
actscrp TYPE c LENGTH 6, "Actual Scrap %
umrez TYPE afvv-umrez, "Ups (from Prd. ORD)
ups TYPE clobjdat-ausp1, "Ups (from Material Master)
crtnstl TYPE clobjdat-ausp1, "Carton Style
ppopr TYPE clobjdat-ausp1, "Pre-Printing Operation
brdtyp TYPE clobjdat-ausp1, "Board Type
lsdim1 TYPE clobjdat-ausp1, "Layout Size u2013 Dim 1
lsdim2 TYPE clobjdat-ausp1, "Layout Size u2013 Dim 2
lsgsm TYPE clobjdat-ausp1, "GSM
inktyp TYPE clobjdat-ausp1, "Ink Type
foiltyp TYPE clobjdat-ausp1, "Foiling
wintyp TYPE clobjdat-ausp1, "Window Type
lamin TYPE clobjdat-ausp1, "Lamination
fsvrnsh TYPE clobjdat-ausp1, "Front Side Varnish
bsvrnsh TYPE clobjdat-ausp1, "Back Side Varnish
emboss TYPE clobjdat-ausp1, "Embossing
punch TYPE clobjdat-ausp1, "Punching
paste TYPE clobjdat-ausp1, "Pasting
oprno TYPE afvc-vornr, "Operation No.
wrkcntr TYPE crhd-arbpl, "Work Centre
oprtxt TYPE afvc-ltxa1, "Operation Text
oprqty TYPE afvv-mgvrg, "Operation qty.
yield TYPE afvv-lmnga, "Yield
scrap TYPE afvv-xmnga, "Scrap
jobtyp TYPE vbak-augru, "Job Type
prordst TYPE bsvx-sttxt, "Production Order Status
solinst TYPE vbup-lfsta, "Sales Order Line Item Status
sldprty TYPE kna1-name1, "Sold to Party Name
shpprty TYPE kna1-name1, "Ship to Party Name
shpcity TYPE kna1-ort01, "Ship to party - City
END OF ty_final.
TYPES : BEGIN OF ty_vbak,
auart TYPE vbak-auart,
erdat TYPE vbak-erdat, "Doc creation date
vbeln TYPE vbak-vbeln,
aedat TYPE vbak-aedat, "Doc change date
vdatu TYPE vbak-vdatu, "Requested delivery date
kunnr TYPE vbak-kunnr,
augru TYPE vbak-augru, "Job Type
END OF ty_vbak.
TYPES : BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
werks TYPE vbap-werks,
matnr TYPE vbap-matnr,
arktx TYPE vbap-arktx,
kwmeng TYPE vbap-kwmeng,
vrkme TYPE vbap-vrkme,
END OF ty_vbap.
TYPES : BEGIN OF ty_pbim,
pbdnr TYPE pbim-pbdnr, "Requirements Plan Number
bdzei TYPE pbim-bdzei, "Independent requirements pointer
matnr TYPE pbim-matnr,
werks TYPE pbim-werks,
END OF ty_pbim.
TYPES : BEGIN OF ty_pbhi,
bdzei TYPE pbhi-bdzei, "Independent requirements pointer
pdatu TYPE pbhi-pdatu, "Requirement date
laeda TYPE pbhi-laeda, "Date of Last Change
END OF ty_pbhi.
TYPES : BEGIN OF ty_ekko,
ebeln TYPE ekko-ebeln, "STO doc no
bsart TYPE ekko-bsart,
reswk TYPE ekko-reswk, "Supplying plant
aedat TYPE ekko-aedat, "Doc creation date
END OF ty_ekko.
TYPES : BEGIN OF ty_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat, "Doc change date
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
matnr TYPE ekpo-matnr,
txz01 TYPE ekpo-txz01,
END OF ty_ekpo.
TYPES : BEGIN OF ty_eket,
ebeln TYPE eket-ebeln,
ebelp TYPE eket-ebelp,
eindt TYPE eket-eindt, "Requested delivery date
END OF ty_eket.
TYPES : BEGIN OF ty_lips,
vbeln TYPE lips-vbeln,
posnr TYPE lips-posnr,
vgbel TYPE lips-vgbel,
vgpos TYPE lips-vgpos,
lfimg TYPE lips-lfimg,
END OF ty_lips.
TYPES : BEGIN OF ty_plaf,
plnum TYPE plaf-plnum,
matnr TYPE plaf-matnr,
gsmng TYPE plaf-gsmng,
auffx TYPE plaf-auffx,
stlfx TYPE plaf-stlfx,
kdauf TYPE plaf-kdauf,
kdpos TYPE plaf-kdpos,
pbdnr TYPE plaf-pbdnr,
END OF ty_plaf.
TYPES : BEGIN OF ty_aufk,
aufnr TYPE aufk-aufnr,
erdat TYPE aufk-erdat,
objnr TYPE aufk-objnr,
END OF ty_aufk.
TYPES : BEGIN OF ty_afko,
aufnr TYPE afko-aufnr,
gamng TYPE afko-gamng, "Total order quantity
gasmg TYPE afko-gasmg, "Total scrap quantity in the order
igmng TYPE afko-igmng, "Confirmed Yield Qty
iasmg TYPE afko-iasmg, "Confirmed Scrap Qty
aufpl TYPE afko-aufpl, "Routing number of operations in the order
END OF ty_afko.
TYPES : BEGIN OF ty_afpo,
aufnr TYPE afpo-aufnr,
plnum TYPE afpo-plnum,
matnr TYPE afpo-matnr,
pgmng TYPE afpo-pgmng, "Plan Order Qty
kdauf TYPE afpo-kdauf,
kdpos TYPE afpo-kdpos,
psamg TYPE afpo-psamg, "Allotted scrap
iamng TYPE afpo-iamng, "Expected Yield Variance
wemng TYPE afpo-wemng, "Delivered Qty
END OF ty_afpo.
TYPES : BEGIN OF ty_afvc,
vornr TYPE afvc-vornr,
aufpl TYPE afvc-aufpl, "Routing number of operations in the order
aplzl TYPE afvc-aplzl, "General counter for order
arbid TYPE afvc-arbid, "Object ID of the resource
ltxa1 TYPE afvc-ltxa1,
END OF ty_afvc.
TYPES : BEGIN OF ty_afvv,
aufpl TYPE afvv-aufpl, "Routing number of operations in the order
aplzl TYPE afvv-aplzl, "General counter for order
umrez TYPE afvv-umrez,
mgvrg TYPE afvv-mgvrg,
lmnga TYPE afvv-lmnga,
xmnga TYPE afvv-xmnga,
END OF ty_afvv.
TYPES : BEGIN OF ty_mdvm,
mdkey TYPE mdvm-mdkey,
disst TYPE mdkp-disst,
matnr TYPE mdkp-matnr,
plwrk TYPE mdkp-plwrk,
END OF ty_mdvm.
DATA : it_final TYPE STANDARD TABLE OF ty_final,
it_vbak TYPE STANDARD TABLE OF ty_vbak,
it_vbap TYPE STANDARD TABLE OF ty_vbap,
it_lips TYPE STANDARD TABLE OF ty_lips,
it_pbim TYPE STANDARD TABLE OF ty_pbim,
it_pbhi TYPE STANDARD TABLE OF ty_pbhi,
it_ekko TYPE STANDARD TABLE OF ty_ekko,
it_ekpo TYPE STANDARD TABLE OF ty_ekpo,
it_eket TYPE STANDARD TABLE OF ty_eket,
it_plaf TYPE STANDARD TABLE OF ty_plaf,
it_aufk TYPE STANDARD TABLE OF ty_aufk,
it_afko TYPE STANDARD TABLE OF ty_afko,
it_afpo TYPE STANDARD TABLE OF ty_afpo,
it_afvc TYPE STANDARD TABLE OF ty_afvc,
it_afvv TYPE STANDARD TABLE OF ty_afvv,
it_mdvm TYPE STANDARD TABLE OF ty_mdvm.
DATA : wa_final TYPE ty_final,
wa_vbak TYPE ty_vbak,
wa_vbap TYPE ty_vbap,
wa_lips TYPE ty_lips,
wa_pbim TYPE ty_pbim,
wa_pbhi TYPE ty_pbhi,
wa_ekko TYPE ty_ekko,
wa_ekpo TYPE ty_ekpo,
wa_eket TYPE ty_eket,
wa_plaf TYPE ty_plaf,
wa_aufk TYPE ty_aufk,
wa_afko TYPE ty_afko,
wa_afpo TYPE ty_afpo,
wa_afvc TYPE ty_afvc,
wa_afvv TYPE ty_afvv,
wa_mdvm TYPE ty_mdvm.
DATA : it_object TYPE hum_object_t,
wa_object TYPE hum_object,
it_item TYPE hum_hu_item_t,
wa_item TYPE vepovb,
count1(6) TYPE n.
DATA : gv_objek TYPE ausp-objek. "Put matnr for use in FM u2018CLAF_CLASSIFICATION_OF_OBJECTSu2019
DATA : BEGIN OF it_sclass OCCURS 0.
INCLUDE STRUCTURE sclass.
DATA : END OF it_sclass.
DATA : BEGIN OF it_clobjdat OCCURS 0.
INCLUDE STRUCTURE clobjdat.
DATA : END OF it_clobjdat.
*& Include ZPPR_CONVSTAT_SEL_CRITERIA
SELECTION-SCREEN FOR 'PLANNING STAGE'
SELECTION-SCREEN BEGIN OF BLOCK main WITH FRAME TITLE text-001.
PARAMETERS: mrpntdn RADIOBUTTON GROUP sel DEFAULT 'X' user-command flag,
pldord RADIOBUTTON GROUP sel,
prdord RADIOBUTTON GROUP sel.
SELECTION-SCREEN END OF BLOCK main.
SELECTION-SCREEN FOR 'SELECTION BY PLANT AND PLANT DATA'
SELECTION-SCREEN BEGIN OF BLOCK plant WITH FRAME TITLE text-002.
PARAMETERS : p_werks LIKE ioheader-werks OBLIGATORY DEFAULT '1100' MATCHCODE OBJECT H_T001W.
SELECT-OPTIONS : so_matnr FOR ioitem-matnr MATCHCODE OBJECT MAT1.
PARAMETERS : so_mtart TYPE t134-mtart OBLIGATORY DEFAULT 'ZFIN' MATCHCODE OBJECT H_T134.
SELECT-OPTIONS : so_plnum FOR ioitem-plnum MATCHCODE OBJECT plnum MODIF ID pld,
so_aufnr FOR ioheader-aufnr MATCHCODE OBJECT orde MODIF ID prd.
PARAMETERS : p_prdsta LIKE tj02t-txt04 MODIF ID prd.
SELECTION-SCREEN END OF BLOCK plant.
SELECTION-SCREEN FOR 'SELECTION BY REQUIREMENT TYPE'
SELECTION-SCREEN BEGIN OF BLOCK reqtyp WITH FRAME TITLE text-003.
PARAMETERS : cb_so TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag,
cb_sto TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag,
cb_pir TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN END OF BLOCK reqtyp.
SELECTION-SCREEN FOR 'SELECTION BY DATE AND REQUIREMENT TYPE NOS'
SELECTION-SCREEN BEGIN OF BLOCK dtreqtypno WITH FRAME TITLE text-004.
SELECT-OPTIONS : so_crtdt FOR vbak-erdat MODIF ID gen,
so_vbeln FOR vbap-vbeln MATCHCODE OBJECT WTY_F4_VBAP MODIF ID rso,
so_posnr FOR vbap-posnr MODIF ID rso,
so_ebeln FOR ekub-ebeln MATCHCODE OBJECT MEKKM MODIF ID rst,
so_ebelp FOR ekub-ebelp MODIF ID rst,
so_pbdnr FOR pbim-pbdnr MODIF ID rpi,
so_reqdt FOR vbep-edatu MODIF ID gen.
SELECTION-SCREEN END OF BLOCK dtreqtypno.
SELECTION-SCREEN FOR 'SELECTION BY OTHER PARAMETERS'
SELECTION-SCREEN BEGIN OF BLOCK othrparam WITH FRAME TITLE text-005.
SELECT-OPTIONS : so_kunnr FOR kna1-kunnr MATCHCODE OBJECT debi MODIF ID rso,
so_auart FOR tvak-auart MATCHCODE OBJECT H_TVAK MODIF ID rso,
so_lfsta FOR vbup-lfsta MODIF ID rso.
SELECTION-SCREEN END OF BLOCK othrparam.
*& Include ZPPR_CONVSTAT_PBO
*& Event AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
IF mrpntdn = 'X'.
LOOP AT SCREEN.
IF ( screen-group1 = 'PLD' OR screen-group1 = 'PRD' ).
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF pldord = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'PLD'.
screen-intensified = 1.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'PRD'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF prdord = 'X'.
LOOP AT SCREEN.
IF ( screen-group1 = 'PLD' OR screen-group1 = 'PRD' ).
screen-intensified = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF ( cb_so = ' ' AND cb_sto = ' ' AND cb_pir = ' ' ).
LOOP AT SCREEN.
IF ( screen-group1 = 'GEN'
OR screen-group1 = 'RSO'
OR screen-group1 = 'RST'
OR screen-group1 = 'RPI' ).
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_so = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
IF cb_sto = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RST'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_pir = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RPI'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ELSEIF cb_sto = 'X'.
IF cb_so = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_pir = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RPI'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ELSEIF cb_pir = 'X'.
IF cb_so = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_sto = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RST'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
*& Include ZPPR_CONVSTAT_START_SELECTION
*& Event START-OF-SELECTION
IF mrpntdn = 'X'.
PERFORM start_of_selection_mrpntdn.
ELSEIF pldord = 'X'.
PERFORM start_of_selection_pldord.
ELSEIF prdord = 'X'.
PERFORM start_of_selection_prdord.
ENDIF.
*& Include ZPPR_CONVSTAT_F_START_OF_SEL
*& Form START_OF_SELECTION
Subroutine for MRP NOT DONE
FORM start_of_selection_mrpntdn.
SELECT mdkey INTO TABLE it_mdvm FROM mdvm
WHERE GSAEN = 'X'
AND AKKEN = 'X'.
IF sy-subrc = 0.
LOOP AT it_mdvm INTO wa_mdvm.
wa_mdvm-disst = wa_mdvm-mdkey(3).
wa_mdvm-matnr = wa_mdvm-mdkey+3(18).
wa_mdvm-plwrk = wa_mdvm-mdkey+21(4).
MODIFY it_mdvm FROM wa_mdvm INDEX sy-index TRANSPORTING disst matnr plwrk.
ENDLOOP.
ENDIF.
ENDFORM.
*& Form START_OF_SELECTION
Subroutine for PLAN ORDER CREATED
FORM start_of_selection_pldord.
ENDFORM.
*& Form START_OF_SELECTION for PRODUCTION ORDER CREATED
Subroutine for PRODUCTION ORDER CREATED
FORM start_of_selection_prdord.
ENDFORM.You need to mention START-OF-SELECTION explicitly in your code.
Change your code as below:
*& Event START-OF-SELECTION
START-OF-SELECTION.
IF mrpntdn = 'X'. -
ON_DATA_CHECK not getting triggered on deletion of row
Hi,
I have implemented a method which triggers the on_data_check event of the ALV.
I have a Save button from where I am calling the data_check method.
The issue I am facing is that when I edit the content of a cell and click Save then the on_data_check event is triggered however when I delete a row and click on Save then the on_data_check event is not getting triggered.
What have I missed?
Thanks,
SumanaHi Sumana,
Try calling the data_check method from within your WDDOAFTERACTION method. I have tried doing it that way. This way whenever any action is performed the system would check for any changes in data & yes this also works for the deleted rows. Within the eventhandler method for ON_DATA_CHECK you have the input parameter R_PARAM. Within debugging mode try see the contents of R_PARAM. You can find the deleted rows information in IF_SALV_WD_TABLE_DATA_CHECK~T_DELETED_ROWS.
Regards,
Uday -
Output fax not getting triggered when sales order credit block is released
Hi Experts,
I am working on an issue.
I have one sales Order which has credit block.
when we release the credit block via vkm3, then the output fax gets triggered.
I have another sales order which has credit block,
when we release the credit blcok via vkm3 , the output fax is NOT getting triggered.
If any of you has worked on this setting, request your input on where to find the settings/coding for the same.
Any advice on this please.
Regs,
SuryaD.
Edited by: SuryaD on Oct 21, 2010 9:34 PMHi Brad,
Thanks for your response.
Order 1: Issues output fax(ZFAX) correctly when block is released.(i see output zfax in te output screen)
Order 2: Fails to issue output fax(ZFAX) even when the block is released.( i dont see any output in the output screen)
I went to Go to -Determine analysis for both orders 1 and order 2.
in both the analysis i am able to see the output ZFAX.
*Analysis Output*
*Order 1 Order 2*
1. ZFAX 1. ZFAX
10(Z010) 10(Z010)
0000122426 0000122427
2. ZFAX 2. ZFAX
When i click, D.Click on the output type ZFAX on both the order Analysis output screen, i see similarities.
There in just 2 differences as below.
In the above screen,
1.Order 1 ==> has some value 0000122426
2.For Order 1==> row marked 2.(in the above screen) if i D.Click on ZFAX it says
Diagnosis
Output ZFAX has already been issued. Multiple issue for this output type is forbidden in Customizing.
In the above screen
1.Order 2 ==> has some value 0000122427
2.For Order 2==> row marked 2.(in the above screen) if i D.Click on ZFAX it says
No more information is available.
Please guide as to how to initiate the debug for output processing ?
Which screen where to switch on debugger.
where to look further?
Regards,
SuryaD.
Edited by: SuryaD on Oct 22, 2010 11:41 AM -
BOR BANKDETAIL is not getting triggered
Hi Experts,
We are facing a problem, we are changing bank data but still BOR BANKDETAIL is not getting triggered.Mysterious part is that
the event created was triggered previously, now its' not triggering.
If i want to debug to know the resaon then how can i do it?
How can i know the place where the event of the BOR is raised?
Can anoyone give any idea regarding this behaviour?Hi,
If you are trying to debug the badi which creates the backend document(Po/PR),then see the foll threads for more pointers:
Re: How can I debug BADI BBP_CREATE_BE_PO_NEW ??
Re: Debugging a BADI which is called in update task in background.
BR,
Disha.
Maybe you are looking for
-
Plant entry is not recognised in PO, PR
Hi I am currently working on the raw system, i suppose there is only one plant available in the table T001w ie. XYZ... I copied the same plant and made new one ABC... Now when i go ME21N and enter plant field in the item details...its neither taking
-
Data copy B/W Essbase Applications using script
How to Data copy from one app to another app. Server Name: Server1 Version: 9.3 Essbase App: App1 Data Bases: Db1, Db2,Db3 Server Name: Server1 Version: 9.3 Essbase App: App2 Data Bases: Db1, Db2,Db3 Note: App1 & App2 Applications are having similar
-
Cookies set to "Never" but Safari now accepts all cookies anyway
In looking closely at cookies accepted "only from sites I visit" I noticed that it actually includes a lot of third-party cookies, so I keep Preferences set to Never unless I'm accessing a site that must accept them (for example, New York Times). Ho
-
Error no. 4 in SAPGUI with Graphics call or file transfer
Hi Experts, I have a requirement that is " I need to display the selected data from database table in bar chart". I am using the Function Module " GRAPH_MATRIX_3D ". I am getting the following error message. " Error no. 4 in SAPGUI with Graphics call
-
Would your company like to pilot SAP Enterprise Search?
SAP is interested to find a limited number of customers who would like to pilot enterprise search based on Argo and NetWeaver. You'd have to be willing to participate, contribute, and help define the product. Pilots can begin very quickly. We shou