ABAP Read sales order header text self-built function

Source: Internet
Author: User

FORM Frm_read_txtUSING VbelnLike Vbak-vbeln
changing txt.

DATA: Lc_nameTYPE thead-tdname,
Lit_linesTYPETABLEof Tline,
Lwa_linesTYPE Tline.
CLEAR: Lit_lines,
Lc_name,
Lwa_lines.
Lc_name= Vbeln.
PagerFUNCTION' Read_text '
Exporting
* CLIENT = Sy-mandt
Id=' 0001 '
Language= Sy-langu
Name= Lc_name
Object=' VBBK '
* Archive_handle = 0
* Local_cat = "
* Importing
* HEADER =
TABLES
Lines= Lit_lines
EXCEPTIONS
Id=1
Language=2
Name=3
Not_found=4
Object=5
Reference_check=6
Wrong_access_to_archive=7
OTHERS=8.

IF Sy-subrc=4.
PagerFUNCTION' Read_text '
Exporting
* CLIENT = Sy-mandt
Id=' 0001 '
Language= Sy-langu
Name= Lc_name
Object=' VBBK '
* Archive_handle = 0
* Local_cat = "
* Importing
* HEADER =
TABLES
Lines= Lit_lines
EXCEPTIONS
Id=1
Language=2
Name=3
Not_found=4
Object=5
Reference_check=6
Wrong_access_to_archive=7
OTHERS= 8.
ENDIF.

LOOP at lit_lines to lwa_lines.
* Gwa_output-rise_text = Lwa_lines-tdline.
concatenate txt lwa_lines-tdline into txt.
Endloop.

endform.

ABAP Read sales order header text self-built function

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.