‎2010 Nov 11 4:58 PM
I have developed several methods and FM to pull data into secondary systems. Done a fair amount of searching and reading to find out that it is best to use a bapi return table to return any error conditions.
I have searched and read all about the function BALW_BAPIRETURN_GET2. I have also created a message class and a couple of messages via SE91.
If i run BALW_BAPIRETURN_GET2 from SE37 plugging the appropriate parameters, it returns my customer message as expected. However, when I run the same FM, passing the same parameter values from within another FM I do not get my message, I get a concatenantion of my parameters.
Ex...
type = 'I'.
cl = 'zcsequip'.
number = 001.
par1 = i_sernr.
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
type = type
cl = cl
number = number
par1 = par1
IMPORTING
return = return.
Returns the following message in the Return structure... " I: zcsequip: 001 0000000044 " instead of " 0000000044 is not a valid serial number."
I'm sure I am missing something with the set up of the customer message class or the execution of 'BALW_BAPIRETURN_GET2'.
Any assistance would be greatly appreciated.
Thank you,
Justin
‎2010 Nov 11 6:54 PM
‎2010 Nov 11 6:54 PM
‎2010 Nov 11 6:57 PM
Bingo - that was the issue. I haven't got my brain thinking case-sensitive yet.
Thank you very much!