Posts

Sub inventory Transfer Using Standard API

Sub inventory Transfer Using Standard API Hi Guys, I Recently , got a requirement to make sub inventory transfer using the standard API. So Here is the code.   PROCEDURE call_subinv_transfer (p_qty               IN NUMBER,                                    p_subinv            IN VARCHAR2,                                    p_item_id           IN NUMBER,                                    p_organziation_id   IN NUMBER,                                    p_uom_code          IN VARCHAR2,                                    p_transaction_ref   IN VARCHAR2,                                    p_lot_number        IN VARCHAR2,                                    p_exp_date             DATE,                                    p_status_id            NUMBER)    IS       lv_transaction_source_name    VARCHAR2 (30);       ln_trnasaction_type_id        NUMBER;       lv_source_code                VARCHAR2 (30)                                        := 'XXX_Subinventory_Source_

Oracle Financial Important tables, links, ER Diagram

Image

Graph Setting in Oracle Report Builder

<rw:graph id="CT_1" src="G_DATE" groups="PDATE" dataValues="CF_WT_AVG_EFFPerG_DATE"> <!-- <?xml version="1.0" ?> <Graph version="3.2.0.22" markerTooltipType="MTT_NONE" markerDisplayed="false" graphType="LINE_VERT_ABS"> <LegendArea visible="false"/> <MarkerText visible="true"> <GraphFont fontColor="#99"/> </MarkerText> <O1TickLabel tickLabelSkipMode="TLS_NOSKIP"/> <PlotArea borderColor="#0" borderTransparent="false"/> <SeriesItems> <Series id="0" color="#0"/> </SeriesItems> <Title text="Efficiency %" visible="true"> <GraphFont size="14" fontColor="#0" underline="true"/> </Title> <Y1Axis scaledLogarithmic="false" logarithmicBase="2.0" axisAut

API To Create Journal Voucher in oracle

/* Formatted on 2018/04/06 16:45 (Formatter Plus v4.8.8) */ /*CREATE OR REPLACE PROCEDURE ge_pro30 (errbuf OUT VARCHAR2, retcode OUT VARCHAR2) IS*/    -- cursor declaration DECLARE   CURSOR gl_cur    IS     /* Formatted on 2018/04/09 16:00 (Formatter Plus v4.8.8) */ SELECT   TO_CHAR (com_det.sob) set_of_books_id,          SUM (com_det.amount_sale) entered, com_ac.entered_dr,          com_ac.entered_cr, com_ac.accounted_dr, com_ac.accounted_cr,          com_det.currency, 'Adjustment' CATEGORY, 14654 created_by,          NULL GROUP_ID, com_ac.segment1, com_ac.segment2, com_ac.segment3,          com_ac.segment4, com_ac.segment5, com_ac.segment6, com_ac.segment7,          com_ac.segment8, 'User' curr_conversion, 'Manual' SOURCE,          'A' actual_flag, date_to date_created,          Date_to accounting_date, 'NEW' status, com_ac.agent_id,          com_hd.ac_id,          stm_cust.cust_agent_invoice_con (com_hd.ac_id, agent_id) invo

API To update Oracle Items

/* Formatted on 2018/04/23 12:05 (Formatter Plus v4.8.8) */ DECLARE    v_po_qty              NUMBER;    v_so_qty              NUMBER;    v_oh_qty              NUMBER;    b_has_backlog         BOOLEAN;    v_po_number           VARCHAR2 (40);    v_po_line_num         VARCHAR2 (40);    v_so_order_number     VARCHAR2 (40);    v_so_ine_number       VARCHAR2 (40);    v_subinventory_code   VARCHAR2 (40);    x_inventory_item_id   NUMBER;    x_organization_id     NUMBER;    x_return_status       VARCHAR2 (3000);    x_msg_count           NUMBER;    x_msg_data            VARCHAR2 (4000); BEGIN    DBMS_OUTPUT.put_line (   'Organization ID'                          || ','                          || 'Item Number'                          || ','                          || 'PO'                          || ','                          || 'SO'                          || ','                          || 'ONHAND

API Procedure to inactive Items in oracle apps

--API to update the item status. /**** STEP 1) Insert data into pending interface table ****/ insert into mtl_pending_item_status           (inventory_item_id,           organization_id,           status_code,           effective_date,           implemented_date,           pending_flag,           last_update_date,           last_updated_by,           creation_date,           created_by)      values(          6760202,   -- Item Segment           114,   -- Organization Id           'Inactive',  -- status           sysdate,           sysdate,           'Y',           sysdate,           14654,           sysdate,           14654); /**** STEP 2) Call below API code to do the actual change ****/ declare  x_return_status VARCHAR2(100);  x_msg_count  NUMBER;  x_msg_data  VARCHAR2(1000); begin          inv_item_status_pub.Update_Pending_Status (                      p_api_version  => 1.0                     ,p_Org_Id   => 114  -- Organi

Query API to inactive Oracle Customer Sites

DECLARE CURSOR C IS select  CDC.CUSTOMER_ID,CDC.CUSTOMER_NAME,HCASA.* from stm_cust.CUST_DEACTIVE_CUST cdc,apps.hz_cust_accounts hca,apps.hz_cust_acct_sites_all hcasa where cdc.customer_id = hca.cust_Account_id and hca.cust_Account_id = hcasa.cust_Account_id AND HCASA.STATUS = 'A' and hcasa.org_id = 113 ORDER BY CUST_aCCT_SITE_ID; BEGIN FOR I IN C LOOP UPDATE apps.hz_cust_acct_sites_all SET STATUS = 'I' WHERE CUST_aCCT_SITE_ID = I.CUST_ACCT_SITE_ID AND ORG_ID = 113 AND CUST_ACCOUNT_ID = I.CUST_ACCOUNT_ID; COMMIT; END LOOP; END;