2006 Aug 11 12:25 PM
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
2006 Aug 11 3:49 PM
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