Skip to Content
author's profile photo Former Member
Former Member

IDES GR POSTING RUNTIME ERRORS

I am getting a runtime error each time I post mi GR and when I gebud the, the following appears: I have been stuck for a few days and cannot seems to resolve it....pleae help

FUNCTION mb_post_goods_movement.

*"----

-


""Local Interface:

*" IMPORTING

*" VALUE(XBLNR_SD) OPTIONAL

*" EXPORTING

*" VALUE(EMKPF) LIKE EMKPF STRUCTURE EMKPF

*"----

-


DATA: l_mem_id(10) TYPE c. " 641365

  • Wurde zuvor eine Lieferung erzeugt, so ist kein MB_POST... nötig "HUM

CHECK NOT xdeliv = x. "HUM

  • Control posting for external WM: Exit if BFWMS = 1 (Create delivery)

CHECK NOT mkpf-bfwms = 1. "357661

READ TABLE xmseg INDEX 1.

IF NOT sy-subrc IS INITIAL.

MESSAGE a260.

ENDIF.

IF xmkpf-mblnr IS INITIAL.

MESSAGE a260.

ENDIF.

xcommit = x. "Performance

IF NOT xblnr_sd IS INITIAL.

xmkpf-xblnr = xblnr_sd.

xmkpf-le_vbeln = xblnr_sd. "XAN-SPM

MODIFY xmkpf INDEX 1.

  • 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

ENDIF.

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'

EXCEPTIONS

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.

  • MESSAGE A263.

ENDIF.

  • Optische Archivierung

  • Spaete Erfassung mit Barcode

  • Redesign of barcode handling -> note 780365

PERFORM barcode_update(sapmm07m) USING xmkpf-mblnr

xmkpf-mjahr

barcode.

MOVE-CORRESPONDING xmkpf TO emkpf.

CALL FUNCTION 'MB_MOVEMENTS_REFRESH'

EXCEPTIONS

error_message = 4.

MOVE-CORRESPONDING xmkpf TO emkpf.

CALL FUNCTION 'MB_MOVEMENTS_REFRESH'

EXCEPTIONS

error_message = 4.

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.

  • MESSAGE A261.

ENDIF.

PERFORM buchen_initialisieren(sapmm07m).

CLEAR emkpf-subrc.

  • clear global fields when COMMIT WORK "Performance

IF NOT sy-oncom = p.

PERFORM clear_xcommit ON COMMIT.

ELSE.

PERFORM clear_xcommit. "if this FB is called on commit

ENDIF.

PERFORM clear_xcommit ON ROLLBACK. "note 303392

ENDFUNCTION.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 18, 2011 at 01:07 PM

    Hai Bruno,

    Ask FI consultant to check GL account assigned for COGS

    Regards,

    Mani

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 18, 2011 at 01:09 PM

    Hai Bruno,

    Ask FI consultant to check GL account assigned for COGS

    Regards,

    Mani

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hie Mani

      Thanks for you response but unfortunately m all there is. I am the FI, MM,SD and everything. My Ides is on my portable drive and m using it to practice for certification. I have been stuck for almost a week now and I really don't know how to resolve it. I don't know of any FI or Basis consultant so kinda stuck right now. Thanks for all the help

      Brian

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.