cancel
Showing results for 
Search instead for 
Did you mean: 

Changing actual GI Date in ERP in OBD after GI posting by EWM

0 Kudos
3,016

Dear Expert's,

I have a situation, where my customer would like to change the actual GI date in the OBD after the GI is posted by EWM.

Normally, after the GI information is interfaced by EWM to ERP, ERP OBD takes over the GI date as updated by EWM. In my case, client wants the backdated GI to be posted in ERP from EWM. I could send the previous date to ERP while posting GI from EWM with the help of BADI '/SCWM/EX_ERP_MAPOUT_OD_CONFDEC' whereas i couldn't able to change the actual GI date in EWM.

Is there any solution to this, if yes, please can someone advice.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Andrey_Andriyan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ashwini.m2 ,

And isn't that easier just to create your own date type or Z field and keep that custom value in such a field? If this field is not initial it can be copied as WSHDRLFDAT and replicated to ERP.

I hardly believe you need such a replacement in 100%, so it would be the easiest and safest option. However some more efforts might be required to adjust reporting. But again, it does not look tricky to replace the date if your custom value is not empty.

Regards,

Andrey

0 Kudos

Hi Andrey,

Yes. I am using z field to have the value and to ERP i can replace and send the standard date value with custom value by checking initial or not. But the issue here is updating the same value at EWM, it takes system date and i dont have any badi to replace at EWM.

Thanks.

Ajit_Routray
Active Contributor
0 Kudos

Hi ashwini.m2

I guess you need to use the BADI.

Excerpt from OSS-2956511: "In EWM standard, if it is later than the planned delivery date, then the actual goods issue date from item will be taken over as the new delivery date and sent to ERP during PGI. You can use BAdI /SCWM/EX_ERP_MAPOUT_OD_CONFDEC to remove WSHDRLFDAT from CT_BAPI_HEADER_DEADLINES parameter table if you don't want LFDAT to be overwritten in ERP."

2956511 - ERP Delivery date (LIKP-VFDAT) is overwriteen by EWM GI message

Kind Regards,

Ajit

0 Kudos

Hi Ajit,

Thanks for your response.

I have already implemented the BADI mentioned for changing actual GI date in ERP and the same has been working.

The issue right now, i couldn't modify the actual GI date in EWM. Could you please let me know if any possibility is there to achieve this.

Thanks in advance.

Ajit_Routray
Active Contributor
0 Kudos

Sorry for misunderstanding 😞

Could you please check below BADIs.

/SCWM/EX_DLV_DET_AT_SAVE or /SCWM/EX_DLV_DET_AFTER_CHANGE

-> Read FDO docs, then header info, then get dates

-> Modify dates

Class: /SCDL/CL_DL_HEADER_PRD

Method: /SCDL/IF_DL_DATE_READONLY~GET_DATE

/SCDL/IF_DL_DATE~ADD_DATE

Ref Class where you can check dummy code to read records : /SCWM/CL_EI_DLV_DET_ALERT or /SCWM/CL_EI_DLV_PI_CREATE

Kind Regards,

Ajit

0 Kudos

Hi Ajit,

Thanks for your response.

BADI '/SCWM/EX_DLV_DET_AT_SAVE' was not triggered during post GI. whereasbadi /SCWM/EX_DLV_DET_AFTER_CHANGE/AFTER_SAVE got triggered but i get only delivery date, there is no good issue date at this point to modify.

Could you please assist me on this.

Regards,

Ashwini

Ajit_Routray
Active Contributor
0 Kudos

Hi ashwini.m2,

Could you check BADI- /SCWM/EX_DLV_VAL_SAVE or /SCWM/EX_DLV_VAL_ACTION (Event GI) or enhancement Point - /SCWM/ES_DLV_VAL

Document Category must be FDO (filter) in BADI...

Note:

Class: /SCDL/CL_DL_HEADER_PRD

Method: /SCDL/IF_DL_DATE_READONLY~GET_DATE

/SCDL/IF_DL_DATE~ADD_DATE

Ref Class where you can check dummy code to read records : /SCWM/CL_EI_DLV_DET_ALERT or /SCWM/CL_EI_DLV_PI_CREATE

Kind Regards,

Ajit