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

BDC

Former Member
0 Likes
388

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

2 REPLIES 2
Read only

Former Member
0 Likes
367

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

Read only

Former Member
0 Likes
367

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.