Hi All,
I am creating a GR using BAPI_GOODSMVT_CREATE, by passing following Data:
Material Document Header Data
wa_gr_header-pstng_date = sy-datum.
wa_gr_header-doc_date = vbrk-fkdat.
wa_gr_header-pr_uname = sy-uname.
wa_gr_header-ref_doc_no = va_ponum.
wa_gr_header-bill_of_lading = vbrk-fkdat.
Assignment GM_CODE
wa_gr_code-gm_code = '01'.
Material Document Item
wa_gr_item-plant = wa_ekpo-werks.
wa_gr_item-po_number = wa_ekpo-ebeln.
wa_gr_item-po_item = wa_ekpo-ebelp.
wa_gr_item-move_type = ca_mov.
wa_gr_item-entry_qnt = wa_ekpo-menge.
wa_gr_item-entry_uom = wa_ekpo-meins.
wa_gr_item-mvt_ind = ca_b.
Though the GR is getting created, when we access the Material Document through the PO History tab in Purchase Order, the Receiving date is updated as 20.10.0422(though I am not passing it in my program). But the Posting Date and Document Date are correctly updated as 22.04.2010.
Moreover there is no field for Receiving Date in BAPI Goods Movement Header Structure.
Could someone please explain why the date is being reversed as 20.10.0422 instead of appearing as 22.04.2010 and the solution for this problem?
Thanks in Advance