Qty requested

Hello All,
I need to develope a shipping Performance report for which i need to know some of these fields.
Cross company Purchase Order.
Delivery date (requested by the company who is placing the purchase order).
Qty requested.
Value of the Qty requested(Value of the Qty requested = Qty requested * Material unit price )
Currency
can anybody help me what fields i have to consider
thanks and regards
seenu

Hi,
In SAP, DELIVERY means, All the Delivery related tables are nothing but
LIKP AND LIPS only. From those 2 tables u can access the Delivery qty, Delivery date everything.
I thing  EINDT - is the field for delivery date.
Thanks,
Shankar

Similar Messages

  • Jsp throw numberformatexception.see my code .reply as soon as possible

    i am developed application onclick checkbox delete the record.on first field i give the href to serailno for open the update page. like this <a href="UpdateBoq.jsp?S_NO=<%=sno%>">.sno is serialno.is come from database wihen i am click on serial no it show the updatepage.jsp is not open the updatepage.jsp but it throw the exception number format.this is my code.anybody help me this my project working i am only the single persion to develop this application in jsp.please help me.as soon as possible
    <%@ page language="java" import="java.sql.*"%>
    <%@ page import="java.text.SimpleDateFormat" %>
    <%@ page import="java.util.Date" %>
    <%! int count = 0; %>
    <%! String itemcode;%>
    <%! String sns;%>
    <%! String contunit; %>
    <%! float qty; %>
    <%! float oup;%>
    <%! float oep;%>
    <%! int sno;%>
    <%! int stcode;%>
    <%! float sum=0.0f;%>
    <%! float sum1=0.0f;%>
    <jsp:useBean id="sos" class="boq.Calculation" scope="request"/>
    <%
    //String userID = String.valueOf(session.getAttribute("APP_USER_ID"));
    //String userID = String.valueOf(session.getAttribute("LOGIN_ID"));
    String strDelete = request.getParameter("btnDelete");
    String strserialno=request.getParameter("serialno1");
    String strmopno = request.getParameter("mop");
    String strjobno = request.getParameter("job");
    String strwop=request.getParameter("siten");
    String strno=request.getParameter("siteno");
    if (strDelete != null)
    String del=request.getParameter("hidcount");
    int delcount=-1;
    if (del!=null)
    System.out.println("I am in start of delete Action");
    delcount = Integer.parseInt(del);
    String strCheckBox="";
    String strHidVal="";
    for (int i=0; i<=delcount; i++)
    strCheckBox = request.getParameter("checkbox"+i);
    if(strCheckBox!=null)
    strHidVal = request.getParameter("hid"+i);
    System.out.println("country code is :"+strHidVal);
    System.out.println(del);
    Connection con=null;
    try
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.87:1521:orcl","system","tiger");
    System.out.println(con);
    Statement st2 = con.createStatement();
    Statement st1 = con.createStatement();
    String str0="select * from BOQ where S_NO= '"+ strHidVal + "'";
    ResultSet rs = st1.executeQuery(str0);
    String str="delete from BOQ where S_NO= '"+ strHidVal + "'";
    System.out.println(strCheckBox);
    int a=st2.executeUpdate(str);
    catch(Exception e)
    %>
    <script language="JavaScript">
    alert("<%=e.getMessage()%>");
    </script>
    <%
    finally
    if(con!=null)
    con.close();
    %>
    <html>
    <head>
    <title>CRS</title>
    <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
    <link rel="stylesheet" href="css/ems.css" type="text/css">
    </HEAD>
    <body leftmargin=0 topmargin=2>
    <jsp:include page="Index.html" />
    <form name=form1 action="BOQVIEW.jsp" method=post>
    <table border=0 cellspacing=1 cellpadding=1 width=100% height=5>
    <tr>
    <td valign="top" height="23">
    <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
    <td bgcolor='#E6E4E4' width=45 align="Center" colspan=2>
    <font color="#5d7a80" size="2">
    BOQ OF MOPS
    </font>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign=top>
    <table width="100%" cellpadding="1" cellspacing="1" border="0">
    <tr>
    <td width="130" height="5" class="ReportColumnHeader" align="center" colspan=40>S/NO</td>
    <td width="130" height="5" class="ReportColumnHeader" align="center" colspan=60>SITE NAME</td>
    <td width="130" height="5" class="ReportColumnHeader" align="center" colspan=65>SITE NUMBER</td>
    <td width="130" height="5" class="ReportColumnHeader" align="center" colspan=90>ITEM CODE/MATERIAL CODE</td>
    <td width="180" height="5" class="ReportColumnHeader" align="center"colspan=120>CONTRACT UNIT DESCRIPTION ORIGINAL</td>
    <td width="130" height="5" class="ReportColumnHeader" align="center" colspan=>QUANTITY</td>
    <td width="130" height="5" class="ReportColumnHeader" align="center" colspan=90 >ORIGINAL UNIT PRICE</td>
    <td width="130" height="5" class="ReportColumnHeader" align="center" colspan=100>ORIGINAL EXTENDED PRICE</td>
    </tr>
    </table>
    <%
    Connection con=null;
    try
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","tiger");
    System.out.println(con);
    Statement st = con.createStatement();
    Statement st1=con.createStatement();
    String qoq=request.getParameter("qoq");
    int one=Integer.parseInt(qoq);
    ResultSet rs = st.executeQuery("SELECT * from BOQ where SITE_CODE="+one);
    ResultSet rs1=st1.executeQuery("select SUM(O_U_P) AS oriunitprice,SUM(O_E_P) AS oriextendsprice from boq WHERE SITE_CODE="+one);
    %>
    <%
    int count=0;
    while(rs.next())
    sno=rs.getInt(1);
    stcode=rs.getInt(2);
    sns=rs.getString(3);
    itemcode=rs.getString(4);
    contunit = rs.getString(5);
    qty=rs.getFloat(6);
    oup = rs.getFloat(7);
    oep = rs.getFloat(8);
    %>
    <table border="0" cellspacing="1" cellpadding="1" width="100" >
    <tr>
    <td class="ReportCellText1" width="10" height=><input type=checkbox name="<%="checkbox"+count%>" onselect="deleterecord();"> </td>
    <td class="ReportCellText1" width="130" height="5" align="center" colspan=29><a href="UpdateBoq.jsp?S_NO=<%=sno%>"><%=sno%></a>
    </td>
    <td class="ReportCellText1" width="55" height="5" align="center" COLSPAN=60><%=sns%></td>
    <td class="ReportCellText1" width="50" height="5" align="center" COLSPAN=65><%=stcode%></td>
    <td class="ReportCellText1" width="130" height="5" align="center" COLSPAN=90><%=itemcode%></td>
    <td class="ReportCellText1" width="130" height="5" align="center" COLSPAN=120><%=contunit%></td>
    <td class="ReportCellText1" width="130" height="5" align="center" COLSPAN=54><%=qty%></td>
    <td class="ReportCellText1" width="130" height="5" align="center" COLSPAN=90><%=oup%></td>
    <td class="ReportCellText1" width="130" height="5" align="center" colspan=100> <%=oep%></td>
    </tr>
    <tr>
    </table>
    <input type=hidden name="<%="hid"+count%>" value="<%=sno%>">
    <!--
    </tr>
    <tr>
    </tr>
    <tr>
    </tr> !-->
    <%
    count++;
    %>
    <table width="100%" cellpadding="1" cellspacing="1" border="0">
    <TR>
    <td width="60" height="5" class="ReportCellText3" align="center" colspan=></td>
    <td class="ReportCellText3" width="55" height="5" align="center" COLSPAN=></td>
    <td width="60" height="5" class="ReportCellText3" align="center" colspan=></td>
    <td class="ReportCellText3" width="50" height="5" align="center" COLSPAN=></td>
    <td class="ReportCellText3" width="50" height="5" align="center" COLSPAN=></td>
    <td class="ReportCellText3" width="50" height="5" align="center" COLSPAN=></td>
    <td class="ReportCellText3" width="50" height="5" align="center" COLSPAN=></td>
    <%
    rs1.next();
    sum=rs1.getFloat("oriunitprice");
    sum1=rs1.getFloat("oriextendsprice");
    %>
    <td width="60" height="5" class="ReportColumnHeader" align="center" colspan=>TOTLE AMOUNT</td>
    <td class="ReportCellText1" width="85" height="5" align="center" colspan=> <%=sum%></td>
    <td class="ReportCellText1" width="90" height="5" align="center" colspan=> <%=sum1%></td>
    </table>
    <TABLE>
    <input type=hidden name=hidcount value =<%=count%>>
    <input type=hidden name=serialno value=<%=itemcode%>>
    <INPUT TYPE=hidden NAME=mop VALUE=<%=contunit%> >
    <INPUT TYPE=hidden NAME=job VALUE=<%=qty%> >
    <INPUT TYPE=HIDDEN name=siten value=<%=oup%>>
    <input type=hidden name=siteno value=<%=oep%>>
    <table><tr><td>
    <input type = button value = Print size=20 onClick = "window.print();"></td>
    <td><input type = Submit value = "Delete" name="btnDelete" size = 20> </td>
    </form>
    <form action=BOQ.jsp method=post>
    <td><input type=Submit value = "Add New" size=20></td>
    </form>
    <form action=NEWPEexl.jsp method=post>
    <td><input type=Submit value = "Export to Excel" size=20></td></tr></table>
    </form>
    <%
    catch(Exception e)
    out.println(e.getMessage());
    finally
    if(con!=null)
    con.close();
    %>
    </body>
    </html>
    when i am click the serial no it show the update page is update .jsp
    this is the update code
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/fileaccess.tld"
    prefix="fileaccess"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/sqltaglib.tld"
    prefix="database"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page language="java" import="java.sql.,java.util."%>
    <%@ page import="java.text.SimpleDateFormat" %>
    <%@ page import="java.util.Date" %>
    <%! int count = 0; %>
    <%!Connection con=null;%>
    <%!PreparedStatement ps=null;%>
    <%
    String strUpdate = request.getParameter("btnUpdate");
    String sno=request.getParameter("serialno1");
    int snoi=Integer.parseInt(request.getParameter("serialno1"));
    String sc=request.getParameter("sitenumber");
    int sci=Integer.parseInt(request.getParameter("sitenumber"));
    String sn=request.getParameter("sitename");
    String itc=request.getParameter("itemno");
    String cu=request.getParameter("contract");
    String qty=request.getParameter("quantity");
    float qtyf=Float.parseFloat(request.getParameter("quantity"));
    String oup=request.getParameter("orig");
    float oupf=Float.parseFloat(request.getParameter("orig"));
    String oep=request.getParameter("origexp");
    float oepf=Float.parseFloat(request.getParameter("origexp"));
    if (strUpdate != null)
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.87:1521:orcl","system","tiger");
    System.out.println(con);
    System.out.println("Connection Established");
    Statement st = con.createStatement();
    String str="update BOQ set SITE_CODE="sci",SITE_NAME='"sn"',ITEM_CODE='"itc"',CONTRACT_UNIT='"cu"',QTY="qtyf",O_U_P="oupf",O_E_P="oepf" where S_NO="snoi" ";
    int a=st.executeUpdate(str);
    if (a>0)
    %>
    <script type="text/javascript" >
    alert("The Record has been Updated Successfully");
    <% response.sendRedirect("BOQVIEW.jsp"); %>
    </script>
    <%
    catch(Exception e)
    String m = e.getMessage();
    %>
    <font size="1" face="Verdana" color=blue>
    "<%=m%>"</font>
    <%
    try
    if(con!=null)
    con.close();
    catch(SQLException sq)
    out.println(sq.getMessage());
    %>
    <!-- Insert the data code-->
    <HTML>
    <head>
    <title>BOQ</title>
    <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
    <script type="text/javascript">
    function callingdate()
    Calendar.setup({
    inputField : "f_date_b", //*
    ifFormat : "%d-%b-%Y ",
    showsTime : true,
    button : "f_trigger_b", //*
    step : 1
    function callingdate1()
    Calendar.setup({
    inputField : "f_date_b1", //*
    ifFormat : "%d-%b-%Y ",
    showsTime : true,
    button : "f_trigger_b1", //*
    step : 1
    function dating()
    var mylist=document.getElementById("effective_date")
    document.getElementById("date").value=mylist.options[mylist.selectedIndex].text
    function caps() {
    document.form1.country_code.value = document.form1.country_code.value.toUpperCase()
    document.form1.country_name.value = document.form1.country_name.value.toUpperCase()
    </script>
    </head>
    <BODY >
    <% count++;
    %>
    <form name=form1 action=UpdateBoq.jsp method=post>
    <!-- <h3 STYLE = "BACKGROUND-COLOR=blue;
    COLOR=YELLOW"
    align=center color=green>Country Information</h1> !-->
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
    <td bgcolor='#336699' align="Center"><font color="#d2b48c" size=2>BOQ OF MOPS</font> </td>
    </tr>
    </table>
    <%
    Connection con=null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.87:1521:orcl","system","tiger");
    System.out.println(con);
    Statement st = con.createStatement();
    String se=request.getParameter("serialno1");
    //int ser=Integer.parseInt(request.getParameter("serialno1"));
    String s="SELECT * from BOQ where S_NO="Integer.parseInt(request.getParameter("serialno1"))" ";
    ResultSet rs = st.executeQuery(s);
    System.out.println(s);
    %>
    <%
    while(rs.next())
    int serialno=rs.getInt(1);
    int stcode=rs.getInt(2);
    String sname=rs.getString(3);
    String itcode=rs.getString(4);
    String conunit=rs.getString(5);
    float qtyw = rs.getFloat(6);
    float oupw=rs.getFloat(7);
    float oepw=rs.getFloat(8);
    %>
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
    <td bgcolor='#E6E4E4' align="Center" width=100%><font color="#5d7a80" size=2>BOQ OF MOPS </font> </td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr><td >
    1)SERIAL NUMBER:</td><td><input type=text name=serialno1 value= "<%=serialno%>" size=10 onblur = "caps();">
    </td></tr>
    <tr><td >
    2)SITE NUMBER:</td><td><input type=text name=sitenumber value= "<%=stcode%>" size=10 onblur = "caps();">
    </td></tr>
    <tr><td >
    3)SITE NAME:</td><td><input type=text name=sitename value= "<%=sname%>" size=10 onblur = "caps();">
    </td></tr>
    <tr><td>
    4)ITEM CODE/MATERIAL CODE:</td><td><input type=text name=itemno value= "<%=itcode%>" size = 20 onblur = "caps();" >
    </td></tr>
    <tr><td>
    5)CONTRACT UNIT DESCRIPTION:</td><td><input type=text name=contract value= "<%=conunit%>" size = 20 onblur = "caps();" >
    </td></tr>
    <tr><td>
    6)QUANTITY:</td><td><input type="text" name="quantity" value= "<%=qtyw%>" size =40 onblur = "caps();" >
    </td></tr>
    <tr><td>
    7)ORIGNAL UNIT/PRICE:</td><td><input type=text name=orig value= "<%=oupw%>" size = 20 onblur = "caps();" >
    </td></tr>
    <tr><td>
    8)ORIGNAL EXTENDED/PRICE:</td><td><input type=text name=origexp value= "<%=oepw%>" size = 20 onblur = "caps();" >
    </td></tr>
    </TABLE>
    <%
    %>
    <center>
    <table>
    <tr><td>
    <INPUT TYPE=Submit value = Update name="btnUpdate" size=20/></td> </tr></table>
    </form>
    <form action="BOQVIEW.jsp" method = post>
    <center> <table>
    <tr><td>
    <input type="submit" value="View" size="20"></input>
    </td> </tr></table>
    </form>
    </form>
    </table>
    </center>
    <hr>
    <script type="text/javascript">
    Calendar.setup({
    inputField : "f_date_b", //*
    ifFormat : "%d-%b-%Y ",
    showsTime : false,
    button : "f_trigger_b", //*
    step : 1
    Calendar.setup({
    inputField : "f_date_b1", //*
    ifFormat : "%d-%b-%Y",
    showsTime : false,
    button : "f_trigger_b1", //*
    step : 1
    </script>
    </BODY>
    <%
    catch(Exception e)
    out.println(e.getMessage());
    finally
    try
    if(con!=null)
    con.close();
    catch(SQLException sq)
    out.println(sq.getMessage());
    %>
    </HTML>
    this my table database oracle 9i
    CREATE TABLE BOQ
    S_NO INTEGER NOT NULL,
    SITE_CODE INTEGER,
    SITE_NAME VARCHAR2(40),
    ITEM_CODE VARCHAR2(20),
    CONTRACT_UNIT VARCHAR2(60),
    QTY FLOAT(70),
    O_U_P FLOAT(70),
    O_E_P FLOAT(70)
    );</a>

    1. Use code tags, there's button that says 'Code'. Select your text and use that. I'm not going to read your code while it's unformatted like this and especially because you seem to have posted your whole darn project here; and I suspect few others will bother either.
    2. Don't paraphrase the exception; post the exact stack trace.
    3. There's usually a line number given with the exception; which line does your stack trace point to? Try to figure out what you're doing wrong there.
    4. NumberFormatException means that you're trying to parse a string that's not in the correct format. Make sure the data you're getting from the DB is correct.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to access parameters from an object stored in a shopping-cart vector?

    Hello;
    I am writing some code that will be part of a website that will have the
    ability to allow customers to place items into a shopping cart and then
    purchase them.
    The way that the shopping cart works is that a products page is displayed on the website that has 'add' buttons on it next to each product on the page.
    When the customer clicks the 'add' button next to a particular product to purchase it, the code performs a query of a products database table for the numeric product id linked to the 'add' button they clicked.
    When the product id is found, the query then loads the
    product information for it from the DB table columns into the shopping cart
    Vector as an object in the form of a result set string. This object contains
    the parameters that define the product, i.e. product_id, product_quantity,
    date_ordered, ship_status and so on.
    In the code, when the customer is done shopping and clicks on a button
    labelled 'place order', I want the code to access the shopping cart Vector
    and extract each item object from the cart. I then want the code to be able
    to get from each item object, the parameters that make up each item as
    described above and take the values stored in each of the parameters and
    store them in variables. Finally I want to take those variables and write
    them to an orders DB table in the proper columns via a query.
    I have tried researching information on Vectors to see if I could find out a way to do this but the little information that I located did not give me a clear idea
    of how to go about writing the code, it only seemed to suggest a vague,
    rough idea as to how it might be done. I am relatively new to Java
    programming and so don't have any experience working with Vectors.
    I have enclosed the code below that shows how the items are being stored in the shopping cart Vector. Can anybody tell me how I could go about writing the code that will extract the items from the shopping cart as described above in a servlet? Any assistance you can give me will be greatly appreciated.
    Thank you!
    String productID = request.getParameter("productID");
    String qty = request.getParameter("qty");
    Vector cartlist = new Vector();
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    java.sql.Connection conn = java.sql.DriverManager.getConnection("jdbc:odbc:website", "", "");
    java.sql.Statement st = conn.createStatement();
    String query = "SELECT productID, productName, productCategory,
    productPrice from Products WHERE productID ='" + productID + "'";
    java.sql.ResultSet rs = st.executeQuery(query);
    while(rs.next()){
    cartlist.addElement(rs.getString("productID") + " " +
    rs.getString("productName") + " " +
    rs.getString("productCategory") + " " +
    rs.getString("productPrice") + " " + qty);
    } catch(SQLException sqlex){
    } catch(Exception e){
    }

    //Try Changing your code this way.
    String productID = request.getParameter("productID");
    String qty = request.getParameter("qty");
    Vector cartlist = new Vector();
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         java.sql.Connection conn = java.sql.DriverManager.getConnection("jdbc:odbc:website", "", "");
         java.sql.Statement st = conn.createStatement();
         String query = "SELECT productID, productName, productCategory, productPrice from Products WHERE productID ='" + productID + "'";
         java.sql.ResultSet rs = st.executeQuery(query);
         while(rs.next())
              String productID = rs.getString("productID");
              String productName = rs.getString("productName");
              String productCategory = rs.getString("productCategory");
              String productPrice = rs.getString("productPrice");
              String productID = rs.getString("productID");
              cartlist.addElement(new AddCardElement(productID, productName, productCategory, productPrice, productID, qty));
              //class AddCardElement should be there in your application
    catch(SQLException sqlex)
    catch(Exception e)
    //you have to add a new class AddCardElement like this
    class AddCardElement
        public String m_productID;
         public String m_productName;
         public String m_productCategory;
         public String m_productPrice;
         public String m_productID;
        public GenerateLocationData(String productID, String productName, String productCategory, String productPrice, String productID, String qty)
            m_productID = productID;
              m_productName = productName;
              m_productCategory = productCategory;
              m_productPrice = productPrice;
              m_productID = productID;
    }//-Achyuth B

  • Require following field from one function module

    Hi,
    This is a issue which I am working on.Can u help me in this issue The issue is as below.
    It ia a Abaper related issue .They want the clarification from Functional side
    We require your help in below mentioned Open order extractions. Basically we want to know.
    Function modules for Open Sales/ Purchase order quantity and for open quantity
    They also require the following field to be fetched in  the table
    Extraction for Open Purchase Order
    Get all Purchase Order (EBELN) , Vendor (LIFNR) , Name (NAME1), Material (MATNR), Material Description (MAKTX), Material Group (MAKTL), Open Quantity (Order Qty (MENGE) -  Received Qty(field)) > 0), Requested Date (BEDAT), Purchasing Group (EKGRP).
    For Sales Organization Plant
    PO No, Vendor, Vendor name, Material,Mat description, Mat group,Open qty,Requested date, Purchasing group
    Thank you

    Hi Sravanthi,
    Maintain a table type in SE11 wich is of type your itab in the program to avoid type conflicts
    you IMPORT EXPORT or SET PARA GET PARA
    here you have to use the system table INDX(hk)
    please go through the example provided in the KEY word documentaion
    hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • Changes carry forward from sales order to Purchase order in third partysale

    Hi,
    My requirement to carry forward the changes in sales order to Purchase order in third party sale and vice versa.
    As we know most of the changes we do in sales order,get refelected in purchase requestion because PR get created automatically from SO but PO we create manually in third party scenario.
    Now my requirement to refelect the changes (changes qty, request delivery dale,adding or delition item etc.) from SO to PO and text message from PO to sales order automatically.
    Please guide me.

    Hi,
    Thanks for reply.
    In third party PR gets created automatically but PO gets create manually.So changes get refelect in PR only not in PO.
    Can you give me the solution for completing this task.
    Thanks & Regards
    Jalaj garg

  • Display pr which is not linked with po in report

    Hi ,
    ALL SAP EXPERTS,
    I  HAVE PREPARE A QUERY BY USING *INPUT*
    1) MATERIAL NO
    2) PLANT
    3)PROCESSING STATUS OF PURCHASE REQUISITION OR P.O.
    OUTPUT ARE
    1) PUR. ITEM NO
    2) P.R. NO
    3)QTY REQUESTED IN PR
    4 P.O. ITEM NO
    5)P..O NUMBER
    6)P.O. QUANTITY
    7) GR DOCUMENT NO
    FOR THAT I HAVE TO USED TABLES EKET,EBAN AND EKBE  BUT ISSUE IS THAT WHEN IN GOING TO RUN THE REPORT
    1) ONLY THOSE REQUISITION ARE DISPLAYED IN THE REPORTWHICH ARE LINKED WITH PO . IE. STATUS OF PR ONLY FOR 'B'
    TYPE NOT FOR 'N'
    2) ITEMS  IN PR OR P.O. DISPLAY 2 TIMES IN THE REPORT
    3) WHY THE SYSTEM IS NOT SHOWING PR, PO  WHICH HAS NO PR,PO HISTORY IN THAT REPORT I.E. OPEN PR, PO
    USERS DONT WANT TO USE STD REPORT ME5A OR ME2N THEY WANT TWO REPORT IN ONE COMPLETE REPORT IN
    SCREEN
    PLEASE KINDLY HELP TO SOLVE MY ISSUE
    THANKS IN ADVANCE
    REGARDS,
    RAHUL

    You can debug your program and check. also please check if there is any deletion indicator in PR which doesnt turn up in the report.
    in report please dont have status or PR selection field as mandatory because depending on the status/ processing PR, system may skip PR's as they may not meet required conditions.
    Raghavan

  • I want the table names for these fields

    Customer ID.
         Material Number
         Cross company Purchase Order.
         Delivery date (requested by the company who is placing the purchase order).
         Qty requested.
         Value of the Qty requested     (Value of the Qty requested = Qty requested * Material unit price )
         Currency
         Total pieces shipped (during the time frame set on the report)
         Balance Left ( Balance Left = Qty Requested - Total pieces shipped)
         Value of the balance left       Value of the balance left = Balance left * Unit price only if the Balance left is greater than cero,
                        if the balance left is lower than or equals cero, the value of the balance left show be cero.
         % Delivery      (% Delivery = Total pieces shipped / Qty requested).

    Ravi,
    OK.
    You can look to tables EKPO, EKKO for PO-related fields.
    Look to SE84 under   ABAP Dictionary > Fields > Table Fields   - This is search tool for existing names.  Or can create custom Y-   and  Z- fields, data elements, domains to meet your needs.
    Please reward points.

  • Purchase Reqs in MRP

    I'm looking for a possible explanation for the following replenishment issue:
    After Retrieving the ZREQS report, the MRP system sometimes may recommend (multiple) plan orders for the same article, same order date and delivery date.
    Purch.Req. Article Article Description Mdse Cat. Fix. Vend. Qty Requested Un Req.Date  Release Dt  Deliv. Date
    10001260 200004013002 THONG BLACK M/1 114625009 115609 16 EA 10/24/2007 10/24/2007 11/29/2007
    10001261 200004013002 THONG BLACK M/1 114625009 115609 493 EA 10/24/2007 10/24/2007 11/29/2007
    Thank you for your help

    Reports starting with a Z are not SAP  standard, they are created in-house.
    If you would use standard transaction such as MD04 to review this kind of situation, then you could get the pegged requirement for each requisition.
    Means your PRs are created for different requirements.  that you get individual requirements instead of collective  is based on settings in material master and customizing .
    Message was edited by:
            Jürgen L.

  • JSP update using MySQL...Plz help

    Can you try and check if anything is wrong or missing in the code coz i keep getting this error msg:
    org.apache.jasper.JasperException: Duplicate key or integrity constraint violation, message from server: "Cannot add or update a child row: a foreign key constraint fails"
    This is the code that i used:
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.util.*" %>
    <HTML>
    <TABLE BORDER=1 WIDTH="300" CELLPADDING=0 CELLSPACING=2>
    <%!
    Connection connection;
    Statement statement;
    ResultSet results;
    %>
    <title>Save Remarks</title>
    <body><font size=+1>Remarks have been saved into the database</font>
    <% Class.forName("com.mysql.jdbc.Driver").newInstance();
    connection = DriverManager.getConnection("jdbc:mysql://localhost/test","sid","");
    statement = connection.createStatement();
    String qty = request.getParameter("qty");
    String id = request.getParameter("id");
    String tn = request.getParameter("tn");
    String st = request.getParameter("st");
    String pname = request.getParameter("pname");
    String rmks = request.getParameter("rmks");
    %>
    <%
    statement.executeUpdate("INSERT INTO members5(La_Na, Fi_Na, NRIC, Treatment_Notes, Small_Talks,
    Remark) VALUES('"+id+"', '"+pname+"', '"+qty+"', '"+tn+"', '"+st+"', '"+rmks+"')");
    statement.executeUpdate("UPDATE members5 SET Remark = "+rmks+" where La_Na =" +id);
    %>
    <%
    results.close(); statement.close(); connection.close();
    %>
    <p>
    <input type="Button" onClick="javascript:location.href='SearchMem.jsp'" value="Done">
    </p>
    </TABLE></BODY></HTML>
    Pls do help... and reply ASAP... thanks...

    The message says it all - there's another table to which your members5 table is related. And one of the columns in member5 is a foreign key and you are inserting a row into members5 with a foreignkey value not existing in the other table. First insert the appropriate row in the other table and then insert into members5

  • Change of Sales Order  automatically changes the purchase order

    Hi 
       I am working on a scenario where a  as soon as a sales order is created it will also create a purchase order on plant which will supply the item to the plant on which sales order is created.This works fine.
    Now when I change sales order( order qty ,requested delivery date, new item added) . On saving the sales order it should change the purchase order which has already been created by updating the schdule lines in the purchase order with new values from the sales order. It is all in same SAP instance.
    Here are possible ways I can think of:-
    1 Change of SO will create a SO IDOC . The SO IDOC should supply required values to the PO Idoc . The PO IDOC should get posted to SAP to change the existing PO.  Client does not have XI so we cant use XI for conversion.
    2 Changing a SO will trigger workflow.The Workflow executes ABAP program which takes data from SO and calls BAPI to change the purchase order and sends notification that PO has changed.   Which BAPI?
    Any thoughts are welcome. We are on 4.7 and we dont have XI. So please do not suggest XI based solution.
    Prashanta

    Prashanta,
    For your 2nd part of question, you can use 'BAPI_PO_CHANGE' to change the PO.
    Thanks

  • JSP and HTML forms

    Hi, I have been trying to work out a way to label rows of a dynamic html form, which can then be referenced by jsp. The project is a uni one in which we are building an online book store. At the moment, we have made a search for out database, the resultant table's size is obviously done on how many results there are. ONce the results are up, for every book, there is a text box, the name of which is the ISBN of that particular book (unique code every book has, thus the primary key). This text box is going to be used so that the 'customers' can enter in a number, which will be how many copies of this book they want.
    This jsp files needs to be referenced by another, so we can send a cookie to the user's computer with book details. unfortunately, in order to know which book, and how many, the user wants, we need to know the name of the check box from the first jsp file, which we cannot hardcode because due to the dynamic nature of the form will be different every time!
    Are we going about things the wrong way, because I cant seem to work out a way to do this.
    Thanks,
    Alex

    Regardless of how many results are returned, the name of your checkbox will always be the same... that's just the nature of a list of checkboxes. What changes is the values of each individual checkbox, which can be retrieved using
    String[] booksChecked = request.getParameterValues("books")where "books" is the name of your checkbox.
    If each book has a unique ID, then probably use this value as the value of the checkbox, and then you receive an array of IDs.
    To dynamically handle the quantity boxes, name each textbox with the unique key plus an extra bit of text..
    <input type="text" name="<%= book.ID%>qty">
    Then you can retrieve the quantity for each book by using..
    for(int i=0; i < booksChecked.length; i++)
      String qty = request.getParameter(booksChecked[i]+"qty");
    }Hope this is what you're looking for :)

  • Kanban from WM w. transfer requirements

    Our kanban material is in units of measure KGs and the issue is that the actual qty is more times than not is different from the requested qty (kanban qty in the control/cycle).  Changing the kanban status from WAIT to EMPTY using PKBC or PK21 and populating the actual qty field doesn't have any effect.  The TR is created with the control/cycle qty (requested qty).
    Using Replenishment Strategy 0006 Kanban from WM w. transfer requirements is there a way to use PKBC or PK21 to change the replenishment qty (requested qty) to actual qty, and if not what would be a good pratical procedure change the qty.
    Thanks in advance for any help.

    Hi,
    The actual quantity is the quantity that is in the container when the status is set to "full". You can set this qty in PKBC or PK21 when you set the status from wait to empty.
    if  teh GR receited at the container contains less / more qty than requestd qty then this actual qty is popultaed from TR confirmation.
    I think in this case you need to change the reqyested qty in the kanban itself.
    Also check if you can utilize claculate automatic calculation of kanban qty function using calculation profile in kanban functioanlity.
    Regards,
    Santosh Sarda

  • Template allocation enviornment 12 for production order not working

    Dear experts,
    i have more than 6 activity type in routing and the base will be machin hour qty means all my activity Fiance, HR,IT and quality ase will be machin hr qty defined in routing and rate will be different in kp26 for hr,IT<QC and finance.
    so i am planning for templete allocation and i m using production order.
    In templete allocation there are different enviornment for plan and actual for production order.
    For planning i have created environment 0
    Based on cost center and activity tpe ( all my activity-HR,IT,QC,Finance and one common cost center)-seperate line for each activity and plan qty is machin.I wrote the logic and same is working also.
    but for actaual .i have chosen enviornment 12 becoz i m using production order and logic will be actual machin hour qty.
    request you to guide me on actual environment based on machin hour actual qty
    regards
    RR

    dear friend,
    for the first issue please run OPU3 for your plant/prod.order type and
    set MORE days in 'Start in the Past' field
    or
    go back to your prod.order (run CO02 ) and REDUCE days in past
    for the second issue please run CR02 and fix the time (Scheduling tab)
    good luck!

  • Split Sales Order Line - by Delivering Plant ?

    Hi there,
    Does anyone know (config or ABAP) how to split a sales order line for this scenario:
    1 Sales Org - SOrgA
    3 Plants (PlantA, PLantB & PlantC)
    Can fulfill SOrgA sales orders from all 3 plants
    No WM
    User enters MatA Qty 10 on sales order line item 1.
    MatA has qty 5 in plantA and qty5 in PlantB.
    System gives Qty 5 to line item 1, reduces qty requested to 5.
    Stytem creates new sales order line & gives Qty 5 to new line item 2.
    I am essentially trying to fulfill the sales order from multiple plants but so far in R/3 I do not see any way to do this with config. Alternative is to do this manually but business requirement is to automate it.
    Any ideas?
    Has anyone done something similar with ABAP?
    Thanks,
    Niall

    Thanks for your comments Ashutosh,
    My strawman schema is currently:
    Biz Hours:
    Orders created.
    Nightly:
    [No (minimal) orders being entered so allocation should be a non-issue or very minimal].
    Backorder rescheduler job runs
    Bespoke job runs to split lines if can fulfill from multiple plants
    - it may be FIFO based on a combination of dates such as customer delivery date and delivering plant lead time (will be bespoke)
    Delivery Due List runs
    Currently our sales order lines have delivering plant (e.g. from customer master, CMIR or material). Against this plant ATP is run, even though the material may also be in another plant. The business issue is that sometimes, for some customers, we want to fulfill the order from a different plant or combination of different plants.
    This is not for every order thankfully!
    N.

  • How the availiblity check is carried out during the sales order creation

    Hi All,
    I have maintained planned delivery time, GRProcesing time and replenishment lead time in days in material master. I am not understand ing how the system is calculating the availability date of the material during sales order creation.
    Please do needful regarding this.
    Regards
    Phani

    Hi,
    Using the Scheduling data from Delivery & Transportation Scheduling, the system does the backward calculation from the Requested Delivery Date. This is used to arrive at Material Availability Date.
    On the Material Availability Date, system checks the Available Qty, as seen in CO09 in column ***. ATP Qty. If the Available Qty is > than Required Qty, Requested Delivery Date is confirmed. Otherwise,
    System moves into the future till it finds the required Available Qty. The new date is then the new Material Availability Date.
    On getting the confirmed Material Availability Date, system does the Forward Scheduling to arrive at a Confirmed Delivery date.
    Regards

Maybe you are looking for

  • Read a character 1 at a time from a text file

    Hi all, I have tried the following to read 1 character at a time from a text file but it did not work; int buf_sz = 1;          try             BufferedReader br = new BufferedReader( new FileReader( "C:\\bitshift.txt", buf_sz ));             String

  • Duplicates in iTunes Music folder

    I just noticed that all of the m4a music files stored in my iTunes music folder have duplicates. This does not seem to be the case for mp3 files. These are not duplicates in iTunes--when I show duplicates in iTunes, I don't have any, even though the

  • Indesign to Web

    I made a postcard with Indesign. When I exported XML into Dreamweaver it lost all its formating. Then I tried PDF and the formatting stays but the type is too broken up to read. What is the best way to move Indesign documents for reading on the web.

  • How can I get the file path which located on webapps/MY_APPS ?

    Hi, I use tomcat as our servlet container.OS is win2k srv my project was put on x:\tomcat\webapps\MY_APPS and I could use getServletContext().getRealPath("/") within a servlet to get x:\tomcat\webapps\ROOT\MY_APPS,   public void doPost(HttpServletReq

  • Flexible Planning:User defined Key Figures

    We had created custom fields and included in custom table to be used in field catalogue.Canwe view this table as source table ?If so what has tobe done to view this as source table?