on 2021 Feb 26 10:11 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
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
User | Count |
---|---|
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.