Want to run a BDC even if there is an error in the TCode

Hi,
  In one of the screens in my BDC an error comes (this happens when that transaction is run from command prompt in foreground also). But in the actual transaction after the user sees the error, he is able to continue changing the fields on the screen and post it. However in BDC, as soon as the error comes, the BDC exits and comes back. I would like it to continue, just the way it does during the manual entry, is there a way I can do this?
The Tcode is LT06 and when user enters the Material doc and click on enter the error occurs, but in the manual mode he is able to enter the Destn Bin, storage type etc and continue. However that is not the case with BDC. I also tried using function module L_TO_CREATE_POSTING_CHANGE, but it gives the same error as the screen
FORM create_to USING r_mblnr TYPE mblnr
                     r_to_lgort TYPE lgort_d
                     r_sto_bin TYPE lgpla
               CHANGING rt_bapi_message TYPE type_t_bapi_message
                        r_success TYPE c.
  DATA: v_mode TYPE c,
        wa_bapi_message TYPE bdcmsgcoll.
  CLEAR s_bdcdata.
  REFRESH t_bdcdata.
  PERFORM bdc_dynpro      USING 'SAPML02B' '0203'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RL02B-MBLNR'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'RL02B-MBLNR'
                                r_mblnr.
PERFORM bdc_field       USING 'RL02B-MJAHR'
                               '2009'.
  PERFORM bdc_field       USING 'RL02B-DUNKL'
                                'H'.
  PERFORM bdc_dynpro      USING 'SAPML03T' '0102'.
  PERFORM bdc_field       USING 'LTAP-NLTYP'
                                r_to_lgort.
  PERFORM bdc_field       USING 'LTAP-NLBER'
                                '001'.        "destn storage section
  PERFORM bdc_field       USING 'LTAP-NLPLA'
                                r_sto_bin.        "destn storage section
  v_mode = 'N'.
  CALL TRANSACTION 'LT06'
                   USING t_bdcdata
                   MODE   v_mode
                   UPDATE 'S'
                   MESSAGES INTO t_messtab.
IF sy-subrc <> 0.
  IF sy-subrc = 0.
    LOOP AT t_messtab INTO wa_bapi_message.
      APPEND wa_bapi_message TO rt_bapi_message.
      EXIT.
   MESSAGE ID wa_bapi_message-msgid TYPE wa_bapi_message-msgtyp NUMBER wa_bapi_message-msgnr
     WITH wa_bapi_message-msgv1 wa_bapi_message-msgv2 wa_bapi_message-msgv3 wa_bapi_message-msgv4.
    ENDLOOP.
  ELSE.
    LOOP AT t_messtab INTO wa_bapi_message.
   MESSAGE ID wa_bapi_message-msgid TYPE wa_bapi_message-msgtyp NUMBER wa_bapi_message-msgnr
     WITH wa_bapi_message-msgv1 wa_bapi_message-msgv2 wa_bapi_message-msgv3 wa_bapi_message-msgv4.
      APPEND wa_bapi_message TO rt_bapi_message.
    ENDLOOP.
   APPEND t_messtab to rt_bapi_message.
  ENDIF.
  COMMIT WORK AND WAIT.
ENDFORM.                    "create_to
Thanks for reading

Hi ,
Now as per the transaction an error is prompted only when the compiler interprets it as false on a data field or a combination of them . Now its in the programmers hand to validate the data before submitting it to the screen .. now this validation should cover all scenario's . One point i want to make here is that bdc is nothing but replaying how the user enter's manually for no of records..
i dont know about this tcode LT06 .
//The Tcode is LT06 and when user enters the Material doc and click on enter the error occurs, but in the manual mode he is able to enter the Destn Bin, storage type etc and continue. However that is not the case with BDC.//
you are entering the material doc no in screen 0203 ..use all screen mode and check what is the error prompting if any and in the normal debugging track that error if some user exit is written using sy-binpt with some error message..
did you tried some relavant tcode other than LT06 which can be used for this purpose cause sometimes we have alternate tcodes to run the bdc .. please check on this .
Br,
Vijay.

Similar Messages

  • Alert is triggered daily even if there are no error messages

    Hi,
    I have done Alert Configuration for a service with the help of a document from SCN. It is successful when an error occurs.
    But I get an alert email Daily(even when there are no errors) and the message and service details mentioned in the mail will be blank.
    eg: Below are the error message details
           MessageID:
           Service:
    I want the mail to be triggered only when there is an error message.
    So could someone please help with the solution or guide me with the links of documents or threads that can provide the solution.
    Thanks In Advance

    hi
    plz refer the following  link
    http://forums.sdn.sap.com/thread.jspa?threadID=2147596&tstart=60

  • I want to download an app but it is telling me they can't complete my task there is an error in the app store.

    i wanted to try and down load an app but when i click download and it is telling me "we could not complete your request there was an error in the app store.please try again later" it then goes on to tell me that it has temporeraly disabled my account. i have tried this several times in the past 2 months and it is giving me the same messege every time. what should i do????

    Try using the iforgot link to reset your Apple ID password here >  Apple ID: "This Apple ID has been disabled for security reasons" alert appears
    Jessica...  which Mac OS X do you have installed?

  • I am unable to burn any info-photo ect on to a disk. I have a 27" I mac mid 2010 version. I put in a disk, hit burn, it runs for about 3 mins and ejects the disk sayiny there was an error with the drive and will not restart.

    am unable to burn any info-photo ect on to a disk. I have a 27" I mac mid 2010 version. I put in a disk, hit burn, it runs for about 3 mins and ejects the disk sayiny there was an error with the drive and will not restart.

    The optical drive has probably failed. It's a fairly common thing with these slim SuperDrives. Does it read any discs you put into it? You can try resetting the SMC and pram but I'll be surprised if it helps.
    To reset the SMC
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on
    Resetting PRAM and NVRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • I've got a problem:  if i want to back up my device manual (the same thing if it should does automaticly by charging) there's an error called: "the last backup couldn't be constructed"(don't know if it's right written, i'm german).Does sb. know what do?

    i've got a problem:  if i want to back up my device manual (the same thing if it should does automaticly by charging) there's an error called: "the last backup couldn't be constructed"(don't know if it's right written, i'm german).Does sb. know what to do? Help would be nice!!
    Henrik

    Sorry its Thanksgiving holiday here, here is a picture of the hard drive.
    After doing this, try the other suggestions if needed. then let us know!
    S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****
    Attachments:
    toshiba hard drive.jpg ‏14 KB

  • When trying to purchase Final Cut Pro X from the App store receive following error msg - There was an error in the App Store. Please try again later. (100) - Am running Quad Core Xeon w/ 32GB Ram, ATI Radeon 5870

    When trying to purchase Final Cut Pro X from the App store receive following error msg - There was an error in the App Store. Please try again later. (100) - Am running Quad Core Xeon w/ 32GB Ram, ATI Radeon 5870

    Try again later  .  .  .  .  in an hour or so, not immediately.

  • After upgrading to 3.6.8 none of the plugins load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log.

    After upgrading to 3.6.8 none of the extensions load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log. All extensions are listed in Addons>Extensions.
    == This happened ==
    Every time Firefox opened
    == Upgrading to newer Firefox version (3.6.8)

    I have been having the same issue for the last two weeks. No real indication as to why it ever began other than I had turned off my router and Airport Extreme Base Station off for a weekend while I was away from my place.
    iPad, iPhone, iPod Touch, all have no issues at all with my Airport Extreme Base Station. Can stay connected throughout my living room, bathroom, bedroom, no issues whatsoever.
    My 5 month old MacBook Pro 2.66 GHz Core i7 Airport is sometimes perfect, able to connect, DHCP, and browse without issue. Then, for no reason, I won't be able to join my wireless network, or when I can join, I can't pick up an IP address. And then it will connect, pick up and IP, and then it won't browse. No real rhyme or reason to when this will happen, or when it works.
    I thought that it was an issue with my MacBook Pro, but then my sister visited with her brand new MacBook Pro 2.26 Intel Core 2 Duo, and while a month ago she was able to connect, DHCP, and browse without issue, this weekend she had all of the same issues I was having.
    My XBOX 360 and MacBook Pro have absolutely no issues with the wired connection. Only my WAN seems to have this issue.
    Did you ever find anything more to this?

  • TS1424 I've just downloaded an album and at least two tracks are incomplete, even though there was no error in downloading

    I've just downloaded an album and at least two tracks are incomplete, even though there was no error in downloading reported.

    Depending upon what country that you are in (music can't be re-downloaded in all countries) have you tried deleting them from your iTunes library and redownloading them via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes ? Re-downloading.
    If you aren't in a country where you can re-download music or if it re-downloads in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find those songs and use the 'Report a Problem' link.

  • I am using an iMac7.1 with 1GB DDR2 SDRAM of speed 667 MHz on board memory. I would like to know what is my best option to upgrade to 4GB on board memory so that I can run Lion OS. Is there a speed limit of the DRAM I can use? Please recommend.

    I am using an iMac7.1 with 1GB DDR2 SDRAM of speed 667 MHz on board memory. I would like to know what is my best option to upgrade to 4GB on board memory so that I can run Lion OS. Is there a speed limit of the DRAM use? Please recommend or suggest as soon as possible.

    You can install 2 - 200-pin PC2-5300 (667MHz) DDR2 SO-DIMMs. The maximum amount of RAM is 6 GBs. Visit DataMem or OWC to get the proper RAM at reasonable prices.

  • HT204034 I want to make a new account without payment method but there is an error ate the end says "for assistance contact iTunes support " why?

    I want to make a new account without payment method but there is an error ate the end says "for assistance contact iTunes support " why?

    These are user-to-user forums, to contact iTunes Support and ask them why you are getting the message to contact them :
    - go to http://www.apple.com/support/itunes/ww
    - click on your country's flag
    - click on the Contact Support at the bottom of the left-hand column
    - click on Contact iTunes Store Support on the right-hand side of the page

  • I just discovered that when I type names in Reminder, Notes or even email, there is a voice repeating the name. Any idea how to disable this function?

    I just discovered that when I type name in Reminder, Notes or even email there is a voice repeating the names. Any idea how to disable this function? I never heard it before!! Thanks

    I think that you have turned on VoiceOver. To turn it off, enter settings, general, accessibility and turn off VoiceOver.

  • I downloaded Aperture and now I'm getting a "There was an error opening the database for Library " and I can't do anything else.  How can I fix it so I am once again able to run Aperture?

    I Downloaded Aperture from the Apple Website then proceeded to download all my picture's frp, IPhoto.  The very next time I opened Aperture an error poped up stating, There was an error opening the database for Library "blank".  I can't do anything with the program but hit the cancel buttom which closes the program.  How do I fix it?

    Is "blank" the name of your Aperture Library? If not, then Aperture is pointing to the wrong Library. Hold down the option (⌥) key while you launch Aperture by clicking it in the Applications Folder. Then select the correct library and press the "choose" button.
    If that does not help, try to repair your library:
    Locate Aperture library in Finder. Holding down the keys option (⌥) +command (⌘) and double click on Aperture Library to show the First Aid dialogue:
    Then try to start Aperture again.  If that also should fail, try the other steps in Aperture 3: Troubleshooting Basics: http://support.apple.com/kb/HT3805
    Good Luck
    Léonie

  • I am getting this error: "There was an error in the App Store. Please try again later. (4)"???

    There was an error in the App Store. Please try again later. (4)

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • There was an error in the App Store. Please try again later. (undefined)

    Attempting to purchase and download from App Store off and on over the last several hours. Have checked account details, rebooted twice, closed store and reopened several times. Running 10.6.6 and have even verified details in iTunes to ensure that is not the issue. Also verified Time Zone settings per Apple Support suggestions.
    I continue to see the same error each time: There was an error in the App Store. Please try again later. (undefined)
    Anyone else have/solved this problem?

    Your issues may be in the iTunes Store account. Quit the MAS and Open iTunes. Sign into your iTunes account and there may be a new Terms for your to agree to. Also, at the bottom of your account info page reset the notifications.
    Dah•veed

  • What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported".

    What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported". What does that mean? I am trying to drag libraries (with metadata) to external HD...wondering what the best way to do that is?

    Kirby Krieger wrote:
    Hi Shane.  Not much in the way of thoughts - - but fwiw:
    How is the drive attached?
    Can you open large files on the drive with other programs?
    Are you running any drive compression or acceleration programs (some drives arrive with these installed)?
    Can you reformat the drive and try again?
    Hi Kirby,
    I attached the UltraMax Plus with a USB cable. The UltraMax powers the cable so power is not an issue. I can open other files. Also, there is 500GB of files on the drive so I cannot re-format it. Although, I noted I could import the entire Aperture Library. However, I do not want to create a duplicate on my machine because that would be defeating the purpose of the external drive.
    Thanks,
    Shane

Maybe you are looking for

  • Graphics render bug in FCP 6 and 7 - Dare to prove me wrong?

    I have an issue with an HD video that contains red and purple text and graphics in the edit. I've looked for an answer tirelessly online, with friends, and through trial and error for a good 7 hours before giving up. Here's the deal, Sequence setting

  • Surface Pro 3 boot failure loop

    We have a Surface Pro 3 tablet deployed on our network in the office. Since yesterday, when it boots up, we see "Preparing bitlocker recovery" and then a blue screen comes up saying "There was a problem Restart your PC to try again It looks like some

  • Calling DDE from Excel 2010 crashing on Win 8.1 VM

    Trying to use DDE to connect Excel to an external application (Vensim DSS) on a windows 8.1 virtual machine (VM) which seems to hang Excel (specifically when you call DDEInitiate). I have no problems with the same VBA script (code reproduced below if

  • Line connected in house but not underground?

    Hi We had an engineer fit a new line into our house about 5 weeks ago. It is still not an active line. We keep trying to ring through to BT but we keep being disconnected when we get transferred back to the UK. We were told BT would keep us updated w

  • Master Detail Highlighting

    Hi, I have a master detail type form. When I select record 1 in my Master block and go to next block (detail), I would like to have the record 1 highlighted, so that my users now which record they are editing. I have tried to set the currect record v