How to get the spool id or how to create a spool id for the report .

hi,
how to get the spool id or how to create a spool id for the report .
this spool id i have to use it in CONVERT_ABAPSPOOLJOB_2_PDF fm to get the pdf download file.
my requirement is to download a pdf file from the alv grid list.

Hi Raghu,
Execute this program.
REPORT  ZTEST_3318                              .
tables: usr01.
perform send_report_to_spool.
*&      Form  send_report_to_spool
      text
form send_report_to_spool.
  data: loc_dest like pri_params-pdest,
        wf_listname type char12,
        wf_listtext like PRI_PARAMS-PRTXT,
        wf_copies type i,
        wf_days type i,
        wf_PARAMS LIKE PRI_PARAMS,     " achieving file PRI_PARAMS.
        wf_valid type c.
  clear : wf_listname , loc_dest , wf_listtext .
  move: 'AP interface' to   wf_listname .
  move: 'AP interface' to   wf_listtext .
select single spld into usr01-spld from usr01 where bname eq sy-uname .
  if sy-subrc eq 0 .
    move: usr01-spld to loc_dest .
  endif .
  call function 'GET_PRINT_PARAMETERS'
    EXPORTING
      destination    = loc_dest
      copies         = 1
      list_name      = wf_listname
      list_text      = wf_listtext
      immediately    = ' '
      release        = ' '
      new_list_id    = 'X'
      expiration     = 1
      line_size      = 200
      line_count     = 65
      layout         = 'X_65_200'
      sap_cover_page = 'X'
      receiver       = 'SAP*'
      department     = ''
      no_dialog      = 'X'
    IMPORTING
      out_parameters = wf_params
      valid          = wf_valid.
  if wf_valid <> space.
    new-page print on parameters wf_params no dialog.
    perform write_summary .
    new-page print off.
  endif .
endform.                    "send_report_to_spool
*&      Form  write_summary
      text
-->  p1        text
<--  p2        text
FORM write_summary .
data: begin of itab occurs 0,
      matnr type matnr,
      end of itab.
select matnr
       from mara
       into table itab
       up to 10 rows.
loop at itab.
write: / itab-matnr.
endloop.
ENDFORM.                    " write_summary
This will create spool in SP01.What data you want to put in Spool write it in form write_summary.I have done coding for testing purpose
After that use that spool for your purpose.
If Useful award point

Similar Messages

  • How to get the user created when I prepare for the BD Identity Manager

    Hi I have a query, I need to get a backup database Identity Manager 9.1, I have a problem I do not remember user created to perform the backup, how can you know that I created when I made the installation of Identity Manager, or how can I find

    Hi,
    You can do this trick:
    1) Go to "Deployment Manager" in the Web Console, and open the EXPORT applet
    2) Export the User Defined Fields from the USR form. You don't need any dependence for this.
    3) Open the generated XML with a text editor.
    3) Search for the <SDK_SCHEMA> tag
    This tag contains the OIM schema name, wich shoud be your OIM database user.
    Hope it helps,

  • HT204266 I lost the app "app store" on my iphone. How to get it back? I couldn't find a way neither on the iphone mor on iTunes Could you please help me in restore this app? Thanks

    I lost the app "app store" on my iphone. How to get it back? I couldn't find a way neither on the iphone mor on iTunes Could you please help me in restore this app? Thanks

    The App store is a iOS function and cannot be deleted. Try checking other home screens/folders and see if you can locate it. If not, go into Settings>General>Reset>Reset Home Screen Layout.

  • Hi how I get the refund from the unauthorised in app purchase? I just bought the phone n had yr staff do the personal setup n end up I had been charged for the in apps purchased

    Hi how I get the refund from the unauthorised in app purchase? I just bought the phone at yr store few days ago n had yr staff do the personal setup n end up I had been charged for the in apps purchased. Pls help.

    yr store few days ago n had yr staff do the personal setup n end up I had been charged for the in apps purchased. Pls help.
    NOT at mine or anyone else's  here
    This is a User to User technical support community .There is no-one from Apple here and Apple neither read nor respond here
    Did you not work that out when you agreed to the terms of use of this community when joining today

  • Can anyone tell me how to get crossfade to work...was working ok, but now for some reason when i click on a track and try to drag on a fade it just highlights the track but does not leave a fade on?

    can anyone tell me how to get crossfade to work...was working ok, but now for some reason when i click on a track and try to drag on a fade it just highlights the track but does not leave a fade on?

    Hello mate!
    Are you sure u have the option on the up-right side of the arrange window checked to x-fade?

  • So I had photshop cs5 installed on my pc...i had to get my hard drive replaced! I have the serial number and everything, but I need to know how to download it. I really don't wanna have to pay for the program over again.

    So I had photshop cs5 installed on my pc...i had to get my hard drive replaced! I have the serial number and everything, but I need to know how to download it. I really don't wanna have to pay for the program over again.

    If you registered your product, you should be able to find the download and serial number from your Adobe account.
    https://www.adobe.com/account.html
    Otherwise:
    Download Adobe CS5.5 Trials: Direct Links (no Assistant or Manager) | ProDesignTools
    You might still have to contact Customer Support to reset your Activations, unless you managed to deactivate the original installation.

  • How to get handle of a button that i created through Customisation?

    How to get handle of a button that i created through Customisation?
    I tried this in processformrequest ..failed :(
    String str2 = paramOAPageContext.getParameter("AutoDialler");
    if (str2 != null) {
    System.out.println("Inside AutoDialler Hurray");
    }

    this works well
    but can you give documentation support of whatever you are saying?
    public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
    oasb.setID("xxSubmitAutoDialler");
    oasb.setUINodeName("xxSubmitAutoDialler");
    oasb.setEvent("xxSubmitAutoDialler");
    oasb.setText("xxSubmitAutoDialler");
    paramOAWebBean.addIndexedChild(oasb);
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    if ( strEvent.equals("xxSubmitAutoDialler"))
    //IMPORTANT Get this by calling the Function that loops for records.
    System.out.println("Inside processFormRequest Hurray");
    }

  • How to create RPC encoded wsdl for the bpel project created in jdeveloper?

    Hi,
    I have to create a bpel project in jdeveloper with the wsdl of the project in rpc encoded format. By default when we create a bpel project in jdeveloper it creates a wsdl file of document literal format, but i need the wsdl to be rpc encoded format. Please let me know how can i achieve this.
    Thanks.

    Hi Nico,
    Thanks for your reply.
    You mentioned to specify type in place of element, from where do you get this type and what more changes we need to do for the entire project to compile well with out errors.
    As suggested by you, I changed the element to type and tried to compile, it is giving the below error.
    Error:
    [Error ORABPEL-10902]: compilation failed
    [Description]: in "bpel.xml", XML parsing failed because "undefined part type.
    In WSDL at "file:/D:/indu/jdevstudio10134/jdev/mywork/TimerApplication/SelectDB/bpel/SelectDB.wsdl", message part type "SelectDBProcessRequestType" is not defined in any of the schemas.
    Please make sure the spelling of the type QName is correct and the WSDL import is complete.
    [Potential fix]: n/a.
    Please let me know what are all the changes that need to be done to complie the project successfully.
    Thanks and Regards.

  • Enyone know how to get USB stick back to normal after creating a USB boot disk for Mavericks?

    Enyone know how to get USB stick back to normal after creating a USB boot disk for Mavericks? https://discussions.apple.com/message/23527458#23527458

    You should just be able to erase it using Disk Utiilty. I did with my 8Gb.
    If not I have a USB deep format tool, but it only works with Windows: http://tinyurl.com/mwor6s9
    You can download that and unzip it, then run it on a PC to fully erase and format the flash drive. Format it in FAT, and then the Mac will read and mount it so you cna once again format it with HFS extended for Mac use.

  • How do I create a new calendar for the current year, using last years calendar's birthday's/photos and comments from the lower pages?

    Each year for the past 5 years I make a family calendar and send copies to all he family members around the globe.  I hate that I have to recreate all the birthdays and special occasions from scratch, and re-drag all the photos onto these dates, in the lower half of the page of each month on the new calendar.  How can I create a new calendar for the current year and port all of these photos/comments into the new calendar from last years calendar, to save having to redo all this work!!  I am not talking about the upper half page of the photos only...I am referring to the calendar page of each month.
    Thanks in advance. 
    Colin

    Welcome to the Apple Discussions. Open iWeb so you see your original site in the left hand pane. Use the File->New Site menu option to create a new site. Give it the name you want.
    Now select a page in your original site and type Command+D. That will duplicate the page. Drag the duplicate page down to the new site and rename it as needed. Do that for the other pages you need in the original site.
    OT

  • How to create multi garnishment order for the same garnishment document

    Hi,
    Can anyone tell me how to create multi garnishment order for the same garnishment document. I tried to copy the entry in IT0195 but the sequence field is grayed out so it will just delete the old record. What configuration should I do to make this possible?
    Thanks a lot in advance.

    hi,
    As far as I got it.
    You cannot have multiple Garnishment order but if a need arises you have to maintain it in IT216.
    For that follow this path goto PA30->pernr->194->change->Garnishment->adjustment.
    Since like order you cannot maintain adjustment also directly.
    Regards,
    Amit
    Reward all helpful replies.

  • I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guess

    I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guessing it's Illustrator's formatting but I don't know. How can I find out if Illustrator will open the file and allow alterations? The image opens only in Apple's Pages software?

    rons,
    It seems that all you have is a raster image, presumable PNG24 or JPEG, in RGB.
    It may have been created as raster artwork in Photoshop, or it may have been created as vector artwork with the help of Illy, or as a mixture of vector and raster artwork in either application, or both combined.
    If you just need to have a raster representation in black and white based on the current colour image, you may try this, in a new RGB document (View>Smart Guides are your friends):
    1) File>Place the image (you may tick Link or untick and have it embedded);
    2) Create a rectangle with black fill (R = G = B = 0), at least as large as the image, and place it behind the image (you may ClickDrag with the Rectangle Tool between opposite corners, then Ctrl/Cmd+X+B);
    3) Select all and in the Transparnecy palette flyout click Make Opacity Mask with both Clip and Invert Mask ticked.

  • Hi my name is Al-Ameen, Am from Nigeria,actually my brother from the united kingdom sent me an iphone5, So when i insert my Sim card i discovered the iPhone is locked. So the reason why am sending this mail is to ask for the procedure of how to unlock an

    Hi
    my name is Al-Ameen, Am from Nigeria,actually my brother from the united kingdom sent me an iphone5, So when i insert my Sim card i discovered the iPhone is locked.
    So the reason why am sending this mail is to ask for the procedure of how to unlock an iPhone from another country the amount paid and all the other information about unlocking an iPhone.
    Hope to hear back from you guys.
    Many Thanks
    Al-Ameen.

    You need to contact the carrier to see if they offer unlocking and if you qualify. You may need to talk to your brother about this.

  • How do you transfer photo albums to the computer?  When I hook to USB, it only shows photos from the camera icon, not the photos icon.  I am trying to save pictures for the in-laws from their ipad.

    How do you transfer photo albums to the computer?  When I hook to USB, it only shows photos from the camera icon, not the photos icon.  I am trying to save pictures for the in-laws from their ipad.

    I have no clue that you mean by it only shows photos from the camera icon. It has to show the photos in the camera roll of the photos app since those are the only photos that you can import via the USB cable.
    There are other ways of transferring photos to a computer, but they involve using third party apps. There are WiFi transfer apps that will do this. DropBox will also let you upload photos to a public folder and then download them to a computer.
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    http://www.wirelesstransferapp.com/
    https://www.dropbox.com/ipad

  • HT204053 How do I change my old Apple ID to my new Apple ID for the iCloud?

    How do I change my old Apple ID to my new Apple ID for the iCloud?

    Welcome to Apple Support Communities
    Open System Preferences > iCloud, and turn off each service individually if you don't want to lose contacts, calendars, notes and reminders. If you don't want to be kept, just select Sign Out.
    Then, you will be able to log in with a new Apple ID, so do it and follow the steps

  • How to create  an alternative bom for the same product

    Hi expert,
       I want to know how to create an alternative bom for the same product. Can i use the different bom usage to create or use the same bom usage? In addition, how can i use the production version to link the alternative bom for the same product?
    Please help me solve the problem.
    Thanks in advance for any assistance.
    George shi

    HI
    you can go with t-code CS01
    if you have the BOM already and you want to create the alternative BOM then just goto create BOM
    and enter the material and plant and uasge system will auto matically prapose the next numner ie, if you have Alt BOM1
    then next system will prappose 2.
    then you can enter the components as per you requirement
    if you go to different BOM usage then sytem will not go for alternative BOM it gives again alt bom 1.
    prodcution version you need to craet from mateial master
    each version you can go woith alternative BOMS
    Version 1 will have alt BOM1
    Version 2 can haev ALT BOM2
    -ashok

Maybe you are looking for

  • SAP 4.7 Installation error in RFC Logon

    Hi friends,          I tried installing 4.7 with Oracle. But in Final stage ie., while in RFC jobs it asks for RFC Logon verification as Username : DDIC Password: Any body could give solution for this prob. Thanks in Advance, Sridhar S

  • Essbase_gettingStarted

    I was trying the getting started pdf that links essbase and ODI. I was trying it manually ie. i m not importing models,projects, etc. I am trying to create them on my own. I am using the default context(Global). 1)When i try to reverse the essbase me

  • ECC upgrade impact on BI

    Hi Gurus, We are currently on BI7 but the R/3 version is 4.7. The R/3 is going to be upgraded to ECC6 shortly. I know this is going to have an impact on BI7 since some of the tables & fields are going to be standard, which might have been customized

  • Context change not working during test

    Hi all, I've made a mapping. With several context changes. They all work fine when testing them in the message mapping and the operation mapping. But when I'm testing the actual scenrio all the target fields where a context change is used the target

  • Tomcat 5.025 : i cannot hit my web application

    Hi all, I just upgraded to Tomcat 5.0.25 and i was trying to hit my application as usual using http://localhost:8080/InterMenu/index.jsp But i cannot hit the page at all and i get the following error HTTP Status 404 - /InterMenu/index.jsp type Status