Exracting conditions form tables
Hello SAP gurus,
Please tell me how can i extract the conditions in Purchase order which is required in my report.
Ultimately i want the detail conditions like discount or surcharge in my report.
Thanks in advance
Hai,
You can fethch this condition data from the table KONV.
1. The system will generate the Doc Condition no for Purchase order. You can get this from the table EKKO Purchasing Document Header - KNUMV Doc Cond No field.
2. Use that KNUMV Doc Cond No no in the table KONV - Conditions (Transaction Data).
Similar Messages
-
Retrieve the Purchase Order Condition Records Table
Hallo!
I have found this code right here:
http://www.sap-basis-abap.com/sapab025.htm
It is very useful particular for purposes which I need. Please can somebody
try to fix the error to get it working. There is an internal table missing.
Regards
Ilhan
Retrieve the Purchase Order Condition Records Table
select * from ekko.
select * from konv where knumv = ekko-knumv
"Get all the condition records for the purchase order
endselect.
endselect.
* Get the info record conditions record
* First declare the record structure for the key
data: begin of int_konp,
txt1(5),
lifnr(5),
matnr(18),
txt2(4),
txt3(1),
end of int_konp.
clear: konh, konp, int_konp.
* data for the record key konh-vakey
int_konp-txt1 = '00000'.
int_konp-lifnr = ekko-lifnr+5(5).
int_konp-matnr = ekpo-matnr(18).
int_konp-txt2 = 'ALL'.
int_konp-werks = ekpo-werks.
int_konp-txt3 = '0'.
select * from konh where kschl = 'PB00' "Conditions (Header)
and datab => p_datum. "valid from date
if konh-vakey = int_konp. "Conditions (Item)
select single * from konp where knumh = konh-knumh.
continue.
endif.
endselect.Hi flora
Just get through the sequence .
see the table fields ...
1. From EKKO table take an entry which is having pricing conditions.
Now in the fields list check out for field EKKO-KNUMV(document condition number).
2.Take this condition number and now goto table KONV.
Give the document condition number in the field KONV-KNUMV and execute .
This will lead to a list of document condition numbers and some other fields .
3.Now check for field KONV-KNUMH ,KONV-KAWRT(quantity) and note the value KONV-KWERT .
(Remember this is at header level).
This is ur condition record number.
**comments
Now from document condition number we got the condition record number (KNUMH).
4. now since u want the item level tax procedure go to table KONP and give the condition record number and execute .
This will give u a list of details .
Now concentrate on KONV-KAWRT (scale quantity) KONP-KBETR(rate) as this table will store Pricing per UNIT so product of these two will give u the total pricing tax, for a particular condition type say PR00 .
For that particular condition item .
Check the pricing procedure .
See t-code VK13 and check the pricing procedure .
From me23 check the same PO num select the item and check the pricing conditions applicable .
Select a particular pricing and goto condition->analysis->analysis pricing ,
Better take help of a SD functional consultant in the process.
regards,
vijay. -
Wee inconsistency in region template "Form Table Attributes"
In the region template definition there is a field for specifying form table attributes. If I specify table attribute(s) they work as expected. If I then add an item type of "Stop and start table" to the region, the custom attributes are not used in the subsequent tables.
It's a minor thing... perhaps this can be fixed (or has been fixed) in 3.0?Atul:
I dont know what the 'Alternate Source' is
In the Source section set
Source value or expression to be the name of the database column that has the URL (company_url)
Post calculation Computation to be '<a h ref="' || :pxx_company_url || '">' || :pxx_company_url || '</a>'; where pxx_company_url is the page-item name.
I have specified 'h ref' instead of 'href' so that the forum software doesnt mess up the post.
Varad -
How does "Forms Table Test" work?
Hey guys,
I want to use a "forms table test" on the order management lines form, but it doesn't show any reaction.
In which forms do I use table forms test?
best regards
dewiVery simple. This table existed in Oracle Version 3 and was used prior to PL/SQL for performing computations. The dummy column is just that. I always returns one row, one column if you select from it.
Now: DON'T DROP THIS TABLE!!!!!! I decided to see what would happen I did drop the table. Ever hear of INSTANCE CRASH? The Oracle Kernel uses this table Internally for consistency purposes. Shame on Oracle for saying in Version 6 that this table is no longer needed. Also, if your application does a select <sequence name>.nextval from DUAL, change your code as you'll see LOTS of excessive IOs from using this table. -
Using Measure Condition as Table Prompts
Dears,
Is anyone tried using measure as a condition in Table Prompts?
I have a table looks like the sample below:
| Accounts
Entity | Measures
I would like to use Measures as a condition in Table Prompts so I can show Entities achieve/not achieve only. Thus, I add a Column and the formula is "case when Measures>80 then 'Y' else 'N' end". But when I put the column to the Table Prompts, it becomes to the summarize of all entities.
How can I put the column to the Table Prompts, and it still be able to show 'Y' and 'N' so I can filter the entities I want?
Best Regards,
MartinHi Martin,
Sorry!. Ive taken it in other way. Can you try the below suggestion :)
I think the same functionality can get with Pivot table, use the flag with your condition and drag flag into 'Pages' section of Pivot table.
The same was working for me, I can filter the report with Y or N.
This is my query columns are
1) Time."Year",
2) Account."Account Name",
3) "Measures"."# Created",
4) CASE WHEN "Measures"."# Created">10 THEN 'Y' ELSE 'N' END
The column 4 moved to 'Pages' section in Pivot table view
Please let me know updates
Thanks,
SVee -
Updated form/table in showDetails of Panel Tabbed Component
When there are multiple showDetail components for Panel Tabbed, if anyone of them has an updated form or table, switching between different showDetail components will cause the system throw mandatory field validation errors.
It looks like all the mandatory LOV fields are reset to be empty in the previous visited tab. Is this the way that Jdev supposed to work? What should we aware of using updated forms/tables in multiple tabs of Panel Tabbed component?That's how it works. That's the reason, I get all the data to pre-populate all the components in the page load itself. When I switch between tabs, I don't re-execute the proc and so it won't reset. I use postback to prevent re-execute the proc. when I switch between tabs.
Boolean postBackValue = (Boolean)JSFUtils.resolveExpression("#{adfFacesContext.postback}");
Boolean defaultBooleanValue = new Boolean("false");
if (postBackValue.equals(defaultBooleanValue)) {
} -
hw to get a condition type table for mm?i
i want to get the records from eban,ebkn,esll,esuh, and some more fields (service currency,service condition type,service price and service price unit) but the functional consultant people dnt know wr these 4 fields are? i have got records from eban , ebkn ,esll
and esuh.but i dnt know hw to get the another four fields .i m doing report for mm module.these four fields are condition from condition table .Hai Safi,
U compare Tables Ekbe-Knumv , Ekko-Knumv , From Table Konv-Knumv
U will get all the condition types(Kschl) But Konv is a Cluster Table U have to write Seprate Select query.
Reward Points If Usefull,
Thanks & Regrds.
Shiva . -
Condition record table to pick printer
Hi Friends,
What is condition record table, based on this table how can i pick the printer? and how I can find this table? can any one help me its very urgent.
Regards,
DVNS.You can see the list of processed document through output types in the table NAST.
Check the table TNAPR in SE16. It will have all the output condition records assigned through transaction NACE.
You can find the output types in the field KSCHL of TNAPR table. -
hello everyone, here is a problem I have not found on the
forums anywhere, so thought I try posting instead of searching
everywhere, using mx 2004 on a mac, I have a form in centre column
of my page, I then have a table with columns and rows with my text
fields for name, e-mail and comments, then submit button.
If I click on 'form' at the bottom of the page it highlights
the whole form/table, but, when I save, close and reopen the page
the table has jumped outside the form area, I have cut and pasted
it back in but the same happens each time I reopen the page!
Any ideas gratefully received.hutch1909 wrote:
> hello everyone, here is a problem I have not found on
the forums anywhere, so
> thought I try posting instead of searching everywhere,
using mx 2004 on a mac,
> I have a form in centre column of my page, I then have a
table with columns and
> rows with my text fields for name, e-mail and comments,
then submit button.
> If I click on 'form' at the bottom of the page it
highlights the whole
> form/table, but, when I save, close and reopen the page
the table has jumped
> outside the form area, I have cut and pasted it back in
but the same happens
> each time I reopen the page!
> Any ideas gratefully received.
I can't replicate the problem, also using MX2004 on a Mac. -
Help needed with conditions in Table View
Another question regarding the dashboard we are building:
We use a custom function module to display marketing attributes for a particular customer. There are three kinds of marketing attributes of which we want to display the value:
- Z_QUADRANT
- Z_SOW
- Z_WALLET
If I use the function module as a data service in Visual Composer and use a standard table view as ouput, we get these kind of output:
Atnam - Atwrt - Atflv - Atzhl (<-- these are the column labels)
Z_QUADRANT - 4 - 0 - 0
Z_SOW - 0 - 5 - 0
Z_WALLET - 0 - 75.000 - 0
I just want to display the data as follows:
QUADRANT: 4
SOW: 5%
WALLET: 75.000
So I need to hide the obsolete fields and values and just need to display the relevant values. How can I achieve this? I was guessing I needed to implement some sort of conditional formula like "IF atnam = Z_QUADRANT, display Atwrt(value)" or something, but I am terrible at these kind of things. Can somebody explain it to me or point in the right direction of some good documentation or guide on this? Thanks in advance!
Best regards,
Jan LarosI now chose to use a form which uses the output from the tables. This is the table I use as input for the form:
http://tweakers.net/ext/f/DWmYaePz4gdzVhwMJ3naA5UQ/full.jpg
I use the following formula for the quadrant:
IF(@ATNAM=="EU_BP_NPS_QUADRANT",@ATWRT,"0")
This returns a value of "4" which is correct.
For SOW I use the following formula:
IF(@ATNAM=="EU_BP_NPS_SOW",@ATFLV,"WRONG")
Strangely enough the return value is "WRONG" in the form. What am I missing here?
Regards,
Jan -
Condition Tab tables in Sales order
Hi,
Can anybody tell the tables of Condition Tab of Sales Order bec. i req. the pice per each and conditon types to be populated in the Smart Form.
Thanks in advanceHi Binu,
If you want to find out the database tables that actually store the condition rate for different condition types,
1. After the creation of an Order(Service order etc.), navigate to the conditions tab of the item.
2. By default, you may be taken to the condition panel where in you can see the different conditons depending on the pricing procedure associated with your Order.
3. Click on 'Accesses' tab, If you have set 'PRC_RFC' parameter for your User ID (in transaction 'SU01') to 'X', then you should be able to see pricing analysis. If not, please set this parameter first. Re run the transaction.
4. Once you are able to see the pricing analysis, you can find that there's a condition_determination node under the Root node of analysis which would give the name and other details of your pricing procedure.
5. Beneath these pricing procedure details, you can find different nodes marked 'Step' and against each the description and name of the condition type and access sequence would be displayed. These are the different prices displayed in the 'Condition' Panel.
6. Expand every node named 'Step'; here, you may be able to find details of the condition type, step text, step success etc. You may also find that there is a child node marked 'Access'.
7. Against this child node, you can find the name of the database table that would store the condition rate details.
For ex: CNCCRMPRSAP001; Here Condition table name used for pricing is 'SAP001'
8. Using transaction SE16, you can find the different prices stored for the Conditon table 'SAP001'.
Hope this helps.
Regards,
Pavithra
**PS: Please reward points if this helps -
hi, is it possible to do conditional or group validation with
the new Spry widgets? Thanks.Could someone help me with this
i would like to conditionally validate this form. Can i use
the distroy method?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>Untitled Document</title>
<script src="SpryAssets/SpryValidationCheckbox.js"
type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextField.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryValidationCheckbox.css"
rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationTextField.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript"
src="usableforms.js"></script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="634" height="193" border="1">
<tr>
<td class="question">Employment details
<td width="365">
<input type="radio" name="employment" value="Self
Employed" rel="selfEmployed" id="self_employed" /> <label
for="self_employed">Self Employed</label><br />
<input type="radio" name="employment" value="Worker"
rel="working" id="work_details" /> <label
for="work_details">worker</label><br /> </td>
</tr>
<tr rel="selfEmployed">
<td colspan="2"><span id="sprycheckbox1">
<label>
<input type="checkbox" name="sole" id="sole" />
Sole trader</label>
<span class="checkboxRequiredMsg">Please make a
selection.</span> </span> <span
id="sprycheckbox2">
<label>
<input type="checkbox" name="partnership"
id="partnership" />
Partnership</label>
<span class="checkboxRequiredMsg">Please make a
selection.</span> </span><span
id="sprycheckbox3">
<label>
<input type="checkbox" name="company" id="company" />
Company</label>
<span class="checkboxRequiredMsg">Please make a
selection.</span> </span></td>
</tr>
<tr rel="working">
<td>company</td>
<td><span id="sprytextfield1">
<input type="text" name="companname" id="companname"
/>
<span class="textfieldRequiredMsg">A value is
required.</span> </span></td>
</tr>
<tr rel="working">
<td>Number of years</td>
<td><span id="sprytextfield2">
<input type="text" name="number" id="number" />
<span class="textfieldRequiredMsg">A value is
required.</span> </span></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="submit" id="submit"
value="Submit" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form>
<script type="text/javascript">
<!--
var sprycheckbox1 = new
Spry.Widget.ValidationCheckbox("sprycheckbox1");
var sprycheckbox2 = new
Spry.Widget.ValidationCheckbox("sprycheckbox2",
{validateOn:["blur"]});
var sprycheckbox3 = new
Spry.Widget.ValidationCheckbox("sprycheckbox3",
{validateOn:["blur"]});
var sprytextfield1 = new
Spry.Widget.ValidationTextField("sprytextfield1", "none");
var sprytextfield2 = new
Spry.Widget.ValidationTextField("sprytextfield2", "none");
//-->
</script>
</body>
</html>
Thank you -
Adobe Form Table with multiple rows
Hi,
I am facing problem with mutliple rows item in the table. A row which doesn't have data is occuping the space in the form. Need solution to remove the space .
i used the code in Form CALC in client.
if (HasValue($) == 0)
then $.presence = "hidden"
else $.presence = "visible"
endif
But it is not working. And also i need display a text field based on the condition.in the form How can i write code in the Form CALC. Plz help me out in this.
Thanks & Regards,
NarasimhaHi Narsimha,
First of all why is your blank row getting displayed?Adobe automatically takes care of this. It would display a new row only if there's flow of data in the next row. i.e. if you have a new item to be displayed in this new row.
You must check your table properties first.
For hiding fields i can help you.But I m not sure if this issue is still open.
Swar. -
Text inversed in the smart form table
Dear all,
I'm new in ABAP and working on a smart form which has a cell in table shows an article description in both Arabic & English
but the Arabic text appears in reversed sequence in the print preview and after printing it shows like this ##### #########.
any idea how to solve this problem
thanksHello,
Please see the following SAP Note about printing Arabic:
587150 - Support of Arabic-script languages
For your Unicode system, then you should be able to print Arabic
characters via device type ARSWIN or device type SWINCF.
The Unicode cascading fonts solution with the device type SWINCF
described in the following SAP Note:
812821 - Cascading Font settings
So you need to configure a Frontend output device that uses device type
ARSWIN and use this to create the print with the Arabic characters.
Regards,
David -
How to delete columns from process form table
hi,
I have a process form UD_FN_USR. I created one column userid with type long and later the requirement got changed and I need to change the type to string.I am able to delete the column from design console but in the table the column exits so that I coulnt create the column with same name as type string , its tellling same column name exits with different datatype in current version or previous versions.can anybody please tell me how to solve this issueSorry for late response. Got stuck in work.
This time it will answered ;-)
ALTER TABLE UD_ABCD DROP COLUMN UD_ABCD_UID
DELETE FROM SDC WHERE SDC_NAME='UD_ABCD_UID';
COMMIT;
Thanks
Rajiv Dewan
Maybe you are looking for
-
G4 450 MP won't boot after 10.4.8 update
My main disk is a 160Go on a PCI IED card (acard) After Software update did its thing, the computer won't boot on this disk. It displays the apple logo, then nothing (no spinning thing). There are display artifacts (blanck line on top of screen, some
-
After re-installing my serial number is not valid for this product
My laptop crashed and I had to install PhE11 on another laptop. After installing it says: this serialnumber is not valid for this product. But it is the only serialnumber I have, and I did not type it wrong. Please help.
-
I'm interested in the premium version of this service however I'd like to know if: 1. Revel has any kind of cloud backup feature for accidentally deleted files. 2. What encryption strength does it use for it's end-to-end transfers and also for the lo
-
?
-
I am using a laptop, The image shrinks and I cannot get it back to a size I can see?