Query: exemption form number (CIN)
Dear All,
I have a doubt regarding exemption form that customers use to claim their exemption.
From what I have read, alternative tax classification field of sales order header(billing tab)
allows us to choose the form type. But, where should i create the form type and where to mention the
reduced excise rates?
Any practical scenarios/examples in this regard are highly appreciated.
Thanks,
nsp.
Hi
The tax classifications are not linked with FORM. Forms are linked with the Sales Documents.
In the Tax Clssification we maintain different options like Without Form / With Form C / Full exemption, etc. for your Tax Category(tax Condition type) check this in OVK3. This will be maintained in customer Master data > Sales Area View> Billing Tab. Now when you create a sales order, the tax classification will flow from Customer Master to Sales Order Header --> Billing Tab.
There as per your requirement and the form provided by Customer you can change the Tax Category and accordingly the Tax will be changed in Pricing procedure (depends upon the master data you have maintained for that Condition type and for the Tax Classification).
Regards
Amitesh Anand
Similar Messages
-
hii all
i have a form on which i have a customer_name field
it is a non database field
i am getting the value of the customer_name field from customer id .
but the customer _id field is not on the form
i want to query the form based on the customer name
like in the customer_name field i would query 'm%'
but customer_name being non database it is not allowing me to query
please help me to query it if it is possible
thanks in advance
Message was edited by:
bindok mulgaHi,
If U want in Sql Write the query like this :
Select * from Table_Name Where Customer_Name Like 'M%';
Other Wise If U want On Customer_Name Text Write The Query In Post text item of the Customer_Name Like:
I Hope Table Name Is Customer_Dir ,?
Declare
Result Number;
M_Red_Color Varchar2(100) := Get_Item_Instance_Property(:System.Current_Block||'.'||:System.Current_Item, Current_Record, Visual_Attribute);
Begin
If :Customer_Dir.Customer_Name is not null then
:Customer_Dir.Customer_Name := Ltrim(:Customer_Dir.Customer_Name);
Begin
Select Customer_Cd Into :Customer_Dir.Customer_Cd
From Customer_Dir
Where Customer_Name= :Customer_Dir.Customer_Name;
<<M_LOOP>>
Loop
Bscil.Show_Message('Bscil_stop', 'Entry ' ||:Customer_Dir.Customer_Name || ' Does Not Exist. (Please check your entry) ', Null, 'Ok', Null, Null, Result);
If Result = Alert_Button1 Then
Bscil.Set_Item_Color(:System.Current_Block||'.'||:System.Current_Item, 'RED_COLOR');
Raise Form_Trigger_Failure;
Exit M_Loop;
End If;
End Loop;
Exception
When No_Data_Found Then Null;
End;
Else
:Customer_Dir.Customer_Cd := Null;
End if;
If M_Red_Color = 'RED_COLOR' Then
Bscil.Set_Item_Color(:System.Current_Block||'.'||:System.Current_Item, 'WHITE_COLOR');
End If;
End; -
I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
here is the procedure
create or replace
procedure temp(
P_MTR_ID VARCHAR2,
P_FROM_DATE IN DATE ,
P_THROUGH_DATE IN DATE ) AS
L_XML CLOB;
l_query VARCHAR2(2000);
BEGIN
l_query:= 'SELECT
a.s_datetime DATETIME,
a.downdate Ending_date,
a.downtime Ending_time,
TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
FROM
(SELECT s_datetime + .000011574 s_datetime,
TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
||'mi''), ''00:'
||'00'',''24:'
||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
||'mi'')) downtime,
s_usage downusage,
s_cost downcost
FROM summary_qtrhour
WHERE s_mtrid = '
||P_MTR_ID||
' AND s_mtrch = ''1''
AND s_datetime BETWEEN TO_DATE('
||P_FROM_DATE||
',''DD-MON-YY'') AND (TO_DATE('
||P_THROUGH_DATE||
',''DD-MON-YY'') + 1)
) a,
(SELECT s_datetime + .000011574 s_datetime,
s_usage downusage
FROM summary_qtrhour
WHERE s_mtrid = '
||P_MTR_ID||
' AND s_mtrch = ''2''
AND s_datetime BETWEEN TO_DATE('
||P_FROM_DATE||
',''DD-MON-YY'') AND (TO_DATE('
||P_THROUGH_DATE||
','' DD-MON-YY'') + 1)
) B
where a.S_DATETIME = B.S_DATETIME(+)';
SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML FROM DUAL;
INSERT INTO NK VALUES (L_XML);
DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
END;
OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
L_QUERY IS :SELECT
a.s_datetime DATETIME,
a.downdate Ending_date,
a.downtime Ending_time,
TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
FROM
(SELECT s_datetime + .000011574 s_datetime,
TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
s_usage downusage,
s_cost downcost
FROM summary_qtrhour
WHERE s_mtrid = N3165 AND s_mtrch = '1'
AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
) a,
(SELECT s_datetime + .000011574 s_datetime,
s_usage downusage
FROM summary_qtrhour
WHERE s_mtrid = N3165 AND s_mtrch = '2'
AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
) B
where a.S_DATETIME = B.S_DATETIME(+)The correct way to handle this is to use bind variables.
And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
create or replace procedure temp (
p_mtr_id in varchar2
, p_from_date in date
, p_through_date in date
is
l_xml CLOB;
l_query VARCHAR2(2000);
l_ctx dbms_xmlgen.ctxHandle;
begin
l_query:= 'SELECT
a.s_datetime DATETIME,
a.downdate Ending_date,
a.downtime Ending_time,
TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
FROM
(SELECT s_datetime + .000011574 s_datetime,
TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
||'mi''), ''00:'
||'00'',''24:'
||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
||'mi'')) downtime,
s_usage downusage,
s_cost downcost
FROM summary_qtrhour
WHERE s_mtrid = :P_MTR_ID
AND s_mtrch = ''1''
AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
) a,
(SELECT s_datetime + .000011574 s_datetime,
s_usage downusage
FROM summary_qtrhour
WHERE s_mtrid = :P_MTR_ID
AND s_mtrch = ''2''
AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
) B
where a.S_DATETIME = B.S_DATETIME(+)';
l_ctx := dbms_xmlgen.newContext(l_query);
dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
l_xml := dbms_xmlgen.getXML(l_ctx);
dbms_xmlgen.closeContext(l_ctx);
insert into nk values (l_xml);
end; -
Modify Form Number at Bottom of Every Page
How do I modify the form number at the bottom of every page of a LiveCycle form that I did not create.
The form number appears to be below the table that contains all of the form fields and form-field labels and is on the same line as the page number and name of the company that created the form. Thanks.If the form number field is placed in the Master Page, then you need to change it only in one place.
But if it is placed in each of the page, then you need to modify in every page.
To find out where the field is, first select the field and verify in the Heirarchy tab where the field is placed.
Thanks
Srini -
How to Implement KFF Range (Low and High) in query find form in oracle apps
Hi,
Please provide some sample script for using KFF range LOV (Low and High) in one of the query find form in Oracle apps R12.
I need to customize one of the standard form and add this range functionality for that search form.
Thanks,
PrasannaYuvaraaj,
Your request is unique to the Oracle Enterprise Business Suite (EBS). Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
Craig... -
How to run recordset SQL query in FORM DATA event
How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?
Hi Slamet,
When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
<i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
Hope it helps
Trinidad. -
Query to know number of columns in a table
please can anyone suggest me a query to know number of columns in a table i.e.
if I want to know how many number of colums are present in a specific table then what would be the query
Message was edited by:
user625519Give this a shot:
SELECT table_name,count(*) as "# of Columns"
FROM dba_tab_cols
WHERE table_name = <table name>
GROUP BY table_name
ORDER BY table_name;There are other views as well such as USER_TAB_COLS and ALL_TAB_COLS.
HTH! -
Finding the form number - Simple Q !
I am trying to process the form values inside a PL/SQL block on that page. I get the values and after processing I insert the values into a table. I have created a PL/SQL block.. and I am sure the block is called properly because everything is processsed but the form element processing which is based on the fxx.COUNT varible
How should I find the form number ..?
for use in the variable..apex_application.g_f??..
I have tried in another application and used f01 and it worked fine. I guess the other application was a demo application and it was the first form I used in that application.
Thanks in advance
Message was edited by:
tarumugam
Message was edited by:
tarumugamSince we don't know what you are using to create the fxx.... items, we can work backwards from the form itself.
View the source of your rendered page and locate the HTML tag for one of the checkboxes. [<input type="checkbox" name="f??" value="???">] The value in the 'name' attribute is the fxx value that you are looking for. It is either assigned by APEX or by code on the page, depending on what was used to create the items themselves. -
Access Web App - Need some advice with query (text to number problem)
In an Access Web App I want to create a query.
I have two tables which are related but in a bit complicated way. For some reason I have a text field in which I save a number. This number relates to the ID of another table. When I combine these two tables in a query, it's not working because the textfield
cannot query the (ID)number field.
Is there a way, in this query so that I covert the text field to a number so the query will work?
I tried to do it with the "Parse" function but no luck, so far.
Thanks, MikeHi Mike,
Based on the description, you want to create a query by joining a text filed with number filed?
Did I understood correctly? If so, as far as I test, it works in Access 2013 web app. Here is the screen shot for your reference:
If I misunderstood, please feel free to let me know.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
From Clause query with form variables
forms 9.0.4 rdbms 9.2
Is it possible to create a From Clause query with form variables generated from another block (but in the same form)? I am not having any success.
I searched Metalink. It appears that according to DOC ID # 69884.1, in Forms 6i, this is not possible. Metalink suggest in DOC ID 104771.1 implementating a dynamic From Clause, but when I duplicate the example on my system, I receive an Oracle error. Further investigation from the web form (DISPLAY ERROR) indicates that the system does not see the dynamic value.
Has anyone else run into this error? Has this been fixed in forms 9.0.4 and I am just missing something? Does a dynamic from clause query work? Can anyone point me to an example or post an example or offer any advise.
thanks in advanceAs far as I know it is not possible to use block items in a from clause query in forms 9.0.4. Here is my solution for a From-Clause-Query via the 'Query-Data-Source-Name-Property':
To use the values of the block items in my from clause query I implemented a database package with getter and setter routines for the block item values I needed for the query.
In the Key-Exeqry-Trigger of the From-Clause-Query-Block I set the global package variables with values of the block-items I am interested in. In the From-Clause-Query I used the values in the where-clause via package functions which return the global package variables.
Hope my solution will work for your problem. -
Hi Guys,
I am working on a requirement for manage attachment functionality. But I am facing one issue in one scenario.
From Manage attachment screen, User clicks on Search From Repository and in search page there are some default or hidden fields. Like where author is match with the login user and etc. For Expanded form there is no issue. All the hidden fields are not coming and search result is coming fine. But if user changes to Query Builder Form and manually modify the query then user can see all the content.
So I want to stop the user to show the Query Builder form by which he/she could not modify the query and search. Is there any process by which we can hide the Query Builder Form?
I have seen one Jonathan blog: https://jonathanhult.com/blog/2012/06/remove-fields-from-query-builder-search-form/
But I would like to full hide the form.
Thanks in advance.
Regards,
SantanuHi Guys,
As part of the above solution (DisabledSearchFormTypes=queryBuilder), the query builder form will never appear. Which is not a good practice.
Because for development this is very useful.
My intention was to stop the user access Query builder Form only in Manage attachment screen.
So I have created one custom component which will override the resource : query_page_menus_setup and check the xIdcProfile value.
If IdcProfile is PSFTProfile or EBSProfile then it will not appear.
<$exec rsAppendNewRow("PageMenusData")$>
<$PageMenusData.nodeId = "QUERY_BUILDER_FORM"$>
<$PageMenusData.parentId = "SEARCH_FORMS"$>
<$PageMenusData.label = "wwQueryBuilderActionLabel"$>
<$PageMenusData.type = "item"$>
<$if #active.dpDisplayLabel like ("EBSProfile|PSFTProfile")$>
<$else$>
<$PageMenusData.href = "javascript:switchQueryForm('queryBuilder')"$>
<$endif$>
I think this is really good. -
Query find form - customized search on a date field
Hi All,
I have a form which has query find behaviour enabled. When the user press on the search(torch light button) The query find form gets opened in a new canvas.
I have a date field on the query find form. The current functionality is that
"The form searches for the exact match on the date" but I want to have the results which satisfy <= "entered date".
How do I achieve it in Query find form.
Do I need to have the where condition appended in the Pre-Query on the results data block.
Please help me with an example. Thank you.
Srinivasa Mouli
Edited by: 889427 on 4 Oct, 2011 11:43 AMShort of adding your own query extensions, you must pass in a Date
parameter vs some stringified version.
Paresh wrote:
I want to query on a date field as follows
"createDate < '2003-08-20 12:00:00:000' "
createDate has DataType java.util.Date
When I try to execute this query it throws UserException.
If I use a parameter in the query string and pass a date object to execute
method then it works fine.
I just want to make sure that there in no way I can make the first
approach work
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
hi,
if i query my form with wrong value ie, press F7 give wrong value for EMPNO and press F8. it says Query caused no records to be retrieved. but after that its not coming out of the first row.
if i press cancel button, the cursor remains in the first record itself.
i have written exit_form(NO_VALIDATE) in exit button.
pls give me solution for this problem.
Thanks in advance.add this code to the exit button .
BEGIN
--come of of the enter-query mode
IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
EXIT_FORM(NO_VALIDATE);
END IF;
--exit the form
EXIT_FORM(NO_VALIDATE);
END;you need 2 exit, one if the system is in enter-query mode, to come out of it and the other one for exiting the form. -
Hi all,
I built a simple query builder form:
<cfif IsDefined('form.query')>
<cfquery name="queryDemo" datasource="TestProduction">
#form.goQuery#
</cfquery>
</cfif>
FORM
<ul>
<cfform name="QueryForm" action="" method="post">
<li><label>Type Query</label></li>
<li><cftextarea name="goQuery" cols="100" rows="6"></cftextarea></li>
<li><cfinput name="query" type="submit" value="Run Query"/></li>
</cfform>
</ul>
<cfif IsDefined('form.query') and queryDemo.recordCount gt 0>
<cfform action="" name="resultsForm">
<cfgrid query="queryDemo" griddataalign="center" name="QueryResults" width="700" autowidth="yes" height="700">
</cfgrid>
</cfform>
</cfif>
When I run a "where" clause such as where type = 'LCR', I get an error. Has anyone tried this before? Please provide insight.
Thanks.Error Code:
Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near 'LCR'.
The error occurred in C:\inetpub\wwwroot\cfAttica\betaFiles\queryDemo.cfm: line 3
1 : <cfif IsDefined('form.query')>
2 : <cfquery name="queryDemo" datasource="TestProduction">
3 : #form.goQuery#
4 : </cfquery>
5 : </cfif>
VENDORERRORCODE
102
SQLSTATE
HY000
SQL
select item from tlkp_item where type = ''LCR''
DATASOURCE
TestProduction
Resources: -
Query to know number of executions of one day
Hi,
i need a query to get number of executions of the sql per dayWhat database version ?
You mean there is one sql statement you want to check daily executions ? Does it have the same sql ID each time ? If so then you could select from v$sql / v$sqlarea every 24 hours and compare counts from the previous runtime.
Are you collecting statspack and awr snaps ? If so then you may be able to run a report to view executions in 24 hour periods.
Maybe you are looking for
-
Error while crawling URL containing diacritic characters
Hi, I have a content source in SharePoint 2013 that is showing errors while trying to crawl links with diacritic characters (portuguese words). The reason is that the crawler regards the URL as invalid. The problem still occurs if the link URL is enc
-
hi buddies, I want to know that whether 10G Application Server 10.1.2.0.2 with JDK 1.5.0_16 is Version compatible pls do send ur replies if known to you.
-
Sync'ing Photos with iTunes causes smaller pictures in albums on iPhone?
Hello out there. I'm using iOS 7.0.3 with iTunes 11.1.3.8 (Win). After synchronising my Pictures, which are stored in different albums, the larger files got to smaller size (about max. 4 MP). Before they were stored in original size on the iPhone, ev
-
Transferring music from an outdated macbook to my iPad
Well, I finally did it. My new iPad is ahead of my laptop. It won't sync with my laptop, because I don't have the latest version of iTunes, and I cannot get it because my macbook's software does not support it. Is there anyway I can somehow transfer
-
Transaction BP dumps Since Deleting Extension in EEWB
I added some fields to transaction BP using EEWB. I have now deleted the project out of eewb, and the bp transaction dumps with NO_ACTIVE_TAB exception. It looks like the new tab didn't get deleted through eewb. I have tried to create a new extension