因錯位的欄位會出現在中文字的後一個欄位
所以需要算出原本8300的字元數與4110的字元數差異後
才知道下一欄要放多少位移數。
Ex:
t_text+57(40) = field.
之後要計算 下一個欄位要開始的位置~
call function 'SCMS_STRING_TO_XSTRING'
exporting
text = field ---> 中英文混雜字串
mimetype = 'C'
encoding = '8300' ---> 以8300 編碼轉換
importing
buffer = out_str. -->轉換出來的文字字串
len_in_byte = xstrlen( out_str ). >計算出8300的長度
len_in_char = strlen( field ). ---> unicode長度
diff = len_in_byte - len_in_char. ----> 計算 unicode 與非 unicode 長度差異
unicode 長度<=編碼8300的長度
pos = 57 + ( 40 - diff ) . ---> 計算下一個欄位的位置
所以下一個欄位
t_text+pos(n) = xxxx.
2011年9月9日 星期五
Upload/Download SAPScript Form
T-Code:SE38
Program Name: RSTXSCRP
Download:
在畫面Object Name輸入要下載的Form名稱
Mode選擇Export
File Name輸入下載入徑
Upload: (如果要更改上傳Form Name,需打開文字檔將舊檔名至文字檔更新為新檔名後存檔)
在畫面Object Name輸入要上傳的Form名稱
Mode選擇IMPORT
File Name輸入上傳入徑
Program Name: RSTXSCRP
Download:
在畫面Object Name輸入要下載的Form名稱
Mode選擇Export
File Name輸入下載入徑
Upload: (如果要更改上傳Form Name,需打開文字檔將舊檔名至文字檔更新為新檔名後存檔)
在畫面Object Name輸入要上傳的Form名稱
Mode選擇IMPORT
File Name輸入上傳入徑
MB1C - Message No. M7093
事由:當A Plant 將料送至B Plant作加工,這時B廠收901收料時,不能產生GL Account。
執行MB1C時發生以下Error Message
Fld selectn for mvmt type 901 / acct 7480000 differs for Customer goods movement(015)
1.T-code: SE38.
Program Name: RM07CUFA
2.原因Mvt: 901在Account Grouping設定為1.管價不管量 2.管價也管量..
而B Plant該Material Type:ROH 設定為管量又管價會產生GL Account...
故修正B Plant作901時管量不管價,不會觸發Account.
PS 相關IMG
.Logistics -General/MM/Basic Settings/Material Types/Define Attriubtes of Material Types.
.MM/Inventory Management and Physical Inventory/Movement Types/Copy, Change Movement Types.
.MM/Valuation and Account Assignment/Account Determination/Account Determinatin Without Wizard/Configure Automatic Postings.
執行MB1C時發生以下Error Message
Fld selectn for mvmt type 901 / acct 7480000 differs for Customer goods movement(015)
1.T-code: SE38.
Program Name: RM07CUFA
2.原因Mvt: 901在Account Grouping設定為1.管價不管量 2.管價也管量..
而B Plant該Material Type:ROH 設定為管量又管價會產生GL Account...
故修正B Plant作901時管量不管價,不會觸發Account.
PS 相關IMG
.Logistics -General/MM/Basic Settings/Material Types/Define Attriubtes of Material Types.
.MM/Inventory Management and Physical Inventory/Movement Types/Copy, Change Movement Types.
.MM/Valuation and Account Assignment/Account Determination/Account Determinatin Without Wizard/Configure Automatic Postings.
2011年8月31日 星期三
AFAB Message No.AA776
4.7版本的AFAB需自己在程式加註Message警告Number Range需內部給號
所以Technology Upgrade後如果設定為外部給號時
便會產生Message No.AA776要求內部給號
解決方法T-Code:FBN1將外部給號打勾取消
Note:890976
所以Technology Upgrade後如果設定為外部給號時
便會產生Message No.AA776要求內部給號
解決方法T-Code:FBN1將外部給號打勾取消
Note:890976
2011年8月21日 星期日
MIRO - Error RW011 ( No subsequent document found in Accounting )
在升級時碰到MIR7發現無法找到FI doc.
原因是Logical System在後來被修改過而造成的
檢查方法參照 Note 781498
請Basis修正該錯誤參照Note 446294
Note 781498
Symptom
You display a logistic invoice via transaction 'Display invoice document'
(MIR4). When you click on the button 'Follow-on documents' you receive the
message 'No subsequent document found in Accounting' (RW011).
Solution
Using transaction SE16, table RBKP, enter document number, Fiscal Year.
Check the value of logical system, field LOGSYS.
Using transaction SE16, table T000, check logical system maintained for the
client. If there is a change in logical system the link to follow-on
documents in financial accounting is lost. To correct this please refer to
the note 28958. Please also refer to the other related notes.
Note 446294
Symptom
Following a client copy, entities still have the old logical system name of the source client.
The workflow cannot use or forward on objects that were created in the source client.
Consequently, you can no longer branch to the relevant accounting document when you display the material document in transaction MB03, for example. The M7082 message appears instead:
Material document & does not include an accounting document
Solution
Define a logical system using transaction BD54 and assign it to the target client using the client administration (transaction SCC4).
If the client was already copied, you can still convert the logical system, if necessary, using transaction BDLS.
The logical system name is not converted automatically by the client copy until after Release 4.6C with SAPKB46C21 or 4.6D with SAPKB46D08. However, a prerequisite for this is that the target client already has a logical system name before the copy is started.
With client transports the attached correction 407854 or 407856 is also required (comes with SAPKB46C32, SAPKB46D21 or SAPKB61017).
原因是Logical System在後來被修改過而造成的
檢查方法參照 Note 781498
請Basis修正該錯誤參照Note 446294
Note 781498
Symptom
You display a logistic invoice via transaction 'Display invoice document'
(MIR4). When you click on the button 'Follow-on documents' you receive the
message 'No subsequent document found in Accounting' (RW011).
Solution
Using transaction SE16, table RBKP, enter document number, Fiscal Year.
Check the value of logical system, field LOGSYS.
Using transaction SE16, table T000, check logical system maintained for the
client. If there is a change in logical system the link to follow-on
documents in financial accounting is lost. To correct this please refer to
the note 28958. Please also refer to the other related notes.
Note 446294
Symptom
Following a client copy, entities still have the old logical system name of the source client.
The workflow cannot use or forward on objects that were created in the source client.
Consequently, you can no longer branch to the relevant accounting document when you display the material document in transaction MB03, for example. The M7082 message appears instead:
Material document & does not include an accounting document
Solution
Define a logical system using transaction BD54 and assign it to the target client using the client administration (transaction SCC4).
If the client was already copied, you can still convert the logical system, if necessary, using transaction BDLS.
The logical system name is not converted automatically by the client copy until after Release 4.6C with SAPKB46C21 or 4.6D with SAPKB46D08. However, a prerequisite for this is that the target client already has a logical system name before the copy is started.
With client transports the attached correction 407854 or 407856 is also required (comes with SAPKB46C32, SAPKB46D21 or SAPKB61017).
2011年8月11日 星期四
T-code: SPAU Adjusting Repository Objects
升級後check standard programs、 enhancement、Sapscript Form、Table。
http://help.sap.com/erp2005_ehp_04/helpdata/EN/2e/6d66587d9011d396b60000e82de14a/frameset.htm
http://help.sap.com/erp2005_ehp_04/helpdata/EN/2e/6d66587d9011d396b60000e82de14a/frameset.htm
OBSOLETE Table Check Function
尋找已不用的Function在以下Table的Obsolete欄位輸入X
可查尋出已不用的Function
下表列資訊為替代後的可用Function
**-- 以下資訊引用自 http://heart2news.wordpress.com/2009/08/15/whats-new-in-sap-ecc6-for-abap/ 版權為Heart 2 News的aumja24所有
Item | Obsolete Functions | Replacement Suggested |
1 | POPUP_TO_CONFIRM_WITH_MESSAGE | POPUP_TO_CONFIRM |
2 | POPUP_TO_CONFIRM_STEP | POPUP_TO_CONFIRM |
3 | WS_FILENAME_GET | CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG |
4 | WS_UPLOAD | GUI_UPLOAD or CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD |
5 | HELP_VALUES_GET_WITH_TABLE | F4IF_INT_TABLE_VALUE_REQUEST |
6 | POPUP_TO_DECIDE | POPUP_TO_CONFIRM |
7 | WS_DOWNLOAD | GUI_DOWNLOAD or CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD |
8 | NAMETAB_GET | DDIF_NAMETAB_GET |
9 | GET_FIELDTAB | DDIF_NAMETAB_GET or CACS_GET_TABLE_FIELDS or CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME |
10 | UPLOAD | GUI_UPLOAD or CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD |
11 | HELP_VALUES_GET_NO_DD_NAME | F4IF_INT_TABLE_VALUE_REQUEST |
12 | DOWNLOAD | GUI_DOWNLOAD or CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD |
13 | WS_QUERY | CL_GUI_FRONTEND_SERVICES=>FILE_EXIST or CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST |
14 | HELPSCREEN_NA_CREATE | HELP_OBJECT_SHOW |
15 | FI_DOCUMENT_ARCH_READ_SINGLE | FI_DOCUMNT_ARCH_READ_SGL_BELNR |
16 | GRAPH_SET_CUA_STATUS | |
17 | HELP_VALUES_GET_WITH_VALUE | F4IF_INT_TABLE_VALUE_REQUEST |
18 | LOG_SYSTEM_GET_RFC_DESTINATION | |
19 | POPUP_TO_CONFIRM_LOSS_OF_DATA | POPUP_TO_CONFIRM |
20 | CD_EVALUATION_PERIODS | |
21 | WS_FILE_DELETE | CL_GUI_FRONTEND_SERVICES=>FILE_DELETE |
22 | TRANSFER_NAMES_TO_FIELDS | F4IF_INT_TABLE_VALUE_REQUEST |
23 | SWW_WI_TO_OBJECT_FIND | |
24 | CONVERT_TEXT | |
25 | GRAPH_DIALOG | |
26 | HELP_VALUES_GET_WITH_TABLE_EXT | F4IF_INT_TABLE_VALUE_REQUEST |
27 | HR_DISPLAY_BASIC_LIST | REUSE_ALV_GRID_DISPLAY or REUSE_ALV_GRID_DISPLAY_LVC |
28 | POPUP_TO_DECIDE_WITH_MESSAGE | POPUP_TO_CONFIRM |
29 | WS_EXECUTE | CL_GUI_FRONTEND_SERVICES=>EXECUTE |
30 | DISPLAY_BASIC_LIST | REUSE_ALV_GRID_DISPLAY or REUSE_ALV_GRID_DISPLAY_LVC |
31 | CONVERT_DATE_INPUT | CONVERT_DATE_TO_INTERNAL |
32 | HR_MX_GET_PAY_AREA_PERIOD | |
33 | GUI_RUN | CL_GUI_FRONTEND_SERVICES=>EXECUTE |
34 | MIGO_GR_CREATE | |
35 | STRING_CENTER | WRITE … TO … CENTERED statement |
36 | TABLE_COMPRESS | See CL_ABAP_GZIP Class methods |
37 | TR_RELEASE_COMM | TR_RELEASE_REQUEST (Not released in 4.7) |
38 | WWW_GET_URL | |
39 | WWW_GET_MIME_OBJECT | See CL_MIME_REPOSITORY_API class |
40 | HELP_VALUES_GET_WITH_DD_TABLE | F4IF_INT_TABLE_VALUE_REQUEST |
41 | SET_DOWNLOAD_AUTHORITY | |
42 | SKTX_DIRECTORY_SELECT | |
43 | SOTR_COMMENT_POPUP_EDIT | |
44 | GET_FIELDTAB | ‘DDIF_NAMETAB_GET’ or ’DDIF_FIELDINFO_GET’ |
45 | POPUP_TO_GET_VALUE | ‘POPUP_GET_VALUES’ |
46 | GUI_GET_FILE_INFO | CL_GUI_FRONTEND_SERVICES=>FILE_GET_SIZE |
47 | OILPR_LAST_DAY_OF_MONTH | OIL_LAST_DAY_OF_MONTH |
48 | OIUCM_DATE_SUBTRACT_MONTH | OIL_DATE_SUBTRACT_MONTH |
49 | POPUP_FOR_INFO | POPUP_TO_CONFIRM |
50 | POPUP_TO_CONFIRM_WITH_VALUE | POPUP_TO_CONFIRM |
51 | POPUP_TO_CONFIRM_WITH_VALUE_2 | POPUP_TO_CONFIRM |
52 | CAMA_CHAR_ALLOCATE_GLOB_DEP | |
53 | CAMA_CHAR_VAL_ALLOCAT_GLOB_DEP | |
54 | CARD_CHAR_READ_DEP | |
55 | CARD_CHAR_VAL_READ_DEP | |
56 | FORMAT_TEXTLINES_DBCS | |
57 | HELP_VALUES_GET | |
58 | HELP_VALUES_GET_WITH_DD_TABLE | |
59 | HELP_VALUES_GET_WITH_MACO | |
60 | POPUP_TO_CONFIRM_WITH_VALUE | |
61 | SAP_TO_ISO_CURRENCY_CODE | |
62 | SAP_TO_ISO_MEASURE_UNIT_CODE | |
63 | WS_EXCEL | |
64 | WS_MSG |
訂閱:
文章 (Atom)