Query for adding weight and volume in pdn1
hello experts
i have written the following wuery but it does not bring me the desired data in two columns
--select * from pdn1 where docentry='3895'
--select * from opdn
SELECT
T0.[ItemCode]
, T1.[ItemName]
, T2.[CardCode]
, T2.[SuppName]
, T0.[PriceFOB]
, T3.[Currency] as 'Currency'
,T0.RATE
,CASE WHEN T0.RATE!='0' THEN T0.[PriceFOB]*(1/T0.RATE) ELSE T0.[PriceFOB] END as 'u03A4u03B9u03BCu03AE u0391u03B3u03BFu03C1u03ACu03C2 u03C3u03B5 EUR'
,T0.[PriceAtWH]
,T2.DOCNUM
,T2.DOCDATE
,((T0.[PriceAtWH]-CASE WHEN T0.RATE!='0' THEN T0.[PriceFOB]*(1/T0.RATE) ELSE T0.[PriceFOB] END )/CASE WHEN T0.RATE!='0' THEN T0.[PriceFOB]*(1/T0.RATE) ELSE T0.[PriceFOB] END)*100 as 'Ship Cost'
,T1.BVOLUME as 'u038Cu03B3u03BAu03BFu03C2'
,T1.SWEIGHT1 as 'u0392u03ACu03C1u03BFu03C2'
,T5.volume as 'u038Cu03B3u03BAu03BFu03C2 u03A0u03B1u03C1u03B1u03C3u03C4u03B1u03C4u03B9u03BAu03BFu03CD'
,T5.weight1 as 'u0392u03ACu03C1u03BFu03C2 u03A0u03B1u03C1u03B1u03C3u03C4u03B1u03C4u03B9u03BAu03BFu03CD'
FROM
dbo.IPF1 T0
INNER JOIN dbo.OITM T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN dbo.OIPF T2 ON T0.DocEntry = T2.DocEntry
INNER JOIN dbo.OCRD T3 ON T0.CardCode = T3.CardCode
INNER JOIN dbo.OPDN T4 ON T4.DOCENTRY=T2.DOCENTRY
INNER JOIN DBO.PDN1 T5 ON T5.DOCENTRY=T4.DOCENTRY
WHERE
--(T2.[DocDate]>='2011-08-01'and T2.[DocDate]<='2011-08-31')
(T2.[DocDate]>='[%0]' or '[%0]'='') and (T2.[DocDate]<='[%1]' or '[%1]'='')
And (T1.itemCODE='[%2]' or '[%2]'='')
--And T2.CARDCODE='80763'
And (T2.CARDCODE='[%3]' or '[%3]'='')
i actually want to bring the data stored in pdn1 table for the following two lines
,T5.volume as 'Όu03B3u03BAu03BFu03C2 u03A0u03B1u03C1u03B1u03C3u03C4u03B1u03C4u03B9u03BAu03BFύ'
,T5.weight1 as 'u0392άu03C1u03BFu03C2 u03A0u03B1u03C1u03B1u03C3u03C4u03B1u03C4u03B9u03BAu03BFύ'
do you have any idea?
Hi.......
Your query works perfectly.
But if you want only those details of PDN where Volume is greater than zero then please try below report......
SELECT
T0.[ItemCode]
, T1.[ItemName]
, T2.[CardCode]
, T2.[SuppName]
, T0.[PriceFOB]
, T3.[Currency] as 'Currency'
,T0.RATE
,CASE WHEN T0.RATE!='0' THEN T0.[PriceFOB]*(1/T0.RATE) ELSE T0.[PriceFOB] END as 'u03A4u03B9u03BCu03AE u0391u03B3u03BFu03C1u03ACu03C2 u03C3u03B5 EUR'
,T0.[PriceAtWH]
,T2.DOCNUM
,T2.DOCDATE
,((T0.[PriceAtWH]-CASE WHEN T0.RATE!='0' THEN T0.[PriceFOB]*(1/T0.RATE) ELSE T0.[PriceFOB] END )/CASE WHEN T0.RATE!='0' THEN T0.[PriceFOB]*(1/T0.RATE) ELSE T0.[PriceFOB] END)*100 as 'Ship Cost'
,T1.BVOLUME as 'u038Cu03B3u03BAu03BFu03C2'
,T1.SWEIGHT1 as 'u0392u03ACu03C1u03BFu03C2'
,T5.volume as 'u038Cu03B3u03BAu03BFu03C2 u03A0u03B1u03C1u03B1u03C3u03C4u03B1u03C4u03B9u03BAu03BFu03CD'
,T5.weight1 as 'u0392u03ACu03C1u03BFu03C2 u03A0u03B1u03C1u03B1u03C3u03C4u03B1u03C4u03B9u03BAu03BFu03CD'
FROM
dbo.IPF1 T0
INNER JOIN dbo.OITM T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN dbo.OIPF T2 ON T0.DocEntry = T2.DocEntry
INNER JOIN dbo.OCRD T3 ON T0.CardCode = T3.CardCode
INNER JOIN dbo.OPDN T4 ON T4.DOCENTRY=T2.DOCENTRY
INNER JOIN DBO.PDN1 T5 ON T5.DOCENTRY=T4.DOCENTRY
WHERE
--(T2.[DocDate]>='2011-08-01'and T2.[DocDate]<='2011-08-31')
(T2.[DocDate]>='[%0]' or '[%0]'='') and (T2.[DocDate]<='[%1]' or '[%1]'='')
And (T1.itemCODE='[%2]' or '[%2]'='')
--And T2.CARDCODE='80763'
And (T2.CARDCODE='[%3]' or '[%3]'='')
And T5.volume >0
Regards,
Rahul
Similar Messages
-
How TP/VS can pick up weight and volume from MATKEY table or MARM table
Based on Base Unit of Measure, we want the TPVS optimizer to pick up the weight and volume from MATKEY table in some cases and from the MARM table in some other cases.
For instance, in products where Base Unit of Measure is Litre, the system is picking up the volume from SI Unit of Conversion as 1 M3 and taking 0.001M3 per quantity and multiplying with the actual quantity to arrive at the volume in M3 which is incorrect, whereas TPVS should take the actual volume maintained by us in material master Basic Data.
How to configure this requirement?
Regards........SunilBufferedReader br = null;
int x = 0 ;
FacesContext ctx = FacesContext.getCurrentInstance();
//HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse();
HttpServletRequest request = (HttpServletRequest) ctx.getExternalContext().getRequest();
Date currentDatetime = new Date(System.currentTimeMillis());
String StartTime = formatter.format(currentDatetime);
int maxMemSize = 900000;
long maxReqSize = 1000000000;
//String fileDir = "/home/working/tmp/";
boolean writeToFile = true;
//String fileName = "deals.txt";
String from = "";
String files = "";
String tmpStr = "";
String comment = "";
int num = 0;
// CHECK THAT WE HAVE A FILE UPLAOD REQUEST
boolean isMultipart = FileUpload.isMultipartContent((HttpServletRequest) request);
ServletOutputStream out = null;
// OPEN FILE TO DO PROCESSING
fileName = fileName.replaceAll("\"", "\\") ;
// added code for export pc_
File inputFile = new File( fileName );
try{
in = new FileReader(inputFile);
br = new BufferedReader(in);
} catch (FileNotFoundException ex ) {
ex.printStackTrace();
genUtils.displayError("Invalid file name or file does not exists");
return "-1";
JSP file
<f:view>
<h:form id="TradeAdjustmentImportForm" >
<table width="900" class="tableform" >
<caption class="searchcaption" > Production Credits Deals File Import : <h:messages id="Messages" errorClass="errors" globalOnly="false"/> </caption>
<tbody>
<tr class="formtr" >
<td class="td" style="color: red"><strong>Enter File to Import</strong></td>
</tr>
<tr class="formtr">
<td nowrap align="left">
<h:outputText id="fileImportTxt" value="File Name : " />
<h:inputText id="fileName" value="#{ProdCreditUtilities.fileName}" styleClass="field-value" />
</td>
Can you help me change this code to work with <input type="file">
I am not that familiar with JSP and HTML . I am a database coder trying to get this fixed.
Your help is greatly appreciated.
Thanks
Ricky -
Weight and volume in Landed cost!
Hi, everybody
Can you tell me about Weight and Volume in Landed cost.
I want use load and unload expense, i use Allocation By is Weght and volume, But when i choose expenditure in Detail Tab as Yes.
An error appear: Variable costs can be added only if you split landed cost
Can you explain for me! Thank you very muchHi Tien,
please, check go to the 'Form settings' on the landed cost window, select 'volume' column and you will find the 'volume' field is blank. Input the correct 'volume' value and the landed cost can be allocated by volume. Test it and see if your issue is solved.
Regards,
Wesley -
Sales Order Line Times Weight and Volume
Hi All,
Iam creating a sales order
i have given line item and quantity and it give some weight and volume based on that material
if i change the weight or volume than i saved after saving user exit calls
now how can i find the changed weight or volume
all the weight and volumes are in VBAP than how can i write select statement for that
Please Give suggestion
THanks
Surendrau have to write code in userexit MV45AFZZ FROM SE38
USEREXIT_SAVE_DOCUMENT_PREPARE
U WILL GET VBAPs data in XVBAP
like u have to read xvbap-VOLUM and xvbap-NTGEW FOR CURRENT VALUE
AND FOR PREVIOUS VALUE U HAVE TO WRITE SELECT QUERY LIKE
SELECT * FROM VBAP INTO WA_VBAP
WHERE VBELN = XVBAP-VBELN
AND POSNR = XVBAP-POSNR.
THEN CHECK
XVBAP-VOLUM = WA_VBAP-VOLUM .. LIKE THAT U CAN COMPARE VALUES
THANKS -
IN BOM the Weight and Volume Update from the Parent item when Change Itemca
Hi Guru
we are facing problem when we create SO for Configuration material, By Default all the weight and Volume Flow Proparlly form Material Master for all Parent and Child item but when we change the item Categries for Child item the weight is copied from Parent Material
Please give me solution for the above
PrasannaHi Prasanna,
Check with weight/volume update in VOV7 for the item category you are using/changing manually.
Regards
Jeewnath -
No Weight and Volume in inbound delivery type EL
Where do I set the copy control to bring the weight an volume into a delivery type EL that is created from a vendor PO type NB?
Hi Julie,
Please check if weight and volume is maintained in material master for the delivery material. If not maintained pl maintained and then create the delivery.
Hope it'll help.
Regards,
Sudhir -
Update weight and volume when changing the quantity
Hello ALL,
For some configurable items, those whose weight and volume depends on configuration, when changing the quantity at set level, weights and volumes are not calculated again and order item is saved with wrong data about weights and volume.
when ever changing the quantity we will get a message - " Changing date/quantity may result in different BOM Please configure"
if we do explicitly by clicking "Item Details Configuration' then Weight and Volume will get update automatically.
my requirement is Weight and volume should get update automatically when changing the quantity with clicking on "Item Details Configuration'.
could you provide any OSS notes available for this or any help to achieve this functionality.Dear Prathap Naidu P,
Did you solve this issue?
Because I have the same problem, and I was looking for hints.
Thank you so much for any help.
Best regards,
J.Flanders -
Hi All,
Greetings.
I have two queries namely,
1.Query for cancelled requisitions and
2.Query for Internal Requisitions without Internal Sales Orders.
I was on a task to combine those two queries..
Can we do that? if so, please help me do that..
Thanks in Advance,
Bhaskar.Hi All,
Greetings.
I have two queries namely,
1.Query for cancelled requisitions and
2.Query for Internal Requisitions without Internal Sales Orders.
I was on a task to combine those two queries..
Can we do that? if so, please help me do that..
Thanks in Advance,
Bhaskar. -
Weight and Volume in ODO is Blank
Hello Brothers in EWM,
I have a question regarding the ODO deliveries in EWM. The item weight and volume are blank and this is because the data coming in from ECC does not have volume or weight. We don't maintain weight and volume in ECC. When i look at the additional quantities tab in PRDO screen I see that the system is set up to expect the those values from the external system (in this case ECC). We do maintain weight and volume in EWM and was wondering how i can set it up so to make the default to read master date from EWM. in this case the filed Value Determination Indicator needs to be blank. Any ideas? Please see attached screen shot.
Thanks,
FaicalHi Tien,
please, check go to the 'Form settings' on the landed cost window, select 'volume' column and you will find the 'volume' field is blank. Input the correct 'volume' value and the landed cost can be allocated by volume. Test it and see if your issue is solved.
Regards,
Wesley -
Media query for iPhone 4s and iPhone 5
What is the Media Query for iPhone 4s and iPhone 5 in landscape and portrait mode
This is a tech support forum. For developer and coding questions, post in the Dev forums
-
Dear All,
Pls let me know where we maintain the details of the bin weight , volume and measurement in the Bin master .
As we are going to restructure the Bins based on the volume and weight of the produts we placed in bins
Regards
madhuHi Madhu,
In LS02N you can maintain the Bin Weight and Volume
Regards
Krishna -
Query for the FULL AND FINAL SETTLEMENT REPORT
Hi, any one has the query for the FULL AND FINAL SETTLEMENT REPORT in oracle hrms??
Hi,
I go through that .class file and find that they have used below package in that.
PAY_IN_TERM_RPRT_GEN_PKG
Hope this will help you. -
Same Query for both Main and Sub Report
I have a report whichs works but I don't think i'm getting the data to both the Main Report and Sub Report in the most effcient manner... I have a report that totals users call subject counts. But then end user wishes to see all users total counts and the grand totals of call counts on the first page then then the breakdown of types of calls on subsuquent pages... so I created a report with a subreport in the report header.... I use the same query in both the sub and main report... however it asks the user to enter the parameters once for the main report and once for the sub report... Parameters are both the same for each; month and year... so it currently runs the query twice I want to run it once and use the data for both reports... I group by name and then sum the call subject counts for the user totals... and in the sub report I hide the detail section and I'm just left with the sub total line for each user, then in the main report use the same grouping and suming again and I start a new page for every user...
Using CR 9
Thanks for any advice
Vincenti think you need to link the main report parameter with the subreport parameters inorder to pass the parameter values from main report to subreport. So right click on subreport and go to change subreport links and add parameter fields and select parameter fields from your subreport and un check the databse fields in subreport.
Regards,
Raghavendra.G -
Tabular DAX Query for MINX, MAXX and AVGX
Hi,
I need to create three measure to get value of min, max and avg.
For example, I have 3 columns in my table. I need to take minimum value of Column3 based on column2. If column2 value is 0, then we have to consider entire table data else only we have to consider
Column1 Column2 Column3
AAA 1 150
BBB 1 50
CCC 0 25
DDD 1 40
EEEE 0 70
I need to take minimum,maximun and avg value of Column3 based on column2. If column2 value is 0, then we have to consider entire table data. IF column2 value is 1, then only we have to consider the row of column2=1.
I expect the result as like below. Can you please help to find the DAX query for the measure.
Column1 Column2 Column3 MinValue
AAA 1 150 40
BBB 1 50 40
CCC 0 25 25
DDD 1 40 40
EEE 0 70 25
EEE 0 70Hi,
I have 3 columns in my table. I need to take minimum value of Column3 based on column2. If column2 value is 0, then i have to consider entire table data else only i have take minimum(column3) by considering rows of column2=1.
Column1 Column2 Column3
AAA 1 150
BBB 1 50
CCC 0 25
DDD 1 40
EEEE 0 70
Try1:
Min:=IF(Column2>0,MINX(FILTER(table,[column2]>0),[column3]),Min(Column3))
Try2:
Min:=MINX(IF(Column2>0,FILTER(table,[column2]>0),table),[column3]))
Try3:
Created Measure called Min1.
Min1:=MINX(FILTER(Table,[Column2]>0),[Column3])
And then i made this min1 measure to be hidden.
Created another measure called Min2.
Min2:=IF(ISBLANK([Min1]),MIN([column3]),[Min1])
Both DAX query is not working. Can anyone help to have the correct DAX query to create Min measure based on the conditions. -
Required alter script for adding partition and subpartition
Hi Folks,
Please help me to write ALTER STATEMENT for adding new partition P1 and SUBPARTITION P1_201001 and P1_201002.
Thank you
TABLE
=======
CREATE TABLE TEST
"REPORT_ID" NUMBER,
"MONTH_ID" NUMBER,
"GROUP_ID" NUMBER,
"AGE_GROUP_ID" NUMBER,
"GENDER_CD" CHAR(1 BYTE),
PCTFREE 0 PCTUSED 0 INITRANS 1 MAXTRANS 255 COMPRESS BASIC NOLOGGING STORAGE
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT
TABLESPACE "USER_WORK" PARTITION BY RANGE
"REPORT_ID"
SUBPARTITION BY LIST
"MONTH_ID"
SUBPARTITION TEMPLATE
SUBPARTITION "M201212" VALUES
201212
TABLESPACE "USER_WORK"
(PARTITION "P3" VALUES LESS THAN (4) PCTFREE 0 PCTUSED 0 INITRANS 1 MAXTRANS 255 STORAGE( BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USER_WORK" COMPRESS BASIC NOLOGGING ( SUBPARTITION "P3_M201212" VALUES
201212
TABLESPACE "USER_WORK" COMPRESS BASIC, SUBPARTITION "P3_M201301" VALUES
201301
TABLESPACE "USER_WORK" COMPRESS BASIC )
);First modify the subpartition template
ALTER TABLE TEST set
SUBPARTITION TEMPLATE
SUBPARTITION "M201212" VALUES
201212
SUBPARTITION P1_201001 VALUES (201001),
SUBPARTITION P1_201002 VALUES (201002)
)Then if the new partition is HIGHER than ALL existing ranges you can just add it
alter table test add
PARTITION "P1" VALUES LESS THAN (5) If the new partition is LOWER than one onf the existing ranges you will need to SPLIT the existing partition.
alter table test SPLIT PARTITION "P3" AT (2)
INTO (PARTITION P1, PARTITION P3)See the sections in the VLDB and Partitioning Guide
Modifying a Subpartition Template
http://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm#i1007904
Splitting a Partition of a Range-Partitioned Table
http://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm#i1008028
Maybe you are looking for
-
Hi all, We've got an old Powermac 7500/200 that we use to run a dot-matrix pin-fed invoice printer. We need to upgrade the OS from 8.6 to 9.2 to upgrade our pricing software. I know that I have to purchase a CD install to get to 9 from 8.6, but is th
-
Looking for a developer to develop a custom video pod for me
Hello, I would like to contract out the development of a special video pod for Adobe Connect 8...if you're interested in finding out more please email me at [email protected] look forward to hearing from you. Peter Hill Vice President of Research & I
-
Canon MP620 Printing, Scanning, FireWall blocking
After updating to 10.6.7, my Macbook Pro was prompting to allow the networked "MP620" inbound access through the firewall. It did this every time that I printed. The truth is that MP Navigator had had similar problems when I scanned for a while, bu
-
Ship-to address resets (bug?)
Hello, I have had a problem with the DI API since version 2005A. We are currently on 2007A PL48. The shipping address will reset to its default if you modify any header data (except UDFs) through the DI API. Can someone verify this or let me know tha
-
Why suddenly all these Java error messages since upgrading to Lion?
Since I upgraded to OSX 10.8.2, suddenly I'm having no end of error messages having to do with Java not running-everything from coupon printer plug-in to online games not functioning anymore. All of these worked fine in 10.7.4. Is there a fix?