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

One Doubt

Former Member
0 Likes
790

hi Everybody

Please clear the following doubt.

"In call transaction how you code the two transaction codes in a single syntax? one transaction code output is input to the second trancsaction?How?". Thnxx in Advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
762

I could not clearly understood ur requirement. Can you elaborate more precisely. Just a tip:

When your 1st call transaction is successful, the data should be available in DB for the 2nd transaction. Use Commit work and wait. This will update the data into DB and your 2nd transaction will be able to fetch the data from DB.

6 REPLIES 6
Read only

venkata_ramisetti
Active Contributor
0 Likes
762

Hi,

Please always try to give some more details about your doubt. It helps you to get resolution in less time.

Once the first transaction is called, just use COMMIT WORK. Then the data will be saved in the system. So you can get the data from the database tables and you can use them in the second transaction.

Please let us know if this doesn't solve your issue.

Thanks,

Ramakrishna

Read only

0 Likes
762

Hi RamaKrishna

Thnaks for your reply. But what I wana to know is that wheter there is any method through which the output of one transcation can become the input for other call transaction. Like if we use call transaction VA05 to list the sales order and then we can pass this list to other call transaction to change the orders.

Regards

Varun Sanghi

Read only

0 Likes
762

Yes:


CALL TRANSACTION 'VA05' USING BDCDATA MODE U_MODE UPDATE 'S'
                                        MESSAGES INTO MESSTAB.

MESSTAB will have all of the messages returned by the call including the sales order number.

Rob

Read only

0 Likes
762

Hi,

You can do that like Rob Burbank mentioned.

MESSAGES table contains the created sales order. You can use that in the subsequent transaction.

Thanks,

Ramakrishna

Read only

Former Member
0 Likes
762

call first transaction. and If sy-subrc = 0. call second transaction.

In this way you are posting the first transaction data and if successfull then you are posting second trnsaction data.

hope this is helpful.

Read only

Former Member
0 Likes
763

I could not clearly understood ur requirement. Can you elaborate more precisely. Just a tip:

When your 1st call transaction is successful, the data should be available in DB for the 2nd transaction. Use Commit work and wait. This will update the data into DB and your 2nd transaction will be able to fetch the data from DB.