After Creating slaes , delivery and transport order and when clicking PGI, i am getting the following error.May I know the possible solution for this.
when a goods movement for an inbound or outbound delivery is posted
directly from VL31N/ VL01N, XBLNR is not yet known when we call
CKMV_AC_DOCUMENT_CREATE, but the number is supposed to be stored in
BKPF as well. There is no other way to forward XBLNR to FI as not
every document is posted by MB_CREATE -> a new function module in
MBWL for transferring the information, called by FI, meant to load
the complete function group for all MBxx postings when this isn't
required (Performance). Would be the better way to transport the
information after switching off MBxx in later release.
corresponding IMPORT ... FROM MEMORY ... can be found in
AC_DOCUMENT_POST (FORM FI_DOCUMENT_PREPARE (LFACIF5D))
l_mem_id = 'MKPF-XBLNR'. " 641365
EXPORT xblnr = xblnr_sd TO MEMORY ID l_mem_id. " 641365
IF xmkpf-xabln IS INITIAL. "note 434093
CALL FUNCTION 'MB_XAB_NUMBER_GET'. "note 434093
ENDIF. "note 434093
ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_01 SPOTS ES_SAPLMBWL STATIC.
ENHANCEMENT-POINT MB_POST_GOODS_MOVEMENTS_02 SPOTS ES_SAPLMBWL.
CALL FUNCTION 'MB_CREATE_MATERIAL_DOCUMENT_UT'
error_message = 4.
As soon as we have started to put things into UPDATE TASK, we must
ensure that errors definitely terminate the transaction.
MESSAGE A is not sufficient because it can be catched from
external callers which COMMIT WORK afterwards, resulting in
incomplete updates. Read note 385830 for the full story.
IF NOT sy-subrc IS INITIAL.
MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH "385830
sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.