1. During ABAP development, we often delete duplicate rows in the internal table. In this case, we need a very convenient statement: "delete adjacent duplicates from ", however, when using this statement, you should note that it deletes adjacent duplicate rows. We generally need to sort this statement through sort, for example:
Data: Begin of wa_pa0001,
Pernr like pa0001-pernr,
Uname like pa0001-uname,
Bukrs like pa0001-bukrs,
Plans like pa0001-plans,
End of wa_pa0001.
Data: itab_pa0001 like table of wa_pa0001 with header line. Sort itab_pa0001 by pernr.
Delete adjacent duplicates from itab_pa0001.2. in ABAP development, sometimes a time-consuming processing is required. In this case, you do not want to make the customer feel that the problem has been solved or that the computer crashes, and a prompt is given, "Please wait... you can use the following statement:
Call funcation 'sapgui _ progress_indicator'
Exporting
TEXT = 'processing data, please wait ...'.
"Time-consuming Processing
3. in ABAP development, sometimes we do Program You do not need to select all the required interfaces. For example:
Selection-screen begin of block BLK with frame title text-001.
Parameters: p_werks like mseg-werks. "material Credential-factory
Parameters: p_lgort like mseg-lgort obligatory. "material Credential-inventory location
Select-option: s_0000nr for mseg-0000nr. "material Credential-no.
Selection-screen end of BLK. in the screen selected p_lgort is required; s_mblnr is a range, in the OPEN-SQL can use in query range, if s_mblnr no data, take all, when there is data, take the data that meets the conditions; p_werks is a data value. When writing an SQL statement, we need to perform SQL spelling based on the conditions. Here we can use select-option to perform an operation, through the following statement
Select-option: s_werks for mseg-werks no-Extension No intervals. the range option and suffix option of select-option can be removed, but the problem is that "=, <=, <,>,> =" cannot be removed.
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