Need help in Exporting list to memory and return in background

Hello Experts,
I have a program which reads data from mc.9 by exporting list to memory.When I run it in foreground its working fine . However if I schedule it as a  background program it is unable to get list from memory.
Any help will be appreciable.
Thank you

Hi jayaram,
I tried to do as you said. Its creating spool request and status to completed (sm37 instead of sm36 bcoz i don't hv authorization in production server). Now I didn't see any errors in job log. But data coming to ztable is as usual ( all are ZEROS).
Hey when i tried doing it as below
  SUBMIT RMCB0300 WITH SL_WERKS-LOW = P_WERKS
                  WITH SL_LGORT = 'W001'
                  WITH SL_SPMON-LOW = P_FPERIOD
                  WITH SLV_NO = 'MC.9N'
                  WITH SL_SPMON-HIGH = P_FPERIOD EXPORTING LIST TO MEMORY AND RETURN .
  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      LISTOBJECT = LISTOBJECT
    EXCEPTIONS
      NOT_FOUND  = 4
      OTHERS     = 8.
  IF SY-SUBRC <> 0.
    if SY-SUBRC = 4.
      message 'not_found' type 'i'.
    ELSEIF SY-SUBRC = 8.
      message 'others' type 'a'.
    endif.
  ENDIF.
I found that my job with completed status but with in job log i found error of type I means that the error is with notfound type in exceptions.
Hey sorry for the postings may be due to some issues Im unable to see what i have replied in postings that's why im posting repeatedly..
Edited by: Praveen Pathuri on Apr 23, 2009 7:30 AM
Edited by: Praveen Pathuri on Apr 23, 2009 7:55 AM

Similar Messages

  • Submit program exporting list to memory and return in background

    Dear Experts,
    I am using the following code in one of my program to get opening and closing stock of a material.
    SUBMIT RM07MLBD
             WITH MATNR IN LOC_R_MATNR
             WITH WERKS IN LOC_R_WERKS
             WITH DATUM IN LOC_R_DATE
             WITH PA_SUMFL = WL_X
             AND RETURN
             EXPORTING LIST TO MEMORY.
    The program is working fine when executed in foreground. however when executed in background the job is cancelled. I tried to debug in background through SM50 and found that the program is terminated(No short dump but debug screen is closed and i dont see this program running in SM50) when the above code is executed.
    I found in the forum that when an ALV report is submitted in background it does not work. In my case the standard program is producing an ALV list (not ALV grid though).
    How would i avoid this situation because the program i am submitting is a standard program.
    What is the best solution to avoid from background jobs being cancelled when the above code is executed. Is there an alternate way that i can use to submit the program  and get data.
    Thanks in advance.
    Rajesh.

    Hi Rajesh,
    Just excute your standard program with the same input in back ground mode and check
    out put is coming or not .
    If output is not coming search by sy-batch and make the break points there and Ideantify
    the problem.
    When you execute the standard program  in back ground mode If the output is come it should in your Zreport also.
    I tried in my system in background mode also the output is coming for me.
    Thnx,
    Sam.

  • Submit  ALV report in Background & exporting list to memory and return

    Dear all,
    I created one Z program (ZPROGRAM2). 
    Here i use SUBMIT ZPRORAM1_ALV exporting list to memory and return.
    call function 'LIST_FROM_MEMORY'.
    call function 'TABLE_COMPRESS' .
    ZPRORAM1_ALV output i send mail.
    This all are working in foreground.
    If i schedule ZPROGRAM2 in background. that SUBMIT ZPRORAM1_ALV statement not working.
    Please give me the Solution.
    Thanks,
    Durai.V

    It is because of the ALV output that you are using. Check the condition sy-batch = 'X' (background processing) and then display a classical report. It will work then.
    Thanks,
    Jayant

  • Problems with SUBMIT and EXPORTING LIST TO MEMORY

    Hi,
    I have a program that executes another report using a submit call, then the output of this submit is retrieved to the program using the LIST_TO_MEMORY FM. Source code it's something like this:
    SUBMIT rptime00
                 EXPORTING LIST TO MEMORY AND RETURN
                 WITH SELECTION-TABLE t_params
                 USER 'my_user'.
    CALL FUNCTION 'LIST_FROM_MEMORY'
         TABLES
             listobject = t_table
         EXCEPTIONS
             not_found  = 1
             OTHERS     = 2.
    This code works fine if I execute the program in foreground. But when I try to execute the report in background (F9 instead of F8 for example), submit works fine but LIST_FROM_MEMORY returns a NOT FOUND exception instead of the output of submitted program.
    So, is it possible to retrieve the output of a program called via submit when the report that executes the submit is executed in background?, how can I retrieve the output of submit when the report is executed in background?
    thanks in advance

    try
    SUBMIT rptime00
                 EXPORTING LIST TO MEMORY AND RETURN
                 WITH SELECTION-TABLE t_params.
    without user
    hope that helps
    Andreas

  • "EXPORTING LIST TO MEMORY"  doesn't work

    Hi experts!
    In my program I need to update a vew deliveries using transaction VT04 and get from log numbers of updated deliveries. My code is:
    SUBMIT RV56TRGN USING SELECTION-SET 'VAN SALE/VT04'
    EXPORTING LIST TO MEMORY AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = list_tab
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    I get error:
    "Set screen is not allowed in subscreens"
    But when I run code:
    SUBMIT RV56TRGN USING SELECTION-SET 'VAN SALE/VT04' AND RETURN.
    It runs OK.
    Where may be the problem?

    test

  • Will SUBMIT report EXPORTING LIST TO MEMORY work, when Run in Background?

    You can use SUBMIT <report> EXPORTING LIST TO MEMORY, and then Call the FM LIST_FROM_MEMORY to get the Data.
    This works fine, when the Program is Run in Foreground. My question is, will it work when I Run the Program in Background? i.e. When I Run the Program in Background, will the SUBMIT Statement, Export the List to Memory? Because only then the FM LIST_FROM_MEMORY will get the Data.
    Any alternate solution to meet the same requirement will be appreciated.

    It works for me... my spool output looked like:
    11.01.2008          JC: Calling program - test list to memory                  1                                                                               
    ZLOCAL_JC_SDN_CALLING_PROGRAM                started at 12:54:29                        
    ZLOCAL_JC_SDN_CALLING_PROGRAM                call complete 12:54:30                     
    ZLOCAL_JC_SDN_CALLING_PROGRAM                started at 12:54:30                                                                               
    11.01.2008           JC: Called program - testing list to memory                                                                               
    ZLOCAL_JC_SDN_CALLED_PROGRAM                 was called at: 12:54:29                    
    for the following code:
    report zlocal_jc_sdn_calling_program.
    parameters:
      p_start(1)            type c.
    start-of-selection.
      perform testcase.
    *&      Form  testcase
    form testcase.
      data:
       lt_list              type table of abaplist.
      write: / sy-repid, 'started at', sy-uzeit.
      submit zlocal_jc_sdn_called_program
        exporting list to memory
        and return.
      write: / sy-repid, 'call complete', sy-uzeit.
      call function 'LIST_FROM_MEMORY'
        tables
          listobject = lt_list.
      write: / sy-repid, 'started at', sy-uzeit.
      call function 'WRITE_LIST'
        tables
          listobject = lt_list.
    endform.                    "testcase
    and
    report zlocal_jc_sdn_called_program.
    start-of-selection.
      write: / sy-repid, 'was called at:', sy-uzeit.

  • Submit and return exporting list to memory is not working in background

    Hi gurus,
    i am using submit statement and exporting list to memory. it works fine in foreground and i am able to get the output. but in case of background , it is not exporting the list.PLease help me on this.
    Thanks and regards,
    Rajeshwar

    Hello Rajeshwar,
    This is a duplicate thread. You have a thread with the same question.
    [list_to_memory is not working in background;
    Jayant Sahu

  • Need help with how to reset bios and admin password to reformat hard drive in 8440p elitebook.......

    need help with how to reset bios and admin password to reformat hard drive in 8440p elitebook? removal of cmos, resetting laptop, using cccleaner, windows password recovery and hiren's was noneffective, any help is appreciated. thanks

    Hi,
    As your notebook is a business class machine, security is more stringent - the password is stored in non-volatile memory and there are no 'backdoor' passwords.  Your best option would be to contact HP regarding this.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Need help in export/import

    Hello All,
    I need help in export/import of an  internal table (based on deep structure) to/from desktop either in excel or XML file.
    I have an int table which has to be sent to desktop either in xls or xml file and then import back to an internal table(with deep structure).
    Ex :
    Int table is based on structure.
    Structure has fields
    as
    f1 -
    f2 -
    f3 - table type
    Your help will be appreciated.

    Hi Nishant,
    Please put your question in below mention forum.
    SAP Business One SDK
    Thanks
    Mohammad Imran

  • Need help to Settings Apple iMAC 2012 and HP LaserJet 1100.

    Need help to Settings Apple iMAC 2012 and HP LaserJet 1100.
    I purchased a imac, 2012, before there was Windows 7. I have the HP LaserJet 1100 and Print Servers Trendnet TE100 P21, with Windows 7 it ​​worked, but with MAC OSX 10.8 does not want to, do not go printing. Could help with the setting?
    Нужна помощь в настроке Apple iMAC 2012 и HP LaserJet 1100.
    Я купил imac 2012, до этого был Windows 7. У меня есть принтер HP LaserJet 1100 и принтсервер Trendnet TE100 P21, с Windows 7 все работало, но с MAC OSX 10.8 работать не хочет, не идет печать. Могли бы помочь с настройкой?

    привет Roman,
    Mac OS X: About the Reset Printing System feature ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    10.5/10.6/10.7/10.8 instructions...
    In System Preferences>Fax & Print, Right click or Control+click on the Printers list Sidebar, choose Reset Printing System.
    if you hold option and click the "-" tab it resets the printing system.
    http://www.macosxhints.com/article.php?story=20031215144430486
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions.
    Any devices that previously appeared in your Printer List and Fax List will need to be added again after resetting the printing system.
    Resetting the printing system in Mac OS X 10.5.x+++
        1.    To use the Reset Printing System feature in Mac OS X 10.5.x, follow these steps:
        2.    Choose System Preferences from the Apple menu.
        3.    Choose Print & Fax from the View menu.
        4.    Control-click on list of printers on the left side of the window, then choose "Reset printing system" from the contextual menu. If you don't see a list of printers, Control-click on the text "Click + to add a printer or fax" and select "Reset printing system..." 
   
  As an alternative, if you currently have one or more printers listed, you can Option-click the "-" (Remove printer) button.
    http://support.apple.com/kb/ht1341
    Reboot.
    Mac OS X: О сброса системы Печать ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    10.5/10.6/10.7/10.8 инструкции ...
    В System Preferences> Печать и факс, правой кнопкой мыши или Control + Click на боковой панели списка принтеров, выберите Сброс системы печати.
    если вы держите опцию и нажмите кнопку "-" на вкладке он сбрасывает систему печати.
    http://www.macosxhints.com/article.php?story=20031215144430486
    Безопасная загрузка с HD, (Удержание нажатой клавиши Shift нажатой при загрузке), запустите Disk Utility в Приложения> Утилиты, затем выделите диск, нажмите на ремонт разрешения.
    Любые устройства, которые ранее появились в списке принтеров и факсов список необходимо будет добавить снова после перезагрузки системы печати.
    Сброс системы печати в Mac OS X 10.5.x + + +
    1. Для сброса системы печати в Mac OS X 10.5.x, выполните следующие действия:
    2. Выберите Системные настройки в меню Apple.
    3. Выбери для печати и факса в меню Вид.
    4. Управление кнопкой мыши на список принтеров в левой части окна, затем выберите "Сброс системы печати" из контекстного меню. Если вы не видите списка принтеров, управление кнопкой мыши на текст "Нажмите, чтобы добавить + принтер или факс" и выберите "Сброс системы печати ..." В качестве альтернативы, если у Вас уже есть один или несколько принтеров в списке, можно Option-нажмите кнопку "-" (Удалить принтер) кнопки.
    http://support.apple.com/kb/ht1341
    Перезагрузку.

  • I need help my computer isn't working and there is no was to get on my iTunes and I just updated my phone and now it's stuck on where it shows the plug connected to iTunes help!!!!

    I need help my computer isn't working and there is no was to get on my iTunes and I just updated my phone and now it's stuck on where it shows the plug connected to iTunes help!!!!

    There is no other way than to plug into a computer to restore the phone. You can use another computer to do so, but in case you did not back up to iCloud your data and settings will be gone.
    Follow this article to connect in recovery mode:
    iOS: Unable to update or restore

  • Need help my window is in thai and i dont understand at all.how to convert to english?

    need help my window is in thai and i dont understand at all.
    how to convert to english? i been trying for days but still cannot change it.
    because i cannot read thai..please help me step by step..
    my pc is touchsmart 9100 windows 7 professional.
    Not a single word is in english if i go to  'region and language' to change it.
    Everthing is in thai in the system.
    This question was solved.
    View Solution.

    Hi,
    OK. That means the default display lange of the OS is Thai. That is what was purchased. 
    You can try downloading  and using the  language appropriate LIPS (language interface package software) from Microsoft to change the  display language.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • I have tried everything I know to retrieve the iPhoto Library app.  I detest this new Photo app, which obviously wasn't designed with photographers in mind.  I desperately need help in retrieving the old app and have not been able to do it so far.

    I have tried everything I know to retrieve the iPhoto Library app.  I detest this new Photo app, which obviously wasn't designed with photographers in mind.  I desperately need help in retrieving the old app and have not been able to do it so far.  I have gone to my app folder and tried to update my iPhoto Library.  I have gone to my trash and brought it over to my desktop and still cannot use it.  Please help!

    Try this fix discovered by User photosb189:
    From Finder, hold down the option key on your keyboard and click on the Go menu at the top of the screen
    Select Library from the drop down menu
    Then navigate to Application Support > iLifeAssetManagement > assets
    Right click on the 'sub' folder and choose Compress
    Drag the resulting zip file to your Desktop (as a backup)
    Go to your System Preferences and choose iCloud
    Turn OFF the iCloud Photos option
    Go back to Library > Application Support and DELETE the iLifeAssetManagement folder
    Now, in System Preferences, turn the iCloud Photos option ON
    iPhoto should now be able to launch. Give it enough time to re-download your Photo Stream content. if you are missing any of your My Photo Stream photos (more than 30 days old), unzip the sub folder on your desktop and drag that into iPhoto.

  • Moto G 2014 on Prepaid Plan? I want to switch to a Smartphone and try things out, but need a phone with 32GB of memory and the 2014 has a card for it. When will the Moto G 2014 version be available for Prepaid plans?

    I want to switch to a Smartphone and try things out, but need a phone with 32GB of memory and the G 2014 has a card for it.
    When will the Moto G 2014 version be available for Prepaid plans?

    You can buy Applecare anytime before the 1 year warranty expires, so you could leave that to his discretion if you wanted, and he'd have 1 year to consider it.
    You can save ~$30 on the mini if you qualify for an educational or corporate discount. Office 2004 costs ~$145 with educational discount.

  • I Need help. I Change My Number and now imessage don t work.

    I Need help. I Change My Number and now imessage don t work.

    Hi Ivonka88,
    Here are some steps to try troubleshooting your issue with, depending on your specific symptoms:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Cheers!
    - Ari

Maybe you are looking for