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

call transaction..

Former Member
0 Likes
620

Hi aii,

In BDC call transaction ,we get the error ,how to handle this .hoe to inform which record is error.

Regards.

Krishna

Hi aii,

In BDC call transaction ,we get the error ,how to handle this .hoe to inform which record is error.

Regards.

Krishna

4 REPLIES 4
Read only

Former Member
0 Likes
595

hi,

In BDC u can handle errors using BDCMSGCOLL.

Read only

kishorepallapothula
Participant
0 Likes
595

Hi Krishna,

In the syntax of Call Transaction we will be having the messages tab. Capture the message type = 'E'. You will find all the error messages.

All the best.

Reward if useful.

kishore

Read only

Former Member
0 Likes
595

Hi.

U can make use the structure BDCMSGCOLL.

Here u can create the internal table or type BDCMSGCOLL and use this inetrnal table in code.

Call transaction 'tcode' ....................................CALL TRANSACTION 'MM01' USING BDCDATA MODE 'N'

MESSAGES INTO MESSTAB.

use this link.

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/call_tra.htm

Reward if helpfull

Anees

Message was edited by:

anees jawad

Read only

Former Member
0 Likes
595

Hi,

Change the mode of call transaction method is 'e'. or u see the error ob bdcreturn internal table.

CALL TRANSACTION 'FPP2' USING BDCDATA

MODE W_A UPDATE 'E' MESSAGES INTO MESSTAB.

or

DATA: RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.

CALL TRANSACTION 'FPP2' USING BDCDATA

MODE W_A UPDATE 'S' MESSAGES INTO MESSTAB.

WRITE:/ PARTNER , 'CREATED FOR ' , WA_DATA-NAME1_TEXT .

ELSE.

WRITE:/ WA_DATA-NAME1_TEXT , 'IS NOT CREATED !!!'.

READ TABLE RETURN WITH KEY TYPE = 'E'.

IF SY-SUBRC = 0.

WRITE:/ RETURN-MESSAGE.

ENDIF.

ENDIF.

CLEAR WA_DATA.

Try this code.

Rewards points if it is useful.