Application Development 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: 

CALL TRANSACTION 'Zxxxx' USING BDCDATA messages into itab

Former Member
0 Kudos
805

Hi everybody,

Do you know if it is possible to call a Z* transaction (that calls program Zxxxxxxx)

and to get back the messages into itab like we do with a standard transaction ?

In the Z* transaction the messages are sent via normal message statement.

Thanks in advance for your answer,

Marie

3 REPLIES 3

Former Member
0 Kudos
146

to store returned messages from transaction in to itab.

use this.:

frst declare this:

DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.

and then:

CALL TRANSACTION 'MK01'

USING it_bdcdata

MODE v_mode

MESSAGES INTO messtab.

plz reward points if helps.

regards,

rahul

former_member1052991
Active Participant
0 Kudos
146

Hi Marie,

You can use it.

matt
Active Contributor
0 Kudos
146

It is certainly possibly, but as the called program is a Z program, why not modularise the functionality of the transaction into a class or function module. Then you can get the functionality without having the overhead of screen flow.

matt