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

Call transaction VL06G

How can I perform some action in a call transaction session depending on the screen, for example, in the same session, for one set of data, an error can occur and stop my transaction. How can I pass this point ?

I am calling the transaction VL06G, make the selection, select all deliverys in the next screen, and push the button 'Post goods issue'. If an error occur, the session is over and the remaining deliverys are not processed. Please, give me a solution.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on May 23, 2005 at 09:39 AM

    Hi,

    Just check this.May be it's useful for you.

    display-call-transaction-messages-in-alv

    Regards,

    J.Jayanthi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2005 at 09:46 AM

    No help, I know what means mode 'E'.

    My question is how do I pass them...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2005 at 09:52 AM

    Hi,

    Do the call transaction this way:

    CALL TRANSACTION C_TCODE USING BDC_TAB MODE 'N' update 'S'.

    You have a Sample Code in this thread:

    Call transaction

    Here you can catch the error and proceed as you wish.

    Regards,

    Anjali.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2005 at 10:12 AM

    I think you don't understand what I'm trying to explain here.

    Yes, i looked at your code, and I undestand what you have done there. Processing in mode 'N'... ok, if one error appears, the processing continues, and is registered in a batch session . But....

    If the processing is stoped when an error occurs, how can I continue with the rest of the operations ?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ivanov,

      Short answer is - you can't.

      If the BDC session encounters an error, you can't do conditional processing to say, ok I'll skip this error and go on doing the other stuff I wanted to do. It doesn't work that way. A BDC is a pre-programmed macro and once its set up you can't alter the way it will behave mid transaction.

      The only way to do this, is to detect the error from your CALL TRANSACTION statement and then modify the BDC table to address the error and then issue another CALL TRANSACTION.

      If you submit multiple transactions on one BDC session in SM35 it will continue with the other transactions if one fails, but it wont skip over errors within a transaction and keep going (unless you intervene manually). It doesn't work like that.

      Hope that helps.

      Brad

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2005 at 11:16 AM

    yes, this is what I thought too, but I needed a confirmation some how.

    Thanks Brad, precisely like usual.....

    thaks again...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2005 at 01:01 PM

    What you are trying to do is not possible but check if this workaround is possible( Unless performance is not a major issue ) -

    I've not gone through your Xn so not sure.

    On the next screen instead of selecting all deliveries,

    select one by one. In BDC recording select only the top delivery --> process it --> transaction Over.

    Start again. Now since the earlier delivery is processed it should not appear in the list.

    Repeat the procedure.

    Here CALL TRANSACTION will be called for each delivery.

    Till it gives you the message "No Deiliveries Selected".

    Thanks,

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Sorry I don't know how to edit the message and I've a few more points for my last suggestion.

      In case of error you need to change your next BDCDATA so that next delivery selected will not be the top but will be at the 2nd position. and so on...

      As Top delivery will be the delivery in error and should not be re-processed.

      Thanks,

      Ram

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.