‎2008 Jun 23 5:10 AM
hi to all experts,
i am writing BDC table control code for ES30 (Create installation). in this tranaction after saving system will generate this message 'Installation XXXX is created.'
i am write this code in BAPI and using return parameter in table.
my doubt is that how can i capture this message. or system will capture this message in return parameter .
thanks in advance and reward also if it useful.
Regards:
Deepsama
‎2008 Jun 23 5:34 AM
Hi,
Every BAPI has the return parameter BAPIRET2. in this structure have success message and error message.
if it is succuessfulley created the return values (here ins.number) stored in MESSAGE_V1 or MESSAGE_V2 or MESSAGE_V3 or MESSAGE_V4.
read the value from this table using the below syntax.
if Success
read table it_return into wa_return with key TYPE = 'S'.
if Error
read table it_return into wa_return with key TYPE = 'E'.
Reward if found helpful.
Regards,
SB
‎2008 Jun 23 5:49 AM
Hi,
The message will be passed into messtab if your use BDC (using ... MESSAGES INTO itab construct) to fill and you can then pass the values from messtab into the return parameter of the BAPI. See the help docs on BDC for more detail.