Items weight

Hi all
I want to manage a weight items on a window "Purchase Order" that is to say: Total Payment Due =(weight x Unitprice) + Tax ;
and how do appears a weight items column in "Stock Posting List".
Thanks

The Weight field on the item master data window is for registering the weight of one unit of the item. It is constant for an item, not the actual weight in occurring in a transaction.
If you are selling an item by weigh, you should use a weight unit of measure and use the Quantity column in the transaction window to enter the actual weight. (You even may change the Quantity text  to Weight in the window or in the printed documents.)

Similar Messages

  • Print Item Sales Weight on Picklist (via Inventory module)

    Hi All,
    In the Inventory's Pick and Pack (Picklist), I need to have the Item Sales Weight to be printed.
    After I created a Database Field in PLD at the row level, and link it to OITM Sales Weight (SWeight1), the wrong weight is being picked up.
    Then I created another database field to print the Item Code from OITM. I found that the Item picked is not the same as the item displayed from the picklist.
    So i concluded that there is no mutual link between the PKL1 and OITM by item code.
    Can anyone advise how i can get the item weight to be displayed.
    Regards
    Jessie

    Hi Jessie,
    I think it is not possible on Pick List PLD.
    Just try this,
    ->> Open the Pick List(System) PLD and Save as the New PLD.
    ->> Create Database Fields in Repetetive Area and Select that fields then Clsik Alt+Select the Table(OITM).
    Table -> RDR1 - Sales - Rows.
    Column - Weight1.
    OR
    Table Name -> OITM - Items.
    Column -> ItemCode - Item No.
    AND
    Table Name -> OITM - Items.
    Column -> SWeight 1 - Sales Weight -
    ->> Assign the RELEATE TO Item Code Field_ID in Content Tab on Properties Window.
    Save it and run the print preview.
    Regards,
    Madhan.

  • 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,
    Faical

    Hi 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

  • Display of weights

    hi,
    i am working on report in which i have to display the total weight of block quantity.i am able to display the all quantities but when i have to display the value of net weight for each piece ,i am not able to display it in kg.
    plzz tell me way doing displaying all weights in kg.
    its really urgent.

    Hi,
              u r getting all the item weights into the internal table . Now u want to get all the weights in the kgs.. for that  u have to write small logic to convert  all the basic unit measures in to Kg s  then each item u will get in kgs.
    check this FM may be it help ful to u.
             CF_UT_UNIT_CONVERSION
    Thanks and Regards,
    Surya

  • Need Rohs certificat for few items

    Hi HP,
    My name is Netanel Swisa and I work on REACH & RoHS regulations at GEHC Hardware department,
    # RoHS-    RoHS stands for the “restriction on the use of certain hazardous substances in electrical and electronic equipment”.
                         It is a European Directive aiming to control the use of certain hazardous substances in the production of new electrical and electronic equipment (EEE).
    # REACH- The aim of REACH (Registration, Evaluation, Authorization and Restriction of Chemical) is to improve the protection of human health and the environment through the   
                         better and earlier identification of the intrinsic properties of chemical substances.
    I'll be glad if you could provide me declarations, Sdoc's (Supplier Declaration of Conformity), MD's (Material Declaration), FSD's (Full Substances Discloser) anything that can help to approve your items in our system.
    If applicable, please add to your declaration the relevant exemptions and the item weight.
    Please add/confirm your MPN (manufacture part number) to these items.
    Please send me the weight (specific gravity) of these items.
    121565-001 - US POWER CORD - CSA 1.8M
    A1R84EC#AK6 - HP Z400 Take 2 - W3520
    D3P55EC#AK6  - HP Z420 WS Config  1 Hardware Specs Take 1 - E5-1620-4G-1TB-NVS
    D3P55EC#AB2 - HP Z420 WS Config  1 Hardware Specs Take 1 - E5-1620-4G-1TB-NVS

    Hi Netanel,
    Sorry, you're posting on a consumer support forum. You are not contacting HP corporate by posting here. No one on the support forum can give you the information you requested. Please contact HP through whatever channels you would typically use in your business (I'm not familiar with GEHC Hardware, and I don't know where to point you for this request). Best of luck.
    Please click the thumbs up button to say "Thanks!"
    Clicking "Accept as Solution" on a reply that solves your problem makes it easier for other people to find solutions.
    I am an HP employee.

  • Sales Order Items align with Truck quantity

    Hello Gurus,
    We are in the design phase and there is a requirement from the client that
    The Sales Order can be with multiple line items. But every line item weight would be equal to a truck weight/capacity. The rest of the items needs to be rejected.
    Example: If 1st line item weighs 10tons and has 20 pallets, and the truck can load only 19 pallets bcoz of weight, then we should be able to reject the 20th item.
    How do we do this ?
    rgds..Ameet

    Hi
    Before going to any solution  I would like to known some open question below..
    1 Take an example that you have some container  whose size may be big but the weight may be lessu2026.
    2. In the above scenario it looks that you wonu2019t have place to load material in the truck as you have not over loaded.., what will be the action on that case
    Assuming that youu2019re  not considering any the size of the material and concentrating the weight of the material (which may be not much real scenario)
    Create a custom table say named by u201CZ_Truck_ capacityu201D which  you can define by any place in the sales order (may be by some PO type). But I would prefer to say that you maintain the custom table with respective to the Shipping Condition and the Truck capacity.
    So in MV45AFZZ in VBAP section you can write the logic that
    u201CIf the SC is u2019 10u2019  then go and check the table u201CZ_Truck_ capacityu201D to know the capacity of the vehicle .
    If the capacity is >= the total weight of all the item (I think the weight can be get from MVKE or MARA or may be some MM table, please have a look for this) then allow the sales order or give an error or massage as per the business requirement.
    Hope that may help you some how

  • DIMP: NF-Metals functionality, update structural weights

    Hi,
    using NF-metals functionality to roll-up / update structural weights for all the own produced semi-finished / finished goods within one BOM, the calculation / roll-up of the structural weights works fine.
    But the update in material master happens only for the finished good (the one you are entering in CK11N or select in the report /NFM/SUM_NE_KONSTRUKTIONSGEW) but not for all the semi-finished products + the finished product.
    For me this is curios compared to marking/releasing of a plan cost estimate where all results from CK11N for semi-finished / finished products are marked / released when you enter the finished product in CK24 (and not only the reuslt for the finished product).
    Does anybody now if thatu2019s a missing functionality or is the update working fine for all the products in another installation?
    There are no SAPNET-notes regarding this case, note 1653969 (which I did not implement so far) does not sound helpful.
    Best regards, Christian

    We are just going live with NF Metals this week after several months of blueprinting, configuring and testing. 
    SAPs' response make sense to us.  We enter the origin group code for raw materials and the NF keys for purchased parts with metal content,  These all get rolled up to the end item in batch mode with the /NFM/SUM_NE_KONSTRUKTIONSGEW program, or individually with CK11N with the "Update structural weight" button is there is a need to do so.  The weight roll-up can be seen for each semi-finished product (assembly) with CK11N or CK13N, but we wouldn't want the rolled-up weights to be added to the semi-finished product because then we would not be able to easily distinguish an end item from a semi-finished product by looking at the weight roll-ups, and there would be the risk, probably as SAP indicates, that the real end item weight would include both purchased parts weights and assembly weights.
    We are very happy with the NF Metals structural weight roll-ups which is allowing us to replace a 30-year-old legacy system used for metals weight calculations.
    By the way, the OSS Note 1653969 was a lifesaver for us with using the /NFM/SUM_NE_KONSTRUKTIONSGEW program.  We were missing the metal content in purchased parts before the NOte was implemented.

  • Weight group-route redetermination

    Friends,
    In the current system route is getting redetermined at delivery level depending on the weight group.Now how it is getting redetermined please do help me with settings done for the same and importantly to find HOW to find out if its picking the right route at delivery.
    I am aware how route is determined
    1.     Departure zone of the Shipping point in customisation
    2. Shipping condition ( system first check the sales doc type, then the customer master of SP)
    3. Transportation Group ( from the material master)
    4. Transportation zone (from customer master of SH)
    So please do help me w.r.t weight group.
    Regards
    ASD

    Hi
    Route in delivery depends on weight groups as mentioned above
    Route Determination with Weight Group(Delivery)
    Shiping ConditionTransportation Groupweight Group----
    >Actual Routes,
    But where do we get weight group from ,we need to define Weight groups and weight assigned to different weight groups
    as mentioned below
    SPRO->SD->BASIC FUNCTIONS->ROUTES->ROUTE DETERMINATION->DEFINE WEIGHT GROUPS
    *Total Weight   Unit            Seq          Weight group      Description*  
    1     KG      1     0001     Up to 1 kg
    10     KG      2     0010     Up to 10 kg
    100     KG      3     0100     Up to 100 kg
    so based on weight groups assigned in above transaction,actual route is determined.
    S.C                                                      T.GROUP                                WT.GROUP                       ACTUAL ROUTE        
    01     As soon as possible     0001     On palettes     0001     Up to 1 kg     000001     Northern Route
                                                                  0010     Up to 10 kg     000002     Southern Route
                                                                  0100     Up to 100 kg     000003     Eastern Route
    when order is raised for say 10 items (each item weight is 1 kg) so in deleivery,it means total weight in delivery is 10 kg so route determined isn 00002-southern route in above example.
    If order raised for 1 item,total wt is 1 kg so route determined will be 00001,
    we can configure as per the requirement,
    Regards
    Jai

  • Flashing question mark on screen. Can I still backup my files and restore my system?

    Okay, so yesterday evening, I received a message from my teacher that I had to redo one of my papers because a program she used detected some copy paste information that was about 39% more than what she accepts and asked me to reword some of the information. When I started working on my paper to resubmit it to her, My laptop was freezing a lot in the middle of me working on my school paper. After a while, it completely froze to the point where I could no longer do anything and stayed frozen for hours on end. I couldn't even save my work which was very frustrating considering I wanted to get that done and out of the way. I felt that I had no choice but to force it to turn off and turn it back on. In the process of me doing so, a flashing file with a question mark came on in which I took the time to look up to see what it meant and how can I fix it. However, after many reading, I realized that if I reboot the system I will lose everything I have that's important to me (which technically is my school work, some photos, and licensing application). I never used the Time Machine when my laptop was up and running because I never understood it or knew how to use it. One of the things I read is that I am able to restore my laptop with Time Machine. But I was curious to know if I can still use Time Machine to backup and restore my laptop? I'm hoping I can as I really do not want to lose the information and files I have saved. Below are the basic information of my laptop. Please help!!!!
    Screen Size
    13.3 inches
    Screen Resolution
    1280x800
    Max Screen Resolution
    1280x800 pixels
    Processor
    2.5 GHz Intel Core i5
    RAM
    4 GB DDR3
    Hard Drive
    500 GB HDD 5400 rpm
    Graphics Coprocessor
    Intel HD Graphics 4000
    Chipset Brand
    Intel
    Card Description
    Intel HD 4000
    Graphics Card Ram Size
    128 MB
    Wireless Type
    802.11 a/b/g/n
    Number of USB 2.0 Ports
    2
    Average Battery Life (in hours)
    8 hours
    Expand 
    Other Technical Details
    Brand Name
    Apple
    Series
    MacBook Pro
    Item model number
    MD101LL/A
    Hardware Platform
    Mac
    Operating System
    Mac OS X 10.8 Mountain Lion
    Item Weight
    4.5 pounds
    Item Dimensions L x W x H
    8.94 x 12.78 x 0.95 inches
    Color
    Silver
    Processor Brand
    Intel
    Processor Count
    1
    Computer Memory Type
    DDR3 SDRAM
    Hard Drive Interface
    Serial ATA
    Hard Drive Rotational Speed
    5400 RPM
    Optical Drive Type
    DVD+R DL
    Audio-out Ports (#)
    1
    Power Source
    DC
    Voltage
    100 volts

    The fact that you can boot into Recovery Mode, which is a hidden partition on your HD, means your HD is working, at least somewhat. Since your main concern is retaining the files that are important to you, what I'd suggest is creating a clone on a separate, external HD. You can do that by booting into Recovery again, partitioning the external with a GUID partition table and creating at least one partition for a clone (3TB externals are pretty inexpensive these days and you could have plenty of partitions large enough to hold what's on your internal drive) and using "Restore" in DU with the internal as the source and the external partition as the target. With that done, see if you can boot from that external clone. If you can't, go back to Recovery, and, instead of Disk Utility, choose Reinstalling the OS but with the clone you just made as the target. When that's done, see if you can boot from the external, and if you can, you will have a working bootable backup of your internal and all your files. You can then wipe the internal and Restore to the internal by using Restore in Disk Utility in Recovery Mode with the external as the source and the internal as the target. Normally, I'd suggest just reinstalling the OS on the internal, but if there's something wrong with the drive, you may risk making things worse, and first priority is to protect your files.

  • Creation of a static class with private methods

    I'm new to java programming and am working on a project where I need to have a static class that does a postage calculation that must contain 2 private methods, one for first class and one for priority mail. I can't seem to figure out how to get the weight into the class to do the calculations or how to call the two private methods so that when one of my other classes calls on this class, it retrieves the correct postage. I've got all my other classes working correct and retrieving the information required. I need to use the weight from another class and return a "double". Help!!!
    Here's my code:
    * <p>Title: Order Control </p>
    * <p>Description: Order Control Calculator using methods and classes</p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: Info 250, sec 001, T/TH 0930</p>
    * @author Peggy Blake
    * @version 1.0, 10/29/02
    import javax.swing.*;
    public class ShippingCalculator
    static double firstClass, priorityMail;
    //how do I get my weight from another class into this method to use??? not sure I understand how it works.
    public static double ShippingCalculator(double weight)
    String responseFirstClass;
    double quantity, shippingCost;
    double totalFirstClass, firstClass, priorityMail, totalShipping;
    double priorityMail1 = 3.50d;//prioritymail fee up to 1 pound
    double priorityMail2 = 3.95d;//prioritymail fee up to 2 pounds
    double priorityMail3 = 5.20d;//prioritymail fee up to 3 pounds
    double priorityMail4 = 6.45d;//prioritymail fee up to 4 pounds
    double priorityMail5 = 7.70d;//prioritymail fee up to 5 pounds
    quantity = 0d;//ititialization of quantity
    // weight = 0d;//initialization of weight
    // shippingCost = 0d;
    //calculation of the number of items ordered..each item weights .75 ounces
    quantity = (weight/.75);
    if (quantity <= 30d)
    //add 1 ounce to quantities that weigh less than 30 ounces
    weight = (weight + 1);
    else
    //add 2 ounces to quantities that weigh more than 30 ounces
    weight = (weight + 2);
    if (weight > 80d)
    //message to orderclerk ..order over 5 lbs, cannot process
    JOptionPane.showMessageDialog(null, "Order exceeded 5 lbs, cannot process");
    //exit system, do not process anything else
    System.exit (0);
    else
    if (weight < 14d)
    //send message to customer: ship firstclass or priority, y or n
    responseFirstClass = JOptionPane.showInputDialog(null, "Ship first class? y or n?");
    if (responseFirstClass.equals("y"))
    //compute FirstClass shipping cost
    totalFirstClass = ((weight - 1) * .23d) + .34d;
    firstClass = totalFirstClass;
    else
    //compute PriorityMail cost for orders less than 14 ounces
    priorityMail = (priorityMail1);
    else
    if (weight <=16d)
    //compute totalshipping for orders up to 16 ounces
    priorityMail = (priorityMail1);
    else
    if (weight <=32d)
    //compute totalshipping for orders up to 32 ounces
    priorityMail = (priorityMail2);
    else
    if (weight <=48d)
    //compute totalshipping for orders up to 48 ounces
    priorityMail = (priorityMail3);
    else
    if (weight <= 64d)
    //compute totalshipping for orders up to 64 ounces
    priorityMail = (priorityMail4);
    else
    //compute totalshipping for orders up to 80 ounces
    priorityMail = (priorityMail5);
    priorityMail = 0d;
    firstClass = 0d;
    firstClassMail ();
    priorityMailCost ();
    //I think this is where I should be pulling the two methods below into my code, but can't figure out how to do it.
    shippingCost = priorityMail + firstClass;
    return (shippingCost);
    }//end method calculate shipping
    private static double firstClassMail()//method to get first class ship cost
    return (firstClass);
    }//end method firstclass shipping
    private static double priorityMailCost()//method to get priority mail cost
    return (priorityMail);
    }//end method priorityMail
    }//end class shipping calculator

    public class A {
    public String getXXX () {
    public class B {
    A a = new A();
    public void init () {
    a.getXXX();
    }

  • Error in subquery

    I have a table on which i need to generate serial number or batch numbers based on two criterias that by each unique desc, and item qty less than 10 per batch and item weight less than 50, i got the solution yesterday but when i rewrote the query using subquery it giving me an error like 'ora-01436' , how to overcome this problem.is there a way to write procedure and do this more simpler.please find below the sample test case.
    CREATE TABLE OW_TEMP_DATA
      TMP_NO       VARCHAR2(12 BYTE),
      TMP_PM_CODE  VARCHAR2(12 BYTE),
      TMP_PS_CODE  VARCHAR2(12 BYTE),
      TMP_DESC     VARCHAR2(30 BYTE),
      TMP_WT       NUMBER,
      TMP_QTY      NUMBER,
      TMP_TYPE     VARCHAR2(2 BYTE)
    insert into ow_temp_data (tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','A' , NULL,'H170',25 ,0,'W' );
    insert into ow_temp_data ( tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','A' ,'A01' ,'HEA100' ,0 ,10,'WI' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','B' , NULL,'H170',25 ,0,'W' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','B' ,'B01' ,'HEA100' ,0 ,10,'WI' );
    insert into ow_temp_data (tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','C' , NULL,'HB120',30 ,0,'W' );
    insert into ow_temp_data ( tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','C' ,'C01' ,'HB100' ,0 ,10,'WI' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','D' , NULL,'HB120',40 ,0,'W' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','D' ,'D01' ,'HB100' ,0 ,10,'WI' );
    insert into ow_temp_data (tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','E' , NULL,'PL120',30 ,0,'W' );
    insert into ow_temp_data ( tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','E' ,'E01' ,'P100' ,0 ,10,'WI' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','F' , NULL,'PL120',35 ,0,'W' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','F' ,'F01' ,'P100' ,0 ,50,'WI' );
    SQL> with agg_data as
      2  (
      3    select TMP_PM_CODE,TMP_DESC,TMP_WT,TMP_QTY,TMP_TYPE,ATT
      4    from
      5     (
      6      SELECT b.tmp_pm_code tmp_pm_code, b.tmp_desc tmp_desc, b.tmp_wt tmp_wt,
      7        b.tmp_qty tmp_qty, b.tmp_type tmp_type,tmp_ps_code,
      8             SUM (b.tmp_qty) over(partition by b.tmp_pm_code) att
      9      FROM ow_temp_data b
    10     )
    11      WHERE tmp_ps_code IS NULL
    12  ),
    13  agg_wt as
    14  (
    15    select TMP_PM_CODE,TMP_DESC,TMP_WT,TMP_QTY,TMP_TYPE,ATT,
    16           sum(tmp_wt) over(partition by tmp_desc order by tmp_pm_code) sm_wt,
    17       case when sum(tmp_wt) over(partition by tmp_desc) > 50 then 1
    18            when sum(att) over(partition by tmp_desc) > 50 then 1
    19            else 0
    20       end wt_rnk
    21    from agg_data
    22  ),
    23  agg_wt_rnk as
    24  (
    25    select TMP_PM_CODE,TMP_DESC,TMP_WT,TMP_QTY,TMP_TYPE,ATT,
    26           sm_wt,wt_rnk
    27    from agg_wt
    28  ),
    29  complete_data as
    30  (
    31    select TMP_PM_CODE,TMP_DESC,
    32       tmp_wt,10 TMP_QTY,TMP_TYPE,ATT,level l,
    33       sum(wt_rnk) over(order by TMP_PM_CODE,TMP_DESC,level) wt_rnk
    34    from agg_wt_rnk
    35    connect by prior tmp_pm_code = tmp_pm_code
    36    and prior tmp_desc = tmp_desc
    37    and (
    38        att/level >= 10
    39        or (prior tmp_wt/(level-1) > 10 and sm_wt > 50 )
    40        )
    41    and prior sys_guid() is not null
    42  )
    43  select to_char(
    44          dense_rank() over(order by wt_rnk),
    45       '0000') ob_batch,
    46         TMP_PM_CODE ob_pm_code,
    47         TMP_DESC ob_desc,
    48         TMP_WT/count(*) over(partition by tmp_pm_code) ob_wt,
    49         TMP_QTY ob_qty,TMP_TYPE ob_type
    50  from complete_data;
    OB_BA OB_PM_CODE   OB_DESC                             OB_WT     OB_QTY OB
    0001 A            H170                                   25         10 W
    0001 B            H170                                   25         10 W
    0002 C            HB120                                  30         10 W
    0003 D            HB120                                  10         10 W
    0004 D            HB120                                  10         10 W
    0005 D            HB120                                  10         10 W
    0006 D            HB120                                  10         10 W
    0007 E            PL120                                  30         10 W
    0008 F            PL120                                   7         10 W
    0009 F            PL120                                   7         10 W
    0010 F            PL120                                   7         10 W
    OB_BA OB_PM_CODE   OB_DESC                             OB_WT     OB_QTY OB
    0011 F            PL120                                   7         10 W
    0012 F            PL120                                   7         10 W
    SQL> select to_char(
      2          dense_rank() over(order by wt_rnk),
      3       '0000') ob_batch,
      4         TMP_PM_CODE ob_pm_code,
      5         TMP_DESC ob_desc,
      6         TMP_WT/count(*) over(partition by tmp_pm_code) ob_wt,
      7         TMP_QTY ob_qty,TMP_TYPE ob_type
      8  from (
      9  select TMP_PM_CODE,TMP_DESC,
    10       tmp_wt,10 TMP_QTY,TMP_TYPE,ATT,level l,
    11       sum(wt_rnk) over(order by TMP_PM_CODE,TMP_DESC,level) wt_rnk
    12    from (
    13    select TMP_PM_CODE ,TMP_DESC,TMP_WT,TMP_QTY,TMP_TYPE,ATT,
    14           sm_wt,wt_rnk
    15    from ( select TMP_PM_CODE,TMP_DESC,TMP_WT,TMP_QTY,TMP_TYPE,ATT,
    16           sum(tmp_wt) over(partition by tmp_desc order by tmp_pm_code) sm_wt,
    17       case when sum(tmp_wt) over(partition by tmp_desc) > 50 then  1               
    18            when sum(att) over(partition by tmp_desc) > 50 then 1
    19            else 0
    20       end wt_rnk
    21    from
    22  (
    23    select TMP_PM_CODE,TMP_DESC,TMP_WT,TMP_QTY,TMP_TYPE,ATT
    24    from
    25     (
    26      SELECT b.tmp_pm_code tmp_pm_code, b.tmp_desc tmp_desc, b.tmp_wt tmp_wt,
    27        b.tmp_qty tmp_qty, b.tmp_type tmp_type,tmp_ps_code,
    28             SUM (b.tmp_qty) over(partition by b.tmp_pm_code) att
    29      FROM ow_temp_data b
    30     )
    31      WHERE tmp_ps_code IS NULL
    32  ))) 
    33    connect by prior sys_guid() is not null
    34    and prior tmp_pm_code = tmp_pm_code
    35    and prior tmp_desc = tmp_desc
    36    and (
    37        att/level >= 10
    38        or (prior tmp_wt/(level-1) > 10 and sm_wt > 50 )
    39        )
    40     )
    41  /
        FROM ow_temp_data b
    ERROR at line 29:
    ORA-01436: CONNECT BY loop in user dataEdited by: 998476 on Apr 8, 2013 12:20 AM

    Yeah i am sorry for posting it wrongly and i will brief it again in a proper way.
    Thanks very much for the response alberto, will explain it again, actually i am generating the batch number or you can say serial number based on tmp_desc with two criterias of adding up the tmp_qty and adding up tmp_wt as follows.
    Criteria for generating batch number is tmp_qty should not exceed 10 per each batch and tmp_wt should not exceed 50 each batch
    Conditions
    a) New batch number will be generated with max(batch)+1 from os_batch for every combination of tmp_Desc and till tmp_wt reaches 50 and till tmp_qty reaches 10, in simple each batch must not contain tmp_wt more than 50 and tmp_qty not more than 10 per each tmp_desc.
    b) if weight exceed more than 50 for example if its 60 and qty is 10 , two batches will be created with weight as 30 30 each
    as the wt criteria is more and it takes the priority.
    c) if wight is ok that is less than 50 like 25 and qty is 50 then 50/10 that is 5 batches will be created with weight of batch being 5 and qty being 10.
    d) if both the cases come together like wt is 60 and qty is 50 , priority goes to qty and it will 50/10 -- 5 batches with 60/5 wt per each batch.
    please let know if you have any more clarification.
    CREATE TABLE OW_TEMP_DATA
    TMP_NO VARCHAR2(12 BYTE),
    TMP_PM_CODE VARCHAR2(12 BYTE),
    TMP_PS_CODE VARCHAR2(12 BYTE),
    TMP_DESC VARCHAR2(30 BYTE),
    TMP_WT NUMBER,
    TMP_QTY NUMBER,
    TMP_TYPE VARCHAR2(2 BYTE)
    insert into ow_temp_data (tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','A' , NULL,'H170',25 ,0,'W' );
    insert into ow_temp_data ( tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','A' ,'A01' ,'HEA100' ,0 ,10,'WI' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','B' , NULL,'H170',25 ,0,'W' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','B' ,'B01' ,'HEA100' ,0 ,10,'WI' );
    insert into ow_temp_data (tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','C' , NULL,'HB120',30 ,0,'W' );
    insert into ow_temp_data ( tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','C' ,'C01' ,'HB100' ,0 ,10,'WI' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','D' , NULL,'HB120',40 ,0,'W' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','D' ,'D01' ,'HB100' ,0 ,10,'WI' );
    insert into ow_temp_data (tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','E' , NULL,'PL120',30 ,0,'W' );
    insert into ow_temp_data ( tmp_no, tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','E' ,'E01' ,'P100' ,0 ,10,'WI' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','F' , NULL,'PL120',35 ,0,'W' );
    insert into ow_temp_data ( tmp_no,tmp_pm_code ,tmp_ps_code ,tmp_desc ,tmp_wt ,tmp_qty ,tmp_type ) values ('0','F' ,'F01' ,'P100' ,0 ,50,'WI' );
    commit;
    --query on which criterias to be applied and serial numbers to be generated.
    select TMP_PM_CODE,TMP_DESC,TMP_WT, att TMP_QTY,TMP_TYPE
         from
            SELECT b.tmp_pm_code tmp_pm_code, b.tmp_desc tmp_desc, b.tmp_wt tmp_wt,
              b.tmp_qty tmp_qty, b.tmp_type tmp_type,tmp_ps_code,
                   SUM (b.tmp_qty) over(partition by b.tmp_pm_code) att
            FROM ow_temp_data b
           WHERE tmp_ps_code IS NULL;
    TMP_PM_CODE     TMP_DESC     TMP_WT     TMP_QTY     TMP_TYPE
    A              H170                25      10     W       --this line and second line will go to batch 0001 as tmp_wt reaches 50
    B              H170                25      10     W       --0001 
    C              HB120                30      10     W       --this will go into two batches as tmp_wt reaches 70 and                  divided by 2 and two batches for C AND D --0003
    D              HB120                40      10     W     --0004
    E              PL120                30      10     W      --In this case Both qty and wt are crossing their limits and this case will
    have total of 6 batch numbers since tmp_qty becomes 60 here and it has to be splitted into each batch with qty as 10.
    F              PL120                35      50     W
    --the output i want in os_batch table is as follows.
    CREATE TABLE OS_BATCH
      OB_BATCH    VARCHAR2(12 BYTE),
      OB_PM_CODE  VARCHAR2(12 BYTE),
      OB_DESC     VARCHAR2(30 BYTE),
      OB_WT       NUMBER,
      OB_QTY      NUMBER,
      OB_TYPE     VARCHAR2(2 BYTE)
    --the following is the result data i want in os_batch table.
    ob_batch ob_pm_code ob_desc  ob_wt   ob_qty  ob_type
    0001      A          H170      25     10      W
    0001      B          H170      25     10      W
    0002      C         HB120      35     10      W
    0003      D         HB120      35     10      W
    0004      E         PL120   10.83     10      W
    0005      F         PL120   10.83     10      W
    0006      F         PL120   10.83     10      W
    0007      F         PL120   10.83     10      W
    0008      F         PL120   10.83     10      W
    0009      F         PL120   10.83     10      WEdited by: 998476 on Apr 8, 2013 2:07 AM
    Edited by: 998476 on Apr 8, 2013 2:09 AM

  • Tableview : inputfield and other stuff in the same cell ?

    Hi everybody!
    I wonder how I could do the following :
    in a tableview, using iterator, have a cell with both :
    - a free text (html)
    - an inputfield
    the result would be a table like that :
    Item       |       Weight         |         Length
    10000125   |  = [inputfield] kg   | = [inputfield] m
    10000132   |  = [inputfield] kg   | = [inputfield] m
    Huh? Would be fine, like!
    Maybe someone could help me ?
    Because I know how to insert the input field :
    DATA col1_inputField TYPE REF TO CL_HTMLB_INPUTFIELD.
    CREATE OBJECT col1_inputField.
    p_replacement_bee      = col1_inputField.
    and also the free text :
    p_replacement_bee = CL_HTMLB_TEXTVIEW=>FACTORY( text = html_output ).
    ... but how to mix them together ?
    Thanks a lot for you all for all past and coming help!
    François

    Hi Francois,
    this can easily be achieved with a bee table. You can do something like this:
    DATA: if_input  TYPE REF TO CL_HTMLB_INPUTFIELD,
          if_text   TYPE REF TO CL_HTMLB_TEXTVIEW.
    if_input = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id
                                             id_postfix = '_input'
                                             type = 'INTEGER' ).
    if_text = CL_HTMLB_TEXTVIEW=>FACTORY( id = p_cell_id
                                          id_postfix = '_text'
                                          text = 'my text' ).
    DATA: whole_cell TYPE REF TO CL_BSP_BEE_TABLE.
    CREATE OBJECT whole_cell.
    whole_cell->ADD( if_input ).
    whole_cell->ADD( if_text ).
    p_replacement_bee = whole_cell.
    Please also have a look at weblog:
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    Regards,
    Rainer

  • Custom shipping options?

    Alright - I got a question I can't seem to find an answer to.
    I've got an item. this item measures
    W - 3.5
    H - 5.75
    D - 1.5
    Then I've defined some custom shipping options.
    These are the USPS boxes - where an items weight doesn't matter. Only the size of the items.
    8.625 x 5.375 x 1.625 SMALL BOX
    1 x 8.5 x 5.5 MEDIUM BOX
    12 x 12 x 5.5 LARGE BOX
    The idea here is to fit the items into the box - the whole " if it fits it ships " idea.
    If you add two of these items into the shopping cart, it basically just doubles the dimensions of ALL the measurements of the items... Which will exceed at least one of W H D - so it returns no shipping options. It should just go up to the next size box, or at least return it as an option. It seems that this is seriously broken in a very big way. You could fit two of these items into a medium sized box - easy. but the system seems to kick it back since the height is larger than the height of the boxes... but only when you add them in together. the volume works.
    The client does not care for how the shipping API's work - so this was my solution - if it fits it ships. Am I missing something seriously major here or is shipping in general just a HUGE flaw in the business catalyst system?

    Hi Garuda,
    The image thing would have to be implemented with some JS. You'd listen to the dropdown change and then render the image according to the shipping selection. I unfortunately don't have the code for you that will do this.
    As for the free shipping option, you'd need to use a user defined option of $0 rather than the Free Shipping option and then set your weights so that both options are displayed at the same time when 2 or more items are added.
    Cheers,
    -mario

  • To split Delivery into multiple delivery

    Hi,
    VL10C is used to generate deliveries in  background. In Delivery if sum of the line item weights is greaterthan Maximum weight then deliveries should split according to the requirement.
    Example: 
    lineitem       quantity
    10                 1000 KG
    20                 1000 KG
    30               25000 KG
    If Maximum weight limit is equal to 25000 KG or Greaterthan  then I want to split the delivery. In this case Now I want split this as 3 deliveries.
    one is with 1000 KG
    second is with 1000KG
    thirds is with 25000 KG
    We are using one subroutine to split based on LIKP-ZUKRL field. But we are not able to solve the requirement.
    Whether the delivery is split with using of field LIKP-ZUKRL  or else required.
    Otherwise is there any function moudle to split the Delivery.
    Please let me know in case of any further details needed.
    Regards,
    Kumar.
    Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:03 PM

    Hi,
    I also need to split my deliveries based on the volume. Have you been able to find a solution for this requirement? Please let me know in case you have been able to solve this as I need to give a solution at the earliest.
    Thanks in advance,
    Manvi

  • Truncating decimal places in smartfroms

    Hi
    My requiremnent is that I have a quantity value printed in a smartform. The value comes as 100.000 but i only want 100 to come.
    How can this be done in a smartform

    hi KISHNAN
    (.0) is not working inside the table loop for displaying the item weight's
    is it dependant on font?
    any solutions?
    regards
    kishore

Maybe you are looking for