This BDC won't run

Dear all:
This simple code here runs with normal excution (it's called from a output type directly), but when I schedule it into a background job it never run as it supposed to. Can anyone please let me know if I'm missin something major here. Thanks biggy...
code as below
REPORT ZRTLABELO  MESSAGE-ID WJ.
INCLUDE bdcrecx1.
*TYPE-POOLS: LABEL.
TABLES: NAST.
FORM PRODUCT_LABEL USING RETURN_CODE SCREEN_FLAG.
types: begin of ty_mseg,
        matnr like mseg-matnr,
        werks like mseg-werks,
        ebeln like mseg-ebeln,
       end of ty_mseg.
data: wa_mseg       type ty_mseg,
      charg         type charg_d,
      mat_doc(10)   type c,
      year(4)       type c,
      item(4)       type c.
mat_doc = nast-objky(10).
year    = nast-objky+10(4).
item    = nast-objky+14(4).
select single * into corresponding fields of wa_mseg from mseg
where mblnr = mat_doc
   and mjahr = year
   and zeile = item.
select single charg into charg from mcha
where charg = wa_mseg-ebeln.
if sy-subrc <> 0.
  PERFORM OPEN_GROUP.
  perform bdc_dynpro      using 'SAPLCHRG' '1000'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=ENTR'.
  perform bdc_field       using 'DFBATCH-MATNR'
                                wa_mseg-matnr.
  perform bdc_field       using 'DFBATCH-WERKS'
                                wa_mseg-werks.
  perform bdc_field       using 'DFBATCH-CHARG'
                                wa_mseg-ebeln.
  perform bdc_dynpro      using 'SAPLCHRG' '1000'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=SAVE'.
  perform bdc_transaction using 'MSC1N'.
  PERFORM CLOSE_GROUP.
endif.

Hi,
are you passign single screen? because in your code the screnn numbers are same(1000), if so, just comment these line and do..
perform bdc_dynpro using 'SAPLCHRG' '1000'.
perform bdc_field using 'BDC_OKCODE' '=ENTR'.
this might works you,
if not just give us the code, and the error messages,
Regards
Sudheer

Similar Messages

  • I have Dell XPS (windows 8.1): error: "this program won't run on this pc"

    Greetings, I just purchased a Dell XPS with Windows 8.1. I have tried to load Irfanview, Kompozer, FileZilla, and other software that I have run, most on XP and even on MacOS, but the downloaded software will not run or install on my new Windowx 8.1. This
    is terribly frustrating! I also don't understand why there is no "start" button that leads you to the software you have installed. 
    Please help. Thank you. 

    Press the Windows key on your keyboard.
    To get Start menu press + X
    Further references
    Where is the Start menu?
    If you wish to get the conventional  Start button  then download and install
    Classic Shell
    some older programs might run poorly or not run at all. If an older program doesn't run correctly or doesn't install, start the Program Compatibility Wizard, which simulates an earlier version of Windows. You can :-
    Make older programs compatible with this version of Windows
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • The new software - mozilla 6.0.2 won't run un my dekstop

    i just downloaded the latest version of mozilla, 6.0.2.
    however, when i try to run, after extracting, this software won't run everytime i use my name.
    however, if i use administrator name, it asking the password that i did'ny receive in downloading this software.
    how come..??

    It appears to be in both. The one on my external hard drive is a bigger file than the one on my local hard drive.
    Just confirming but this file will have an iTunes icon and not an XML icon, right?
    This time, I closed iTunes and dragged the iTunes Library icon from my hard drive to the external drive and it overwrote the one on my external drive. I reopened iTunes and my library was still not showing up. Do I also delete the ones from my local drive?
    At this point, I am willing to do a fresh install of iTunes just to get back to square 1 and try things again. Please let me know if there are any other things I can try.
    Thanks again for your help.

  • The latest version mozilla 6.0.2 won't run in my dekstop

    i just downloaded the latest version of mozilla, 6.0.2. however, when i try to run, after extracting, this software won't run everytime i use my name. however, if i use administrator name, it asking the password that i did'ny receive in downloading this software. how come..??

    Are you sure Firefox was closed completely, making sure the firefox.exe process was closed in the Task Manager, before starting the Flash installer?
    There are two different versions of Flash, the '''''ActiveX''''' version for IE and the '''Plugin''' version used by most other browsers.
    1.Download the Flash Plugin version setup file from here: <br />
    [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe Adobe Flash - Plugin version]. <br />
    Save it to your Desktop.<br />
    2. Close Firefox using File > Exit <br />
    then check the Task Manager > Processes tab to make sure '''firefox.exe''' is closed, <br />
    {XP: Ctrl+Alt+Del, Vista: Shift+Ctrl+ESC = Processes tab}
    3. Then run the Flash setup file from your Desktop.
    4. Start Firefox and test your installation here: https://www.adobe.com/software/flash/about/
    * On Vista and Windows 7 you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). <br />
    See this: <br />
    [http://vistasupport.mvps.org/run_as_administrator.htm]

  • Wacom Install Disk Won't Run

    I just got a new Intuos4 medium tablet for my iMac 3.4 GHz i7 running 10.6.8.  I cannot get the driver install disk to run. 
    Every time I click on the "install" icon, the dock install icon bounces for about15 seconds, the install splash screen half displays and then I get a screen that says "Install quit unexpectedly."  A copy of the first part of the Problem Details report is attached.  I have the whole report if that would help. I don't know what an EXC_BAD_ACCESS (SIGBUS) or a KERN PROTECTION FAILURE MEANS.
    I'm pretty sure it is not the disk (although it could be the disk install software).  I have successfully started the install disk on 4 other Macs (all 64-bit, like this one) running a Leopard, Snow Leopard and Lion. It does choke, however, on my Tiger equipped G5--I just get a white unfilled splash screen, with, of course, no error report.
    It's also not the drive, because the same failure occurs on my iMac from an external drive.  It also occurs if I install all of the (visible) files directly onto the hard drive.
    I've also tried a few programs that use installer scripts (not the "drag to the applications folder" type) -- Photoshop CS5 and Final Cut Studio -- and they start the install process just fine.
    Any clues what's going on?  I know I can probably download what purports to be the latest driver from the wacom site, but I'd rather try to resolve this.  I've had numerous similar problems lately, and I'd like not to create more.
    Any clues?  If it would be more helpful for me to just upload the entire 13 page crash report, let me know.

    Before you posted, I did go to the website and downloaded their latest driver (probably newer than the one the disk says is on it).  I usually do follow that practice.  Like you I've found that web downloads are practically always more up to date than the ones that come packaged with hardware like this.  No faults here; it's just most reputable companies are constantly updating, improving functionality, aligning with sytem updates and getting rid of bugs.
    I'm holding my breath, but the install seemed to have worked, with no apparent problems so far.  I have some Photoshop tasks to tackle over the weekend, so I may know more then.
    I am still deeply concerned about some system issues I haven't resolved, and I really don't have an answer to why this disk won't run the install software on this machine only.  I'm hoping I don't have a deeper problem. 
    Kurt188, thanks for the suggestion about booting into 32-bit mode.  I do have a 2011 Core i7 27 inch iMac.  I tried 32-bit, but I got the same result.

  • Itunes update would not install due to an error, now itunes won't run and I get this message when I try to launch itunes: "This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem"

    itunes update would not install due to an error, now itunes won't run and I get this error message when I try to launch itunes: iTunes.exe - Unable to Locate Component "This application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem."
    I'm on a Dell PC running Vista Home Premium.
    HELP!!!!!!!!!!!!!!!!!!!

    try removing all itunes and all other apple program
    follow this link for more info. http://support.apple.com/kb/HT1923
    reboot ur window after uninstalling
    after that download the latest itunes setup and install.

  • Firefox won't run, but says it is when I try to unistall it - Win 7 task manager says it isn't..how can I get around this to uninstall it?

    I have been trying to open a browser window with Mozilla Firefox 6.0.2 (x86 en-US). It won't run, however, when I try to uninstall the program, it says I have to close firefox first. Win 7 task manager does not show the program as running.
    I tried again, and still get the same message from Firefox. I checked the task manager again, not running. Tried running it - won't run. Tried uninstall, got the same message, close firefox before trying to uninstall - firefox isn't running!
    I would appreciate any help that you could give me. I want to use firefox, especially since it is the browser that opens Webkinz correctly for my grandkids.

    In the task manager, are you looking at Processes? That is where you find Firefox listed when you see no interface, not in Applications.
    This page might have some useful information about that problem.
    * http://kb.mozillazine.org/Profile_in_use

  • Running Lightroom 6 on Windows machine (after having upgraded from LR5... While attempting to add or change music in the Slideshow module, LR unexpectedly quits.  After several attempts at this, LR6 won't even launch properly...shows the splash screen but

    Running Lightroom 6 on Windows machine (after having upgraded from LR5... While attempting to add or change music in the Slideshow module, LR unexpectedly quits.  After several attempts at this, LR6 won't even launch properly...shows the splash screen but that's it.  The program is buggy...need an update/revision quickly!!

    If you're on Windows, check out a free program called Audacity--it's fantastic.  With Audacity the process of converting a 48.000 kHz to 44.100 kHz is as simply as opening, changing the sample rate, and then exporting again, as an MP3.

  • I installed Lion OS X and Logic Pro won't run. I downloaded the 9.1.5 update: "An Eligible Logic Pro Version Was Not Found in the Applications Folder.  This Update require Logic Pro Version 9.0 or higher".  I have Logic Pro Version 9.1.1 installed.

    I installed Lion OS X and Logic Pro won't run. I downloaded the 9.1.5 update: "An Eligible Logic Pro Version Was Not Found in the Applications Folder.  This Update require Logic Pro Version 9.0 or higher".  I have Logic Pro Version 9.1.1 installed.
    I even pulled the dmg file into the Logic Studio folder in my applications directory and it still does not recognize it.  What do I do now?

    Niel:  Thanks. 
    For others benefit, here is what happened.
    I had installed Logic Studio 9.1 some time ago.......not knowing what all the programs were nor what they did, I created a "Logic Studio" subfolder in my applications folder and put all Logic Studio programs into it so I'd know where they were and could review each at my leisure over time.
    My assumption now is that when the updater looks for the Logic Pro program, it looks only in the applications folder.  It seems lame that it would not also look in the subfolders of the applications folder, but that apparently IS the way it works.  Because my Logic Pro program was located in the "Logic Studio" subfolder, the updater just didn't see it..hence the error message I received when I tried to update. 
    Solution:  I moved all the Logic Studio programs out of the subfolder and now they reside in the applications folder. Ran the 9.1.5 updater and it worked like a charm. 

  • HT201210 Can the OS for an iPod Touch be updated beyond 3.1.3?  iTunes tells me that this is the latest software but many apps won't run on this older os.

    Can the OS for an iPod Touch be updated beyond 3.1.3?  iTunes tells me that this is the latest software but many apps won't run on this older os.

    If you have a 1G (first generation) iPod touch then it can only go to iOS 3.1.3. To identify yours:
    Identifying iPod models
    If you need a higher iOS, you will have to get a newer model iPod.

  • How do i run safari when it keeps on saying this version 5.0.6 won't run

    How do I run safari when it keeps on saying this version 5.0.6 won't run

    I should mention this is Safari 5.0.1

  • HT3231 I use Migration Assistant to transfer data from my old MacBook to a new MacBook Pro. Both run OSX 10.7.4  This was done wirelessly. Now Safari won't run on my Pro. It was Safari 6 on the MacBook, but is now Safari 5.1.6 on the Pro. Could this be th

    Safari 5.1.6 won't run on my Pro. It was Safari 6 on the MacBook I transfered the data from. Could this be the problem, and if so, how do I up grade to Safari 6? I can't seem to find any help.

    Lion should be running Safari 6. Try Software update. Or apply the Lion 10.7.4 Combo installer:
    http://support.apple.com/kb/DL1524

  • I downloaded the Windows 64-bit version of iTunes, but the application won't run. It comes up with Apple Application Support - Error 2.  How can I fix this?

    I downloaded the Windows 64-bit version of iTunes, but the application won't run. It comes up with Apple Application Support - Error 2.  How can I fix this? I have uninstalled and reinstalled it several times and it still doesn't work.

    What computer do you have?  is it 32 or 64 bit operating system?

  • TS3002 My macbook pro 4,1 runs os x 10.6 but won't run my apple usb superdrive. One forum said that this is due to os x, not hardware. The terminal commands given were for Lion, but don't work in snow leopard. Help!

    My macbook pro 4,1 runs os x 10.6 but won't run my apple usb superdrive. One forum said that this is due to os x, not hardware. The terminal commands given were for Lion, but don't work in snow leopard. Help!

    I was able to get it to work!

  • We have three users on my desktop and since I upgraded to 8.0.1, Firefox has been deleted off of their accounts. I've tried installing it separately, but it still won't run. How can I fix this problem?

    We have three users on my home desktop and since I upgraded to 8.0.1, Firefox has been deleted off of their accounts. I've tried installing it separately, but it still won't run. How can I fix this problem?

    See:
    *http://kb.mozillazine.org/Browser_will_not_start_up

Maybe you are looking for

  • Warnings while transporting a process chain

    Dear all, I am getting the below warning message when I am transporting my process chain into Quality. Due to this, the PC is now in inactive version in the target system. The logs shows the below message No destination maintained in target client 00

  • Plug-ins for RealServer 8 and Oracle 9i

    We are in the process of figuring out what we need to stream video stored in 9i with InterMedia using RealServer 8 on Solaris. Oracle says that there is no plug-in for Oracle 9i yet. All the plug-ins I found on OTN, even the 8i ones refer to RealServ

  • EOU(urgent)

    My scenario is EOU i,e my vendor declared his material as a export material but he selling his product to us(local sale). But he is giving invoice with custom duty and respectively education cess and sec .education cess also. But at the time making P

  • Credit Management: FI-AR

    Hi, FSCM Credit Management has been activated and is working fine on the Sales and Distribution side. But we can't get the FI-AR side working, for example, when posting a customer invoice through FB70. The necessary BAdI's are activated from what we

  • Skin Smoothing:How does it work?.

    I am trying to use skin smoothing for the first time. After following the simple instructions in the Aperture help menu absolutely nothing happened. I am assuming you use it the same way as the retouch brush (which still works fine), that is, either