Retrieve the purchase order text from the master data

Source: Internet
Author: User

1. After Entering the master data purchase order text, use the editor to open the text editing box;

2. There is a "Header" under the "go to" menu, and the basic information is displayed as follows:

3. Call reports:

ReportZtest001.

DataTmp_nameTypeTHEAD-TDNAME.
DataTmp_matnrTypeMatnr.
Data LinesLikeTlineOccurs 0 With Header Line.
DataTmp18TypeChar18.

Tmp_matnr ='123'.

Call Function 'Conversion _ exit_alpha_input '"material encoding completion leading 0
Exporting
Input= Tmp_matnr
 Importing
Output= Tmp18
.

Tmp_name = tmp18.

Call Function 'Read _ text' "reads text data
Exporting
Client = SY-MANDT
ID = 'Best'
Language = '1'
Name = tmp_name
Object = 'Aterial'
Tables
Lines = Lines
Exceptions
ID = 1
Language = 2
Name = 3
Not_found = 4
Object = 5
Reference_check = 6
Wrong_access_to_archive = 7
Others = 8
.

Loop AtLines.
Write:/Lines-Tdline.
Endloop.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.