Skip to Content
0
Former Member
Aug 23, 2010 at 04:42 PM

PRELIMINARY_POSTING_FB01 converting warning message to error message

137 Views

Dear Gurus,

I struggled hard to find the fm or bapi to do parking of FI documents and after going through multiple threads at SDN i found that the function module PRELIMINARY_POSTING_FB01 can be used for the purpose. I tested and it seems to work except for the problem the it is aborting the process when it should through warning.

This FM call another FM FI_POSTING_KEY_CHECK which throws the warning message

IF NOT SY-SUBRC IS INITIAL.
     MESSAGE W832 WITH I_BSCHL I_UMSKZ I_LANGU RAISING POSTING_KEY_TEXT.
    ELSE.
      LM_TBSLT = TBSLT.
      APPEND LM_TBSLT.
    ENDIF.

but the processing stops ther and the FM returns the same as error (Message type E). The same function module is called in the transaction FB01 and there it shows warning which can be ignored by pressing enter. Any clue how to overcome it.

Any Help will be appreciated .

Thanks and Regards,

Kumar Gaurav