Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use ABAP Code to read production order

Shulou Source: shulou.com Published: 2022-05-31 15:56:18 09月21日 Update

This article mainly explains "how to use ABAP code to read production orders", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to read production orders with ABAP code.

In the Production Order shown in the S/4HANA transaction code CO03, I want to display the operation (process) ID, description and status Status of the order in ABAP code, as shown in the following figure:

A few simple lines of ABAP code:

DATA: lt_operation TYPE TABLE OF afvgd.CALL FUNCTION 'PM_ORDER_DATA_READ' EXPORTING order_number =' 000001000381' TABLES iafvgd = lt_operation EXCEPTIONS order_not_found = 1.IF sy-subrc 0. WRITE:/ 'not exist'. RETURN.ENDIF.

The data that needs to be read is here:

At this point, I believe you have a deeper understanding of "how to read production orders with ABAP code". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Code order production content learning practical deeper transaction interest practicality practical process simple operation data method more friends status website channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info MySQL vpn Huawei