Project Record: RCM Program–Change Delivery Date in VMS Action

20080131090020985


The program development processing detail for recording my work.

1: Create table for this program

Table DefinitionNUGG_ZSDCCMG.nugg

2: Create table maintainance view

image

3. Translation to Chinese version

image
4. Create T-code for table maintainance

image

5. Program change:
Delevery Date change function get:
Client 200, vehcle model: -X25C  Action Code: ZO10
According to the ABAP stack, I should check the function module ZSDVELOD_CHECK_DATE

6. Get CCM value:

image

7. Date caculation
Function Module:
FACTORYDATE_CONVERT_TO_DATE
DATE_CONVERT_TO_FACTORYDATE

8. Modify function for Create new vehicle and Sales Order
Action: ZO10 ZO11 ZO15 ZO16
Add Code:
* Add by bob with TR: LDEK900449
data: ls type BAPICUVAL, ls1 type ZSDCCMG.
data: conf_ls type VLCBAPICU.
if read_ccm = ‘B’.
loop at conf into conf_ls.
READ TABLE CONF_ls-VCUVAL into ls with KEY CHARC = ‘SD_C0000′.
if sy-subrc = 0.
select SINGLE * from ZSDCCMG into ls1 where ZCCMCODE = ls-VALUE.
if sy-subrc = 0.
fdate = fdate + ls1-ZBBAVE_TIME.
endif.
endif.
exit.
endloop.
endif.
* End Add

8. Modify function for Create SO based on existing vehicle
Testing data: 0050000962~0050000971
Action: ZO00 ZO03
Add Code:
* Add by bob with TR LDEK900449
data: ccm_info type ZSDVMSCCM.
data: ccm_cus  type ZSDCCMG.
if not vhead-kunwe is initial.
select SINGLE * from ZSDVMSCCM into ccm_info where VGUID = gui_id.
if sy-subrc = 0.
if ccm_info-ZDATAPRCCM is not INITIAL and ccm_info-ZDATAFINPRCCM is not INITIAL.
days = days + ( ccm_info-ZDATAFINPRCCM – ccm_info-ZDATAPRCCM + 1 ).
else.
select SINGLE * from ZSDCCMG into ccm_cus where ZCCMCODE = ccm_info-ZCCM.
if sy-subrc = 0.
days = days + ccm_cus-ZBBAVE_TIME + ccm_cus-ZTRANSADD_TIME.
endif.
endif.
endif.
endif.
* End add


About The Author

从事SAP行业有些年头,对SAP技术稍有了解; 如无特别声明,本博客文章为原创,转载请注明; 博主MSN:xuchunbo0901@hotmail.com; 博主邮箱:bob.xu@abaptech.com。

1 Comment

Leave A Reply


注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。

无觅相关文章插件,快速提升流量