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

ICR Leading zero on field DOCREFNR in process 002


Like some other people here on this forum, I've noticed that the process 002 behave a bit differently in terms of field mapping.

DOCNR cannot be used like in other processes, because it's filled with another number than BELNR. I need to use REFDOCNR instead.

But I need REFDOCNR to be formatted without leading zeros.

I read on this thread (ICR process for GL accounts.) that it's possible to do it by user exit in the field movement definition.

But my question is that in my field movement I don't have the mapping BELNR -> REFDOCNR, this mapping is built-in, so I don't know exactly where I should define the user exit.

Can you please advise?

Best regards,


Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on Sep 16, 2010 at 06:21 AM

    Hello Maxime,

    When posting directly to a ledger the FI document number is not known at the time the SL document is posted. This is why SL creates its own document number. You have the information in the REF* fields which lead you back to the connected FI document. This is exactly what program FBICRC002_DOCNR_SELECT does. It finds the corresponding FI document and puts the FI document key information into the fields FAGL_* in FBICRC002A; the correct FI document number will be contained in FAGL_DOCNR.

    If you collect the data for process 002 using the data selection program, FBICRC002_DOCNR_SELECT is executed automatically as part of the data selection process in the sender systems. For documents posted directly into the reconciliation ledger in the reconciliation system you need to run the program yourself - I suggest that you do this each time before you run automatic assignment.

    If you want to manipulate any information as it is posted into the special purpose ledger you set up you should implement an exit called by the field movement.

    If you want to manipulate FAGL_DOCNR as it is populated by FBICRC002_DOCNR_SELECT, you need to implement BADI method CHANGE_DATA_TABLE for event if_ex_fb_icrc_002=>gc_evt01_remote_select.

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded