Issue related with Submit to spool.

Hi All,
Please provide you inputs to resolve the below issue :
Requirement : To generate spool before output ALV display.
Issue : when below statement is executed for creating spool.
      SUBMIT report name TO SAP-SPOOL
                        SPOOL PARAMETERS lv_print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB lv_name NUMBER lv_number
                        AND RETURN.
It returns back to my report program and perform authorization check on selection screen, which fails.
Please let me know how to avoid this authorization check  after return from SUBMIT.
Thanks in advance.

Hi,
Try as below,
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
                             ' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
      host like msxxlist-host.
data: begin of starttime.
        include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
Job open
  call function 'JOB_OPEN'
       exporting
            delanfrep        = ' '
            jobgroup         = ' '
            jobname          = jobname
            sdlstrtdt        = sy-datum
            sdlstrttm        = sy-uzeit
       importing
            jobcount         = jobcount
       exceptions
            cant_create_job  = 01
            invalid_job_data = 02
            jobname_missing  = 03.
  if sy-subrc ne 0.
                                       "error processing
  endif.
Insert process into job
SUBMIT report-name and return
                with p_param1 = 'value'
                with p_param2 = 'value'
                user sy-uname
                via job jobname
                number jobcount.
  if sy-subrc > 0.
                                       "error processing
  endif.
Close job
  starttime-sdlstrtdt = sy-datum + 1.
  starttime-sdlstrttm = '220000'.
  call function 'JOB_CLOSE'
       exporting
            event_id             = starttime-eventid
            event_param          = starttime-eventparm
            event_periodic       = starttime-periodic
            jobcount             = jobcount
            jobname              = jobname
            laststrtdt           = starttime-laststrtdt
            laststrttm           = starttime-laststrttm
            prddays              = 1
            prdhours             = 0
            prdmins              = 0
            prdmonths            = 0
            prdweeks             = 0
            sdlstrtdt            = starttime-sdlstrtdt
            sdlstrttm            = starttime-sdlstrttm
            strtimmed            = starttimeimmediate
            targetsystem         = host
       exceptions
            cant_start_immediate = 01
            invalid_startdate    = 02
            jobname_missing      = 03
            job_close_failed     = 04
            job_nosteps          = 05
            job_notex            = 06
            lock_failed          = 07
            others               = 99.
  if sy-subrc eq 0.
                                       "error processing
  endif.
Regards,
Santhosh.

Similar Messages

  • Will the new 10.6.8 update fix SATA3 issues related with 2011 MacBook Pros?

    Will the new 10.6.8 update fix SATA3 issues related with 2011 MacBook Pros?

    It is against TOU to speculate on these message board.  Suggest you post your question on the Mac Rumors site.
    As I already stated, there is no 10.6.8 update.  If there was, it would be listed in Software Update.

  • Issues related with the current update kitkat

    A week earlier i updated my tab to kitkat version and now i am facing the problem to transfer my internal storage data to my hp pc
    Want a solution for this issue

    Hey @shreynirvick ,
    Welcome to the HP Forums!
    I understand you're not able to access the internal storage on your Voice Tab from your PC.
    Google started enforcing a security protocol on the KitKat operating system that has caused drastic changes in how storage works on your device.
    Essentially, nothing has access to manage files that is not installed in the same directory as the file itself. The biggest issue was with managing SD storage which you can read about here:
    KitKat and SD cards — what's fixed, what's broken and what's misunderstood.
    How can I get Android KitKat to work with my SD cards?
    You can also check your storage settings. Go to Settings > Storage > Menu button (top right corner) > USB Computer Connection > Ensure MTP is selected.
    Thanks.
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • Problem with submit for spool number generation

    Hi All,
    I have a ALV report which downloads the output to pdf . I have a footer data in the END_OF_PAGE event which should be displayed for each page. It works fine if I take a  printout using the print option in the report output screen and generate a spool number the footer is getting printed.
    But when I use a submit to sap-spool....statement to generate the spool number the footer is not displayed.
    Any suggestions??

    Hi RAkesh,
    Are you using the FM 'REUSE_ALV_COMMENTARY_WRITE' for footer text or simple using the write statements.
    try with the both options, still problem provide the complete code.
    Regards,
    Satya.

  • Issue related with the Date Format --- error when activating the DSO

    Hi Friends..
    plz help me to fix the issue ...im getting when activating the DSO...
    Actually im not getting error when loading the data thru DTP..im facing this issue while activating the DSO..
    is there any routine to solve this or i have to go for data selection in info package ......
    I have searched in the forum also..but im not able to fix..plz help
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRMPOSTDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZKITRDT*
      Value '01/20/20' of characteristic 0DATE is not a number with 000008 spaces
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZMNS_DATE*
      Value '20101502' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_EXCDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_PRIDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZCOMPDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZDUEDAT*
      Value '20101402' of characteristic 0DATE is not plausible
    Thanks
    Baskar
    Edited by: tjgnanabaskar on Aug 6, 2010 5:35 PM

    Hi Friends..
    plz help me to fix the issue ...im getting when activating the DSO...Actually im not getting error when loading the data thru DTP..im facing this issue while activating the DSO..is there any routine to solve this or i have to go for data selection in info package ......I have searched in the forum also..but im not able to fix..plz help
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRMPOSTDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZKITRDT
    Value '01/20/20' of characteristic 0DATE is not a number with 000008 spaces
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZMNS_DATE
    Value '20101502' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_EXCDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_PRIDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZCOMPDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Thanks
    Baskar

  • Issue related with CLOB field in Oracle and PI

    Dear Experts,
    We are trying to transfer material Long description from SAP to Oracle table.
    There is a field in Oracle table 'LNG_DESC' which is defined as CLOB.
    In PI mapping we have defined that fields as String type with Maxlength as 14000.
    There are few materials for which this limit is excedding and we are getting ORA:014
    String too Long' error in communication channel.
    Kindly suggest that how can we define a field in PI as CLOB or how to handle this
    situation.
    Thanks
    Sumit

    Hi Hank,
    The reason could be either improper set up and loading sequence followed, or transactions not locked while performing set up filling and initialization.
    There could be two approaches to rectify this.
    1. Redo the inventory data, as per how to document.
    2. Identify the transactions that are not captured, by running the reports and analysing the date on which transactions are not captured(this could be quite painful) and then fill set up of movements just for these documents and load to cube without discurbing the deltas.
    Do write back to me, if you have any questions.
    Naveen

  • Issue related with using the FM BBP_READ_ATTRIBUTES

    Hi all,
    We are using SRM 5.0, ECC6 and ECS scenario
    We have a requirement where we need to add multiple delivery address in the org structure at the user level. The attribute id is ADDR_SHIPT. there will always be a inherited address available, we need to add more addresses to it and set one of the addresses to a default value.
    I had used the FM BBP_READ_ATTRIBUTES, the problem I'm facing is that it is overwriting the inherited addresses. I have checked several threads which mentioned we can set the IMP REPLACE_P and append values but this is not happening even If set or un-set the parameter REPLACE_P.
    In one of threads I think by Disha, it was mentioned that the values will always get overwritten, so in case there is an existing value and if we need to append 2 more values then we need to populate 3 entries in the FM and execute. I have tried this but I always end up with 1 value.
    I guess I might be doing something wrong .
    The following is the code snippet I'm using :
    it_attr_tab-attr_id = 'ADDR_SHIPT'
    it_attr_tab-value_logsys = space
    it_attr_tab-value = '11734'
    it_attr_tab-dft_flag = 'X' (this is not set for other records)
    CALL FUNCTION 'BBP_READ_ATTRIBUTES'
      EXPORTING
        orgunit_id_p = '50000763'
        scenario_p  = 'BBP'
        start_date_p = sy-datum
        end_date_p  = '99991231'
        replace_p    = <have used both X and space>
      TABLES
        it_attr_p            = lt_attr_tab.
    I really appreciate any and all information you can give me on this.
    Thanks in advance
    Kishan

    Hi Vangala,
    Thank you for your reply. I have checked the Table T77OMATTR, but I don't see any field such as inheritance type. The following are the values which are maintained in the table T77OMATTR for the attribute ADDR_SHIPT :
    ATTRIB = ADDR_SHIPT
    REFSTRUCT = BBP_ATTR_F1
    REFFIELD = ADDR_SHIPT
    REFOBJTYPE = SPACE
    RANGE = SPACE
    MULTIPLE = X
    WITHDEF = X
    SUPP_CONV = SPACE
    NO_MAINT =  SPACE
    REF_ATTRIB = SPACE
    INTTYPE = C
    INTLEN = 10
    OUTPUTLEN = 10
    ATEXT = Delivery Address
    Please let me know if there is anything else to be checked or done
    Regards
    Kishan

  • LMS Backup issue (related with re-install HUM)

    Since the HUM evaluation period expired, I want to reinstall HUM 1.2 (LMS 3.2) because my customer didn't had enough time for evaluation.
    I order to do this, I have uninstalled the HUM 1.2 and reinstalled HUM. However, during the re-installation the mandatory automatic backup failed.
    The backup.log file doesn't contain any errors (backup completed). A manual backup seems to work fine and the system is working properly.
    What is causing this issue? or is there a way to skip the backup performed during LMS 3.2 (HUM only) installation.
    thanks in advance for any help

    we have purchased a (promo) HUM license now, but it doesn't include the media. How to get a copy of the HUM software
    Since I can't use the originally shipped HUM evaluation copy (installation fails on the backup as described in my original post)

  • Skype Issue related with Skype to Go

    Greetings, I have an account in Skype and I tried with Skype to go, I have a phone numbre from Mexico in my smartphone and an USA phone number in a normal phone, when Skype me ask me for ID of call, I tried to find Mexico but I could not, so I had to use the USA number, but now I can not call. How can I change the ID of call if Mexico is not available there? Thank you.

    Greetings, I have an account in Skype and I tried with Skype to go, I have a phone numbre from Mexico in my smartphone and an USA phone number in a normal phone, when Skype me ask me for ID of call, I tried to find Mexico but I could not, so I had to use the USA number, but now I can not call. How can I change the ID of call if Mexico is not available there? Thank you.

  • Work flow issue related with the cost center

    Hi ,
    I received a strange requirement from my client.
    Right now we are working work flow concept for my client.
    1) Sales Order type should be linked and managed by the cost center.
    2) Each cost center should allow a maximum of 10 pieces for the free of charge order. (Order type FD)
    3) There  must be one-to-one relationship between cost center and reviewer. (Reviewer seem like a authorized person, who approve the free of charge order to the respective customer)
    Please guide me on this regard.
    It will be great help to  me.
    Thanks
    S

    solved

  • Select list with submit issue when they are referred in report region query

    I have a page with a reporting region. Same region also has 3 different list items and depending on the value selected in each item, the report is refreshed. All the 3 list items are "Select list submit with submit"
    Out of 3 items, 2 (say item2 and item3) are populated through dynamic LOV using the value in item1.
    Additionally, when I select a default "ALL" value in in item1, I ignore values in item2 and item3.
    With this background, I am a following issue:
    1. I select a value other than Default value in item1 which filters the report.
    2. Then I select some value in item2 which further shrinks the reports.
    3. Now if I go back to item1 and select the default "All" value, the report is not refreshed with the new values of item1, item2 and item3. But it still shows the report based on value of item2 that I selected in step2.
    How do I set the value of item2/item3 to null if value of item1 is default which is "All"
    Any word of advise will be a great help!
    Thanks,
    Girish

    Hi,
    Make two computations each with the computation text NULL; or
    Make one process with code like:
    BEGIN
    :P1_ITEM2 := NULL;
    :P1_ITEM3 := NULL;
    END;With the condition "Value of Item in Expression 1 = Expression 2"
    Expression 1: P1_ITEM1
    Expression 2: ALL
    (or whatever the return value of ALL is...remember that this is case sensitive)
    Mike

  • Contacts related with more than one account

    Hi guys,
    I'm having the following issue on my CRM OD Service Request project.
    The usual data flow for our attendants have to be: Identify the account, identify the contact who are calling on the account home page and then create the service request on the contact home page, so my service request is already filled with the account and contact information.
    The problem is that when the contact is related with more than two accounts, the account that appears on my service request is the primary account of the contact.
    For example, if Paul is related to the account A and B and he calls to talk about a problem related with the company B, the attendant opens the company B home page, then he opens Paul's contact home page and then create the SR and the SR comes with the info of company A (probably because company A is Paul's primary account) and not of the company B.
    Do you know if have anyway to avoid this problem?
    Thanks in advance
    Rafael

    Rafael, this is normal behavior for CRM On Demand. I would recommend that you submit a enhancement request to CRM On Demand customer care.

  • Hello  I don't know who to complain to as you do not appear to have a complaints department, despite searching the web, I trust you can pass this to relevant department for action, as I'm very angry over my recent repair.  Following my issue relating to a

    Hello
    I don't know who to complain to as you do not appear to have a complaints department, despite searching the web, I trust you can pass this to relevant department for action, as I'm very angry over my recent repair.
    Following my issue relating to a blank screen 2 weeks ago, your advisor arranged for my iMac to collected by Amsys, for repair and return, this was done and it was returned to me last Tuesday, onWednesday I set up my iMac again and instantly realised I had problems, much worse than before. I called Amsys to inform them of the issue of the computer being very very slow and unable to open iPhoto and pages, and document listing would not show up, plus I had no sound on the mac.They informed me that they had only replaced the video card and what they had done would have not affected the computers performance. He suggested I reinstall OSX again which I did, but this made no difference to the programs, so I called you.
    Your technician on the phone was very good as they have always been, and made an appointment for me to go into the Milton Keynes Apple store the next day at 1 pm, which I did.
    The gentleman on the Genius Bar was very good and was able to run tests on the iMac in my presence, and diagnosed immediately an issue with the sound problem, and advised me that this could not be fixed while I wait and I would need to leave it for repair. I made him aware of the previous repair, and he was able to see via your system, the list of logged issues I have had with this since purchasing in September 2012. I'm sure you can see from the way you record all calls and issues the problems I have had.
    Today I called to ask if my iMac would soon be ready for collection, I was told the repairs had been completed and it was being tested. However to my dismay, I learned of another serious issue relating to the repair carried out by Amsys. I was informed that 6 screws were missing from the the iMac internally, which caused me much distress and concern, they also told me I had to wait even longer as the screws had to be ordered and installed on arrival before I could collect it.
    My issues here are: I trusted the Amsys repairer as it was arranged and recommend by you, it is very evident they are not competent to repair, as they have caused more problems with my iMac on its return, despite enclosing a checklist, fully ticked showing everything working well, it clearly wasn't ! Plus the issue of missing parts (screws) during the repair, I have already expressed my disgust with Amsys, by email and had a response, within the hour, apologising and told me they were looking into this.
    This where I stand on this, I have not had my iMac for  almost two weeks and I do not know when I will get it back. I'm also very worried about what other damage has been caused by Amsys and the quality of my iMac now. I want to know what you, Apple is going to do about this ? I have already been very inconvenienced by this and until now I have been a very loyal apple customer with 2 iPads, and 4 iPhones in our household, not to mention the iMac.
    I feel I have been very let down by this experience, on my iMac, which cost a lot of money, I have also lost a lot of money with lost work and unable to carry out my business without it, and I will be seeking compensation.
    I trust you will take this complaint seriously and pass it to the relevant department for action.
    Yours sincerely
    Des Withey 
    Sent from my iPad
    On 26 Feb 2014, at 11:44, Apple Support <[email protected]> wrote:
    Thanks for contacting us.
    Thanks for contacting Apple Support. If you need more help later, you can open the case below or start a new support request online.
    Case ID:
    Open this case
    Sincerely,
    Apple Support
    Get help online
    Visit Apple Support to learn more about your product, download software updates, and much more.
    Join the conversation
    Find and share solutions with Apple users around the world.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM, Cupertino, CA 95014.
    All Rights Reserved / Privacy Policy / Apple Support / Give us feedback
    On behalf of Apple Distribution International

    Call Apple Customer Relations - 1-800-275-2273.  Ask politely & firmly that you want to be transferred to Customer Relations.  Tell them exactly what you stated in your post.
    GOOD LUCK!
    These are user-to-user forums where everyday folk (volunteers) post questions and offer answers (technical support) to each other.  

  • Issue related to the Credit memo and S.O.

    Hi,
    I have one issue related to the Credit memo and S.O.
    We have a network of Dealers and Dealer inventory is linked with our system. When user creates S.O for Dealer1.If the item is not avail in our inventory and it is avail in any other Dealer inventory (Dealer2), then the system creates S.O wrt the Dealer2.
    In this case as the material is directly delivered from Dealer1 to Dealer2, there is no any GI in our system.
    So, the transaction with Dealer1 will be the normal as usual. But, we have to return the goods amount to the Dealer2 with any suitable way. We are considering it as a Credit memo.
    My question is, as we have created S.O wrt the partner function- Dealer1 and we are creating CR memo for Delaer2, is there any way through which we can link the se two transactions with customizing so that we need not to make any ABAP programming.
    I mean can we create Cr memo wrt S.O when the partner functions are different?
    Pl. guide me.
    Thanks,
    Roopan.

    You have an interesting Scenario.
    You can handle this scenario in multiple ways
    1. Third party Scenario (Here Dealer 1 becomes Vendor &Dealer 2 remains Customer)
    2. Order related sales & credit memo.
    3. Intercompany sales, where you represent dealers place as a plant in your system. (Not an ideal way to handle the scenario, but possible option)
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Radio Group with submit is clearing page in IE But not in Firefox

    I have an incompatibility issues in an app which works correctly in Firefox but does not work in Internet Explorer for myself and other users. I have an item (Yes or No) set as a Radiogroup with Submit with the source set as only when current value in session state is null. In Firefox the value is retained, If I select Yes or No, the page does an automatic submit and the value I selected is returned correctly. However in IE, when the auto submit is done the value is set as null. What could be causing this to work correctly in Firefox and not in IE?
    Edited by: Ed S on Sep 24, 2008 2:07 PM
    Edited by: Ed S on Sep 24, 2008 2:08 PM

    I found the problem. The items in question are in a SQL Region generated from the wizard as an SQL report. When I move these items into an HTML region it works correctly. This is an APEX bug. I also noticed Date Picker items within a report region do not work, you are unable to select the date.
    Edited by: Ed S on Sep 24, 2008 4:15 PM

Maybe you are looking for

  • Practicount Software...for mac

    I want to use the program, or any similar Transcriptionist Line/word count program...anyone know if Mac has such a software program...I can exchange Word related material no problem, but need a native professional line count software program... thank

  • Error(33,79): Reference ByeServiceService does not exist as wire target

    I have simple test BPEL created in Jdev 11gR1+. The BPEL has one partner link to asynch WebService (HelloService). The HelloService internally invokes ByeServiceService but the ByeServiceService is not connected to BPEL. (BPEL only communicates to He

  • OA Framework table view

    Hi my friends!!! I'm learning oa framework, and I have a question, I would create a screen where I enter the screen to perform a procedure passing parameters to it and the outcome of the procedure I can make a table.

  • Lost my Recovery partition

    Hi the A team, i need your support to recover my HP EliteBook 8560p partition. Am not able anymore to boot directly from the partition to restore my  system or create disks to use in an emergency. I will appreciat any advice. My product number is LY6

  • String equal method Vs Object equal method.

    hello, Can anybody explain me difference between equal method in String class and equal method in Object class. We have equal method in object classes. and object class is the super class of all classes, so why we need equal method in String class.