Applied special sapnote snote not complete manual change abap program(se38),function module(se37),business object(swo1)

** Myself
ตัวอย่างนี้เป็นการแก้ของ SAP Note อันนึงครับที่ ไม่สามารถ import ด้วย snote แล้ว สมบูรณ์แต่เป็นการ applied แบบ manual ผสมไปด้วย Note 1130159  ซึ่งมี prerequire 837537, 850258(211345,213394,364495,423484)
อันนี้นอกเรื่องครับ คือสาเหตุเกิดจากการ applied support package บน CRM แล้วทำให้ไม่สามารถคุยกับ R3ได้บาง bapi ครับ

Step Apply 837537, 850258 (211345,213394,364495,423484), and 1130159 for solve issue SAP CCC CRM/BW to 66

***Note 1130159 pre require 850258
***Note 850258 depend on 211345,213394,364495,423484 and require 837537
***Note 837537 not require note
Step On DEV SCG (client 039)
1) se01
--create workbench--DEVK9A2DIW
clip_image002[4]
Step Apply 837537
Prerequisite change function module “SD_SALESDOCUMENT_CHANGE“
### อันนี้คือการแก้ function module ครับ

2) se37
-- SD_SALESDOCUMENT_CHANGE--change
clip_image004[4]
### ต้องไปขอ object key ใน service.sap.com/sscr ก่อน

Require object key
clip_image006[4]
Key: 34961871950837383885
### อันนี้คือการเพิ่ม parameter ใน function module
--import (Create new parameter)
clip_image008[4]
--NO_STATUS_BUF_INIT LIKE BAPIFLAG-BAPIFLAG SPACE No status buffer refresh
clip_image010[4]
--save & activate
3) snote
### การ apply sap note แต่ระบบ ต้องคุยกับ oss ได้ก่อนครับ
--download 837537
clip_image012[4]
--Apply
clip_image014[4]
### ถ้า source code ไม่ add ให้ ต้อง check ก่อนหรือ add เองครับต้องดูหน่อยครับ
--Check source But not found problem source code because manual change it (ignore warning).
clip_image016[4]
clip_image018[4]
--Yes for finish Apply 837537
Step Apply 850258

### อันนี้ทำเหมือนเดิมครับข้ามไปเลยได้
4) Prerequisite change function module BAPI 5 module
BAPI_SALESORDER_CHANGE
BAPI_CUSTOMERINQUIRY_CHANGE
BAPI_CUSTOMERQUOTATION_CHANGE
BAPI_CUSTOMERCONTRACT_CHANGE
BAPI_CUSTOMERRETURN_CHANGE
se37
-- BAPI_SALESORDER_CHANGE
--change
Require object key
clip_image020[4]
Key: 31772853821539891083
--import (Create new parameter)
-- NO_STATUS_BUF_INIT LIKE BAPIFLAG-BAPIFLAG SPACE Do not refresh the status buffer clip_image022[4]
--save & activate
se37
-- BAPI_CUSTOMERINQUIRY_CHANGE
--change
Require object key
clip_image024[4]
Key: 25378770313696214805
--import (Create new parameter)
-- NO_STATUS_BUF_INIT LIKE BAPIFLAG-BAPIFLAG SPACE Do not refresh the status buffer clip_image026[4]
--save & activate
se37
-- BAPI_CUSTOMERQUOTATION_CHANGE
--change
Require object key
clip_image028[4]
Key: 00035933242676772186
--import (Create new parameter)
-- NO_STATUS_BUF_INIT LIKE BAPIFLAG-BAPIFLAG SPACE Do not refresh the status buffer clip_image030[4]
--save & activate
BAPI_CUSTOMERRETURN_CHANGE
se37
-- BAPI_CUSTOMERCONTRACT_CHANGE
--change
Require object key
clip_image032[4]
Key: 32724900850234543818
--import (Create new parameter)
-- NO_STATUS_BUF_INIT LIKE BAPIFLAG-BAPIFLAG SPACE Do not refresh the status buffer clip_image033[4]
--save & activate
se37
-- BAPI_CUSTOMERRETURN_CHANGE
--change
Require object key
clip_image035[4]
Key: 02799036990177388881
--import (Create new parameter)
-- NO_STATUS_BUF_INIT LIKE BAPIFLAG-BAPIFLAG SPACE Do not refresh the status buffer clip_image037[4]
--save & activate
5) snote
--download 850258
clip_image039[4]
--Apply
--download dependency notes
clip_image041[4]
clip_image043[4]
clip_image045[4]
clip_image047[4]

### อันนี้เป็นวิธีการแก้ไข BOR เป็น Object abap ครับ
Step Apply 1130159
6) Prerequisite change BOR Method for Business object 5 BOR
BUS2030
BUS2031
BUS2032
BUS2034
BUS2102


### T-code แก้ BOR
swo1
-- BUS2030--change
clip_image049[4]
Require object key
clip_image051[4]
Key: 18086723881366713952
--select method “CustomerInquiry.Change” -- parameters
clip_image053[4]
--new parameters --“NoStatusBufInit“--No
clip_image055[4]

### สร้าง parameter ใน method
--new parameters --
NoStatusBufInit“--No (without ABAP Dictionary field proposals)
Description............: K. Init Stat Buffer
Short text.............: No refresh of buffer status
Parameter attributes.:
Import................: X
Name in function module........: NO_STATUS_BUF_INIT
.......Reference table.......: BAPIFLAG
Reference field : BAPIFLAG
clip_image057[4]
clip_image059[4]

--save new parameter in request
clip_image061[4]
--import (Create new parameter)
-- BUS2031--change


clip_image063[4]
Key: 00971851571474922035
--select method “CustomerOuotation.Change” -- parameters
--new parameters --
NoStatusBufInit“--No (without ABAP Dictionary field proposals)
Description............: K. Init Stat Buffer
Short text.............: No refresh of buffer status
Parameter attributes.:
Import................: X
Name in function module........: NO_STATUS_BUF_INIT
.......Reference table.......: BAPIFLAG
Reference field : BAPIFLAG
--save new parameter in request



--import (Create new parameter)
-- BUS2032--change

clip_image065[4]
Key: 30121188232962325698
--select method “SalesOrder.ChangeFromData” -- parameters
--new parameters --
NoStatusBufInit“--No (without ABAP Dictionary field proposals)
Description............: K. Init Stat Buffer
Short text.............: No refresh of buffer status
Parameter attributes.:
Import................: X
Name in function module........: NO_STATUS_BUF_INIT
.......Reference table.......: BAPIFLAG
Reference field : BAPIFLAG
--save new parameter in request


--import (Create new parameter)
-- BUS2034--change

clip_image067[4]
Key: 22734095013683221095
--select method “CustomerContract.ChangeFromData” -- parameters
--new parameters --
NoStatusBufInit“--No (without ABAP Dictionary field proposals)
Description............: K. Init Stat Buffer
Short text.............: No refresh of buffer status
Parameter attributes.:
Import................: X
Name in function module........: NO_STATUS_BUF_INIT
.......Reference table.......: BAPIFLAG
Reference field : BAPIFLAG
--save new parameter in request
--import (Create new parameter)
-- BUS2102--change
clip_image069[4]
Key: 41159169733983458469
--select method “CustomerReturn.Change” -- parameters
--new parameters --
NoStatusBufInit“--No (without ABAP Dictionary field proposals)
Description............: K. Init Stat Buffer
Short text.............: No refresh of buffer status
Parameter attributes.:
Import................: X
Name in function module........: NO_STATUS_BUF_INIT
.......Reference table.......: BAPIFLAG
Reference field : BAPIFLAG
--save new parameter in request
7) Delete program source code in each method for five Business object
BUS2030
BUS2031
BUS2032
BUS2034
BUS2102

### *** อันนี้เป็นการ delete source code เดิม แล้วระบบ จะ auto generate new source ที่เหมาะสมให้เราเอง ใน method ที่ add parameter ไปใหม่ครับ
--sw01-- BUS2030
CustomerInquiry.Change--change--
Delete line 94--190--save--back
clip_image071[4]
--select cursor on method--select program--
clip_image073[12]
Yes
-- Check source code add at line 200-302
clip_image075[4]
Save--back--save
clip_image077[4]
-- Click Generate object type
--sw01-- BUS2031
CustomerQuotation.Change--change--
Delete line 114--End-Method --save--back
clip_image079[4]
--select cursor on method--select program--
clip_image073[13]
Yes
--  Check source code add at line 230-END
clip_image081[4]
Save--back--save
clip_image083[4]
è Click Generate object type
--sw01-- BUS2032
SalesOrder.ChangeFromData--change--
Delete line 453--End-Method --save--back
clip_image085[4]
--select cursor on method--select program--
clip_image073[14]
Yes
--  Check source code add at line 611-END
clip_image087[4]
Save--back--save
clip_image089[4]
· Click Generate object type
--sw01-- BUS2034
SalesOrder.ChangeFromData--change--
Delete line 114--End-Method --save--back
clip_image091[4]
--select cursor on method--select program--
clip_image073[15]
Yes
-- Check source code add at line 230-END
clip_image093[4]
Save--back--save
clip_image095[4]
--  Click Generate object type
--sw01-- BUS2102
CustomerReturn.Change--change--
Delete line 136--End-Method --save--back
clip_image097[4]
--select cursor on method--select program--
clip_image073[16]
Yes
-- Check source code add at line 163-END
clip_image099[4]
Save--back--save
clip_image101[4]
-- Click Generate object type

0 comments:

Loading