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

How to Create internal table in global class method ?

Former Member
0 Likes
862

Hi Sir,

Am writing one bdc program that is using oops abap.

In global class 3 method.

One is for recording and updating.

bdc recording process here messages table bdcmsgcol is created as work area it is not allowing to create internal table.

am unablt to capture the message using format message ( it showing error that ubale to create internal table in OO).

what happen to that perticular record either it is successfull or it is error.

how to capture that and how to create table in method.

please sir help me to understand this.

thanks and regards

Zarah

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
799

You should be more clear .

Without knowing what you have written, its not possible.

Read only

Former Member
0 Likes
799

HI,

i once made a class that run a bdc transaction.

I defined an attribute T_MESSAGES type TAB_BDCMSGCOLL and then used the following to run bdc

call transaction i_transaction

using me->t_bdcdata

mode i_mode

update i_update

messages into me->t_messages.

regards

Andrea

Read only

Former Member
0 Likes
799

Hi,

while doing transaction,

If an error occurs in updation , we declare bdcmsgcoll and store our messages in it, but how to retrieve error messages from it

Using function module 'FORMAT_MESSAGE' you can capture the messages.

Here is a sample of the program code in these link.

http://sap.niraj.tripod.com/id50.html

You would understand easily and explained each step and it will gives a clear picture to you.

Edited by: sekharch on Feb 4, 2011 10:47 AM