英文:
Create a transaction to display the Sales order and its subsequent document flow with the status in ALV format
问题
Subsequent document flow in SAP ABAP 是指SAP ABAP中的后续文档流是什么?
如何使用销售订单在SAP ABAP中显示流程?
如何显示现有销售订单的详细信息?
英文:
What is subsequent document flow in SAP ABAP?
How to display the flow in SAP ABAP using sales order?
How to display the existing sales order details?
答案1
得分: 1
以下是翻译好的部分:
首先,在销售与分销中存在一定的文档顺序,反映了相应的业务流程。典型的一般文档链可能是:询价 - 报价 - 销售订单 - 交付 - 发货 - 发票等,后续文档是基于前面的文档创建的。这个文档顺序可以根据具体的业务需求在SAP中反映和实施。
文档流程显示销售文档已经处理到哪一步。它由与所选文档相关的前后文档的顺序组成,以所选文档作为起点。
为了实现您的需求,您可以从一个简单的报表开始(如果需要,还可以分配一个事务代码),请求销售文档号作为参数,然后使用SAP提供的BAPI动态读取必要的数据,并按照所需的方式显示。 (注意:当然,也可以直接从数据库表中读取数据,但通常会更冗长,并需要对底层数据库模型有很好的了解)。
您可以尝试以下BAPI:
-
BAPISDORDER_GETDETAILEDLIST
用于读取销售订单详细信息 -
RV_ORDER_FLOW_INFORMATION
用于读取文档流程
要测试BAPI并检查它们返回的数据,可以使用事务SE37
来调用这些函数模块(您还可以使用此事务来搜索系统中的其他可用函数模块)。
要找到一些测试用的销售订单号,可以使用例如事务VA03
来查找一个。
要创建一个ALV列表,有几种可能性,但在这种情况下最好的选择是使用面向对象的方法,从CL_SALV_TABLE
类开始。
英文:
As the question is rather general I would give some starting hint points.
First of all there is a certain sequence of documents in Sales and Distribution, which reflects the corresponding business processes. A typical general document chain could be: Inquiry -> Quotation -> Sales order -> Delivery -> Shipment -> Invoice, etc., where the following documents are created based on the previous ones. This document sequence could be reflected and implemented in SAP as needed in accordance with concrete business requirements.
The document flow shows how far the sales document has been processed. It consists of the sequence of related previous and subsequent documents in a relation to the selected document used as a starting point.
To implement your requirement you can start with a simple report (additionally assigning a transaction code to it if necessary), ask for a sales document number as a parameter and afterwards use BAPIs delivered from SAP to dynamically read the necessary data and display it afterwards as required. (Note: of course it is always possible to read the data directly from DB-tables also, but it is usually much more verbose and requires a good knowledge of the underlying database model).
To start with you can try the following BAPIs:
-
BAPISDORDER_GETDETAILEDLIST
to read the sales order details -
RV_ORDER_FLOW_INFORMATION
to read the document flow
To test BAPIs and check what data they return, use transaction SE37
to call these function modules (use can also use this transaction to search for other available FMs in the system).
To find some sales order numbers for testing, use, for example, transaction VA03
to find one.
To create an ALV list there are several possibilities, but the best option in this case is to use an object oriented approach starting with CL_SALV_TABLE
class.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论