To catch click event on a picture on screen
How to catch the click event on a picture on screen? Please answer with code.
regards
agn
Try this code....
REPORT zaby_pic.
CLASS cl_picture_click DEFENITION.
PUBLIC SECTION.
METHODS: picture_yclick FOR EVENT picture_click of cl_gui_picture IMPORTING mouse_pos_x mouse_pos_y.
ENDCLASS.
CLASS cl_picture_click IMPLEMENTATION.
METHOD: picture_yclick.
Perform onclick. "write the action of click in this form.
ENDMETHOD.
ENDCLASS.
DATA: obj_cl_picture_class TYPE REF TO cl_picture_click.
DATA: it_event_picture TYPE TABLE OF cntl_simple_event,
wa_event_picture TYPE cntl_simple_event.
MODULE status_001_output.
wa_event_picture-eventid = cl_gui_picture=>eventid_picture_click.
wa_event_picture-appl_event = 'X'.
APPEND wa_event_picture to it_event_picture.
CALL METHOD h_picture->set_registered_events
Exporting
events = it_evet_picture
Exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3
OTHERS = 4.
CREATE OBJECT obj_cl_picture_click.
SET HANDLER obj_cl_picture_click->picture_yclick FOR h_picture. "h_picture is the object of class cl_gui_picture.
ENDMODULE
...................Hope this code will help you. Thanks.
Similar Messages
-
How to catch click event on BAR or a BAR GRAPH???
Hello
I want to implemnt following things,
1. there is Bar Graph containing 10 Bars.
2. So i want to navigate to 10 diff. pages on click of each bar.
So how to catch click event on BAR or a BAR GRAPH.????Hi,
You can set Destination URI on a graph. The URL can be specifically associated to a particular data point plotted in the graph.
Detail for the same is provided in OAF developer guide under 'Charts and Graphs' topic.
--Sushant -
How to catch click event on a link from an applet
how to catch click event on a link from an applet
The applet has to call a mouse listener:
public class Applet extends Applet
implements MouseListener, MouseMotionListener
The mouse methods must be included, here is the one to catch a click
public void mouseClicked(MouseEvent e) -
JLabel click event to change picture
Hi All,
I am new to GUI programming and need some help.
I am trying to get a picture of a match to change to a different picture of a match when i click on it.
Below is how I'm currently trying to do it.
import javax.swing.UIManager;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Application2 {
boolean packFrame = false;
//Construct the application
public Application2() {
Frame2 frame = new Frame2();
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their layout
if (packFrame) {
frame.pack();
else {
frame.validate();
//Center the window
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frame.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
frame.setVisible(true);
//Main method
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
catch(Exception e) {
e.printStackTrace();
new Application2();
public class Frame2 extends JFrame {
JPanel contentPane;
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
ImageIcon match = new ImageIcon("match.JPG");
ImageIcon match2 = new ImageIcon("match2.JPG");
JLabel jLabel1 = new JLabel(match);
JLabel jLabel2 = new JLabel(match2);
//Construct the frame
public Frame2() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
//Component initialization
private void jbInit() throws Exception {
contentPane = (JPanel) this.getContentPane();
contentPane.setLayout(borderLayout1);
this.setSize(new Dimension(400, 300));
this.setTitle("Frame Title");
jLabel1.addMouseListener(new Frame2_jLabel1_mouseAdapter(this));
contentPane.add(jPanel1, BorderLayout.CENTER);
jPanel1.add(jLabel1, null);
// jPanel1.add(jLabel2, null);
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
void jLabel1_mouseClicked(MouseEvent e) {
// DOESN'T seam to work
jLabel1 = new JLabel(match2);
// jPanel1.remove(jLabel1);
// jPanel1.add(jLabel1);
jPanel1.repaint();
repaint();
class Frame2_jLabel1_mouseAdapter extends java.awt.event.MouseAdapter {
Frame2 adaptee;
Frame2_jLabel1_mouseAdapter(Frame2 adaptee) {
this.adaptee = adaptee;
public void mouseClicked(MouseEvent e) {
adaptee.jLabel1_mouseClicked(e);
}import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Frame2Rx extends JFrame {
JPanel contentPane;
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
ImageIcon match = new ImageIcon("images/bclynx.jpg");
ImageIcon match2 = new ImageIcon("images/greathornedowl.jpg");
ImageIcon[] icons;
int iconCount;
JLabel jLabel1 = new JLabel(match);
JLabel jLabel2 = new JLabel(match2);
//Construct the frame
public Frame2Rx() {
icons = new ImageIcon[] { match, match2 };
iconCount = 0;
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
//Component initialization
private void jbInit() throws Exception {
contentPane = (JPanel) this.getContentPane();
contentPane.setLayout(borderLayout1);
this.setSize(new Dimension(400, 300));
this.setTitle("Frame Title");
jLabel1.addMouseListener(new Frame2_jLabel1_mouseAdapter(this));
contentPane.add(jPanel1, BorderLayout.CENTER);
jPanel1.add(jLabel1, null);
// jPanel1.add(jLabel2, null);
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
void jLabel1_mouseClicked(MouseEvent e) {
jLabel1.setIcon(icons[++iconCount % icons.length]);
jLabel1.revalidate(); // esp if image sizes not equal
jLabel1.repaint();
public static void main(String[] args)
Frame2Rx f = new Frame2Rx();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
class Frame2_jLabel1_mouseAdapter extends java.awt.event.MouseAdapter {
Frame2Rx adaptee;
Frame2_jLabel1_mouseAdapter(Frame2Rx adaptee) {
this.adaptee = adaptee;
public void mouseClicked(MouseEvent e) {
adaptee.jLabel1_mouseClicked(e);
} -
How can I capture mouse click events on BSP or Web Dynpro ABAP Screen
hi Guys,
Currently we have a user inactivity problem,
the requirement is: if user is clicking on BSP/Web Dynpro ABAP screen, he/she is considered active. so we need an mechanism to capture the mouse click event.
Using Firebug, we found that this js is in the iframe which contains BSP/web dynpro scrren: /sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
we want to find this js file & put in some javascript code to track user's mouse click, but i cannot find it on server.
while in ie if we type http://host:port/sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
this file can be downloaded, means this file is there.
Any one can help on this issue? find the js file or another way to capture the mouse click event.
Thanks a lot with points!Hi Feng Guo,
We can not capture mouse click events on Web Dynpro ABAP Screen . I am not sure about BSP. But as for as I know the portal keep active the iViews until unless mouse clicks happens.
But for your problem I think you can get solution by setting iView Expiration to some more time period.
Regards,
Siva -
How do I catch the button click event from toolbar for my JSP?
I am using JDev 3.2 and BC4J for my JSP. I am using data web bean methods to create my JSPs. I need to implement a
master-detail relation in my JSP. Currently I put my master browser as the top frame of JSTabContainer bean and put my
6 detailed tables into 6 tabs. I found that when I click the next or previous button of toolbar of master frame, the detail tab
does not display the corresponding detail data properly. I think the reason is that I did not refresh the tab content when
the user change the current record of master table. Now my question is that how do I catch those events so that I can
refresh the content of my detail table? Or whatever suggestion can make this work.
Thanks,
LisaYou posted here with Firefox 17.0.1.
Try running a Norton Live Update so Norton can update their Firefox add-on and get that Toolbar working again.
That said, Norton doesn't do anything about Malware. You need a Malware application to locate and remove Malware.
Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
SuperAntispyware - [http://www.superantispyware.com/] <br />
AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
Windows Defender: Home Page - [http://windows.microsoft.com/en-US/windows7/products/features/windows-defender]<br />
Also, if you have a search engine re-direct problem, see this:<br />
http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
[http://www.spywarewarrior.com/index.php] <br />
[http://forum.aumha.org/] <br />
[http://www.spywareinfoforum.com/] <br />
[http://bleepingcomputer.com] -
ALV OOP- Catching the event when the user clicks a cell
Hi Experts,
i have 2 alvs to display using custom containers, now the problem is that i need to make some lines uneditable and some lines editable. On making this i find that ALV does not offer this functionality of selective editable rows, right? I offered a workaround by just popping an error message if a user clicks a row which suppose to be disabled/uneditable. My problem is that how can i catch the single click event in ALV using OOP?
Thanks to replies and points will be given...hi,
hope this helps.
creating Editable Cells in ALV
Making a column editable in ALV:
IT_FIELDCAT is an internal table which has the structure of the data to be displayed. Each row in this internal table creates a column in ALV. The fieldcat structure has an optional field u2018EDITu2019 which is not required to be passed all the time. By default the column is non-editable. If the value of the field EDIT is u2018Xu2019, that column becomes editable in the display.
Example:
wa_fieldcat-fieldname = 'CHECK'.
wa_fieldcat-edit = 'X'.
wa_fieldcat-coltext = 'Delete'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
The column DELETE in the ALV display is editable. The corresponding output internal table field name is CHECK.
Making individual cells editable or non-editable:
1. Include an internal table of type lvc_t_styl in the output internal table (as a field) of the ALV. This inner table is like other output fields of the internal table.
Example:
TYPES: BEGIN OF tt_project,
check TYPE c,
status(132) TYPE c,
it_styletab TYPE lvc_t_styl.
TYPES: END OF tt_project.
2. This inner internal table controls the style of each cell in the row of the output internal table.
3. Same like other fields of the output internal table, this style table (inner internal table) should be filled for each row of the table.
4. The structure of the output internal table.
CHECK STATUS IT_STYLETAB
X ABC Fieldname Style
CHECK Non-editable(MC_STYLE_DISABLED)
STATUS editable(MC_STYLE_ENABLED)
CDF Fieldname Style
Non-editable(MC_STYLE_DISABLED)
wa_stylerow-fieldname = u2018CHECKu2019. -
> Optional
wa_stylerow-style = cl_gui_alv_grid=>mc_style_disabled. (Non-editable)
or
wa_stylerow-style = cl_gui_alv_grid=>mc_style_enabled. (Editable)
Append wa_stylerow to wa_project-it_styletab.
Wa_stylerow is a work area for IT_STYLETAB.
Wa_project is work area for output internal table.
5. Refresh the inner internal table for each row in outer internal table.
6. If the fieldname is not provided for the style internal table, the entire row becomes editable or non-editable.
7. This provides the ability to enable input for a cell dynamically.
8. The layout of the ALV Grid should also be changed in order to achieve this. The layout has a parameter, u2018STYLENAMEu2019. The name of the style internal table should be given as the value for this field. The layout should be passed in SET_TABLE_FOR_FIRST_DISPLAY.
Example:
wa_layout-stylefname = 'IT_STYLETAB'.
reward if useful.
regards
srishti -
Button catches the Event only on the second click
Hi Experts,
I am new to adobe forms and facing a very strange problem. I have 2 buttons on my interactive form "SUBMIT" & "APPROVE" , now the problem is whenever i load my application(Webdynpro ABAP) for the first time and click any of the 2 buttons the event
ONSUBMIT of the ui element Interactive form is not caught(control doesnt reach the event) , but when i click any of these buttons from the second time the control reaches the breakpoint successfully.
I donot understand where i am going wrong , is there some java script that needs to be written in the initialise event of the buttons to make them trigger the event from the first click itself.
Thanks In Advance,
Chaitanya.Hi Chintan,
Thanks for your replies, there wasnt any specific reason for using check field buttons was just experimenting with the component.
Script in the Click event for button 1:
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 802.20071213024549.437972.422152 - SubmitToSAP.xfo
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
// END OF DO NOT MODIFY
Script in the Click event for button 2:(i am setting a flag when it is clicked)
var ref3 = xfa.resolveNode("xfa.record.APPROVE");
var ref2 = xfa.resolveNode("xfa.record.APPROVE").value;
ref3.value = "X";
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 802.20071213024549.437972.422152 - CheckFields.xfo
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
// END OF DO NOT MODIFY
Version of ALD : 8.1
Adobe Reader : 8.
Should there be some code written in the initialize event of the button ?
Thank you for your help so far,
Chaitanya. -
Firefox 9.0.1 with Flash player not catch keyboard event with mouse click.
In a flash application, I need select mutil items using shite key and mouse click, it is not working. looks like firefox didn't pass the keyboard even alone with the click event. This happen on Window 7, IE and Chrome have no problem. only FF
i have the same problem everytime i open a website with flashcontent firefox freezes and i have to kill the flash process to unfreeze the browser the only way i can see a youtube video is in html5 mode.
Hardware
Acer aspire 4553
Turion X2 p520
3gb of ddr3 ram
Ati Mobility Radeon 4250 -
How to catch menu click events from B1AddOn Wizard
Dear Friends,
I'm adding some custom menus to the SAP BO main menù using B1 Addon Wizard generated code, but then I don't know how to catch the events generated by the menus.
Thank you for attention
MassimoThank you Eddy,
I had a look at the help, but there it is not explainsed that events can be attached only to string menus!!
It was attempting to do something wrong.
A further question: is it possible to add new menus and related events to an existing project (I tried with new item and then B1 Addon Component, but it doesn't let me add new menus)?
Thanks again
Masimo -
Hi All!
In Good issue I have create One Button and in click event I call one function, but my problem when click this button it call my function 2 times. Please help me fix this problem, my code below:
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If ((pVal.FormType = 720 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = True)) Then
oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And (pVal.Before_Action = True)) Then
oItem = oForm.Items.Item("2")
oNewItem = oForm.Items.Add("MyBtnP", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oNewItem.Top = oItem.Top
oNewItem.Height = oItem.Height
oNewItem.Width = oItem.Width + 5
oNewItem.Left = oItem.Left + oItem.Width + 5
oButton = oNewItem.Specific
oNewItem.Visible = True
oButton.Caption = "Fixed Asset"
End If
Select Case pVal.ItemUID
Case "MyBtnP"
If SAPbouiCOM.BoEventTypes.et_CLICK Then
Try
oMatrix = oForm.Items.Item("13").Specific
colItemCode = oMatrix.Columns.Item("1")
Dim Row As Integer = oMatrix.RowCount
For i As Integer = 1 To Row
oEditItemCode = colItemCode.Cells.Item(i).Specific
If oEditItemCode.Value.ToString() <> "" Then
AssetMaster_Add(oEditItemCode.Value.Trim())
End If
Next
Me.SBO_Application.SetStatusBarMessage("Inserted Fixed Asset Successfully.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
Exit Sub
Catch ex As Exception
End Try
End If
End Select
End If
End SubHi Tao,
1. use et_ITEM_PRESSED instead of et_CLICK and combine it with BeforeAction:
If SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED and pval.BeforeAction = False Then
2. generally i recommend you to use BeforeAction instead of the old Before_Action (deprecated)
i saw that in et_FORM_LOAD in top of your code
lg David -
On click event on top level nevigation
Hi all,
Doe's anyone knows if it's possible to add an event that will be raised when ever the user clicks on the top level navigation and to send a parameter that will be catches in another iView?
Thanks for your help, Varda.Hi Varda,
There is a standard event which is fired for each user click on Top Level Navigation/Detailed Navigation.
Use the following to register the event
EPCM.subscribeEvent("urn:com.sapportals:navigation", "Navigate", myNavEventHandler);
You basically need to put this code in the iview where you want to catch the event. This will call call the JS method myNavEventHandler as that is defined over in the code to subscribe.
Hope this helps -
Make Double Click event on Row, Matrix
Hi All,
I'm new in SDK and sorry for my English.
Please show me how to make double click event on Row of Matrix, i have created a table contain all Draft which Docstatus is open and order by ObjType(DocType), but i can't using Link Button on DocNum Column to view Object Detail . I think another way to do that is make a double click event on each row of matrix. Can I do like that ? plz show me . Thank for any suggestion.
ThanksHi Shafi,
This is my .srf file
<items><action type="add"><item uid="MTX_Data" type="127" left="15" tab_order="0" width="620" top="41" height="285" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1"><AutoManagedAttribute /><specific SelectionMode="2" layout="0" titleHeight="19" cellHeight="19" TabOrder="0">
This is my code draw a form with matrix
Private Sub DrawForm()
Try
'Read File interface
LoadFromXML("DraftOpen.srf")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
oForm = SBO_Application.Forms.Item("DRFOPEN")
' Add Items
' Add a matrix
oMatrix = oForm.Items.Item("MTX_Data").Specific
oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single
This is my event
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If pVal.FormUID = "DRFOPEN" And pVal.ItemUID = "MTX_Data" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK And pVal.BeforeAction = True Then
Try
oForm = SBO_Application.Forms.Item("DRFOPEN")
Dim omatrix As SAPbouiCOM.Matrix
omatrix = oForm.Items.Item("MTX_Data").Specific
If omatrix.RowCount > 0 Then
For i As Integer = 1 To omatrix.RowCount
If omatrix.IsRowSelected(i) = True Then
MessageBox.Show(omatrix.Columns.Item(1).Cells.Item(pVal.Row).Specific.value)
MessageBox.Show(omatrix.Columns.Item(2).Cells.Item(pVal.Row).Specific.value)
End If
Next
End If
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
End If
please help me to check this code. i don't know why it's still not working with double click event. sorry to disturb you.
Edited by: PeterHoang on Aug 30, 2011 10:15 AM -
HierarchyViewer mouse click event on expansion icon
Hi,
I'm using HierarchyViewer in an application. Could you please suggest if I can catch the mouse click event on the expansion icon ["+" sign appearing right below the node]?
Thank you,
NimaDear Akash,
Are you sure about Disclose Listener of the HierarchyViewer??
I'm using Jdeveloper 11g (11.1.1.5) and HV component doesn't have such listener! -
Hi experts:
As you can see in this document:
/people/thomas.jung3/blog/2005/12/15/portal-eventing-a-solution-for-global-peace-and-harmony
We can trigger and catch portal events if we send the event from one ABAP WD to another one.
I want to create a WD Page in the portal composed by standard WD and non Standard ones. So, my question is the next one: Is it posible to catch from a non standard ABAP WD an even triggered by clicking, for example, in a standard one?.
Thank you all ¡¡!!Hi Thomas:
Thank you for your answer ¡¡!!.
Now the next question is "How can I Know the standard JAVA WD event iD, and the parameter that this triggered event "published" and that I need to import to my ABAP WD?".
So, in my WD ABAP, I Just have to use the tipical code:
DATA LO_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.
DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
DATA LO_API_CONTROLLER TYPE REF TO IF_WD_VIEW_CONTROLLER.
LO_API_CONTROLLER ?= WD_THIS->WD_GET_API( ).
CALL METHOD lo_portal_manager->SUBSCRIBE_EVENT
EXPORTING
PORTAL_EVENT_NAMESPACE = STANDARD_JAVA_WD_NAMESPACE
PORTAL_EVENT_NAME = STANDARD_JAVA_WD_EVENT_ID
VIEW = LO_API_CONTROLLER
ACTION = 'RECEIVE_PORTAL_EVENT'
Thank you in advance
Maybe you are looking for
-
Pessoal, boa tarde! Estou configurando a categoria de Nota Fiscal em minha empresa sem nenhum modelo de nota definido. Fiz todos os testes necessários e o resultado foi satisfatório. Alguém sabe me dizer se essa configuração poderá gerar algum impact
-
ITunes is not syncing my videos or music correctly
I backed up my old iPhone 5 that had been upgraded to iOS 8. got my iPhone 6 Plus and restored it using the latest iPhone 5 backup. I cannot get ALL of my music or the videos I select to sync to my iPhone 6. This occurs when I select "Manually man
-
For a number of reasons too lengthy and boring to go into here, I needed to create a new user and use that instead of my main one.... aka "new-joshua" vs. "joshua" I found that I need to move: ~/Library/iTunes (copy the whole folder) ~/Music/iTunes A
-
Debit note + table data?
guru's from which table i can fetch the debit note amt ( gross + tax) from subsequent credit and print into my Z report? Narendra
-
Hi, I am not able to enter and invoice with a serial number that was assigned in previous Financial year. As per my understanding in a financial year one invoice number from the same vendor can be accepted once, but if the same invoice number comes f