Query Invoices based on checked sites WHEN_BUTTON_PRESSED
Hello,
I am newbie to Oracle Forms, Please correct me if iam wrong.
Requirement: I have a Master-detail Block with Vendors and Vendors Sites. When i query a vendor, all his sites also will be listed. Against each site there is a check box. When i select a site and hit 'Invoice' Button all the invoices for that site have to be returned. For simplicity i am trying only one site per vendor first.
What i already tried: In WHEN_BUTTON_PRESSED trigger i wrote
BEGIN
IF CHECKBOX_CHECKED(:po_vendor_sites_all.vendor_site_id)
THEN
:GLOBAL.SITES:=:po_vendor_sites_all.vendor_site_id;
END IF;
fnd_function.execute(FUNCTION_NAME=>'STAP_SITE_INVOICES',
OPEN_FLAG=>'Y',
SESSION_FLAG=>'N',
OTHER_PARAMS=>':GLOBAL.SITES');
END;
In Invoices datablock i joined it in default where clause. But i am getting
FRM-40105 (Unable to resolve reference to item Site_id#)
FRM-40815 (Variable Global.sites does not exist)
Please help me how to go about writing when_button_pressed trigger and checkbox_checked logic. Any help is highly appreciated.
Thanks.
Hello Dora
"In the block where you display the invoices list , change the where clause as
where instr(:GLOBAL.SITES, vendor_site_id) > 0 "
What exactly will this where clause acheive. It is not behaving as expected.
The back end query which i am trying to represent in front end on forms is something like this
select spo.vendor_id,ssite.vendor_site_id, sinv.invoice_id from xxlm_stap_invoices_all SINV, xxlm_st_po_vendors SPO, xxlm_st_po_vendor_sites_all SSITE
where spo.vendor_id=ssite.vendor_id
and spo.vendor_type_lookup_code='SUPPLIER'
and ssite.vendor_site_id=sinv.vendor_site_id(+);
Here i have around 50 rows. There are 20 supplier with 2 or 3 sites each. Few of these sites have invoices and few dont.
So when i tried changing the where clause to
vendor_site_id=:gloabl.sites
and instr(:GLOBAL.SITES, vendor_site_id) > 0
but of no use. I appreciate your time in responding me.
Please help me in connecting the sites and invoices properly. (I want to check multiple sites at once and fetch all the invoices that are relavant to them)
Thanks
Similar Messages
-
Cannot query AR invoices based on the purchase order number in R 12 1.3
Hi,
We need to query invoices based on the purchase order number, However when we try to Ct+F11 get the message *"Please fill in selective criteria in at least one of the following fields for performance reasons: GL Date, NUmber,Bill to etc."*
Is this a new feature or a bug?
Thanks and Regards,
MPHHi All,
I found the solution in the following note.
*How to prevent Blind Query or Query on Non Indexed Column in Transaction, Receipts, Collections forms? [ID 753222.1]*
Thanks and Regards,
MPH -
If GR based IV checked for items without excise duty, MIRO posting hanging.
Iam working in a client location, one of client business scenario is MIRO posting without excise (Only VAT or CST). for this case i have not maintained vendor excise details in J1ID.
When a MIRO with reference to PO for an item ticked for "GR based IV" is posted, the system is hanging or is not posting and not issuing any message. Specifically for an item to which exicse is not applicable.
please send your expert advice on this
Edited by: J Sridharan on Mar 30, 2009 3:55 PMThanks for your response
this issue is further briefed below
we are working for a indian client with CIN. most of the PO's which is created in SAP system with all Excise parameters and applicable taxes. further all PO's created with GR based IV check box enabled.
now the issue is, in some of the purchases vendor is not applicable for excise, so there is no excise parameters in the PO, only tax is applicable. for this case we have not maintained vendor excise details in J1ID. but we have maintained material chapter id and CENVAT determination in J1ID. but as i mentioed earlier these PO's also with GR based IV check box enabled.
If the PO is not excisable no Excise capturing and posting is required, for these types of PO's we are following the below steps
1. Creation of PO with GR based IV check box enabled
2. Goods Receipt without excise capturing
3. Invoice verification - MIRO ( here system is not able to post the docuement because of GR based IV tick mark)
i hope this will brief about my query.
waiting for your response. -
Creation of A/R Down Payment Invoice based on Sales Order not logical
When creating a A/R Down Payment Invoice based on a Sales Order you
have the option to create multible ones. Which by itself could be
usefull to create one of 50 % for a certain day and decide they need to
pay another 25 % at a later date.
But SBO does not track what already have been posted. Therefore you can
create a sum more then a 100% without warning or blockage.
Tested this in SBO 2007 A SP:00 PL:00
Scenario:
Sales - AR>Sales Order
Create and post a Sales Order
Sales - AR>A/R Down Payment Invoice
Create an A/R Down Payment
Select the BP and copy the Sales Order
Set DPM to 40%
Post the A/R Down Payment
Sales - AR>A/R Down Payment Invoice
Create an A/R Down Payment
Select the BP and copy the Sales Order
Set DPM to 100%
Post the A/R Down Payment
Sales - AR>A/R Down Payment Invoice
Create an A/R Down Payment
Select the BP and copy the Sales Order
Set DPM to 70%
Post the A/R Down Payment
Making the total for the Sales Order 210% worth of Down Payment
Invoices without warning/blocking. I would expected that you would only
be able to set the rest sum %. For instance first scenario I entered
60% therefore setting the second Down Payment Invoice to a max of 40%
Untill you have used up the 100% and you cannot select the Sales Order
in question..
If multible users do the same work, SBO doesn't show that it has
already been done. Same if you forgot you already created it you can
still create one. Plus sometimes it will happenyou create the Down
Payment Invoice and not paying attention you create the first one with
a 100% and later with the intended percentage..Hello Petronella,
you are right that B1 is not checking the total value of DP created from the Sales Order.
The logic and checking procedure here is only between Sales Order -> Delivery/Invoice.
DP Invoice is considered as transaction related to document the receipt of the money (parallel to the sales process). Between the moment of basing of DP to Sales Order it is still possibility to adjust Sales Order as there is no posting behind Sales Order.
The question is what would be a checking procedure in case that on Sales Order there is based Delivery and DP? What would be the system priority to take into a consideration?
Regards,
Martin Slavik
Regional Solution Manager -
Creating an invoice based on a delivery via DI API
Hi,
Each time a user creates a delivery (not always based on a sales order), the add on I have developed creates an invoice based on it. This happens without any issue in most cases but I am receiving the following two errors on the client site and have not been able to recreate the issue here...
One of the base documents has already been closed [INV1.BaseEntry][line: 1]
Number of items drawn is greater than open quantity , 'Item A'
Does anyone have any idea what could be causing this?
Thans for any help,
RobinHi Thomas,
Thanks for teh reply but unfortunately this is not the case - for example...
A delivery which is returning this error for Item A, has a quantity of 20 but has 7400 in stock, so it is not going into a negative quantity.
The only way I could get this error ("Number of items drawn is greater than open quantity"), not using the add on but working within B1, was to create a delivery note, then create an invoice based on it, increase the quantity of the item on the invoice, and the error displays in B1 on the info bar at the bottom.
I cannot see how the user can affect this, as when they are creating the Delivery, the Invoice creation is automatic (triggers on the add button after the Delivery has been successfully added), and they don't even see the Invoice form.
Robin -
Hi Experts,
I have a new customer requirement, Customer does not want invoices based on the order They want invoices on monthly basis and based on the material means like they want the invoice for all the orders with material A for the month of April 2011.
I tried to search something logical in forum but was not able to find it, any suggestions will be appreciated.
Regards,
JainHI
Better you go for yr customised programme where u can have option to enter material and check delivery table and get all delivery no for that particular material and then do billing and invoice. Take help of your ABAPer give him your requirement with logic for monthly billing and sure he will be able to write a customised programme to fulfill yr requirement.
In short, Here is the way..... Get a customised programme where you select all dliveries for a partuicular period by date range, from delivery table based on material and call VF01 ( as u know billing is based on payer. Payer must be same for all deliveries. U can add to check payer criteria as well with material) and then invoice.
Have a nice day!
Thanks
DK:)
Edited by: Dwarkesh Thakkar on Jun 24, 2011 12:17 PM -
Intercompany Invoice Based on Goods Receipt
Hello,
I am running the following intercompany scenario : Purchase order - replenishment delivery - internal billing document.
- Ordering organization : Cpy A / Sales org A / Plant A
- Supplying organization : Cpy B / Sales org B / Plant B
Standard SAP issues an invoice based on the goods issue, which makes perfect sense. My client's requirement is to trigger the intercompany invoice from the goods receipt at Plant A.Hi
Please check the VTFL Copy control settings.In VTFL check Data VBRK/VBRP routine feild.For your requirement you may have to change the subroutine
If standard subroutines are not meeting your requirement,you may have to add new logic to the subroutine with the help of your ABAP team.
Regards
Srinath -
Partial Payment (with invoice reference) for Invoice-based items
Hi Gurus,
I'd like to make partial payments to credit memos while "Include partial payment" is activated. However, if i activate "Include partial payment, partial payments for invoice-based items are no longer possible (partial payment amount is displayed only, and full amount is automatically applied).
My credit memos were posted via BAPI_ACC_DOCUMENT_POST. I've read that when using BAPI, invoice reference field is automatically populated with "V".
Can you please enlighten me what is SAP's logic behind this. How does SAP determine invoice-based items? And is there a workaround so I could still make partial payment while it is activated? Thank you.
Regards,Hai Dianne,
Check it once OBA4 & OBA4 t.codes both are Tolerance Group
Regards
Madhu I -
Calculate due on date in incoming invoice based on p.date of purchase order
We would like to calculate due on date in incoming invoice based on posting date of purchase order position. We want to be able to see the posting date of the purchase order lines from miro transaccion. Then we would add 85 days to calculate the due on date. I have tried to create an "item list variant" from OLMRLIST transaccion (Customizing - Logistics invoice verification) and add the posting date but it is not possible to access this value.
Thanks in advance.Hi,
have a look at badi MRM_PAYMENT_TERMS.
Check as well OSS Note 1156325 - BAdIs in the Logistics Invoice Verification environment
Best regards. -
Need to change the LOV field based on checked box selection in OAF page
Dear ALL,
I have a requirement as below:
I have a custom OAF page having a lov field which is mandatory, a check box and a two text fields.
So based on LOV value selection i am defaulting two text field value automatically.
So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
Please suggest me some pointers to achieve this requirement.
Thanks
Debhi,
in PFR use:
if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM)))
HashMap hashMap = new HashMap();
String checkboxval=pageContext.getParameter("item2");
hashMap.put("checkboxval",checkboxval);
pageContext.setForwardURLToCurrentPage(hashMap ,
true, // retain the AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
and in PR use:
if((pageContext.getParameter("checkboxval'))!=null)
OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
lovInputBean.setRequired("false");
try it
Regards
Mahesh -
GR based IV check box suppressed - Extended Classic Scenario
Hello Folks,
How are you doing today ?
We are working in SRM 5.0 Extended Classic scenario.
When created the Local PO in SRM with GR Based IV Check box active, the
follow-on back-end Purchase order is generated without this flag. In
other terms, system is creating the follow-on ECC PO without GR Based
IV check box active. As a result, we are unable to run the ERS cycle.
Back-end system in above scenario is ECC 6.0. And vendor settings are
maintained with GR based IV flag on in both ECC and SRM.
Kindly advice.
Thank you for your assistance !Hi Ravi and Yann,
Thank you for your inputs. OSS note-956083 can not be applied in my case due to the hight system version (patch level 550).
I have already raised this issue to SAP, but in the lack of proper infrastrucure SAP can not access the system. (BASIS guys are still struggling with it)
Well...let me give you recap-
We have not activated nor implemented any BAdi so far (Vanila SRM 5.0 EC scenario) PO creation for goods is working fine and as desired. But when it come across with PO with limit item or services, system throws an error as -
"PO 5100000263: Service-based invoice verif. requires GR "NO" or G R-based invoice verif."
Would deeply appreciate if you guys can share insight on this issue.
Thank you for your assistance! -
Hi. I need help in controlling the GR Based IV check box in creating the PO.
We normally set this in the vendor master. But then, How can I set the GR BASED IV checkbox base on the PO document type that will be used?
Let say I want all sap standard types of PO to be GR Based and some Z type PO to be not a GR based IV PO. Is this possible?
Is there a User-Exit for this?HI,
Since you want to set the GR based IV to set for all Standard Purchase order- at doc type level.
So the first thing is the vendor master setting which you are already doing.
Second you can also do it by the info record .by creating info record for all vendor and material /Material Group ..we can control the GR IV indicator
Third thing is Controlling it by the screen layout.
SPRO-Material Mangement-Purchasing- Purchase order-Define doc types
here in the definition of Doc type ,attach a screen layout.
SPRO-Material Mangement-Purchasing- Purchase order- Define screen Layout at doc type level.
in this Screen layout in the tab --GRIR control. make the GR based invoice as mandatory,so that it cant be skipped while created or change of PO and user will check it even if it is missed out.
hope so it helps
Regards
Anjanna -
Default settings for gr based ir check box for asset PO
dear experts,
in vendor master record in purchasing data tab i have checked gr based iv check box, and hence whenever i am creating a Po with X vendor for material system is automatically checking the check box in po for gr based iv but with the same vendor X if i am creating a PO for Asset itis not checking the gr based iv check box by default.
can you pls tell me where the default setting for gr based iv lies for the asset procurement.
thanks
ujwalHI Ujjwala,
The setting in spro in Acct assigment, u are talking about is GR Receipt or Invoice Receipts.
These are not GR Based Invoice Verification.
GR based Invoice Verification comes from either ur inforecords or vender master.
if u check or uncheck these in spro in acct assigment, then it will comes ur Deliver Tab not ur invoice Verification Tab.
one thing more, if u make it mutiple Acct assigment, then it will be Non Valuated G/R Based IV.
Hope Clear U !
REgards,
Pardeep Malik -
Hi,
Please provide step by step guide instructions for rule based availability check configuration. Your help is highly appreciated.
Thanks
ChandanaHi Chandana,
I have provided the below link which contains the full details of step by
step configuration of rule based availability check
http://help.sap.com/saphelp_scm70/helpdata/EN/fb/e6783739e6ff5de10000009b38f8cf/frameset.htm
Please confirm your query is resolved
Regards
R. Senthil Mareeswaran. -
Synch of invoice based on delivery (without Delivery doc)
I've created in SBO Invoice based on Order (without Delivery document). Such Invoice act like delivery document and make stock postings. Why my order after synchronization doesn't change status to <i>send</i>? I've checked SHIPMENT table and there is no such document like my invoice.
Hello John,
I think the most simple way is to create a delivery first in SBO. After you have created all your deliveries you can use the Document Genaration Wizard to create all your invoices. After that you can use the option Document Printing to print all the invoices.
This way you only have to enter all the information once and the information (delivery) will be synchronized with Webtools.
Tim
Maybe you are looking for
-
Next Generation in Monitor or PDA screens...
OK, so I'm sitting here on my iMac, and reading this, and reading that, we do a lot more reading then we used too, and we read more on electronic screens, then plain old school paper and print. SO the financial pundents hammer apple constantly for n
-
Not able to use adobe reader 9 on windows 7 OS
Hi All, i have problem with adole reader 9. if i installed on PC i can able to use only PDF file but can not able to use any other executable file. all other executable flogo show icon of adobe reader. For using other executable file i need to remo
-
I have an iMac G5 running 10.5.8 and an Intel MacBook Pro running OS 10.6.4. Suddenly, neither of these machines will recognize either of my digital cameras (Canon Rebel XSI and a Vivitar Vivicam X029). Both of these cameras were loading fine on both
-
Collect metrics failed : requested resource could not be found (vSDatastore)
Hello, I am working on Tidal Enterprise Orchestrator 2.3.0.441 (hotfix1 and 2, content update 1), part of CIAC starter edition. Scheduled Collect metrics failed in 'vSphere Datastores Data Sync' at the last step : 'Export Service Item Data'. Failure
-
I have product key numbers for my PS and Premier Elements 12
I have product key numbers for my PS and Premier Elements 12. I installed on one computer 8 months ago. I now want to initiate my 2nd download onto another computer. I cannot locate the appropriate download instructions. Any help out there? Thanks,