![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ABAP
huang850625
这个作者很懒,什么都没留下…
展开
-
DISABLE button(FCODE) from the GUI-Status
1. Goto-> Attributes->Pushbutton assignment[img]http://dl2.iteye.com/upload/attachment/0099/8090/03b926a8-e306-382b-b2c2-23d027d3f6fc.png[/img]2. select 'Display All' for inactive function原创 2014-08-04 15:54:01 · 197 阅读 · 0 评论 -
Pay attention to the following points when using append structures
[list][*] You cannot create append structures for pool and cluster tables.[*] If a table contains a long field either of the data type, LCHRor LRAW, you cannot expand the table with an append st...原创 2011-10-27 13:43:18 · 116 阅读 · 0 评论 -
EXIT_SAPMF02D_001 check address data
[code="java"]DATA: l_regex TYPE REF TO cl_abap_regex, l_matcher TYPE REF TO cl_abap_matcher, l_structdescr TYPE REF TO cl_abap_structdescr, l_elemdescr ...2011-03-25 14:48:33 · 324 阅读 · 0 评论 -
Help Views
source:http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ecd2446011d189700000e8322d00/content.htm You have to create a help view if a view with outer join is needed as selection method of a sear...原创 2011-10-20 10:46:59 · 72 阅读 · 0 评论 -
What is the Different Types and Usage of Views
source:http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htmThe followings are different types of views:- Database View (SE11)Database views are implement an inn...原创 2011-10-19 23:06:09 · 99 阅读 · 0 评论 -
get statusname for background job
Line number:3394 in include program LBTCHFXX[code="java"] CASE p_sel_joblist-status. WHEN 'A'. output_joblist-statusname = text-081(Canceled). output_joblist-slide_type_s...原创 2011-07-12 15:39:30 · 102 阅读 · 0 评论 -
Business Transaction Events (BTE)
There are 2 types of BTE: (1) Publish & Subscribe interfaces: These interfaces inform external software that certain events have taken place in an SAP standard application and provide them with...原创 2011-07-07 15:46:39 · 182 阅读 · 0 评论 -
Display ALV Grid (OOP) Fullscreen
see attached原创 2011-03-01 17:06:32 · 115 阅读 · 0 评论 -
FM FI_AA_VALUES_CALCULATE
[code="java"] SELECT SINGLE * FROM anlc WHERE bukrs EQ int_tab-bukrs AND anln1 EQ int_tab-anln1 AND ...原创 2011-06-23 10:21:05 · 231 阅读 · 0 评论 -
Hide block in selection screen
[code="java"]REPORT ztest.TABLES: bkpf.SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME TITLE text-001.PARAMETERS: p_bukrs LIKE t001-bukrs MODIF ID tst.SELECT-OPTIONS: s_gjahr FOR bkpf-gjah...原创 2011-06-21 11:01:34 · 84 阅读 · 0 评论 -
Maintain contact person in customer master
[code="java"]REPORT ztest.*--------------------------------------------------------------------** VARIABLE DEFINITION*--------------------------------------------------------------------*...原创 2011-02-24 17:42:32 · 409 阅读 · 0 评论 -
Upload a Comma Delimited CSV file that contains commas in data
source:http://wiki.sdn.sap.com/wiki/display/Snippets/Upload+a+Comma+Delimited+CSV+file+that+contains+commas+in+dataSome Comma Delimited CSV files will contain commas in the data fields and this ca...原创 2011-09-23 17:22:53 · 256 阅读 · 0 评论 -
What is the difference between SET SCREEN and CALL SCREEN ?
source:http://www.saptechies.com/what-is-the-difference-between-set-screen-and-call-screen[b]With SET SCREEN[/b], the current screen simply specifies the next screen in the chain. control branches...原创 2011-09-19 21:50:16 · 100 阅读 · 0 评论 -
Automatically release bdc session
[code="java"] SUBMIT rsbdcsub WITH mappe EQ p_batch "Session WITH von EQ sy-datum "Created on from WITH bis EQ sy-datum "Created on to ...原创 2011-04-12 16:34:04 · 84 阅读 · 0 评论 -
get status name for batch input session
Line 601 in program SAPMSBDC_CC[code="java"]loop at itab_apqi. case itab_apqi-qstate. when ' '. call function 'ICON_CREATE' exporting name = icon_create...原创 2012-01-31 14:47:45 · 107 阅读 · 0 评论 -
Handy SAP function module to automate user events
*Begin-Auto triggers ENTER command CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE' EXPORTING functioncode = 'ENTER' EXCEPTIONS function_not_s...原创 2013-11-28 09:49:24 · 135 阅读 · 0 评论 -
Unpermitted combination of business object BUS2032 and sales doc. category H
Q: create New Sales Order using BAPI: BAPI_SALESORDER_CREATEFROMDAT2, but get the error message:Unpermitted combination of business object BUS2032 and sales doc. category H.A:This is a shortcoming...原创 2013-01-25 14:20:59 · 1339 阅读 · 0 评论 -
Function Module: get all users who have specific role
CALL FUNCTION 'RSRA_USERS_OF_AGR_GET' EXPORTING i_agr_name = role TABLES activity_groups_users = lt_agr_users EXCEPTIONS no_user_availabl...原创 2013-01-25 14:16:31 · 78 阅读 · 0 评论 -
set Billing block to blank for Sals Order
FM: SD_WF_ORDER_DEL_BILLING_BLOCK原创 2013-04-17 15:16:47 · 136 阅读 · 0 评论 -
set Billing block to blank for Sals Order
FM: SD_WF_ORDER_DEL_BILLING_BLOCK原创 2013-04-17 15:16:45 · 108 阅读 · 0 评论 -
Create a SELECT-OPTIONS in a module pool screen
source:http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.htmlCreate a SELECT-OPTIONS in module pool screen using two methods as shown.Method 1a) Create a subsc...原创 2012-03-07 15:35:20 · 84 阅读 · 0 评论 -
Calculate the days, months and years between 2 dates.
[code="java"]FORM compute_2date_diff. DATA: lv_date1 LIKE sy-datum, lv_date2 LIKE sy-datum, lv_month TYPE pea_scrmm, lv_days TYPE pea_scrdd.*lv_date1 must be greater t...原创 2012-02-21 16:14:42 · 115 阅读 · 0 评论 -
Retrieving Domain fixed values
source:http://www.saptechnical.com/Tips/ABAP/Domain/FixedValues.htmThe F4 for screen field can be fetched either through value table, explicit F4 help or through fixed values associated with the d...原创 2012-02-16 11:13:08 · 108 阅读 · 0 评论 -
If 1 equals 2, what’s the purpose?
source:http://sapport.blogspot.com/2010/03/if-1-equals-2-whats-purpose.htmlWhile debugging standard SAP ABAP code you might find for first look very strange code like following: If 1 EQ 2.ME...原创 2012-02-16 10:59:48 · 121 阅读 · 0 评论 -
create zip folder with cl_abap_zip
[code="java"]REPORT ztest.DATA: gv_file_length TYPE i, gv_filehexcontent TYPE xstring, gv_zipfilehex TYPE xstring, gt_filebincontent TYPE solix_tab, gt_zipfileb...原创 2011-12-05 18:11:57 · 101 阅读 · 0 评论 -
MIRO
from: http://help-sap.blogspot.com/2011/01/miro.html, http://space.itpub.net/9859323/viewspace-684596If you want to mimic the quantity shown in MIRO (transaction) while posting incoming inv...原创 2011-11-29 10:39:37 · 464 阅读 · 0 评论 -
Create Vendor or Customer_master Data
To Create or Change Vendor_master date(XK01,XK02) or Customer Master date (XD01,XD02)* Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See note 384462* Starting with...原创 2011-11-23 16:22:40 · 175 阅读 · 0 评论 -
Export form graphic to local PC
[code="java"]REPORT ztest.DATA: w_size TYPE i, w_graphic_xstr TYPE xstring.*Internal tableDATA: BEGIN OF it_graphic_table OCCURS 0, line(255) TYPE x, END OF it_graphi...2011-02-14 11:17:29 · 104 阅读 · 0 评论 -
cl_gui_frontend_services=>file_open_dialog
[code="java"]CALL METHOD cl_gui_frontend_services=>file_open_dialog EXPORTING window_title = 'Select CSV file' file_filter = 'CSV File|*.CSV' CHANGING ...原创 2011-09-09 09:21:42 · 281 阅读 · 0 评论 -
determine whether the character is multibyte character
FM: NLS_VISUAL_CHARLEN. if LEN_VISUAL is greater than 1, then the character is multibyte character原创 2010-12-29 15:23:26 · 75 阅读 · 0 评论 -
Send an email with well formatted excel as attachment
[code="java"]REPORT zemail.TABLES: adr6. "E-Mail Addresses (Business Address Services)TYPE-POOLS: sbdst, soi.*--------------------------------------------------------------------** SEL...2010-12-23 11:14:16 · 189 阅读 · 0 评论 -
retrieve asset planned depreciation value
[code="java"]REPORT ztest.TYPE-POOLS: slis.TABLES: anla, anlb, anlc, anlz, t093d.*-------------------------------------------------------------------...2010-12-21 16:52:10 · 152 阅读 · 0 评论 -
Sending Mails - ABAP
http://wiki.sdn.sap.com/wiki/display/ABAP/Sending+Mails+-+Home+Page原创 2010-12-20 16:12:43 · 92 阅读 · 0 评论 -
FM POSTING_INTERFACE_CLEARING usage
[code="java"]REPORT ztest.*--------------------------------------------------------------------** INTERNAL TABLE DECLARATION*-----------------------------------------------------------------...原创 2010-09-16 14:39:32 · 699 阅读 · 0 评论 -
ABAP: For All Entries
[code="java"]... FOR ALL ENTRIES IN itab WHERE ... col operator itab-comp ...[/code] With duplicated rows in the resulting set, the addition FOR ALL ENTRIES has the same effect as if addition DIS...原创 2010-06-18 22:55:07 · 131 阅读 · 0 评论 -
Read & Write Operations on App.Server Files Using CL_RSAN_UT_APPSERV_FILE_READER
[b]Class Methods used in the sample Code[/b]CL_RSAN_UT_FILES F4 F4 Help for Choosing File Name from GUI or App. ServerCL_RSAN_UT_APPSERV_FILE_WRITER: APPSERVER_FILE_WRITE Write Data to Spec...原创 2011-04-14 16:57:30 · 148 阅读 · 0 评论 -
Get Billing Invoice according to Billing document number
If we only have the billing document number and company code, how can we retrieve the billing invoice? we can use the function moudle 'AC_DOCUMENT_RECORD', just like this:[code="java"] call funct...2010-05-31 22:28:20 · 105 阅读 · 0 评论 -
Avoid cell merge in ALV when sort
Use the functiom module to display alv 'REUSE_ALV_GRID_DISPLAY_LVC ', there is a field in fieldcatalog, named no_merging, set it to 'X'.2010-05-18 10:47:54 · 82 阅读 · 0 评论 -
Customize subtotal text and grandtotal text in ALV
REPORT zalv_test.TABLES: ekko.TYPE-POOLS:slis.TYPES: BEGIN OF x_data, ebeln TYPE char30, ebelp TYPE ebelp, matnr TYPE matnr, matnr1 TYPE matnr, ntgew TYPE entge,[img][/img]...原创 2010-02-23 17:09:27 · 168 阅读 · 0 评论 -
create folder in application server
http://www.sapfans.com/forums/viewtopic.php?t=275857原创 2010-12-15 17:05:15 · 61 阅读 · 0 评论