Background Job is not creating the List ID

Hello Experts,
I am scheduling a program as a Background Job. When I go and check the tables TBTCP & TBTCO, I see the List ID field (TBTCP-LISTIDENT or TBTCO-LISTIDENT) value as 0 .
Hence I am not able to get the Spool ID for this List.
Can anybody please let me know what is the problem?
Thanks a lot.

Hi,
See, if this piece of code can help you.
data:   sdate type sy-datum,
        stime type sy-uzeit,
        l_valid,
        ls_params like pri_params,
        l_jobcount like tbtcjob-jobcount,
        l_jobname  like tbtcjob-jobname.
start-of-selection.
Get Print Parameters
  call function 'GET_PRINT_PARAMETERS'
       exporting
            no_dialog      = 'X'
       importing
            valid          = l_valid
            out_parameters = ls_params.
Open Job
  l_jobname = 'THIS_JOB'.
  call function 'JOB_OPEN'
       exporting
            jobname  = l_jobname
       importing
            jobcount = l_jobcount.
Submit report to job
  submit <your_program_name
       via job     l_jobname
           number  l_jobcount
       to sap-spool without spool dynpro
           spool parameters ls_params
              and return.
Kick job off 10 seconds from now.
  sdate = sy-datum.
  stime = sy-uzeit + 10.
Schedule and close job.
  call function 'JOB_CLOSE'
       exporting
            jobcount  = l_jobcount
            jobname   = l_jobname
            sdlstrtdt = sdate
            sdlstrttm = stime.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Mar 3, 2008 11:09 AM

Similar Messages

  • I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    Hi czigrand,
    Thanks for visiting Apple Support Communities.
    Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
    In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
    iTunes: Sending iTunes Gifts
    http://support.apple.com/kb/HT2736
    Best Regards,
    Jeremy

  • Create UDF for table not in the List of tables

    Hi all,
    I know that my question maybe easy or been asked before, but I couldn't find the answer.
    To create a UDF in SAP B1 version 9.0 you should go Tools -> Customization Tools -> User-Defined Fields - Management...
    which is ok and working perfect. but my question is:
    If I want to create UDF for a table not in the list of tables there what should I do? I need to create 2 UDFs for table OMRC [Manufacturers], and can't find it in master data tables.
    anyone had this issue before?
    EDIT  : Is it good to add the field by using sql server? I know it's possible, but will it be visible in SAP
    thank you
    Message was edited by: Samira Haroun

    Hi Samira,
    There is noit a simple link for this, I advise you to study the documentation for TB1300 SBO Development Certification.
    Ypu should also have knowledge of .net, and C# or VB, because you have to make a small program/addon to add the fields
    Kind regards
    Ad Kerremans

  • Country not on the list in creating iTunes U account

    Writing on behalf of Riga Graduate School of Law. We want to make our own iTunes  U account, but country Latvia is not on the list. What to do in this case?

    Sorry, but the iTunes U service is available only to the countries in the list. Institutions in Latvia (or any other country not on the list) cannot participate at this time. When, or indeed if, iTunes U will be expanded to include other countries, none of us here (who are all just fellow users) can say.
    Regards.

  • Background Job is not running in KW

    Hi All,
    I have problem with background job.
    I am working on Knowledge warehouse server.
    And I am scheduling background job to upload contents.
    But background job is not finishing at proper time.
    And while displaying trace it is giving following error.
    ERROR => BtcCleanUp: BtcLgAp-call failed (rc = 4) [btcjcntl.c   1251]
    Please help me to resolve this.
    Regards,
    Payal patel

    Hi Juan,
    I have tried with process as well as instance restart.
    It didn't help me.
    Hi Santosh,
    Following is the part of trace file (level -2).
    First line shows error.
    Tell me if you need any other log file.
    L  *** ERROR => BtcCleanUp: BtcLgAp-call failed (rc = 4) [btcjcntl.c   1251]
    M  read msgserver-list from MBUF
    M  ThSemRq (4, 1, 0, 0)
    M  ThSemRel (4, 1)
    M  ThSetBtcName: found batch server sapbl4_KW7_00                          
    M  ThScheduler2: server name: sapbl4_KW7_00                          
    M  ThISendMsg: send message (5) to server (wp) with name >sapbl4_KW7_00                           <
    M  ThISndName: send to name: >sapbl4_KW7_00                           <
    M  ThISend: (tm/type/info = 10/0x2000/0x0, mode_deleted=0)
    M  ThRqOutCheck: o.k.
    M  abap strategy ROLL / O.K.
    M  ThNewWpStat (type=0x2000, task_switch=0, inline_hold=0, hand_shake=0, debug=0, ..)
    M  ThNewWpStat: new state of T10/M0 = 0x3c
    M  ThISend: new wp stat: 0x0
    M  Adresse   Offset  Message by name (one way)
    M  -
    M  06C60600  000000  00000000 05000000 255f4556 454e545f |........%_EVENT_|
    M  06C60610  000016  53434845 44554c45 52202020 20202020 |SCHEDULER       |
    M  -
    M  ThMkReq: send output to canceled mode
    M  make DISP owner of wp_ca_blk 180
    M  DpRqPutIntoQueue: put request into queue (reqtype 0, prio LOW, rq_id 19358)
    M  -OUT- sender_id WORK_PROCESS      tid  10    wp_ca_blk   180     wp_id 10
    M  -OUT- action    SEND_MSG_ONEWAY   uid  11    appc_ca_blk -1      type  NOWP
    M  -OUT- new_stat  NO_CHANGE         mode 0     len         268     rq_id 19358
    M  -OUT- forward   DIA              
    M  -OUT- req_info  CANCELMODE MSG_WITH_REQ_BUF MSG_WITH_OH
    M  nihsl-getHostAddr: got hostname 'localhost' from operation system
    M  nihsi-getHostAddr: hostname 'localhost' = addr 127.0.0.1
    M  nihsl-getServNo: got servicename 'sapdp00' from operation system
    M  nihsi-getServNo: servicename 'sapdp00' = port 0C.80/3200
    M  NiIInitSocket: set default settings for socket 1196
    M  NiCreateHandle: state hdl 1 / socket 1196 NI_INITIAL
    M  NiIDgSend: init datagram send hdl 1 / socket 1196
    M  CPU byte order: little endian, reverse network, low val .. high val
    M  NiIDgSend: connect dgram to: host 127.0.0.1, port 0C.80/3200, fam 2 (low adr..high adr)
    M  NiIDgsend: sending on connected datagram-handle
    M  LOCK WP ca_blk 181
    M  ThResFree: free resources of U11 M0 I2 (normal mode, complete free) at level 3, errno=23, db_action=TH_DB_NO_ACTION, pooling=1
    M  ThResFree: reset spa state for user T10/U11/M0
    M  ThCallHooks: call hook >RtmClearSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >HttpClearSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >SpoolHandleHook< for event BEFORE_SESSION_CANCEL
    M  SosSearchAnchor: search anchor for 2
    M  PfStatDisconnect: disconnect statistics
    M  ThDealComm: del 1 cpic conn(s) of T10/U11/M0 (errno/deal_r2/free_level = 23/1/3)
    M  ThCPICFree: send DEAL to U11/M0
    M  ThICMDEAL (14030609, ..)
    M  ThCPIC: execute cpic func DEALLOCATE
    M  ThCPIC: last_ftype/last_timeout/last_requested_length/last_receive_data 1/-1/-1/0
    M  ThCPIC: allowed rq_type of T10/M0 = TH_APPC_RC_RQ
    M  ThConnectToLocGw: connect to local gateway
    M  GwConnectSapWp: connect to gateway >localhost< >sapgw00<
    M  nihsl-getHostAddr: found hostname 'localhost' in cache
    M  nihsi-getHostAddr: hostname 'localhost' = addr 127.0.0.1
    M  nihsl-getServNo: got servicename 'sapgw00' from operation system
    M  nihsi-getServNo: servicename 'sapgw00' = port 0C.E4/3300
    M  NiCreateHandle: state hdl 2 / socket -1 NI_INITIAL
    M  NiIBlockMode: switch off block-mode for hdl 2 / socket -1
    M  NiLowLevCon: connect to: host 127.0.0.1, port 0C.E4/3300, fam 2 (low adr..high adr)
    M  NiIInitSocket: set default settings for socket 1140
    M  NiISocket: hdl 2 got socket 1140
    M  NiPConnect: connect in progress
    M  SiPeekPendConn: connection of socket 1140 established
    M  NiLowLevCon: took local port 0E.51/3665
    M  nilh-localCheck: using local address list
    M  NiSetStat: state hdl 2 NI_CONNECTED
    M  NiIWrite: write 64, 1 packs, MESG_IO, hdl 2, data complete
    M  NiIPeek: peek successful for hdl 2 / socket 1140 (r)
    M  NiIRead: read 64, 2 packs, MESG_IO, hdl 2, data complete
    M  GwConnectSapWp: connect to gateway localhost / sapgw00 (pid = 6184) o.k.
    M  ThISend: (tm/type/info = 10/0x80/0x0, mode_deleted=0)
    M  ThRqOutCheck: o.k.
    M  abap strategy ROLL / O.K.
    M  ThNewWpStat (type=0x80, task_switch=0, inline_hold=0, hand_shake=0, debug=0, ..)
    M  ThNewWpStat: new state of T10/M0 = 0x3c
    M  ThISend: new wp stat: 0x0
    Regards,
    Payal Patel
    Message was edited by:
            Payal Patel

  • Rule set import - Background job did not run

    Hi,
    I am setting up my CC 5.2 production system. I have downloaded from ruleset from the dev CC and imported it into production. However the background job generated did not run. I am implementing SAP note 999785 to fix this, but am wondering what should I do about the rule set? Do I need to delete the rule set and reimport it? As this background job did not run I notice that the permission rules did not generate.
    Any advice is welcome.
    Thanks

    Hi,
    as the backgorund job never ran and no rules were created, I can just reimport the ruleset and let the job run. I have tried this and the rules were created successfully

  • T code to find sales orders/Deliveries for which batch job could not create

    Hi
    Once a PGI has been created for a sales order, the invoice should be created in nightly batch. Once is a while, something is wrong and SAP cannot create the invoice. I know there is a transaction that will list the orders / deliveries where SAP could not create the invoice. Can you tell me what that t-code is? Thanks

    Lakshmipathy
    I think you did not get my point corectly , I know , billing docs due list , what I  need was after batch job running , for some deliveries , due to some reason , billing docs might not have created .
    Business needs to know only thsese delivery docs in a T code or table but not all the due document . I did not find answer for this question in SDN .
    I got the answer now  for this question , it is V.21 .
    Thanks for your time .

  • IDOC number is not in the list

    Hi,
    I am creating an inbound delivery using IDOC. The message type is DESADV and basic type is DELVRY01. After I have populated the control and data tables, I processed them using IDOC_WRITE_AND_START_INBOUND. I have generated the IDOC number after executing the program. The problem is, when I go to WE02, the idoc number is not the list. I am not sure if the IDOC I generated is successful or not. Does it have something to do with the FM that I used. I set a custom process code that will call the FM IDOC_INPUT_DESADV1. Please advise. Thanks in advance.
    Lalyn

    Hi Arun,
    Thanks for the reply. But the IDOC number is not in the list and I can't access it WE19. Do you have any other Function module that I can use to process the IDOC in ABAP? The Function module should be the one to call the FM IDOC_INPUT_DESADV1 to create an inbound delivery. That's what I think causes the error. Thanks.
    Lalyn

  • Background job got cancelled for the user ----- Isolation and resolution

    Hi Experts,
    One background job got cancelled for the user I have the Jobname and User...
    Able to view the log information in SM37.
    I am not sure what is the next step to do and how to resolve this issue.
    Could any one please provide me the step by step Isolating the issue and resolving it.
    That would be really greatfull.
    Thank you in advance.
    Regards,
    Prem.

    Hi,
    What the error it was stating in that SM37 job log?
    Pls post that error log, not completely just mention the error here we'll try to help you.
    rgds,

  • How to set up sms sending on yosemite if my country (Kyrgyzstan) is not in the list of supported countries? thanks

    how to set up sms sending on yosemite if my country (Kyrgyzstan) is not in the list of supported countries? thanks

    hello guys, i live in lebanon too and i was so frustrated by this. however i found the solution. when setting up icloud keychain, before creating a password for the keychain press on advanced options and choose not to create a password. you will ahve to use your account password to activate keychain on other device. this will bypass the sms confirmation

  • Not gettting the list of interfaces for BPM in integration directory

    Hi Gurus,
                    I am trying to create receiver detrmination and interface determination for my BPM. When I select my BPM as communication component, I am not getting the list of abstract interfaces under outboutnd and inbound interfaces category.
    What might be th reason? I have tried by re importing the BPM in directory. But no use.
    Regards,
    Reyaz

    Let's say your scenario is :
    Sender --> BPM --> Receiver.
    Double click on your sender business system and go to Other Attributs tab. Check if the Software Component in which you created your objects, is present there or not. If not then go to SLD and and add the Software Component Version to your Business System.
    And then in ID from menu Environment --> Clear SLD Data Cache and then you can try it again.

  • Could not create the Java virtual machine What happen?

    all,good day!
    i use tomcat7 and JRockit JVM;
    tomcat7 version info:
    Server version: Apache Tomcat/7.0.27
    Server built: Mar 31 2012 03:43:36
    Server number: 7.0.27.0
    OS Name: Linux
    OS Version: 2.6.32-220.el6.x86_64
    Architecture: amd64
    JVM Version: 1.6.0_02-b05
    JVM Vendor: BEA Systems, Inc.
    JRockit JVM version info:
    java version "1.6.0_29"
    Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
    Oracle JRockit(R) (build R28.2.2-7-148152-1.6.0_29-20111221-2104-linux-x86_64, compiled mode)
    in R28 jrdoc ,The -XgcPrio option is deprecated in Oracle JRockit R28. The option works in R28, but Oracle recommends that you use -Xgc instead. For more information, see -Xgc;
    in -Xgc option info lists the garbage collection modes that i can specify with the -Xgc option. pausetime mode in which the option;
    but,but,i use -Xgc:pausetime in my tomcat7;tomcat startup error:
    The configuration of the JVM attributes in Tomcat in catalina.sh
    export JAVA_OPTS="-server -Xms25G -Xmx25G -XgcPrio:pausetime -XpauseTarget=200"
    the error info:
    [ERROR] Argument error: -Xgc:pausetime
    [ERROR] pausetime is not a valid garbage collector name for -Xgc.
    Valid options are: singlecon, gencon, genpar or parallel (singlepar).
    [WARN ] No unit entered for pause time target, assuming ms.
    Could not create the Java virtual machine.
    what's wrong in my configuration ?
    Edited by: 944618 on 2012-7-5 上午4:26

    I would add the jvm flag -showversion next to the -Xgc:pausetime flag, so you will see which JVM you're actually running.
    Also, the following part of your post is a bit inconsistent, which jvm flag are you actally using?
    "but,but,i use -Xgc:pausetime in my tomcat7;tomcat startup error:
    The configuration of the JVM attributes in Tomcat in catalina.sh
    export JAVA_OPTS="-server -Xms25G -Xmx25G -XgcPrio:pausetime -XpauseTarget=200"
    the error info:
    [ERROR] Argument error: -Xgc:pausetime"
    The error output you posted looks like the error you would get from a R27 version of JRockit.

  • BACKGROUND JOB WAS NOT SCHEDULED/LOG FILE NOT YET GENERATED

    Hello,
    To generate the log report, /VIRSA/ZVFATBAK program is scheduled on hourly basis but some time report doesn't get generated and if we see the background job then it shows sucessfully finished.
    If we see the maually the log report for FFID then below error message is displayed.
    " BACKGROUND JOB WAS NOT SCHEDULED/LOG FILE NOT YET GENERATED"
    Can anyone guide me to solve the issue.
    Thanks in advance.
    Best Regards,
    Prashant Dubey

    Hi,
    once chk the status of the job by selecting that and check job status(cltr+shift_f12)
    since it was periodically scheduled job there will be a RELEASED job after every active job..
    so try to copy that into another job using copy option and give some new name which u have to remember...
    the moment u copy u can find the same copied job in SCHEDULED status...
    from here, try to run it again on hourly basis....
    After copying the job u can unschedule the old released job to scheduled otherwise 2 will run at a time...
    rgds,

  • How to make an Account in iTunes store in a country that is not on the list

    Hi my name is Daniel and I'm from Israel.
    I've been trying to create an iTunes store account but I can't because my country is not on the list.
    I've been wondering whether there's a chance that I would make an account.
    I would realy appreciate it if someone will help me.
    thanking you in advance,
    Daniel.

    As you have noted, there is no Israeli iTunes store.
    In order to create an iTunes account, you need;
    a gift card from a country with an iTunes store and a mailing address in that same country
    or
    a credit card from a country with an iTunes store and a billing address in that same country

  • JRockit 'could not create the Java virtual machine'

    I installed JRockit (build R28.1.4-7-144370-1.6.0_26-20110617-2130-linux-x86_64) on a server SLES11SP1 (x86_64), but I got the following erros when I tried to run java command:
    /usr/lib64/jrockit-jdk1.6.0_26-R28.1.4-4.0.1/bin # ./java
    [WARN ][codegc ] Could not acquire 64KB of code memory.
    [WARN ][codegc ] 0B committed previously.
    Could not create the Java virtual machine.
    Any idea?

    When you do ./java you usually get some output such as:
    [oracle@edu-wls-rh bin]$ ./java
    Usage: java [-options] class [args...]
               (to execute a class)
       or  java [-options] -jar jarfile [args...]
               (to execute a jar file)
    where options include:
        -d32          use a 32-bit data model if available
        -d64          use a 64-bit data model if available
        -jrockit      to select the "jrockit" VM
        -client       to select the "client" VM
        -server       to select the "server" VM  [synonym for the "jrockit" VM]
                      The default VM is jrockit.
        -cp <class search path of directories and zip/jar files>
        -classpath <class search path of directories and zip/jar files>
                      A : separated list of directories, JAR archives,
                      and ZIP archives to search for class files.
        -D<name>=<value>
                      set a system property
        -verbose[:class|gc|jni]
                      enable verbose output
        -version      print product version and exit
        -version:<value>
                      require the specified version to run
        -showversion  print product version and continue
        -jre-restrict-search | -jre-no-restrict-search
                      include/exclude user private JREs in the version search
        -? -help      print this help message
        -X            print help on non-standard options
        -ea[:<packagename>...|:<classname>]
        -enableassertions[:<packagename>...|:<classname>]
                      enable assertions
        -da[:<packagename>...|:<classname>]
        -disableassertions[:<packagename>...|:<classname>]
                      disable assertions
        -esa | -enablesystemassertions
                      enable system assertions
        -dsa | -disablesystemassertions
                      disable system assertions
        -agentlib:<libname>[=<options>]
                      load native agent library <libname>, e.g. -agentlib:hprof
                        see also, -agentlib:jdwp=help and -agentlib:hprof=help
        -agentpath:<pathname>[=<options>]
                      load native agent library by full pathname
        -javaagent:<jarpath>[=<options>]
                      load Java programming language agent, see java.lang.instrument
        -splash:<imagepath>
                      show splash screen with specified imageNote the usage, which means have to use something like: ./java -Xms1024m -Xmx1024m -Xgc:throughput package.MyMainClass

Maybe you are looking for