Skip to Content
author's profile photo Former Member
Former Member

BDC/Call Transaction

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 ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 15, 2006 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2006 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.