How to set PR Quantity = GR qty in PO

Hi,
    I have a PR of 100 Qty. I converted the PR in PO . Now I made a GR of 80 qty. Remaining 20 Qty I dont expect any more from vendor.  The question is: If there is any way to set the Open quantity as 0 in PR Quantity/dates Tab(without manually changing the qty in PR).
Wll delivery completed indicator in PO have any roll here?
My Second Question is:
Now I have already alocated a budget of Rs1000 against 1000 Qty. Pls suggest whether the amount of returning of 20 qty will roll back in the budget pool.MY confusion is budget affects which points of time? At the time of PR, PO or at the time of invoicing. 
Suggesting your valuable inputs on this

Hi,
The Delviery Completed indicator can be set in PO .If you set the delivery completed indicator ,system doesn't stop you for doing the GR for remaining open quantity .Only GR compleyed indicator helps you in list of open PO pending & it won't show you the delivery indicator set PO .If you do the GR of remaining quantity then  it only decreases the commitment on account assignment.
It will afftect the budget .
You can spend the remaining amount to somewhere.
The good way is that you block the line item temporarily.
Thanks
AMIT

Similar Messages

  • How to set Confrimed quantity as 0 in the sales order line item

    hi all
    i have a requirement that my user dont want to see confirmed quantity in the sales order line item.
    scenario is make to order.
    i have set strategy group is 20 -make to order
                                            MRP Type is PD
                                           Lot size -
    EX , still its showing confirmed quantity.
    could pls any one tell me how to set 0 quantity in the sales order line item
    thnx

    Dear Sateesh,
    If the availability check is carried out and stock is not there in our plant, then it will show the confirmed quantity as Zero.
    If you don't want to carry out the availability check,
    To achieve this,
    1. Remove the availability check in the transaction OVZG against your requirement class.
    You can find the requirement type assigned to the sale order in the procurement tab.
    In OVZH transaction, you can find the requirement class assigned to your requirement type.
    2. Remove the availability check for your schedule line category in VOV6.
    In the material master MRP3 view, you ll be having Availability check, there you need to specify the availability check..
    If you specify it as KP(No check), then it will confirm the qty, though the stock is not there in our plant..
    To meet your requirement, you have to prefer user exit.(Correct me if I am wrong)
    Thanks,
    Venkatesh.S.P

  • How to set up Max Grab Qty in an order

    Hi Experts,
    Can you please help/hint me on how to set up Maximum grab qty (item level) for an order.
    For example - If i set up material ABC with 50 Max grab Qty , then you should not be able to raise an order with qty greater then 50. VA01 should block it.
    Thanks in advance for the response.
    Regards.

    Hi,
    to do this enhancement, first decide the user exit and a put a break point. You will notice at the time sales order processing after entering the order qty whether its stopping at the break point or not. Offcourse you need a technical assistance here.
    I guess the line item user exit ie at VBAP, would be more helpful to put the code. The piece of code depends on how you want the logic to work.
    1.Is it that for every sales order you want to trigger this code, or if only in specific cases then you may even need to hard code.
    2. Do you want check that the max order is not crossed even when a user changes the order qty through VA02.
    3. Any other specific check that you want to consider.
    Regards
    Sadhu Kishore

  • How to set standard quantity for po while creating idoc

    hi..
    i have a requirement to create an outbound idoc for PO in which i need to set a standard quantity as '1000'... plz tell me where to set the quantity,so that  the PO quantity is 1000 by default while creating PO...
    Plz help me asap

    Hello,
    Your requirement is not clear, why you want to change PO item quantity? anyway, If you want to post an IDOc with changing the PO item quantity, go to Customer exit EXIT_SAPLEINM_002 in IDOC_OUTPUT_ORDERS and change the quantity(MENGE) for each segment (E1EDP01) and modify the IDoc data (INT_EDIDD).
    Remember to create a Poject using CMOD and add this customer exit and activate, otherwise your code doesn't get triggered.
    Thanks
    RK

  • How to set a Quantity Contract to Completion.

    Hi
    When we create sales order with reference to the Quantity contract, it should ideally not allow to create sales order for quantity greater than the quantity in Contract.
    Quantity in Contract --> 20
    Quantity in Sales Order --> 21
    I just get a warning message, but system allows me to save the order.
    How do we restrict this.
    Regards
    Trupti Deulkar

    hi,
    if this is the case,
    you can convert the WARNING MESSAGE into AN ERROR MESSAGE.
    its a simple job done by an ABAPER.
    after doing that this shows as an ERROR.
    hope this clears your issue
    balajia

  • Set loss quantity to a fixed percentage in Process Order Confirmation - C0R6N

    Hi Experts,
    How it is fixed the loss qty percentage at the time of process order confirmation.
    I want to set the loss quantity to a certain percentage when compared to the Total Process order quantity.
    For Example:
    If the Total processed quantity = 100
                            Yield Quantity = 20.
                             Loss              = 80.
    This kind of scenario should not happen, since Loss quantity is very much higher that the yield quantity.  I want to set the loss quantity  to a particular percentage ( say 20-30 %) of the total processed quantity so that the yield quantity will be higher than the loss quantity by a substantial amount. Are there any possibilities of doing this through configuration. If not what are the other options?
    NB: Scrap quantity is not maintained at the time of  process order confirmation.
    Regards,
    Umapathy.

    Hi Umapathy,
    Yield and Scrap are user entry fields where you can have restriction on entered qty by changing  under delivery and over delivery to error through OPK4 config as shown below. Agree that any qty can be entered in any field (Yield or Scrap)
    OR
    You can define the operation scrap. Read the below doc for more details.
    http://scn.sap.com/docs/DOC-52834
    OR
    Another option is to use exit and write your logic based on input yield and loss.
    Thanks & Regards,
    Ramagiri

  • Any ideas of how to set up a meal list in Numbers?

    Hey.
    I just got Numbers and I love it. This app is great.
    Does anyone have an idea of how to set up a meal list for a family in Numbers? I used to use TextEdit to type the meals in, separated with hard returns. It was one long list. I'd like to use someething a little more robust.
    Any ideas?

    Hi Ashka.
    Thanks, that's giving me some ideas. Sometimes I overcomplicate my thought process, only to streamline it once I've gotten the big picture. Your idea looks very close to what I can use.
    In the meantime, I made two weeks worth of breakfast, lunch, and dinner ideas. That helped me tremendously. I made a grocery list, based loosely off of the menu template, as Johnny mentioned above. It has an ingredient column (that lists all of the things that I would purchase), Have it column (with checkboxes. I'm sure that I'll be able to sort by that, later), Quantity (how many or much I'll need), How sold (pound, box, can, pieces...), Price, Estimate, and Store (you like the check boxes, I LOVE the selection menus! I set the cells in this column to have a list of the stores that I shop from. When I get to a particular item I choose the store from the selection menu. I love it!).
    Thanks for the help!
    -Scott

  • How to restrict the quantity & rate of MIRO with MIGO and PO

    Hi friends,
    Can any body tell me how to restrict the quantity & rate of MIRO with MIGO and PO.
    e.g. if we have done MIGO for quantity 10 and the rate maintained in the PO is Rs.100.Then at the time of MIRO system should not allow to change the quantity and rate.
    How we can do this?
    Regards  
    Purnesh Sharma

    Hi,
    You are misunderstanding the use of MIRO.
    If you change the details in MIRO you are NOT changing anything. You are just entering the price and quantity from the Invoice.
    If this price and or qty is different from the GR aqty and PO price then the system will block the invoice for payment (and it can issue messages toinform the buyer if configured correctly).
    The whole design of MIRO is based on the principle that you enter EXACTLY what the vendor has put on the invoice. By preventing the users from changing anything you will get NO mismatched invoices, but you will not be paying the vendor the amount specified on their invoice. This will surely cause problems.
    If you do want to ensure that ONLY the GR qty and the PO price are used and cannot be changed then why not consider using ERS (Eveluated Receipt Settlement. this is basically self billing.
    Effectively you will be paying the vendor based on what you have received in MIGO multiplied by the price from the PO. (which is what you would be doing if you stop any changes in MIRO)
    Steve B

  • How to set the Data types of the Excel sheet while exporting details to it.

    Hi All,
    We are trying to export some order details to the excel sheet from a jsp. It is working fine when the local system language is set to English.
    But when i change it to Russian. the details like Line Numbers(e.g: 1.1, 1.2, 1.3 and so on... ) are getting changed into some other data type(e.g: 01.янв, 02.янв, 03.янв and so on....).
    i guess this is mainly due to some data type mismatch, so i tried setting all the possible charset for response in the jsp, but could not succeeded.
    This is only for the details which or of decimal format, working fine for the details which are in String type. like Description, Item name etc...
    As it is high preference issue for our client, Please help me in this regard ASAP.
    Thanks & Regards,
    Praveen Reddy B

    hi Shiv..
    Its not an OAF page but it is from Apps only (i.e.Oracle iStore).
    we tried writing this:
    <%response.setContentType("application/vnd.ms-excel; charset=UTF-8");%>
    <%response.setHeader("Content-Disposition", "attachment; filename=downloadOrders.xls" );%>
    <head>
              <title>Logitech_iStore</title>
    <style>
    table {
    border-style: solid;
    table th.mainHeader {
                                            border-style: solid;
    background-color:#000099;
    border-color:#000000;
    color:#FFFFFF;
    font-family:Arial, Helvetica, sans-serif;
    font-weight:bold;
    font-size:13pt;
    table th {
                                            border-style: solid;
    background-color:#6687C4;
    border-color:#000000;
    color:#FFFFFF;
    font-family:Arial, Helvetica, sans-serif;
    font-weight:bold;
    font-size:12pt;
    table td.color1 {
                                            border-style: solid;
    background-color:#FFFFFF;
    border-color:#000000;
    color:#000000;
    font-family:"Times New Roman", Times, serif;
    font-weight:normal;
    font-size:12pt;
    table td.color2 {
                                            border-style: solid;
    background-color:#C0C0C0;
    border-color:#000000;
    color:#000000;
    font-family:"Times New Roman", Times, serif;
    font-weight:normal;
    font-size:12pt;
                                  table td {
                                            border-style: solid;
    background-color:#FFFFFF;
    border-color:#000000;
    color:#000000;
    font-family:"Times New Roman", Times, serif;
    font-weight:normal;
    font-size:12pt;
    </style>
    </head>
              <body>
              <%
                        /*BigDecimal resp_id=RequestCtx.getResponsibilityId();
                        String respIdParam="";
                        String respkey="";
                        if(resp_id!=null)
                        respIdParam=resp_id.toString();
                        out.println("respIdParam"+respIdParam);
                        logi.oracle.apps.ibe.util.LogiDAOImpl dao=new logi.oracle.apps.ibe.util.LogiDAOImpl();
                        respkey=dao.getRespKey(respIdParam);
                        out.println("respkey"+respkey);
              logi.oracle.apps.ibe.util.LogiOrderDetailsBean orderDetailsBean = new logi.oracle.apps.ibe.util.LogiOrderDetailsBean();
                        java.util.ArrayList ls = new java.util.ArrayList();
                        String resp_key=request.getParameter("respkey");
                        System.out.println(resp_key);
                        String noofDays=request.getParameter("noOfDays");
                        String qCustAcctId=request.getParameter("qCustAcctId");
                        logi.oracle.apps.ibe.util.LogiDAOImpl daoimpl=new logi.oracle.apps.ibe.util.LogiDAOImpl();
                        String decideTab=request.getParameter("decideTab");
                        String startDate=request.getParameter("startDate");
                        String endDate=request.getParameter("endDate");
                        String queryCondition=request.getParameter("queryCondition");
                        String queryOperator=request.getParameter("queryOperator");
                        String queryValue=request.getParameter("queryValue");
                        String queryDateValue=request.getParameter("queryDate");
                        System.out.println("queryDateValue"+queryDateValue);
    %>
                        <table cellspacing="1" cellpadding="1" width="100%" border="0" class="OraBGAccentDark">
    <tr>
    <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_ORD_NUM")%></th>
                                       <th>Customer Name</th>
                                       <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_ORD_DATE")%></th>
                                            <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_BOOKED_DATE")%></th>
                                  <th>Request Date</th>
                                            <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_ORD_STATUS")%></th>
                                            <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_ORD_PO")%></th>
                                  <th>Currency</th>                                                                 
                                            <th>Payment Terms</th>                                                                      <th>Freight Terms</th>
                                       <th>FOB</th>
                                            <th>Sales Channel</th>
                                            <th>Ship to Location</th>
                                            <th>Bill to Location</th>
                                            <th>SalesTerritory Country</th>
                                            <th>Order Type</th>
                                            <th>Order Total</th>
                                            <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_LINE_NUM")%></th>
                                            <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_ITEM")%></th>
                                            <th>Customer SKU</th>
                                            <th>Description</th>
                                            <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_QTY")%></th>
                                            <th>Shipped Quantity</th>
                                            <th>ScheduleShip Date</th>
                                            <th>Unit Price</th>
                                            <th>Extented Amount</th>
                                            <th>Taxes Total</th>
                                            <th>Freight Charges</th>
                                            <th>Case pack charge</th>
                                            <th>Charges Total</th>                                   
                                       <th><%=AOLMessageManager.getMessageSt("IBE","IBE_LGT_LINE_STATUS")%></th>
                                            <th>Ship Date</th>
                                            <th>Warehouse</th>
                                            <th>Tracking Number</th>
                                            <th>Waybill Number</th>
                                            <th>Delivery Number</th>
                                            <th>Pro Number</th>
                                            <th>Hold Applied</th>
                                            <th>Pallet Qty</th>
                                            <th>Pallet#</th>
                                            <th>Invoice Number</th>
                                            <th>Promo Number</th>
                                            <th>Ship Method</th>
    </tr>
    <%          
                             int pSiteid=0;
                             java.math.BigDecimal mSiteId=oracle.apps.ibe.util.RequestCtx.getMinisiteId();
                             if(mSiteId!=null)
                             pSiteid=mSiteId.intValue();
                             out.println("pSiteid"+pSiteid);
                   if(decideTab!=null && decideTab.trim().equalsIgnoreCase("days"))
                             if(qCustAcctId!=null)
                                       ls=daoimpl.downOrderDetails(qCustAcctId,noofDays,pSiteid);
                        else if(decideTab!=null && decideTab.trim().equalsIgnoreCase("dates"))
                             if(qCustAcctId!=null)
                                       ls=daoimpl.downOrderDateDetails(qCustAcctId,queryDateValue,startDate,endDate);
                        else if(decideTab!=null && decideTab.trim().equalsIgnoreCase("condition"))
                             if(qCustAcctId!=null)
                                       ls=daoimpl.downOrderConditionDetails(qCustAcctId,queryCondition,queryOperator,queryValue);
                        for(int i=0;i<ls.size();i++)
                             orderDetailsBean=(logi.oracle.apps.ibe.util.LogiOrderDetailsBean)ls.get(i);
                             String orderNumber= orderDetailsBean.getOrderNumber();          //Order Number
                             if(orderNumber==null)orderNumber="";                         
                             String customerName=orderDetailsBean.getCustomerName();          //Customer Name
                             if(customerName==null)customerName="";
                        String orderedDate=orderDetailsBean.getOrderDate();               //Order Date
                             if(orderedDate==null)orderedDate="";
                             String bookeddate= orderDetailsBean.getBookedDate();          //Booked Date
                             if(bookeddate==null)bookeddate="";
                             String requestdate= orderDetailsBean.getRequestDate();          //Requested Date
                             if(requestdate==null)requestdate="";
                             String orderstatus= orderDetailsBean.getOrderStatus();          //Order Status
                             if(orderstatus==null)orderstatus="";               
                             String ponumber= orderDetailsBean.getPoNumber();               //PO Number
                             if(ponumber==null)ponumber="";
                             String currency=orderDetailsBean.getCurrencyCode();               //Currency
                             if(currency==null)currency="";
                             String paymentterms= orderDetailsBean.getPaymentTerms();     //Payment Terms
                             if(paymentterms==null)paymentterms="";
                             String frieghtterms=orderDetailsBean.getFreightTerms();          //Freight Terms
                             if(frieghtterms==null)frieghtterms="";
                             String fobterms=orderDetailsBean.getFobTerms();                    //Fob Terms
                             if(fobterms==null)fobterms="";
                             String saleschannel=orderDetailsBean.getSalesTerms();          //Sales Channel
                             if(saleschannel==null)saleschannel="";
                             String billtoloc=orderDetailsBean.getBillToLocation();          // Bill to Location
                             if(billtoloc==null)billtoloc="";
                             String shiptoloc=orderDetailsBean.getShipToLocation();          //Ship To Location
                             if(shiptoloc==null)shiptoloc="";
                             String salesterr=orderDetailsBean.getSalesCountry();          // Sales Territory
                             if(salesterr==null)salesterr="";
                             String ordertype=orderDetailsBean.getOrderType();               // Order Type
                             if(ordertype==null)ordertype="";
                             String ordertotal=orderDetailsBean.getOrderTotal();               //Order Total
                             if(ordertotal==null)ordertotal="";
                             String linenumber=orderDetailsBean.getLinenumber();               //Line Number
                             if(linenumber==null)linenumber="";
                             String item= orderDetailsBean.getItem();                         //Item Name
                             if(item==null)item="";
                             String sku= orderDetailsBean.getCustomerSKU();               // Customer SKU
                             if(sku==null)sku="";
                             String desc= orderDetailsBean.getDescription();               //Item Description
                             if(desc==null)desc="";
                             desc = URLEncoder.encode(desc);                                        // Added by Sunil
                             desc = URLDecoder.decode(desc);
                             String qty=orderDetailsBean.getQty();                              //Ordered Quantity
                             if(qty==null)qty="";
                             String shippedqty=orderDetailsBean.getShippedQty();               //Shipped Quantity
                             if(shippedqty==null)shippedqty="";
                             String scheduleqty=orderDetailsBean.getScheduleDate();          //Schedule Date
                             if(scheduleqty==null)scheduleqty="";
                             String unitprice=orderDetailsBean.getUnitPrice();               //Unit Price
                             if(unitprice==null)unitprice="";
                             String xamount=orderDetailsBean.getXAmount();                    //Extended Amount
                             if(xamount==null)xamount="";
                             String taxestotal=orderDetailsBean.getTaxesTotal();               //Taxes Total
                             if(taxestotal==null)taxestotal="";
                             String freightcharges=orderDetailsBean.getFreightCharges();//Freight Charges
                             if(freightcharges==null)freightcharges="";
                             String palletcharges=orderDetailsBean.getPalletSurcharge();     //Pallet Charges
                             if(palletcharges==null)palletcharges="";
                             String chargestotal=orderDetailsBean.getChargesTotal();          //Charges Total
                             if(chargestotal==null)chargestotal="";
                             String linestatus=orderDetailsBean.getLinestatus();               //Line Status
                             if(linestatus==null)linestatus="";
                             String shipdate=orderDetailsBean.getShipDate();                    //Ship Date
                             if(shipdate==null)shipdate="";
                             String warehouse=orderDetailsBean.getWareHouse();               //Ware House
                             if(warehouse==null)warehouse="";
                             String trackingnumber=orderDetailsBean.getTrackingNumber();//Tracking Number
                             if(trackingnumber==null)trackingnumber="";
                             String waybill=orderDetailsBean.getWayBillnumber();               //Waybill Number
                             if(waybill==null)waybill="";
                             String deliverynumber=orderDetailsBean.getDeliveryNumber();     //Delivery Number
                             if(deliverynumber==null)deliverynumber="";
                             String pronumber=orderDetailsBean.getProNumber();               //Pro Number
                             if(pronumber==null)pronumber="";
                             String holdapplied=orderDetailsBean.getHoldApplied();          //Hold Applied
                             if(holdapplied==null)holdapplied="";
                             String palletqty=orderDetailsBean.getPalletQty();               //Pallet Qty
                             if(palletqty==null)palletqty="";
                             String pallethash=orderDetailsBean.getPalletHash();               //Pallet Hash
                             if(pallethash==null)pallethash="";
                             String invoicenumber=orderDetailsBean.getInvoiceNumber();               //invoice Number
                             if(invoicenumber==null)invoicenumber="";
                             String promonumber=orderDetailsBean.getPromoNumber();               //Promonumber
                             if(promonumber==null)promonumber="";
                             String shipmethod=orderDetailsBean.getShipMethod();               //Promonumber
                        if(shipmethod==null)shipmethod="";
                   %>
                   <tr>
                   <td><%=orderNumber%></td>
                   <td><%=customerName%></td>
                   <td><%=orderedDate%></td>
                   <td><%=bookeddate%></td>
                   <td><%=requestdate%></td>
                   <td><%=orderstatus%></td>
                   <td><%=ponumber%></td>
                   <td><%=currency%></td>
                   <td><%=paymentterms%></td>
                   <td><%=frieghtterms%></td>
                   <td><%=fobterms%></td>
                   <td><%=saleschannel%></td>
                   <td><%=billtoloc%></td>
                   <td><%=shiptoloc%></td>
                   <td><%=salesterr%></td>
                   <td><%=ordertype%></td>
                   <td><%=ordertotal%></td>
                   <td><%=linenumber%></td>
                   <td><%=item%></td>          
                   <td><%=sku%></td>
                   <td><%= desc %></td>
                   <td><%=qty%></td>
                   <td><%=shippedqty%></td>
                   <td><%=scheduleqty%></td>
                   <td><%=unitprice%></td>
                   <td><%=xamount%></td>
                   <td><%=taxestotal%></td>
                   <td><%=freightcharges%></td>
                   <td><%=palletcharges%></td>
                   <td><%=chargestotal%></td>
                   <td><%=linestatus%></td>
                   <td><%=shipdate%></td>
              <td><%=warehouse%></td>
                   <td><%=trackingnumber%></td>
                   <td><%=waybill%></td>
                   <td><%=deliverynumber%></td>
                   <td><%=pronumber%></td>
                   <td><%=holdapplied%></td>
                   <td><%=palletqty%></td>
                   <td><%=pallethash%></td>
                   <td><%=invoicenumber%></td>
                   <td><%=promonumber%></td>
                   <td><%=shipmethod%></td>
                   </tr>
                   <%     }
              %>
              </table>
              </body>
              </html>
    Please suggest the needful...
    Praveen Reddy

  • How to set dynamic relevance in biee admin tool?

    Source: essbase cube
    purpose: realize dynamic relevance prompt in answer,
    For example: I have measure(price,sales quantity), dimension(city, product name), 'city' and 'product name' set as prompt, when I choose one city, the product prompt should only display the product name which the city sells, how to set it in admin tool? any idea will be welcome.

    Source: essbase cube
    purpose: realize dynamic relevance prompt in answer,
    For example: I have measure(price,sales quantity), dimension(city, product name), 'city' and 'product name' set as prompt, when I choose one city, the product prompt should only display the product name which the city sells, how to set it in admin tool? any idea will be welcome.

  • Help on how to Set a page length and width.

    Hi guys I'm kind a new to java JDBC and Jasper.
    I'm currently creating my senior project, developing a POS system using Java JDBC, MySql and JasperReport.
    I'm now on the finally stage of my project polishing stage.
    Now here is my problem.
    My adviser wanted my to print sale Invoice using and ordinary Printer let say Espon LX 300 which is available on our Cmpter Lab. He want me to print Sale Invoice using continues paper and try to simulate an actual thing. But I don't know on how to set up a custom paper size in Java or trying to select printer from your system or in your network.
    here is the sample of the code:
    void PrintInvoice(String databaseName,String userName,String password,String reportFile,String Invoice_Reprint)
            HashMap hm = new HashMap();
            hm.put("REPORT_DATE", saledate_tbox.getText());      
            hm.put("REPORT_VAT", vat_tbox.getText());
            hm.put("REPORT_SUBTOTAL", subtotal_tbox.getText());
            hm.put("REPORT_TOTALPAYMENT", total_tbox.getText());
            hm.put("REPORT_CASH", cash_tbox.getText());
            hm.put("REPORT_CHANGE", change_tbox.getText());
            hm.put("REPORT_POS",POS);       
            hm.put("REPRINT", "REPRINT");
            Connection connection = null;
            ResultSet resultSet = null;
            Statement statement = null;
            try{
            Class.forName(JDBC_DRIVER);     
            String query1 = "select invoice.idinvoice as 'Invoice No'" +
                    ",CONCAT(customer.firstname,' ',customer.lastname) as 'Customer'" +
                    ",invoice.date as 'Date-Time'" +
                    ",item.description as 'Description'" +
                    ",sum(invoice_items.quantity) as 'Quantity'" +
                    ",Format(item.regular_price,2) as 'Unit Price'" +
                    ",Concat((invoice_items.discount*100),'%') as 'Whl Disc'" +
                    ",Format(invoice_items.price,2) as 'Price'" +
                    ",employee.username as 'Employee'" +
                    ",Format(invoice.totaltax,2) as 'Vat'" +
                    ",Format(invoice.total,2) as 'Total'" +             
                    ",Format(invoice.cash,2) as 'Cash'" +
                    ",Format((invoice.total-invoice.totaltax),2) as 'Subtotal'" +               
                    ",Format((invoice.cash-invoice.total),2) as 'Change'" +
                    " from invoice,item, invoice_items,customer,employee " +
                    "where invoice.IDINVOICE = invoice_items.IDINVOICE " +
                    "AND invoice_items.UPC_CODE = item.UPC_CODE " +
                    "and invoice.idcustomer = customer.customerid " +
                    "and invoice.idemployee = employee.idemployee " +
                    "AND invoice.idinvoice = (select idinvoice from invoice " +
                    "where idemployee = (select idemployee from employee where username = '"+soldby_tbox.getText()+"') " +
                    "AND idinvoice = '"+Invoice_Reprint+"' ) GROUP BY item.DESCRIPTION";
            connection = (Connection) DriverManager.getConnection(databaseName,userName,password);
            statement = (Statement) connection.createStatement();
            resultSet = statement.executeQuery(query1);
            JasperDesign jasperDesign = JRXmlLoader.load(reportFile);
            JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);        
            JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, hm, new   JRResultSetDataSource(resultSet));        
            JasperExportManager.exportReportToPdfFile(jasperPrint, PDFEXPORT);        
            JasperViewer.viewReport(jasperPrint);
            JasperPrintManager.printReport(jasperPrint, false);       
          }catch(Exception ex) {
             String connectMsg = "Could not create the report " + ex.getMessage() + " " + ex.getLocalizedMessage();
             System.out.println(connectMsg);
          finally{
            try                                                       
                  statement.close();                                     
                  connection.close();                                    
               } // end try                                              
               catch ( Exception exception )                             
                  exception.printStackTrace();                           
               } // end catch    
        }My code print the report on the default printer and default printer setting.
    I hope someone out there can help me thx alot. by the way I uses Ubuntu as my OS.
    The theme of my Senior Project: POS System Using Open Source.
    Hey can someone suggest a project tag line or a better theme cause I believe in the ideals of Open Source,
    Thx

    Try to define ENTER this way & try
    class cl_abap_char_utilities definition load.
    DATA : BEGIN OF enter,
    x type c value cl_abap_char_utilities=>cr_lf,
    END OF enter.
    PS : I am not 100% sure about this.

  • How to set User-field in Plan order

    Hi
    could you tell me please how to set a user-filed in plan order. when I run MRP planing, I can write some data in this filed.
    thanks
    henry

    Hi,
    Actually these user defind fields are used/assigned in the routing.
    Initially u have to define your own user defind profile through OPEC transaction.
    Assign this profile in the routing.
    So when ur executing Mfg activities, suppose if ur using some high materials like silver...etc.
    Then after executing the particular operation some amount of silver chips or silver scrap will generated .
    To keep chip/scrap qty operation and date which user defind is used.
    Once u have assigned this profile to routing, then it will be automatically copied in the planned order/production order.when ur confirming the order then u have to enter the all related data.
    Regards
    Vijay

  • How to calculate  extended quantity in BOM IMPLOSION QUERY

    Hi guys,
    I have given an assignment to create BOM  item where used report, For this purpose I am using an BOM implosion API  (PACKAGE.PROCEDURE = BOMPIINQ.IMPLODER_USEREXIT)
    I am calling this API like this-
    declare
      V_SEQUENCE_ID    number;
      v_err_msg        VARCHAR2(80);
      v_err_code       NUMBER;
      V_DATE           VARCHAR2 (30);
    begin
    delete BOM_SMALL_IMPL_TEMP;
    -- V_SEQUENCE_ID:=142354;
    SELECT BOM_IMPLOSION_TEMP_S.NEXTVAL INTO V_SEQUENCE_ID FROM SYS.DUAL;
    SELECT TO_CHAR (SYSDATE, 'YYYY/MM/DD HH24:MI') INTO V_DATE FROM DUAL;
    BOMPIINQ.IMPLODER_USEREXIT (
            SEQUENCE_ID => V_SEQUENCE_ID,        
            ENG_MFG_FLAG => 1,                   
            ORG_ID => :org_id,             
            IMPL_FLAG => 1,                    
            DISPLAY_OPTION => 1,                    
            LEVELS_TO_IMPLODE => 10,             
            ITEM_ID =>:item_id,           --34077520002
            IMPL_DATE => V_DATE,
            unit_number_from =>null,
              unit_number_to=>null,               
            ERR_MSG => v_err_msg,
            ERR_CODE =>v_err_code,
            organization_option =>1,
            organization_hierarchy =>null,
            serial_number_from =>null,
              serial_number_to =>null
    end;
    Now I query the table BOM_SMALL_IMPL_TEMP and it shows the data as per the structure of the item where used.
    NOW ALL I WANT IS I WANT TO CALCULATE EXTENDED QUANTITY  (PARENT-QTY * ITS_CHILD_QTY)
    CURRENTLY IT SHOWS ONLY COMPONENT QUANTITY. HOW CAN I CALCULATE EXTENDED QUANTITY LIKE WE DO IN BOM EXPLOSION?
    Can any one help me on this?
    Thanks,
    Himanshu Gupta

    Thanks , Yes it works but need to work out.
    I have used rather calling API and then query using this-
    select t1.*,
    DECODE(T1.PART,T1.PART,(SELECT DISTINCT SEGMENT1 FROM MSI WHERE INVENTORY_ITEM_ID = T1.PART)) LOWEST_ITEM,
    DECODE(T1.PART,T1.PART,(SELECT DISTINCT DESCRIPTION FROM MSI WHERE INVENTORY_ITEM_ID = T1.PART)) LOWEST_ITEM_DESC,
    t2.segment1 PARENT_ITEM,
    T2.DESCRIPTION PARENT_DESCRIPTION,
    T2.ITEM_TYPE PARENT_ITEM_TYPE,
    DECODE(T2.ORGANIZATION_ID, 125, 'MU1', 126, 'MU2') ORG_CODE,
    T3.ITEM_COST,
    T1.QTY*T3.ITEM_COST EXTENDED_COST
    from
    (select t.*
             from (WITH t AS (SELECT distinct SYS_CONNECT_BY_PATH(a.parent_item_id, '\') || '\' || a.current_item_id || '\' as path,
                                              a.component_quantity qty_per_assembly
                                FROM BOM_SMALL_IMPL_TEMP1 a,
                                     mtl_system_items_b      b
                               where a.parent_item_id = b.inventory_item_id
                                 and b.organization_id = a.organization_id
                               START WITH b.item_type IN ('SA','FG MFG')
                              --CONNECT BY  a.current_item_id = PRIOR a.parent_item_id
                              CONNECT BY nocycle a.parent_item_id = PRIOR
                                         a.current_item_id)
                    SELECT root_part, part, SUM(qty) AS qty
                      FROM (SELECT SUBSTR(t1.path,
                                          2,
                                          INSTR(t1.path,'\', 1, 2) -
                                          INSTR(t1.path, '\', 1, 1) - 1) as ROOT_PART,
                                   SUBSTR(t1.path,
                                          INSTR(t1.path, '\', -1, 2) + 1,
                                          INSTR(t1.path,'\', -1, 1) -
                                          INSTR(t1.path, '\', -1, 2) - 1) as PART,
                                   (SELECT EXP(SUM(LN(t2.qty_per_assembly)))
                                      FROM t t2
                                     WHERE t1.path LIKE t2.path || '%') AS qty
                              FROM t t1
                             GROUP BY t1.path)
                     GROUP BY root_part, part) t
                   where t.part = :lt_part
           ) t1,
          mtl_system_items_b t2, CST_ITEM_COSTS T3
    where t1.root_part = t2.inventory_item_id
    AND T1.PART = T3.INVENTORY_ITEM_ID
    AND T2.ORGANIZATION_ID = T3
    .ORGANIZATION_ID
       --and t2.item_type = 'FG MFG'
       and t2.organization_id = :lt_org;
    and now it is running perfectly

  • How to calulate GR quantity

    Hi All,
    In my report, when there is more than one item for a Purchase order, it is bringing the total quantity. The requirement is for each PO item, its GR quantity should be printed.
    How to calculte GR quantity for a particular purchase order item?
    Thanks,
    Ezhil.

    Dear Ezhil,
    you can find GR qty for particular purchase order and line item from table EKET(Schedual line table). In this table WEMNG field is for GR qty but you also need to consider schedual line.
    Special mention: This information is not known to all the person working with MM module as I have already passed through such issue so i feel proud to share with the community.
    Hope it will also work for you.
    Regards,
    Neel Thakkar.
    Edited by: neelthakkar on Mar 29, 2010 12:23 PM

  • How to set a default Billing type for a particular Delivery type

    Dear All,
    How to set a default billing type for a particular delivery type.
    My requirement is, we are creating delivery for a Stock Transport Order. Delivery type is NL and the Purchase order type is UB.
    When we are creating Billing, it should take Billing type "ZSTO" by default, which is the customised Billing type.
    Where we have to do this setting?
    In case of normal sales order, this control will be available in the Sales order document types.
    In case STO, how to set a default billing type for a delivery type (NL).
    Regards,
    Rajesh

    There is a customization available here no default or hard coded
    Normally in a sales doc type we mention which billing type system has to pick
    If the billing happens from a PO which billing type system will take depends on the controls set in the areas mentioned below
    Go to your delivery type OVLK (say your delivery type is NL)
    In that there is a field called default order qty in the order reference tab (say if you maintained DL there)
    This DL is called PSEUDO order type
    Then in VOV8 for DL based on the billing types mentioned ,system will take the billing doc
    For delivery related billing say if you mention say ZF8 in the details of DL in VOV8(provided you have created ZF8)
    Then while you bill the delivery doc of NL system will take ZF8
    For intercompany delivery you can create ZIV billing type also Pure customization
    PO is linked to delivery type ( MM spro settings)--Del type linked to order (pseudo) type---in order type (pseudo) we mention the billing types. Here the flow is bit different that pure SD flow
    Though the invoice is crated by manually putting customized Biiling Type and A/Cing doc also generated, but in the VF04 still system shows the same deliveries pending with Billing Type (F2).
    This manual is not reqd if the said assignments are done properly
    Hope it can assist you.
    Thanks & Regards
    JP
    Edited by: J Prakash on Jun 23, 2010 4:05 PM

Maybe you are looking for

  • Using a Menu List to dynamically set text

    Hi, I want to create a menu list and depending on the selected element in the list, set some related text in a variety of different text fields. I've been looking at the various behaviours available on a menu list and I've noticed the attribute spry:

  • Why has my Mac re-arranged my Logic files?

    I wiped my Mac's hard drive the other day pending installation of Snow Leopard and re-installation of all my software. Having now installed the operating system, it seems all Logic project folders on external drives have somehow been re-arranged for

  • How to check that concrete object is on the scene?

    Hi I wonder how can i check that concrete object is on the scene for example: var sprite1:Sprite = new SPrite(); stage.addChild(sprite1); if(?????)     //do something with sprite1 else      //add sprite1 to display list and do something with it Is th

  • Vendor Currency & Configaration Document

    Hi From where the currecny will come in P.O ?? is from Vendor master or company code?/ Please tell me wat is configaration document?? if you have any pls send to mial id. <b><REMOVED BY MODERATOR></b> Thanks

  • Hi Experts, I have small issue with Mime object in webdynpro component?

    Issue: i have imported mime object with some changes on existing mime object, But this is not reflecting it was displaying old one only,New changes are not reflecting. Requirement : We are creating buttons with some CSS style and that image type .PNG