2006 Jun 15 4:15 PM
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 ?
2006 Jun 15 4:18 PM
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
2006 Jun 15 4:18 PM
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
2006 Jun 15 4:19 PM
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
2006 Jun 15 4:19 PM
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.