Some records are missing in the mail, when scheduled a background job.

There is a Z report,  which will display some details from SD, MM , WM every day , and the same thing need to be mailed to the user through background Job.
Issue is that spool is correct and it is missing some records ( Billing due list ), even internal table have records and displayed in the spool , in the mail it says
“No Entries Found”.
Is there any chance of debugging background job.
Good thing is that when executed in foreground it is working fine. Both mail and report display.

EM_BODY = '4) VF04 -- Processing Billing document due list.'.
  APPEND EM_BODY.
  EM_BODY = ' '.
  APPEND EM_BODY.
  IF IT_FINAL3[] IS INITIAL.
    EM_BODY = '        No Entry Found'.
    APPEND EM_BODY.
    EM_BODY = ' '.
    APPEND EM_BODY.
  ELSE.
    CONCATENATE 'Delivery No' 'Created By' 'Created On'
                 'Reason' INTO HEAD SEPARATED BY '     '.
    EM_BODY = HEAD.
    APPEND EM_BODY.
    EM_BODY = ' '.
    APPEND EM_BODY.
    CLEAR V_TEXT.
    CLEAR ITEM.
    LOOP AT IT_FINAL3.
      CONCATENATE IT_FINAL3-VBELN  IT_FINAL3-ERNAM IT_final3-ERDAT
                  IT_FINAL3-RESO INTO ITEM SEPARATED BY '     '.
      V_TEXT = ITEM.
      EM_BODY = V_TEXT.
      APPEND EM_BODY.
    ENDLOOP.
    EM_BODY = ' '.
    APPEND EM_BODY.
  ENDIF.
This is the part where it is failing, where it_final3[] is initial.
but whereas in the spool i can view those records.

Similar Messages

  • Some segments are missing in the idocs for master data zdebmas

    hi guru's,
    can any one hlep me here we facing the probelumm
    some segments are missing in the idocs for master data zdebmas
    , there is some issue on the generation of the Site Master IDoc (Message type: ZDEBMAS, Basic type: DEBMAS06).
    This is using the SAP standard program (RBDMIDOC) which reads the Site master change pointers.
    There is  some segments below is missing in the IDoc:
    how to chcek this probelumm...

    hi
    i got the function module. it is  triggerig whne i do changepointer running.
    what ever changes i made only that segments are onlycomming in to the idoc. but remaing segments are not comming.
    my req is to show all segments  even if i do changes in one segmet fields  dont change theay have send to the interfece all athe segments.i ahve to do some enhancemetns for that
    can u plse help me the login  or any function module which will fill the alla the segmetns .

  • Records are missing in the File which XI has placed in Target FTP server

    Hi All,
    I have a scenario where in XI is transfering the files from ECC to Target System . No transformation required here . I am using AAE to run this scenario.
    Issue i am facing here is that i can see few records missing in the File  which XI had placed in the Target system FTP server . Same file if i check it in archive folder of ECC (which XI has archived after picking the file), complete set of records are present for the same file.
    Need your inputs please....
    Note : XI is using AAE to transfer the files and no mapping . Also i tried to check out the audit logs in the channel monitoring . Unforutanely i was not able to see the logs to check the bytes that was transferred while readng and writing the file . Sometimes i have faced audit logs issue in PI 7.1
    Regards
    Vinay P.

    Please use temporary name scheme
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm
    hope this helps
    regards
    Ninad

  • Some coloumns are missing in the transaction FB50

    Hi Experts,
    We are finished with the upgrade from 4.6c to ECC6.0.
    Here we have an issue with FB50 transaction.
    In ECC6.0 the following coloumns are missing in the table control in the initial screen of the transaction FB50,
    1) STATUS
    2) Tax jurisdictn Code
    3) W/O cash disc
    We have deactivated the transaction variants also but still we are not getting the above coloumns.
    Thanks,
    Rakesh.

    check for SPRO configurations there are not
    cheers
    s.janagar

  • Some fields are missing in the ALV output

    Hi ,
    I have created a normal ALV report using REUSE_ALV_GRID_DISPLAY . It shows the output correctly. But when I take the prin out or download to an excel sheet some fields are not there. Can I know how to solve this issue ?
    Regards,
    Beena

    hi Beena,
    If you are downloading the ALV output to excel, please make sure that the DDIC structure is passed as a parameter to the REUSE_ALV. I doubt you are creating field catalog from the program and that DDIC structure is not used.
    Hope this helps,
    Sajan Joseph.

  • Check what records are missing in child tables when compared to Primary tables

    I have a person table(200 records with 200Persons),Column Person Id (PK),FN, LN,USERNAME and there are 13 tables which are referenced by Person id ex: Attachement table has a column UpdatedPersonid
    ex: Inventory table has a column ModifiedbyPersoind
    like wise I have 13 child tables...
    What i need to find is which person is not active , which means i have to find which personid  is not exists  in any 13 tables, so that i can delete the person  from Personid (person table)....I know a way to do for each table, but i am more
    interested in a single query to find which user is not active ..
    Please help me  ..Thanks

    Select p.PersonID, p.FN, p.LN, p.USERNAME
    FROM Persons p
    Where Not Exists(Select * From Table1 t Where p.PersonID = t.PersonID)
    And Not Exists(Select * From Table2 t Where p.PersonID = t.PersonID)
    And Not Exists(Select * From Table3 t Where p.PersonID = t.PersonID)
    And Not Exists(Select * From Table13 t Where p.PersonID = t.PersonID)
    Tom

  • Some countries are missing from the iCloud KeyChain confirmation process

    Cyprus (+357) is not listed in the Countries list, thus I can not confirm and activate my Icloud Keychane option!

    Guys even Sri Lanka (+94) is missing, would really love to use this feature, since I've been using apple devices from 2007 onwards.
    Cheers,
    Amila Fonseka

  • Changing the file format of spool output when scheduling a background job.

    Hello Experts,
    I have an issue. It is related to Spool output format. I created a job for one report program for which the output is a list output. I have added one recipient in the 'Spool list recipient' while creating the job SM36. After the job is finished the spool output is sent to the recipient mail id as .htm format as an attachment. But the attachment should be excel sheet or text file. No coding in the program should be used to convert the file format. Only settings in the spool while creating job should be manipulated. Please help me in solving this issue.
    Regards.

    Hi Sunil,
    You can use the logic for converting spool to PDF using program : RSTXPDFT4 . Alternatively you can use FM: CONVERT_ABAPSPOOLJOB_2_PDF . In this FM you need to pass the Spool id .
    u can make use of these FM's SO_DOCUMENT_SEND_API1
    SO_NEW_DOCUMENT_SEND_API1
    Check out the following wiki:
    https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertsspoolrequestintoPDFdocumentand+emails
    hope this will use full to you.
    Thanks!!

  • Records are Missing when we run Delta Load( FIGL-ACCOUNT ITEMS)

    Hi,
      Some records are missing when we run Delta load.
    We have one generic data source on FAGLFLEXA table.
    We select  Field nm TIMESTAMP
    TIME STAMP IS LOCAL.
    upper limit is Blank
    Lower limit is 1000.
    we run this process chain every day.
    we select delta settings is New status for changed records.
    Please give me any idea why records are missing when we run deltas.
    Thanks
    Naik

    Hi Anju,
    Please ensure that you are following the below steps while Initilizing the application 13:
    1. All the users in source system, must be locked.
    2. Ensure that SMQ1 and RSA7 are having no data for application 13. Delete the application 13 datasource entries from RSA7.
    3. Delete and refill the setup tables for application 13.
    4. Run a INIT with data transfer load for the required datasources of application 13.
    5. The Deltas can follow from the next day.
    This will ensure that your deltas are fetching correct data. Note that, delta will pick up the same conditions on which the INIT load was run.
    Please let me know if you need any more information.
    Regards,
    Pankaj

  • Crystal Report Alerts not firing when no records are fetched from the DB

    Hello,
    The crystal report alert i have created in the report in the event of no records being fetched from the query is not firing.  The condition used is isnull ( count(DB Field ) ).
    Is there a limitation with alerts that they would be fired only when some records are fetched in the report.
    Appreciate any pointers
    -Jayakrishnan

    hi Jayakrishnan,
    as alerts require records to be returned here's what you will need to do:
    1) delete your current alert
    2) create a new formula with syntax like
                  isnull(DistinctCount ()) or DistinctCount () = 0
    3) create a new Subreport (which you will put in a report header)
    4) the subreport can be based off of any table
    5) have the subreport record selection always return only 1 record...for performance reasons
    6) change the subreport link to be based on the new formula
    7) the link will be a one way link in that you will not use the "Select data in subreport based on field" option
    8) now in the subreport, create the Alert based on the parameter created by the subreport link
    i have tested this and it works great.
    jamie

  • For all entries : lines are missing in the results

    Hi all,
    I have a problem with my abap code.
    some lines are missing in the results.
    I have check the note 65554 but i use the version 6.40
    TYPES: BEGIN OF wys_bseg,
             bukrs TYPE bsad-bukrs,
             belnr TYPE bsad-belnr,
             gjahr TYPE bsad-gjahr,
             augbl TYPE bseg-augbl,
             augdt type bseg-augdt,
             hkont TYPE bseg-hkont,
             WRBTR type bseg-WRBTR,
             KOART type bseg-KOART,
             SHKZG type bseg-SHKZG,
           END OF wys_bseg.
    TYPES: begin of wys_bsas,
             bukrs TYPE bsas-bukrs,
             hkont TYPE bsas-hkont,
             augbl TYPE bsas-augbl,
             augdt type bseg-augdt,
             gjahr TYPE bsas-gjahr,
             belnr TYPE bsas-belnr,
             waers TYPE bsas-waers,
             blart TYPE bsas-blart,
             gsber TYPE bsas-gsber,
             dmbtr TYPE bsas-dmbtr,
             xblnr TYPE bsas-xblnr,
             SHKZG type bseg-SHKZG,
             zmntfact TYPE bsas-WRBTR,
           end of wys_bsas.
    DATA: wt_bseg_tmp TYPE wys_bseg OCCURS 0 WITH HEADER LINE.
    DATA : wt_bsas type wys_bsas occurs 0 WITH HEADER LINE.
        sort wt_bsas by bukrs belnr gjahr.
        DELETE ADJACENT DUPLICATES FROM wt_bsas COMPARING bukrs belnr gjahr.
    IF NOT wt_bsas[] IS INITIAL.
        select bukrs belnr gjahr augbl augdt hkont WRBTR KOART SHKZG from
    bseg into table wt_bseg_tmp
                  for all entries in wt_bsas
                  where bukrs EQ wt_bsas-bukrs
                    and belnr EQ wt_bsas-belnr
                    and gjahr EQ wt_bsas-gjahr
                    and koart EQ 'D'.
    ENDIF.

    Hi
    Yes Arun is right, INTO TABLE option delete automatically the duplicates lines, so you make sure to insert all keys in order to load all record.
    Insert the field BUZEI in the structure of internal table:
    TYPES: BEGIN OF wys_bseg,
             bukrs TYPE bsad-bukrs,
             belnr TYPE bsad-belnr,
             gjahr TYPE bsad-gjahr,
             buzei type bseg-buzei, <------ New field
             augbl TYPE bseg-augbl,
             augdt type bseg-augdt,
             hkont TYPE bseg-hkont,
             WRBTR type bseg-WRBTR,
             KOART type bseg-KOART,
             SHKZG type bseg-SHKZG,
           END OF wys_bseg.
    Max

  • Some parameters are missing values

    I am trying to invoke a crystal report using JRC API. I am using Business Objects XI.
    When I try to invoke the report after setting all parameters I am getting an error message "Some parameters are missing values ". Here is how my JSP code looks like
    ReportClientDocument oReportClientDocument = new ReportClientDocument();
    oReportClientDocument.open(reportName, 0);
    CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();
    //set the reportsource property of the viewer
    oCrystalReportViewer.setReportSource(reportSource);
    //set viewer attributes
    oCrystalReportViewer.setOwnPage(true);
    oCrystalReportViewer.setOwnForm(true);
    //set the CrystalReportViewer print mode
    oCrystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
    //refresh the CrystalReportViewer if necessary (only required once)
    if (session.getAttribute("refreshed") == null)
    oCrystalReportViewer.refresh();
    session.setAttribute("refreshed", "true");
    String userid="emagia";
    String password="emagia";
    String rptuserid="tjordan";
    String fromdate="07/01/2008";
    String todate="07/12/2008";
    ConnectionInfo ci = new ConnectionInfo();
    ci.setUserName(userid);
    ci.setPassword(password);
    ConnectionInfos connections = new ConnectionInfos();
    connections.add(ci);
    oCrystalReportViewer.setEnableLogonPrompt(false);
    oCrystalReportViewer.setDatabaseLogonInfos(connections);
    ParameterFieldDiscreteValue val1 = new ParameterFieldDiscreteValue();
    val1.setValue(rptuserid);
    Values vals1 = new Values();
    vals1.add(val1);
    ParameterField param1 = new ParameterField();
    param1.setName("User Id");
    param1.setReportName("");
    param1.setCurrentValues(vals1);
    Fields fields = new Fields();
    fields.add(param1);
    ParameterFieldDiscreteValue val2 = new ParameterFieldDiscreteValue();
    val2.setValue(fromdate);
    Values vals2 = new Values();
    vals2.add(val2);
    ParameterField param2 = new ParameterField();
    param2.setName("Date Range from");
    param2.setReportName("");
    param2.setCurrentValues(vals2);
    fields.add(param2);
    ParameterFieldDiscreteValue val3 = new ParameterFieldDiscreteValue();
    val3.setValue(todate);
    Values vals3 = new Values();
    vals3.add(val3);
    ParameterField param3 = new ParameterField();
    param3.setName("Date Range To");
    param3.setReportName("");
    param3.setCurrentValues(vals3);
    fields.add(param3);
    oCrystalReportViewer.setEnableParameterPrompt(false);
    oCrystalReportViewer.setParameterFields(fields);
    oCrystalReportViewer.processHttpRequest(request, response,getServletConfig().getServletContext(), null);
    oCrystalReportViewer.dispose();
    In the Tomcat log this is what I get
    - JRCAgent3 received request: refreshData
    - JRCAgent3 attempting to acquire license
    - JRCAgent3 successfully acquired license
    - JRCAgent3 releasing license
    - JRCAgent3 received request: getPromptConnInfos
    - JRCAgent3 received request: compoundRequest
    - JRCAgent3 received request: setSQLLogonInfoRequest
    - JRCAgent3 received request: setSQLLogonInfoRequest
    - JRCAgent3 received request: fetchReportPageRequest
    - JRCAgent3 attempting to acquire license
    - JRCAgent3 successfully acquired license
    - Logon: Connecting to database using local JNDI server ...
    - Connection Opened null
    - Connection opened (Connection:  databaseType=JDBC  serverName=reports_dsn.dsn  state=open  databaseDriverName=crdb_odbc.dll).
    - Report parameters is not valid
    - Report parameters is changed
    - Handling report parameters changes
    - Validating report parameters
    - com.crystaldecisions.reports.dataengine.l: Some parameters are missing values
    - The report requires parameter values that need to be supplied by the client before further processing
    com.crystaldecisions.reports.dataengine.l: Some parameters are missing values
         at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a9.a(Unknown Source)
    Can anybody tell me why I am getting this error??
    Any help will be appreciated.

    The problem may be that you are setting your report date parameters as a string when you pass the value to the report.   If the JRC does not recognize the parameter value as the correct type, it will throw the error you see when trying to pass them to the report.
    If they are a date type or a date time type in the report, they must be set as such using the Java Calendar object.
    Below is an example of how one would pass a date parameter to a report:
    //DATE VALUE PARAMETER.
         Calendar calendar = Calendar.getInstance();
         calendar.clear();
         calendar.set(2004, 1, 17);
         Date dateParamVal = calendar.getTime();     
         pfieldDate.setName("dateParam");
         pfieldDVDate.setValue(dateParamVal);
         //Add the parameter field values to the Values collection object.
         vals5.add(pfieldDVDate);
         //Set the current Values collection for each parameter field.
         pfieldDate.setCurrentValues(vals5);
         //Add each parameter field to the Fields collection.
         //The Fields object is now ready to be used with the viewer.
         parameterFields.add(pfieldDate);
         //DATE-TIME VALUE PARAMETER.
         Calendar calendar2 = Calendar.getInstance();
         calendar2.clear();
         calendar2.set(2002, 5, 12, 8, 23, 15);
         Date dateTimeParamVal = calendar2.getTime();
         pfieldDateTime.setName("dateTimeParam");
         pfieldDVDateTime.setValue(dateTimeParamVal);
         //Add the parameter field values to the Values collection object.
         vals6.add(pfieldDVDateTime);
         //Set the current Values collection for each parameter field.
         pfieldDateTime.setCurrentValues(vals6);
         //Add each parameter field to the Fields collection.
         //The Fields object is now ready to be used with the viewer.
         parameterFields.add(pfieldDateTime);
         //TIME VALUE PARAMETER.
         Calendar calendar3 = Calendar.getInstance();
         calendar3.clear();
         calendar3.set(2002, 5, 12, 13, 44, 59);
         Date timeParamVal = calendar3.getTime();     
         pfieldTime.setName("timeParam");
         pfieldDVTime.setValue(timeParamVal);
         //Add the parameter field values to the Values collection object.
         vals7.add(pfieldDVTime);
         //Set the current Values collection for each parameter field.
         pfieldTime.setCurrentValues(vals7);
         //Add each parameter field to the Fields collection.
         //The Fields object is now ready to be used with the viewer.
         parameterFields.add(pfieldTime);
    Edited by: Merry Enns on Aug 5, 2008 8:11 PM

  • I have a iPod Nano, when it is connected to my laptop all my songs and books are there but when it is disconnected from laptop, some books and songs are missing from the library

    I have a iPod Nano, when it is connected to my laptop all my songs and books are there but when it is disconnected from laptop, some books and songs are missing from the library

    I have a simlar issue like this when loading my movies to my iTouch. iTunes says that all of your wanted content is sync and your iPod says that all content wasn't synced, is that what you are saying?

  • Sometimes my ipod does not down load my entire library when I sync up with itunes, even if I have items loaded in the play list and can see them in the play list in my itunes when I check my ipod play list some items are missing part 1 will be there but p

    Sometimes my ipod does not down load my entire library when I sync up with itunes, even if I have items loaded in the play list and can see them in the play list in my itunes when I check my ipod play list some items are missing part 1 will be there but part two is not. Why?????

    How is your iPod configured to sync music from your iTunes library?  In other words, what options and configurations do you have enabled from under the iPod's Summary and Music configuration panes in iTunes?
    B-rock

  • When extracting data some recors are missing

    I am extracting data for inventory.
    it is delta .When data is extracting from r/3 no process chain fails.
    But some of the records are missing. it is only happening for inventory datasource
    Please
    guide me on this

    Hi,
    when we say records missing, where is this happening?
    Is this at the Ds level or while update into the target.
    Is the initialization done with any selection conditions, if yes then delta also will be fetched only for those selections.
    Naveen.A

Maybe you are looking for

  • Any way to run a JAVA prog in background? (like SETI)

    Does anyone know if it's possible to have a java program only run during otherwise idle cpu cycles? I have a program which does an awful lot of number crunching, and needs to run for long periods of time. Ideally I want it to function in the same way

  • HT201272 Downloading past purchases?

    Hi there, I have lost my old iPhone, and I am trying to download the iTunes purchases I made on it to my new mac but they don't appear to be in purchased section, only on the history receipt. I cant find it to re-download my old library - please help

  • Question About this Ca

    I have a audigy 2 zs and logitech z5500 speakers. I have been trying to get a digital hook up for some time now and I have finally got it. But I have question. Everybody says that you need a mono mini plug to rca cable to make it work. I bought this

  • Regarding translation hub in oracle 10g

    Hi, I have developed a report in Oracle10G now i want to translate this report from english to spanish can any body help me with this How to open that report in Translation Hub available in Oracle 10g

  • Design Template for a PDF

    Hey guys I need some help! I need to design a MEDIA KIT for my business, and I need template for my PDF document. I am not very artistic when it comes to graphic design..so I need something to give my content some sex appeal! Is there sometime of "te