Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

PRELIMINARY_POSTING_FB01 converting warning message to error message

$
0
0

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


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>