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

BAPI return messages.

Former Member
0 Likes
444

Hi,

When we create a sale order manually using VA01 tcode, we will be getting messages like 'material entered is critical part' or when the customer is on credit hold we will be getting 'Credit check maximum document value exceed'.

My problem is i am not getting these messages in my return table when i create a sale order using 'SD_SALESDOCUMENT_CREATE'. Whether there is any value we need to pass in the import to get all the messages type S, I, W in our return table.

Please let me know the solution.

It's very urgent.

Thanks,

Srinath S.

2 REPLIES 2
Read only

former_member188827
Active Contributor
0 Likes
385

after bapi call, try using append <ur_return_table>.

and see if u get the messages.

plz reward points if dis helps

Read only

0 Likes
385

after my bapi call.

i gave append <my_ret_table>.

eg:

CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'

EXPORTING

sales_header_in = header

IMPORTING

salesdocument_ex = sales_doc

sales_header_out = header_out

sales_header_status = header_status

TABLES

return = bapireturn

sales_items_in = sditm

sales_items_inx = sditmx

sales_partners = parnr

sales_schedules_in = sch

items_ex = item

schedule_ex = schedule

business_ex = business.

APPEND bapireturn..

but the last message is appended again.