MM-MM06E005 향상된 활성화 노트 정보
13299 단어 Note
Now, in order to be able to use the sample source code, you must create field ZZFLAG on the header level of the document and field ZZFIELD on the item level.Double-click on Include table CI_EKKODBEnter the following values:
Save and activate the include table.Double-click on Include table CI_EKPODBEnter the following values:
Save and activate the include table.In order to activate the sample source code, you additionally have to carry out the following changes on screens 0101 and 0111.
1. Screen 0101: Create the following fields:
"Checkbox"Name: EKKO_CI-ZZFLAG
2. Screen 0111: Create the following fields:
"Input/output field"Name: EKPO_CI-ZZFIELD
"Pushbutton"Name: BUTTON
FctCode: ZZDETERMINE
The following assignments apply to the sample source code:EXIT_SAPMM06E_006-->ZXM06F36EXIT_SAPMM06E_007-->ZXM06F38EXIT_SAPMM06E_008-->ZXM06F37EXIT_SAPMM06E_009-->ZXM06F39EXIT_SAPMM06E_016-->ZXM06F41EXIT_SAPMM06E_017-->ZXM06F42EXIT_SAPMM06E_018-->ZXM06F40Copy the source code from the attachment and insert it into the corresponding function modules. Save and activate the function modules.Create the following variables in the corresponding TOP include in order not to get any syntax errors:** INCLUDE ZXM06TOP*data: gl_aktyp type c,gl_no_screen type c,gl_rekko like ekko,gl_ekko_ci like ekko_ci,gl_ekpo_ci like ekpo_ci,gl_ekpo like ekpo,gl_ucomm like sy-ucomm.types: begin of ekpo_tab,ebeln like ekpo-ebeln,ebelp like ekpo-ebelp,ekpo like ekpo, end of ekpo_tab.data:gt_ref_ekpo_tab type table of ekpo_tab.Save and activate the TOP include.On header level, you can now store a character, X or space, via field ZZFLAG on the database with the document and read it also again.On item level, you can fill field ZZFIELD with a one-digit value and save it with the document. If you copy this document, the system displays an additional function button on tab page "Customer data". If you press this button, the value of the reference document is copied to field ZZFIELD.If you want to store the source code as sample source code in your system, start Transaction SMOD. Enter MM06E005 as an enhancement. Select "Components". Press "Change". Position the cursor on the corresponding module and choose "Sample code". Create the corresponding include and copy the source code from the note. Save the include. Note that, of course, syntax errors may occur when you check components. This is because the includes of the sample code are not integrated into a program but rather are completely independent and, therefore, do not have any relationship to each other either. For this reason, only save the include and do not activate or check it. The sample code has to be copied into the corresponding function modules in order to become active.If you use the user exit in the new purchase order, it is not guaranteed that the customer screen is always processed. To make sure that possible required fields are checked, include a corresponding message into the EXIT_SAPMM06E_012. This screen is always processed.
관련 코드:
*----------------------------------------------------------------------*<!--mce:0-->
* INCLUDE ZXM06F36 *<!--mce:1-->
*----------------------------------------------------------------------*<!--mce:2-->
<!--mce:3-->*<!--mce:4-->
* store transaction type for later modification of screen attributes<!--mce:5-->
*<!--mce:6-->
gl_aktyp = i_trtyp.<!--mce:7-->
<!--mce:8-->gl_no_screen = i_no_screen.<!--mce:9-->
<!--mce:10--><!--mce:11-->*<!--mce:12-->
* store current state of customer data in ekko_ci (structure for screen)<!--mce:13-->
*<!--mce:14-->
ekko_ci = i_ci_ekko.<!--mce:15-->
<!--mce:16-->*<!--mce:17-->
* store reference document<!--mce:18-->
*<!--mce:19-->
if i_rekko-ebeln ne gl_rekko-ebeln and<!--mce:20-->
not i_rekko-ebeln is initial and<!--mce:21-->
gl_rekko-ebeln is initial.<!--mce:22-->
<!--mce:23--> ekko_ci-zzflag = i_rekko-zzflag.<!--mce:24-->
<!--mce:25--> gl_rekko = i_rekko.<!--mce:26-->
<!--mce:27-->endif.<!--mce:28-->
*----------------------------------------------------------------------*<!--mce:29-->
* INCLUDE ZXM06F37 *<!--mce:30-->
*----------------------------------------------------------------------*<!--mce:31-->
<!--mce:32-->*<!--mce:33-->
* e_ci_ekko is the returning parameter<!--mce:34-->
* gl_ekko_ci : values stored at PBO<!--mce:35-->
*<!--mce:36-->
<!--mce:37-->e_ci_ekko = gl_ekko_ci.<!--mce:38-->
<!--mce:39-->*<!--mce:40-->
* ekko_ci contains the actual values of the Dynpro fields<!--mce:41-->
* e_ci_update is only set if you really want the fields<!--mce:42-->
* on the Dynpro to be saved. You must set it then to 'X'<!--mce:43-->
* the field ekko_ci-zzflag will here only be saved if there<!--mce:44-->
* was a change and the transaction is not in display mode<!--mce:45-->
*<!--mce:46-->
<!--mce:47-->if gl_ekko_ci-zzflag ne ekko_ci-zzflag.<!--mce:48-->
e_ci_ekko-zzflag = ekko_ci-zzflag.<!--mce:49-->
if gl_aktyp ne 'A'.<!--mce:50-->
e_ci_update = 'X'.<!--mce:51-->
endif.<!--mce:52-->
endif.<!--mce:53-->
*----------------------------------------------------------------------*<!--mce:54-->
* INCLUDE ZXM06F38 *<!--mce:55-->
*----------------------------------------------------------------------*<!--mce:56-->
<!--mce:57-->*<!--mce:58-->
* store ekko to gl_ekko<!--mce:59-->
*<!--mce:60-->
move-corresponding i_ekko to gl_ekko_ci.<!--mce:61-->
*----------------------------------------------------------------------*<!--mce:62-->
* INCLUDE LXM06F39 *<!--mce:63-->
*----------------------------------------------------------------------*<!--mce:64-->
<!--mce:65-->clear: ekko_ci,<!--mce:66-->
ekpo_ci,<!--mce:67-->
gl_no_screen,<!--mce:68-->
gl_aktyp,<!--mce:69-->
gl_ekko_ci,<!--mce:70-->
gl_rekko,<!--mce:71-->
gl_ekpo,<!--mce:72-->
gl_ucomm.<!--mce:73-->
<!--mce:74-->refresh: gt_ref_ekpo_tab.<!--mce:75-->
*----------------------------------------------------------------------*<!--mce:76-->
* INCLUDE ZXM06F40 *<!--mce:77-->
*----------------------------------------------------------------------*<!--mce:78-->
*<!--mce:79-->
* move stored global values back to the returning structure<!--mce:80-->
*<!--mce:81-->
<!--mce:82-->e_ci_ekpo = gl_ekpo_ci.<!--mce:83-->
<!--mce:84-->*<!--mce:85-->
* in case the Button was clicked the value of ekpo_ci-zzfield<!--mce:86-->
* will be taken from the copied PO<!--mce:87-->
*<!--mce:88-->
<!--mce:89-->if i_ucomm = 'ZZDETERMINE'.<!--mce:90-->
<!--mce:91--> data: ls_ref_ekpo like line of gt_ref_ekpo_tab.<!--mce:92-->
<!--mce:93-->*<!--mce:94-->
* gt_ref_ekpo_tab contains all positions of the copied PO<!--mce:95-->
*<!--mce:96-->
<!--mce:97--> read table gt_ref_ekpo_tab into ls_ref_ekpo<!--mce:98-->
with key ebelp = gl_ekpo-ebelp.<!--mce:99-->
<!--mce:100--> if sy-subrc is initial.<!--mce:101-->
<!--mce:102--> ekpo_ci-zzfield = ls_ref_ekpo-ekpo-zzfield.<!--mce:103-->
<!--mce:104--> endif.<!--mce:105-->
<!--mce:106-->else.<!--mce:107-->
<!--mce:108-->*<!--mce:109-->
* return the function code of the Screen. This code will be handled<!--mce:110-->
* in the SAP program. It can only be handled if you use SAP function<!--mce:111-->
* codes<!--mce:112-->
*<!--mce:113-->
<!--mce:114--> e_ucomm = i_ucomm.<!--mce:115-->
endif.<!--mce:116-->
<!--mce:117-->*<!--mce:118-->
* ekko_ci contains the actual values of the Dynpro fields<!--mce:119-->
* e_ci_update is only set if you really want the fields<!--mce:120-->
* on the Dynpro to be saved. You must set it then to 'X'<!--mce:121-->
* the field ekko_ci-zzfield will here only be saved if there<!--mce:122-->
* was a change and the transaction is not in display mode<!--mce:123-->
*<!--mce:124-->
<!--mce:125-->if gl_ekpo_ci-zzfield ne ekpo_ci-zzfield.<!--mce:126-->
e_ci_ekpo-zzfield = ekpo_ci-zzfield.<!--mce:127-->
if gl_aktyp ne 'A'.<!--mce:128-->
e_ci_update = 'X'.<!--mce:129-->
endif.<!--mce:130-->
endif.<!--mce:131-->
*----------------------------------------------------------------------*<!--mce:132-->
* INCLUDE ZXM06F41 *<!--mce:133-->
*----------------------------------------------------------------------*<!--mce:134-->
<!--mce:135-->
data: ls_ref_ekpo like line of gt_ref_ekpo_tab.<!--mce:136-->
<!--mce:137-->
*<!--mce:138-->
* store transaction type for later modification of screen attributes<!--mce:139-->
*<!--mce:140-->
gl_aktyp = i_aktyp.<!--mce:141-->
<!--mce:142-->
gl_no_screen = i_no_screen.<!--mce:143-->
<!--mce:144-->
<!--mce:145-->
*<!--mce:146-->
* store current state of customer data in ekko_ci (structure for screen)<!--mce:147-->
*<!--mce:148-->
ekpo_ci = i_ci_ekpo.<!--mce:149-->
<!--mce:150-->
gl_ekpo = i_ekpo.<!--mce:151-->
<!--mce:152-->
if not i_rekpo-ebeln is initial and<!--mce:153-->
not i_ekpo-ebelp is initial.<!--mce:154-->
<!--mce:155-->
clear ls_ref_ekpo.<!--mce:156-->
<!--mce:157-->
read table gt_ref_ekpo_tab into ls_ref_ekpo<!--mce:158-->
with key ebelp = i_ekpo-ebelp.<!--mce:159-->
<!--mce:160-->
if ls_ref_ekpo-ekpo-ebeln ne i_rekpo-ebeln and<!--mce:161-->
ls_ref_ekpo-ekpo-ebelp ne i_rekpo-ebelp.<!--mce:162-->
<!--mce:163-->
ls_ref_ekpo-ebelp = i_ekpo-ebelp.<!--mce:164-->
ls_ref_ekpo-ekpo = i_rekpo.<!--mce:165-->
<!--mce:166-->
if sy-subrc is initial.<!--mce:167-->
modify gt_ref_ekpo_tab from ls_ref_ekpo index sy-tabix.<!--mce:168-->
else.<!--mce:169-->
append ls_ref_ekpo to gt_ref_ekpo_tab.<!--mce:170-->
endif.<!--mce:171-->
<!--mce:172-->
endif.<!--mce:173-->
<!--mce:174-->
endif.<!--mce:175-->
*----------------------------------------------------------------------*<!--mce:176-->
* INCLUDE ZXM06F42 *<!--mce:177-->
*----------------------------------------------------------------------*<!--mce:178-->
<!--mce:179-->
move-corresponding i_ekpo to gl_ekpo_ci.<!--mce:180-->
gl_ekpo = i_ekpo.<!--mce:181-->
note number:407975
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Zabbix의Graphid를 통해 이미지 다운로드--제2판api의 검색 방법은 ql와 같습니다.zabbix를 통해agent_host는 hostid를 찾았고 hostid와 itemkey에 따라itemid를 찾았으며 Itemid를 통해graphid를 찾았습니다.그리고 사진을 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.