Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Populating BAPI Return Table

Former Member
0 Likes
2,165

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,184

cl = 'zcsequip'.

Case-sensitive maybe, did you check?

2 REPLIES 2
Read only

Former Member
0 Likes
1,185

cl = 'zcsequip'.

Case-sensitive maybe, did you check?

Read only

Former Member
0 Likes
1,184

Bingo - that was the issue. I haven't got my brain thinking case-sensitive yet.

Thank you very much!