P2P CYCLE QUERY

Hi all...............
I am new in oracle and i need your help......................
I need a query which cover p2p cycle..................my requirement is that i need all the Requisitions with PO or without PO, all the PO with or without Receipt, all the invoices with or without PO, and Payments details if exist...............in one query...........plz help
Regards

Hi,
Where do you find it difficult to prepare the query?
Are you looking for tables involved in the query then check this out [http://docs.oracle.com/cd/A85964_01/acrobat/potrm.pdf]
Regards

Similar Messages

  • P2P Cycle Query in R12

    Hi Gurus,
    I need a query to get the information of P2P cycle in oracle apps r12.
    here is my cycle
    PR->RFQ->QUOTATION->PO->RECEIVING->INVOICE->PAYMENTS
    I need the following data in the query.
    PR#,
    PR_APPROVAL_DATE,
    RFQ#,
    RFQ_CREATION_DATE,
    QUOTE_ANALYSIS_APPROVAL_REASON,
    PO#, PO_APPROVAL_DATE,
    PO_TOTAL_AMOUNT,
    BUYER,
    RECEIVING_DATE,
    INVOICE_NUM,
    INVOICE_DATE,
    PAYMENT_DATE,
    AMOUNT_PAID
    SUPPLIER # AND SUPPLIER_NAME
    your response will be highly appreciated.
    Thanks & Regards
    Shariff

    Hi,
    Where do you find it difficult to prepare the query?
    Are you looking for tables involved in the query then check this out [http://docs.oracle.com/cd/A85964_01/acrobat/potrm.pdf]
    Regards

  • P2p cycle query -oracle apps

    Hi...
    I am using oracle 10g and was trying to link the base tables of p2p cycle and need help on my query:
    select prla.unit_meas_lookup_code "UNIT",
    prha.type_lookup_code"PR TYPE",
    prha.segment1"PR NUMBER",
    prha.creation_date,null"SUPPLIER",
    null"INVENTORY CATEGORY",
    null"MFG NO",
    null"BUYER",
    null"CUSTOMER",
    prla.item_id"ITEM CODE",
    apia.invoice_num"INVOICE NO" ,
    prla.item_description "DESCRIPTION",
    null"RFQ No",
    null "RFQ Date",
    null"RFQ Supplier",
    null "QTN No",
    null "QTN Date",
    pha.segment1"PO NO",
    pha.vendor_id"SUPPLIER",
    pha.CREATION_DATE "PO DATE",
    null"ACK.DATE",
    null"NO OF DAYS FROM PR TO PO",
    null "ASBN NO",
    rsh.receipt_num "RECEIPT NO",
    null"RECEIPT DATE",
    rsh.invoice_num"INVOICE NO",
    null"INSPECTION DATE",
    null "INSPECTION RESULT",
    null"STOCKING DATE",
    null "NO OF DAYS FROM PO TO RECEIPT",
    null"PV NO",apca.amount "RELEASE AMOUNT",
    apca.released_date "PAYMENT RELEASE DATE",
    apca.payment_method_code " RELEASE MODE",
    null " DAYS TAKEN "
    from PO_REQUISITION_HEADERS_ALL prha,
    PO_REQUISITION_LINES_ALL prla,
    PO_HEADERS_ALL pha,
    RCV_SHIPMENT_HEADERS rsh,
    AP_INVOICE_DISTRIBUTIONS_ALL apida,
    AP_INVOICES_ALL apia,
    PO_DISTRIBUTIONS_ALL pda,
    PO_REQ_DISTRIBUTIONS_ALL prda,
    RCV_SHIPMENT_LINES rsl,
    AP_CHECKS_ALL apca,
    AP_INVOICE_PAYMENTS_ALL apipa
    where prha.REQUISITION_HEADER_ID = prla.REQUISITION_HEADER_ID
    AND prla.REQUISITION_LINE_ID = prda.REQUISITION_LINE_ID
    AND prda.DISTRIBUTION_NUM = pda.DISTRIBUTION_NUM
    AND pda.PO_HEADER_ID = pha.PO_HEADER_ID
    AND pda.PO_DISTRIBUTION_ID = rsl.PO_DISTRIBUTION_ID
    AND rsl.SHIPMENT_HEADER_ID = rsh.SHIPMENT_HEADER_ID
    AND pda.PO_DISTRIBUTION_ID = apida.PO_DISTRIBUTION_ID
    AND apida.INVOICE_ID = apipa.INVOICE_ID
    AND apipa.CHECK_ID = apca.CHECK_ID
    Cant figure out what I have missed.Please help!!!

    Ok, you have a problem!
    But what problem do you have exactly?
    It would be nice to see
    - the errormessage (when you have an error)
    - table-create scripts
    - sample data

  • Procure to pay (p2p) cycle

    Hi,
    what are the p2p cycle underlying tables
    thanks

    Check eTRM link, all tables are there. In addition, have a look at:
    eTRM
    http://etrm.oracle.com
    Table Names in Procure To Pay Life Cycle
    http://erpstuff.com/topic.asp?TOPIC_ID=1776

  • Modules in o2c and p2p cycles

    Hi All
    Can any tell me he what are the modules included in oracle O2C and P2P cycles
    Thanks & Regards
    Srikkanth.M

    Hi;
    pelase check below link:
    http://www.oraclechamps.com/oracle-supply-chain-a-logisitcs.html
    Also see:
    http://oracle.anilpassi.com/procure-to-pay-order-to-cash-end-to-end-cycle-functional-documents-2.html
    http://shareoracleapps.blogspot.com/2010/05/procure-to-pay-cycle-in-oracle-apps-r12.html
    http://www.oraclechamps.com/oracle-supply-chain-a-logisitcs.html
    Regard
    Helios

  • Which accounts get credited and debited in P2P cycle

    Which accounts get credited and debited in P2P cycle. I do not know accounting.
    So kindly explain in deep how accouting gets efected from requsition to invoice and payment.

    Hello,
    Send me your email id.
    will forward you a doc which has all modules accounting entries.
    Thanks
    -Arif.

  • How to enter project details in p2p cycle

    hi this is priya,
    while creating requisition in p2p cycle, i am trying to enter project details but its not accepting.
    will any one help for me....
    Regards,
    priya..

    This question might be more suitable in one of the EBS forums?
    https://forums.oracle.com/forums/category.jspa?categoryID=3

  • Oracle apps query-p2p cycle

    Hi all....
    I am using oracle 10g........
    The following query is a union of two queries....The second query is a subset of the first meaning that it has fewer tables and fewer select columns as well....(I have to use union on the two queries....for a gud reason) .What i want is that the union return only the superset records from result of the union of the two queries when i pass a parameter at runtime like supplier_name as mentioned in the the query below .......
    /* Formatted on 2012/05/14 16:49 (Formatter Plus v4.8.8) */
    SELECT * FROM(SELECT DISTINCT reql.unit_meas_lookup_code "UNIT",
    reqh.type_lookup_code "PR_TYPE",
    reql.document_type_code "SUBTYPE",
    reqh.segment1 "PR_NO", reqh.creation_date "PR DATE",
    mtb.segment1 "ITEM_CODE",
    pol.item_description "DESCRIPTION",
    mcb.segment1 "INVENTORY_CATEGORY",
    reql.manufacturer_part_number "MFG NO/DRG NO",
    poh.authorization_status "AUTHORIZATION STATUS",
    papf.full_name "BUYER", NULL "CUSTOMER",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.segment1
    ) "RFQ NO",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.creation_date
    ) "RFQ DATE",
    NULL "RFQ SUPPLIER",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.segment1
    ) "QTN NO",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.reply_date
    ) "QTN DATE",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.segment1,
    'BLANKET', poh.segment1,
    'PLANNED', poh.segment1
    ) "PO_NO",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.creation_date,
    'BLANKET', poh.creation_date,
    'PLANNED', poh.creation_date
    ) "PO DATE",
    pv.vendor_name "SUPPLIER",
    NULL "SUPPLIER ACKNOWLEDGMENT DATE",
    TRUNC
    (reqh.creation_date
    - TRUNC (poh.creation_date)
    "NO OF DAYS TAKEN FROM PR TO PO",
    DECODE (rcvh.asn_type,
    'ASBN', rcvh.shipment_num
    ) "ASBN NO",
    rcvh.receipt_num "RECEIPT NO",
    rcvh.creation_date "RECEIPT DATE",
    apia.invoice_num "INVOICE_NO",
    NULL "QUALITY INSPECTION DATE",
    rcvt.inspection_status_code "INSPECTION RESULT",
    NULL "STOCKING DATE",
    TRUNC (poh.creation_date)
    - TRUNC (reqh.creation_date) "NO OF DAYS TAKEN FROM",
    NULL "PV NO", NULL "PV DATE",
    apc.amount "PAYMENT RELEASE AMOUNT",
    apc.released_date "PAYMENT RELEASE DATE",
    apc.payment_method_code "PAYMENT RELEASE MODE",
    NULL "NO OF DAYS TAKEN FROM RECEIPT"
    FROM po_requisition_headers_all reqh,
    po_requisition_lines_all reql,
    po_req_distributions_all reqd,
    po_distributions_all pod,
    po_headers_all poh,
    po_lines_all pol,
    po_line_locations_all poll,
    rcv_shipment_headers rcvh,
    rcv_shipment_lines rcvl,
    rcv_transactions rcvt,
    ap_invoice_distributions_all apid,
    ap_invoices_all apia,
    ap_payment_schedules_all aps,
    ap_invoice_payments_all app,
    ap_checks_all apc,
    per_all_people_f papf,
    po_vendors pv,
    mtl_system_items_b mtb,
    mtl_categories_b mcb,
    mtl_item_categories mic
    WHERE reqh.requisition_header_id =
    reql.requisition_header_id
    AND reql.requisition_line_id = reqd.requisition_line_id
    AND pod.req_distribution_id = reqd.distribution_id
    AND pol.po_line_id = pod.po_line_id
    AND poh.po_header_id = pol.po_header_id
    AND pol.po_line_id = poll.po_line_id
    AND pod.po_distribution_id = apid.po_distribution_id
    AND pod.po_distribution_id = rcvt.po_distribution_id
    AND rcvl.shipment_header_id = rcvh.shipment_header_id
    AND rcvh.shipment_header_id = rcvt.shipment_header_id
    AND rcvt.po_distribution_id = apid.po_distribution_id
    AND app.check_id = apc.check_id
    AND apid.invoice_id = apia.invoice_id
    AND apia.invoice_id = app.invoice_id
    AND app.invoice_id = aps.invoice_id
    AND poh.agent_id = papf.person_id
    AND poh.vendor_id = pv.vendor_id
    AND pol.item_id = mtb.inventory_item_id
    AND mic.inventory_item_id = pol.item_id
    AND poh.authorization_status = 'APPROVED'
    AND mcb.category_id = mic.category_id
    UNION
    SELECT DISTINCT NULL "UNIT", NULL "PR_TYPE", NULL "SUBTYPE",
    NULL "PR_NO", NULL "PR DATE",
    mtb.segment1 "ITEM_CODE",
    pol.item_description "DESCRIPTION",
    mcb.segment1 "INVENTORY_CATEGORY", NULL,
    poh.authorization_status "AUTHORIZATION STATUS",
    papf.full_name "BUYER", NULL "CUSTOMER",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.segment1
    ) "RFQ NO",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.creation_date
    ) "RFQ DATE",
    NULL "RFQ SUPPLIER",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.segment1
    ) "QTN NO",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.reply_date
    ) "QTN DATE",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.segment1,
    'BLANKET', poh.segment1,
    'PLANNED', poh.segment1
    ) "PO_NO",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.creation_date,
    'BLANKET', poh.creation_date,
    'PLANNED', poh.creation_date
    ) "PO DATE",
    pv.vendor_name "SUPPLIER",
    NULL "SUPPLIER ACKNOWLEDGMENT DATE", NULL,
    DECODE (rcvh.asn_type,
    'ASBN', rcvh.shipment_num
    ) "ASBN NO",
    rcvh.receipt_num "RECEIPT NO",
    rcvh.creation_date "RECEIPT DATE",
    apia.invoice_num "INVOICE_NO",
    NULL "QUALITY INSPECTION DATE",
    rcvt.inspection_status_code "INSPECTION RESULT",
    NULL "STOCKING DATE", NULL, NULL "PV NO",
    NULL "PV DATE", apc.amount "PAYMENT RELEASE AMOUNT",
    apc.released_date "PAYMENT RELEASE DATE",
    apc.payment_method_code "PAYMENT RELEASE MODE",
    NULL "NO OF DAYS TAKEN FROM RECEIPT"
    FROM po_distributions_all pod,
    po_headers_all poh,
    po_lines_all pol,
    rcv_shipment_headers rcvh,
    rcv_shipment_lines rcvl,
    rcv_transactions rcvt,
    ap_invoice_distributions_all apid,
    ap_invoices_all apia,
    ap_payment_schedules_all aps,
    ap_invoice_payments_all app,
    ap_checks_all apc,
    per_all_people_f papf,
    po_vendors pv,
    mtl_system_items_b mtb,
    mtl_categories_b mcb,
    mtl_item_categories mic
    WHERE pol.po_line_id = pod.po_line_id
    AND poh.po_header_id = pol.po_header_id
    AND pod.po_distribution_id = apid.po_distribution_id
    AND pod.po_distribution_id = rcvt.po_distribution_id
    AND rcvl.shipment_header_id = rcvh.shipment_header_id
    AND rcvh.shipment_header_id = rcvt.shipment_header_id
    AND rcvt.po_distribution_id = apid.po_distribution_id
    AND app.check_id = apc.check_id
    AND apid.invoice_id = apia.invoice_id
    AND apia.invoice_id = app.invoice_id
    AND app.invoice_id = aps.invoice_id
    AND poh.agent_id = papf.person_id
    AND poh.vendor_id = pv.vendor_id
    AND pol.item_id = mtb.inventory_item_id
    AND mic.inventory_item_id = pol.item_id
    AND poh.authorization_status = 'APPROVED'
    AND mcb.category_id = mic.category_id) a
    WHERE 1 = 1
    AND ( a.pr_type = NVL (:pr_type, a.pr_type)
    OR (:pr_type IS NULL AND a.pr_type IS NULL)
    AND ( a.pr_no = NVL (:pr_no, a.pr_no)
    OR (:pr_no IS NULL AND a.pr_no IS NULL)
    AND ( a.unit = NVL (:unit_lookup_code, a.unit)
    OR (:unit_lookup_code IS NULL AND a.unit IS NULL)
    AND a.supplier = NVL (:supplier_name, a.supplier)
    AND a.inventory_category = NVL (:inventory_category, a.inventory_category)
    AND a.buyer = NVL (:buyer_name, a.buyer)
    AND a.invoice_no = NVL (:invoice_no, a.invoice_no)
    AND a.item_code = NVL (:item_code, a.item_code)
    Edited by: Dave on May 14, 2012 5:08 AM
    Edited by: Dave on May 14, 2012 5:14 AM

    Dave wrote:
    What i want is that the union return only the superset records from result of the union of the two queriesThat is what Union does.
    If it doesn't, then it means it's not real duplicates.
    For example :Scott@my11g SQL>with
      2  table_A(val) as (
      3  select 'This is a duplicate' from dual
      4  union all select 'This is another' from dual
      5  union all select 'This is not' from dual
      6  )
      7  ,table_B(val) as (
      8  select 'This is a duplicate' from dual
      9  union all select 'This is another' from dual
    10  )
    11  ------ end of sample data ------
    12  select val from table_A
    13  union
    14  select val from table_B ;
    Scott@my11g SQL>/
    VAL
    This is a duplicate
    This is another
    This is notSee ? only 3 rows from the 5 (3+2) originals.
    But if I add some pseudo columns Which_table with different values for each table, then :Scott@my11g SQL>with
      2  table_A(val) as (
      3  select 'This is a duplicate' from dual
      4  union all select 'This is another' from dual
      5  union all select 'This is not' from dual
      6  )
      7  ,table_B(val) as (
      8  select 'This is a duplicate' from dual
      9  union all select 'This is another' from dual
    10  )
    11  ------ end of sample data ------
    12  select val, 'from table_A' which_table from table_A
    13  union
    14  select val, 'from table_B' from table_B ;
    VAL                 WHICH_TABLE
    This is a duplicate from table_A
    This is a duplicate from table_B
    This is another     from table_A
    This is another     from table_B
    This is not         from table_AThere is now 5 rows, they are no longer duplicates.

  • Application Deployment Evaluation Cycle Query

    Does anyone have a sql query to determine when machines in a collection last ran their Application Deployment Evaluation Cycle?
    Thanks for any suggestions!

    Thanks Garth and Jason.  About the only place that seems to provide the information is the client side appdiscovery.log file.  I have a couple sql queries that return things like last software scan date, etc, and I was hoping there might be something
    similar for the application deployment evaluation cycle.
    To your question, Jason, we have a vdi solution that is closely scrutinized by the powers that be.  Every utilization spike on the storage array triggers a flurry of "why did that happen?" emails from management (a behavior born out of a couple
    previous array crashes).  It's been useful to correlate some the SCCM actions time stamps to the time frames of some of these spikes.  In this particular case, a spike was monitored when somebody used right click tools to run the application deployment
    evaluation cycle on a large collection of vdi machines.  Bet you're sorry you asked now!  
    Anyway, thanks again.  I'll script out another solution.

  • Could someone please explain what P to P and Order to Cash cycle?

    Could someone please explain what Procurement to Pay and Order to Cash cycles mean? Thanks.

    Hi,
    Pl.visit following links for P2P cycle.
    http://erpschools.com/articles/procure-to-pay-cycle#13480480234441&79412::resize_frame
    http://oracleapplicationsfunctional.blogspot.in/2011/08/procure-to-pay-p2p-cycle-in-purchasing.html
    http://www.shareoracleapps.com/2010/05/procure-to-pay-cycle-in-oracle-apps-r12.html
    and visit following links for O2C cycle.
    http://erpschools.com/articles/order-to-cash-cycle#13480481951911&21367::resize_frame
    http://www.youtube.com/watch?v=2GhAbWGz7iA
    http://knoworacle.wordpress.com/2008/12/08/data-flow-for-11i-order-to-cash-cycle/
    http://oracleapps88.blogspot.in/2012/08/order-to-cash-cycle.html
    http://www.slideshare.net/anand5538/order-to-cash-cycle-9647606
    HTH
    Sanjay

  • P2P process with WM activated

    Hi All,
    Can you tell me what are the T-codes that i need to use in my P2P cycle if WM is activated.
    After PO i do GR, do i have to use any other transaction before or after GR if WM is activated, similarly during Goods Issue do i have to use any other WM transaction.
    Awaiting your reply.
    Thanks,
    Regards
    Raghavendra

    Hello,
    If WM is activated the process flow go as follows;
    For Goods Reciept:
    Purchase order creation: (ME21N)>> Inbound delivery creation (VL31N OR VL10B)>> Transfer order may be created automatically or manually, if transfer order creation is automatic then WMTA output type needs to be set in transcation NACE for application tpe E1- Inound delivery.
    Once inbound delivery is created you can create transfer order manually also.
    Go to VL32N enter inbound deivery number, now to go to subsequent function and create transfer order and save.
    Now to confirm the transfer order created go to LT12 ,enter the TO number and warehouse number and save it.
    Now do the post goods reciept , with VL32N transaction.
    For Goods Issue:
    Sales order created (VA01)
    Outbound delivery (VL01N OR VL10A)
    Tranfer order creation: (Go to VL02N enter the delivery enter and got to subsequent function and create transfer order and save.
    Confirm the transfer order (LT12 Go to Tranfer order in menu bar and press Confirm To)
    Now do the post gooods issue (VL02N , press PGI tab)
    Br,
    Tushar

  • P2P - Accrual Account transactions - Match

    Hi Guru's,
    In P2P cycles..as you know..
    On GRN
    Dr Material A/C
    Cr Payables Accrual Account
    On Payables - Invoice Entry and Match PO
    Dr Payable Accrual Account
    Cr Ap Control Account
    Our problem is..business didnt track GRN JV's for 5/6 yrs..only setp 2 is tracked i.e On payables entry is happening..some how they are cooking the data.
    Now they realised the issue and wanted to have a mechanism to determine the matching JV's.
    Appreciate any help/thoughts on this.
    Rgds,Radha.

    This happend to me to---kept getting msg that info did not match bank records and I tried a few times then gave up THEN checked bank account and they charged me SIX TIMES
    of course, you cannot even call them or email...its frustrating..I reported a problem under the songs bought but I have spent over half an hour on this trying to call etc....this is nuts

  • Foreign Exchange - Posting date - updation - Not Working Properly

    Hi Friends,
    At the time of posting the Purchase invoice in Transaction Code MIRO, the system is picking the Exchange rates form the table based on our posting date in the Invoice screen.
    System is not updating the exchange rate, if we change the Posting date just before posting.
    Example:
    Transaction code MIRO
    Posting date 21.01.2010; Exchange rate picked by system - 46.67 (USD and INR) Maintained in Table - 21.01.2010 - Rs.46.67
    before posting we are changing the posting date from 21.01.2010 to 22.01.2010
    Posting date 22.01.2010; Exchange rate picked by system - 46.67 (USD and INR) maintained in Tabl - 22.01.2010 - Rs.46.99
    To bring the correct exchange rate into effect, We are coming out of the Transaction code and Re-entering the correct posting date.
    Is there is any solution to make the system pick the exchage rate whenever we change the posting date?
    Thanks in advance friends and collegues

    Thanks for Quick reply
    I have a separte Exchange rate in PO (purchase Order) and I have not activated the fixed Exchage rate in the Purchase Order
    If I have activated the Fixed Exchange rate in Purchase order - then the system will not accept other Exchange rates in Transaction Code MIRO (booking LIV)
    I have not activated the Fixed Exchange rate in Purchase order (Please have a look at the Purchase Order - A check box for maintaining the Fixed Exchange rate through out the P2P Cycle.
    If the fixed exchange rate is notactivated in PO, the system will pick the Posting Date in the Transaction Code MIRO (LIV) for calculating the Exchange rate.
    Now my query is why the system is not changing the Exchange rate automatically when I change the Posting date in Transaction Code MIRO. Please also let me know what should be done from our side so that whenever I change the posting date in Transaction Code MIRO, the system should pick the Exchange Rate according to the Posting Date in Transaction Code MIRO.
    Thanks for showing Interest
    Thak you and Kindest Rgeards
    Srikaanth

  • Dependant values in a pl/sql html portlet

    I have a simple html form that shows records to be updated with a submit button. One of the field shows multiple cycles from a table with radiobutton. Different amounts have to be shown for different values of cycles. This amount should be dynamically picked from a table.
    Will anyone have ideas on how to show different amounts for different cycles? I thought of using onclick on cycle but cannot make it work.
    htp.p('<form action=http://hostname/pls/portal/genutil.pkg_call_perform_ana.pr_call_form_update method="get">');
    LOOP
    fetch c1 into val1, val2, cnt, val3;
         exit when c1%NOTFOUND;
    --i := i+1;
    -- vivtest1.PKG_APP_ANA.tab_msg(i) := val1;
    --PKG_CALL_APP_ANA.my_msg(i) := val1;
    htp.p('<td align="left">');
    htp.p('<font face="Arial" size=1 color=#000000">');
    htp.p(val1|| '</font>');
    htp.p('</td>');
    htp.p('</tr>');
    END LOOP;
    htp.p('<tr>'); htp.p('<tr>');
    -- cycle query begins here
    VIVTEST1.pkg_perform_ana.PR_CYCLE_QUERY(c2);
    htp.p('<TR>');
    htp.p('<TR>');
    htp.p('<td colspan=4>');
    htp.p('<font face="Arial" size="1" color=#000000">');
    htp.p('<b><center>Enter Distributed Amount </b></center>');
    htp.p('<TR>');
    LOOP
         fetch c2 into p_var;
         exit when c2%NOTFOUND;
              htp.p('<td align="center">');
              htp.p('<font face="Arial" size=1 color=#000000">');
              --htp.p(' <input type="hidden" name="p_cycle">');
              htp.p(' <input type="radio" name="p_cycle" ');
              htp.p(' value = ' || p_var );
    htp.p(' onclick="this.form.action=genutil.pkg_call_perform_ana.pr_call_form_update;" ');
    htp.p('CHECKED >'||p_var||'</font>');
              htp.p('</td>');
    END LOOP;
    -- cycle query ENDS here, Ask for pool amount
    htp.p('<td align="left">');
    htp.p('<font face="Arial" size=1 color=#000000">');
    htp.p('Amt: <input type="text" name="poolamt" ');
    htp.p( '</font>');
    htp.p('</td>');
    htp.p('<tr>');
    -- Here's the submit button. Note that the value shows up in the button but
    -- is not passed to the procedure because there's no "name=" defined.
    htp.p(' <td colspan=4><input type="submit" value="Analyze"></td>');
    htp.p('</tr>');
    htp.p('</form></center>');
    htp.p('</table>');
    --htp.p(FootText);
    CLOSE C1;

    I have a simple html form that shows records to be updated with a submit button. One of the field shows multiple cycles from a table with radiobutton. Different amounts have to be shown for different values of cycles. This amount should be dynamically picked from a table.
    Will anyone have ideas on how to show different amounts for different cycles? I thought of using onclick on cycle but cannot make it work.
    htp.p('<form action=http://hostname/pls/portal/genutil.pkg_call_perform_ana.pr_call_form_update method="get">');
    LOOP
    fetch c1 into val1, val2, cnt, val3;
         exit when c1%NOTFOUND;
    --i := i+1;
    -- vivtest1.PKG_APP_ANA.tab_msg(i) := val1;
    --PKG_CALL_APP_ANA.my_msg(i) := val1;
    htp.p('<td align="left">');
    htp.p('<font face="Arial" size=1 color=#000000">');
    htp.p(val1|| '</font>');
    htp.p('</td>');
    htp.p('</tr>');
    END LOOP;
    htp.p('<tr>'); htp.p('<tr>');
    -- cycle query begins here
    VIVTEST1.pkg_perform_ana.PR_CYCLE_QUERY(c2);
    htp.p('<TR>');
    htp.p('<TR>');
    htp.p('<td colspan=4>');
    htp.p('<font face="Arial" size="1" color=#000000">');
    htp.p('<b><center>Enter Distributed Amount </b></center>');
    htp.p('<TR>');
    LOOP
         fetch c2 into p_var;
         exit when c2%NOTFOUND;
              htp.p('<td align="center">');
              htp.p('<font face="Arial" size=1 color=#000000">');
              --htp.p(' <input type="hidden" name="p_cycle">');
              htp.p(' <input type="radio" name="p_cycle" ');
              htp.p(' value = ' || p_var );
    htp.p(' onclick="this.form.action=genutil.pkg_call_perform_ana.pr_call_form_update;" ');
    htp.p('CHECKED >'||p_var||'</font>');
              htp.p('</td>');
    END LOOP;
    -- cycle query ENDS here, Ask for pool amount
    htp.p('<td align="left">');
    htp.p('<font face="Arial" size=1 color=#000000">');
    htp.p('Amt: <input type="text" name="poolamt" ');
    htp.p( '</font>');
    htp.p('</td>');
    htp.p('<tr>');
    -- Here's the submit button. Note that the value shows up in the button but
    -- is not passed to the procedure because there's no "name=" defined.
    htp.p(' <td colspan=4><input type="submit" value="Analyze"></td>');
    htp.p('</tr>');
    htp.p('</form></center>');
    htp.p('</table>');
    --htp.p(FootText);
    CLOSE C1;

  • GR/IR rounding difference in LC

    Hello Team,
    We have client specific scenario in P2P cycle. Please find below our scenarios and suggest further on this issue.
    We will Create PO                                                  QTY   Price    Amount.
                                                                                       10     100        1000
    Then We book an Invoice                                          12     100        1200
    Then we Goods Receipt                                            10     100        1000
    Then we book a credit memo                                      2     100          200
    After all above  transactions done, then, In MB5S -> we see a difference of 0,01 in the value of the GR and invoice,
    even if the quantities are in balance:
                                                                                    QTY   Price     Amount
                                                        Goods Receipt     10      100        1000
                                                        Invoioce receipt   10      100        1000.01
    In FAGLL03 for the GR/IR account, we see also the open amount of 0,01
    euro:
    Thanks,
    Raj.

    This is probably because of rounding. I assume that . is decimal point in the example you have mentioned.
    If you use distribution by percentage, it may not be possible to exactly split the quantity unless your percentages are nice round figures like 10% or 50%. So there will be some rounding off if you have 27%, 31%, etc.
    The usual practice is to use the a smaller unit of measure if more accuracy is needed. For example, in your case, you may have used 3360 dm3 instead of 3.360 m3 (I know it does not sound logical since people are not used to dm3) or 3360000 cm3. This will make the splitting easier, but the downside is - there will be some confusion for the users - particularly vendor, goods recipient, etc.
    Lakshman

Maybe you are looking for