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  -- Organization Id
                    ,p_Item_Id   => 6760202  -- Item Segment
                    ,p_init_msg_list  => FND_API.G_FALSE
                    ,p_commit   => FND_API.G_FALSE
                    ,x_return_status  => x_return_status
                    ,x_msg_count  => x_msg_count
                    ,x_msg_data  => x_msg_data );

commit;
end;

Comments

Popular posts from this blog

API To update Oracle Items

Graph Setting in Oracle Report Builder