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: 

BDC/Call Transaction

Former Member
0 Kudos

Is there anyway that we can check for value in a screen field before populating in when we do a bdc session/call transaction ?

Eg : If there is a value for matnr on the screen for transaction , the value to be put is 'A' else 'B'? Is it possible ? If not then what is the correct approach for this ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

No. You have to fetch the values from the tables before you do the BDC and check if the matnr is already there and then apply your logic to fill or not fill that field in BDC. Once you fill your BDC and do a call transaction or create a session, there is no control on the transaction flow. The control returns to your program only when the transaction call is completed(success or otherwise).

Srinivas

3 REPLIES 3

Former Member
0 Kudos

No. You have to fetch the values from the tables before you do the BDC and check if the matnr is already there and then apply your logic to fill or not fill that field in BDC. Once you fill your BDC and do a call transaction or create a session, there is no control on the transaction flow. The control returns to your program only when the transaction call is completed(success or otherwise).

Srinivas

0 Kudos

You must make these decisions before processing the CALL TRANSACTION statement. You must somehow anticipate what the value is going to be on the screen, and fill it using the BDC coding before the call transaction. We usually read the database to figure out what the value is going to be on the screen. Make sense?

Regards,

Rich Heilman

Former Member
0 Kudos

I think this applies for changing the transaction data using BDC.

If that is the case, the data will be already present in the SAP tables. read the data and depending on the values, populate your new values.

Hope this is helpful.