on 2024 Feb 07 11:32 PM
Hi
I am new to SAP EWM S/4 and wanted to know how to perform Goods receipt like a Class or API that I could use.
It seems EWM S/4 coding is a bit different. Could you please guide me through this.
DATA:
lt_dlv TYPE /scwm/dlv_docid_item_tab,
ls_dlv TYPE /scwm/dlv_docid_item_str,
lo_message TYPE REF TO /scdl/cl_dm_message.
ls_dlv-doccat = 'PDI'.
ls_dlv-docid = iv_docid. "Header Document id of inbound delivery
APPEND ls_dlv TO lt_dlv.
/scwm/cl_goods_movement=>post_dlv(
EXPORTING
it_dlv = lt_dlv
iv_gmcat = /scwm/if_docflow_c=>sc_gr
IMPORTING
eo_message = lo_message ).
Also, please ensure that you use cleanup method of the same class before calling the post_dlv method. Also, a commit work is needed if you are not executing your code under update task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sujan,
you can use /scwm/cl_goods_movement => /scwm/if_gm_dlv and call this in your program which will help you to post the GRN.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
4 | |
3 | |
2 | |
1 | |
1 | |
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.