oracle-EBS-查看销售订单已经确认出货但未过账入AR应收的语句,结账前用到
物流已做确认出货,如果财务没有运行请求-自动开票主程序, EBS是不会把销售数据导入AR系统的
有两种情况:
1. 在月底结账期,有时候物流刚做完自动开票,但系统慢,物流数据处理实际未完成,财务此时立刻运行自动开票也依然获取不到物流数据,无法导入AR。
2.物流做完确认出货,但财务忘记运行自动开票。
可以用此语句检查,后续提醒财务人员再运行一次 自动开票。
下面以物流做完确认出货为例,状态已连接,正常状态
如果财务没有运行自动开票主程序,AR中是找不到该订单的
此时,通过运行下方语句,可以捞出这些未入AR的订单
语句如下:
SELECT
to_char(oola.LAST_UPDATE_DATE,'yyyy-mm-dd hh24:mi:ss') 订单行修改日期,
to_char(wnd.INITIAL_PICKUP_DATE,'yyyy-mm-dd hh24:mi:ss') 库存总帐日期 ,
to_char(wnd.ACCEPTED_DATE,'yyyy-mm-dd hh24:mi:ss') 打印时间 ,
to_char(wnd.CONFIRM_DATE,'yyyy-mm-dd hh24:mi:ss') 物流点击鼠标操作时间,
ooha.FLOW_STATUS_CODE,wdd.OE_INTERFACED_FLAG,wdd.INV_INTERFACED_FLAG,
wdd.released_status,hou.organization_id ,
ooha.order_category_code order_type,
ooha.order_number,oola.line_id ,
oola.LINE_NUMBER||'.'||Shipment_number Line_Number,
wdd.delivery_detail_id,
oola.ACTUAL_SHIPMENT_DATE,
to_char(wnd.INITIAL_PICKUP_DATE,'yyyy-mm-dd') pickup_date ,
wnd.delivery_id,
wnd.name delivery_number,
oola.SUBINVENTORY,
hou.short_code ou_code,
hou.name ou_name,
oola.UNIT_SELLING_PRICE,
oola.UNIT_LIST_PRICE,
wdd.requested_quantity_uom uom,
wdd.shipped_quantity,
wdd.REQUESTED_QUANTITY,
oola.UNIT_SELLING_PRICE * wdd.shipped_quantity amt,
wdd.SHIP_FROM_LOCATION_ID,wdd.SHIP_TO_LOCATION_ID , oola.invoice_interface_status_code,
decode(ship_ar.interface_line_attribute6, null ,'未过账', '已过账') arpost ,
ood.ou_code ou_code_ship
FROM wsh_delivery_details wdd
inner join wsh_delivery_assignments wda on wdd.delivery_detail_id = wda.delivery_detail_id
left join wsh_new_deliveries wnd on wda.delivery_id =wnd.delivery_id --可能出现挑库后,但出货单号为Null 情况,需要手动执行创建单号
inner join oe_order_lines_all oola on wdd.source_header_id =oola.header_id
AND wdd.source_line_id =oola.line_id
inner join oe_order_headers_all ooha on wdd.source_header_id =ooha.header_id and ooha.header_id =oola.header_id
inner join hr_operating_units hou on hou.organization_id =ooha.org_id
inner join
( SELECT ood.OPERATING_UNIT OU_ID,hou.SHORT_CODE ou_code,
hou.name ou_name, ood.ORGANIZATION_ID IO_ID,ood.ORGANIZATION_CODE IO_CODE,
ood.ORGANIZATION_NAME IO_NAME
FROM hr_operating_units hou ,
org_organization_definitions ood
WHERE hou.ORGANIZATION_ID = ood.OPERATING_UNIT
)ood on wdd.organization_id = ood.io_id --出货地的oucode,同一个oucode,可能订单行有多个不同IO
left join RA_CUSTOMER_TRX_LINES_ALL ship_ar on oola.line_id = ship_ar.interface_line_attribute6
and ood.ou_id = ship_ar.org_id
WHERE 1=1
and ood.ou_code in (22222)
and wdd.released_status in ('C') --表示物流已经确认出货
and ship_ar.interface_line_attribute6 is null --判断是否有数据,没数据就是没过到ar
and wnd.INITIAL_PICKUP_DATE between to_date('20201101','RRRRMMDD') and to_date('20201231', 'RRRRMMDD')
--and ooha.order_number = 1066784
最后提醒财务运行自动开票主程序,将物流输入过入AR
也可参考博客园文章: https://www.cnblogs.com/cnishop/p/12973181.html
具体EBS下单入库,请看这个图文内容:
作者: 轻烟随风
当前文章地址: https://www.zyxpp.com/oracle-ebs-om-confirm-not-transfer-to-ar/
来源: 轻烟随风的博客
文章版权归作者所有,欢迎转载
当前文章地址: https://www.zyxpp.com/oracle-ebs-om-confirm-not-transfer-to-ar/
来源: 轻烟随风的博客
文章版权归作者所有,欢迎转载
THE END
二维码
文章目录
关闭
共有 0 条评论