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_SALESORDER_SIMULATE Information messege?

Former Member
0 Likes
428

Could anyone please help me out in trapping information messege in 'BAPI_SALESORDER_SIMULATE'?

With the existing BAPI_SALESORDER_SIMULATE, it is returning warning messeges in the messagetable, but I need to trap information message too. How do I do that? Can anyone through some light on this.....

I appreciate your kind help.

Awaiting for reply.

Chandan

Could anyone please help me out in trapping information messege in 'BAPI_SALESORDER_SIMULATE'?

With the existing BAPI_SALESORDER_SIMULATE, it is returning warning messeges in the messagetable, but I need to trap information message too. How do I do that? Can anyone through some light on this.....

I appreciate your kind help.

Awaiting for reply.

Chandan

1 REPLY 1
Read only

former_member125661
Contributor
0 Likes
340

This BAPI returns a table - MESSAGETABLE. Once this BAPI is called, just check the contents of this table.

CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'

EXPORTING

ORDER_HEADER_IN = SD_ORDER_HEADER

IMPORTING

RETURN = RETURN

SALESDOCUMENT = ORDER_NUMBER

SOLD_TO_PARTY = SD_SOLD_TO_PARTY

SHIP_TO_PARTY = SD_SHIP_TO_PARTY

BILLING_PARTY = SD_BILLING_PARTY

TABLES

ORDER_ITEMS_IN = SD_ORDER_ITEMS_IN

ORDER_PARTNERS = SD_ORDER_PARTNERS

ORDER_ITEMS_OUT = SD_ORDER_ITEMS_OUT

ORDER_CFGS_REF = SD_ORDER_CFGS_REF

ORDER_CFGS_INST = SD_ORDER_CFGS_INST

ORDER_INCOMPLETE = ITAB_INCOMP

MESSAGETABLE = ITAB_MESSAGE <-- Check this one

ORDER_CFGS_PART_OF = SD_ORDER_CFGS_PART_OF

ORDER_CFGS_VALUE = SD_ORDER_CFGS_VALUE.

ITAB_MESSAGE IS DECLARED TO BE OF THE TYPE BAPIRET2.

Hope this helps