Spool - restrict multiple sap script  layouts into a single spool

Hi Experts,
I am writing a Sap SCRIPT print program for multiple number of customers with different layouts. But i am getting seperate spools for different customers. There fore i need to print out all customers in a single spool.
Can some one help me how to do this?
Thanks
Dany

OPEN_FORM and CLOSE_FORM function module are used to open and close spool. When you have single form to create document then we specify form_name in OPEN_FORM function module itself. However when we have multiple forms or same form needs to be called multiple times and all document needed in same spool then we use START_FORM and END_FORM to explicitly open and close form.
Call function module in this sequence
OPEN_FORM "without specifying any form name, this will open spool
START_FORM " with form name
END_FORM
START_FORM "with (some other) form name
END_FORM
CLOSE_FORM "close spool request

Similar Messages

  • Regarding Adding multiple SAP Scripts in one Transaction

    Hi All,
    I have a requirement where i will have to develop one custom transaction which will have multiple SAP Script Forms to it.
    The scenario is as below:
    First i will have to create a Program with Selection-Screen with 10 Radio buttons in one Block - Here Each Radio Button indicated Diffrent FORM[SAP SCRIPT].
    Down to it i will create another Block with some selection-screen fields. Like Order Type, Order No, Customer PO number, SOLD TO, BILL TO, SHIP TO etc.
    And based on Radio button selected allowed order types will vary!
    So after selecting one Form[Radio button] and enetring other selection fields once i press execute button.
    i need to display list of Orders in ALV List output with check boxes for each record in the List Output.
    Here all the radio button Forms are related to <b>Sales Order document and Delivery document</b>
    So do we need to create new ALV List Report (or) We can use submit <b>VF31</b> transaction's program <b>[sd70av3a]</b>.
    After we are displayed with orders in the output.
    Then we should provide a functionality as such if user selects mutiple Orders/Check boxes he should be able to view multiple Orders one after other, and simultaneously generate PDF Files for Each Order Selected and attach them in Mail send them to Block of users.
    Can anybody give there sujjestions.
    Without generating spool request no's is it possible to generate PDF files for SAP SCript output!
    Is it possible to Generate & attach one/multiple PDF files to mail ID and send them to list of users!
    Can anybody give inputs.
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    hi prasad,
    There is one concept called Print Work Bench(PWB) to print the multiple scripts or smartforms which r assigned to a same transaction.
    If u need the info related to PWB shoot me a test mail to [email protected]
    i will send u the same
    fot the same u can check the below link also
    http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm
    <b>Prasad i didn't get the mail from you plz check it once again</b>
    If u find it useful plz mark the points
    Regards,
    Naveen
    Message was edited by: NAVEENKUMAR GUDURI

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • Worked on the SAP-Script layout sets in MM modules.

    sir,
    Like to know How would  Worked on the SAP-Script layout sets in MM modules.

    Hi,
    First of all what are we trying to achieve?
    I understand that changes where made to standard SAP SAPscript RVINVOICE01 and you where asked to make further changes.
    In SAP configuration you need to see what is the driver program for your SAPscript and what is the SAPscript name (transaction VOK2->Output->Processing Programs->Billing Documents) or via table TNAPR.
    This will allow you to see what is the driver program for your SAPscripr (this is the program that prepares data to be formatted by your SAPscript layour set).
    Once data is derived by an ABAP program, a sapscript is called from driver ABAP to print this data.
    You may need to make changes to driver ABAP (in case changes to data are required) or to SAPscript if changes to layout and window positioning are requested.
    Try not to modify standard SAP programs (copy to Z versions)...
    Hope it is of some help...
    Michael

  • Work on the SAP-Script layout sets in SD modules

    Hi,
         How to Work on the SAP-Script layout sets in SD modules. The documents modified were RVINVOICE01 as per the client’s requirements.

    Hi,
    First of all what are we trying to achieve?
    I understand that changes where made to standard SAP SAPscript RVINVOICE01 and you where asked to make further changes.
    In SAP configuration you need to see what is the driver program for your SAPscript and what is the SAPscript name (transaction VOK2->Output->Processing Programs->Billing Documents) or via table TNAPR.
    This will allow you to see what is the driver program for your SAPscripr (this is the program that prepares data to be formatted by your SAPscript layour set).
    Once data is derived by an ABAP program, a sapscript is called from driver ABAP to print this data.
    You may need to make changes to driver ABAP (in case changes to data are required) or to SAPscript if changes to layout and window positioning are requested.
    Try not to modify standard SAP programs (copy to Z versions)...
    Hope it is of some help...
    Michael

  • How to merge multiple live audio streams into a single stream in FMS?

    I need to merge multiple live audio streams into a single stream so that i can pass this stream as input to VOIP through a softphone.
    For this i tried the following approach:
    Created a new stream (str1) on FMS onAppStart and recorded the live streams (sent throgh microphone) in that new stream.
    Below is the code :
    application.onAppStart = function()
    application.myStream=Stream.get("foo");           
    application.myStream.record();
    application.onPublish = function (client,stream)
          var streamName = stream.name;
          application.myStream.play(streamName,-2,-1};
    The problem is that the Stream.play plays only 1 live stream at a time.As soon as a the 2nd live stream is sent to FMS then Stream.play stops playing the previous live stream.So,only the latest live stream is getting recorded.Whereas i need to record all the live streams in the new stream simultaneously.
    Any pointers regarding this are welcome.
    Thanks

    well i tried this once for one of my scripts and the final conclusion is its not possible to combine two streams into 1.....how would you time/encode the two voices......there is no know solution to this in flash. If you continue on despite me and find a solution please post it so we can explain to rest of world.

  • How do I join multiple (short) audio clips into one single long audio clip in Premiere Pro CS5?

    Hello,
    The question is in the title but I'm wondering how I can join multiple (short) audio clips into one single long audio clip in PP CS5.5.  I put all my short clips right next to each other and selected all of them to see what options are available by right clicking and using the toolbar options at the top.  The closest that I got was to nest the sequence, but that's not what I really want.
    I'd like to merge all the short clips into one single (long) audio file to use under the video.
    Thoughts are welcome and  greatly appreciated.
    Thanks,
    -Melvin

    O.K. This is kind of fundamental and you will need to learn up on this fully ...but for now...
    Make sure you have the WAB ( work area bar )covering the length of the audio clips. ( You do not need to select them)
    Go to the File Menu> Export Media
    You will be given all the Export Options.  Choose Wave File
    Select option for Export Work Area.
    Choose where to export the file to ( HD location)
    follow your nose from there....
    http://tv.adobe.com/watch/learn-premiere-pro-cs5/exporting-with-adobe-media-encoder/
    BTW - Why are you taking the audio to Audition anyway? What are you going to do to it.

  • Possible to aggregate multiple JSF custom actions into a single action?

    I'm wondering if it's possible to aggregate multiple JSF custom actions into a single action? For example, I have a JSF custom tag/renderer named selectOneMenuStateAbbreviation that displays a drop down list of state abbreviations. This tag allows a user to select a state abbrevation from the list.
    What I want to do is create another custom tag/renderer and call it inputAddress. The inputAddress tag, will consist of text boxes for street address, city, and zip code. I want to make it so that the state abbreviation custom tag that I already wrote is imbedded in this tag/renderer as well.
    Does anyone know if this is possible? Or, would I have to just duplicate the code that I already have in my other custom action?

    I would assume so, but, I don't know how. Can I do it using just tags and renderers, or, would I need to create a custom UI component as well? One tag would have to be a child of the other correct? I don't know how to do this in Java code. Does anyone know of example code that shows how to do this?
    Jon

  • Create spool number for sap script

    how to create a spool number for a SAP script. What is the program name which we should modify to write the code logic for spool creation for the tcode ME9F ?

    Hi,
    Spool Request in Transaction SP01 and there by generated a Spool Request Number.
    Spool request is a document for which a print function has been selected. However, it has not yet been output to a printer or another device. The output data for the print document is stored partly formatted in a data store until an output request is created, that is, until it is sent to a particular output device.
    The spool system uses a spool request to store the print data temporarily and to access it. The data is stored in a temporary format. You can also display the print document. The system automatically assigns a 10-digit ID number to a spool request.
    Output request: From the point of view of the SAP spool system, an output request outputs the print data of a spool request to a particular output device.
    Multiple output requests may exist for a single spool request. Each represents an instance of the output of the same spool request. Each of these output requests may have different attributes, such as the target printer or number of copies.
    By differentiating between spool request and output requests, the spool system provides a means of storing the data temporarily.
    You will get the spool no. in the parameter JOB_OUTPUT_INFO after calling the smartform function module in print program. The spool ids of the prints is stored in table JOB_OUTPUT_INFO-SPOOLIDS.
    Also if this spool is being generated internal to your program, then SY-SPONO should have the value.
    You need to create an Adobe Form Application, get the data from the backend based on Spool request number.
    You can create an application in Webdynpro, wherein when you click on a button and the Adobe Form is displayed with all the data from the backend and you should be able to print it.
    Does that answer your question ?
    Cheers,
    PANKAJ

  • How to spool out put of multiple scripts and get a single spool file output

    Hi,
    I have one master script that calls three other scripts. The three scripts each produce their own spool files. But I would like to have the master script also produce one single output (in addition to the three indiviual output I mean). How to do that? Can you please help.
    Following are the scripts:
    --m.sql (master script)
    spool c:\m.log
    @1.sql
    @2.sql
    @3.sql
    spool off
    --1.sql
    spool c:\1.log
    insert into test values(1);
    commit;
    spool off
    --2.sql
    spool c:\2.log
    insert into test values(2);
    commit;
    spool off
    spool c:\3.log
    insert into test values(3);
    commit;
    spool off
    --table used
    SQL> desc test
    Name                                      Null?    Type
    A                                                  NUMBERWhen I run the above script m.sql it does produce the other 3 log files (1.log,2.log etc) but m.log (which is master log file which should have output of each of the three calling script) is empty file with 0 byte!
    Thanks
    Edited by: orausern on May 1, 2011 3:17 AM

    I have one master script that calls three other scripts. The three scripts each produce their own spool files. But I would like to have the master script also produce one single output (in addition to the three indiviual output I mean). How to do that? Can you please help. Not sure if that's possible directly with sqlplus spool option
    When you spool to a different file in a single session, sqlplus stops writing to earlier spool file and redirects the output to the file specified in last spool command.
    at the end of the script, however, below may help
    host type c:\1.log >> c:\m.log
    host type c:\2.log >> c:\m.log
    host type c:\3.log >> c:\m.log

  • Save option enabling  in spool created from sap script.

    Hi,
    I got a requirement where in the output letter created using sap script, needs to be saved on local desktop. when the form is displayed from sp02 the save button is greyed out and also the path system->list->save option is also disabled.
    in foreground when we preview the form, there too the save options are not working.
    is there any option to enable the saving of form / letter on local machine.
    awaiting your response....
    thanxs

    Spool generated from SAPScript output can be converted to PDF on local/desktop using program RSTXPDFT4.
    -Alpesh

  • Sap script layout

    in sap script layoyt how can i draw a <b>vertical line</b> to separate the different colums?? what shoud be the commands to draw a vertical lines??

    Hi Biswajit,
    use &ULINE(80)& or &ULINE&.
    Regards, Dieter
    Sorry, i describe horizontal Line.
    Use BOX etc as mentioned
    Message was edited by: Dieter Gröhn

  • Merge spool from two SAP Scripts

    In a report using two separate forms for output. On report execution first output is displayed & then it display the second one. Thus two separate spools are generated.
    Is there any way to merge these two spools in one spool list through program.
    Kindly advise.
    Thanks
    anu

    Hi,
    Glad to let you know, it is <b>possible</b>.
    Have a look at the function modeules <b>RSPO_RETURN_ABAP_SPOOLJOB</b>, <b>RSPO_SR_OPEN</b> and <b>RSPO_SR_WRITE</b>.
    The first one extracts lines from a spool request. The second one creates a new spool request. The last one write lines into a spool request.
    you can use these three to split up small parts or combine into single
    Feel free to revert back.
    --Ragu

  • How to import multiple Excel/CSV columns into a single Sharepoint metadata choice column?

    Consider: I work for an organization that has eight service territories.  We have a series of procedural documents that can apply to from one to eight territories. We are moving this data over to sharepoint, and I'd like to add territory
    data as metadata. Unfortunately, with our current knowledge management system, the best we can get is 8 separate fields flagged as yes/no.
    is1 is2 is3 is4 is5 is6 is7 is8
    1   0  
    1   1   0  
    0   0  
    0
    0   0  
    0   1   1  
    0   0  
    0
    0   0  
    0   0   0  
    0   1  
    0
    I would like to be able to import this data into a SINGLE sharepoint metadata column as Choice/checkboxes/allow Multiple values. Is there a way to do this? We're using Foundations 2010, and our area does not have access to
    development tools (including SPD).

    Thanks for the reply. We have eight individual Columns in the Excel File, and when we do the import to Sharepoint, yes we get eight individual metadata columns.
    I would LIKE to be able to import the eight columns into ONE column in Sharepoint.
    Consider three documents.
    Doc1 is information applicable to Territories 1,3 & 4.
    Doc2 is information applicable to Territories 4 & 5.
    Doc3 is information applicable to Territory 7.
          is1 is2 is3 is4 is5 is6 is7 is8
    doc1   1   0  
    1   1  
    0   0   0  
    0
    doc2   0   0  
    0   1  
    1   0   0  
    0
    doc3   0   0  
    0   0  
    0   0   1  
    0
    This metadata would import to a SINGLE column in SharePoint called IsTerritory, which is defined as a Checkbox (multiple values) Choice Field, limited to the values 1-8.
    Doc1 would have checkboxes 1,3, & 4 checked, Doc2 would have checkboxes 4 & 5 checked, and Doc 3 would only have checkbox 3 checked.
    Does that make a little more sense? I'm having problems validating my account, so I can't upload screenshots yet...
    Thanks in advance for your reply.

  • How to generate spool request in sap script

    Hi Experts !!
    I had customized RFFCOUS_C -- > Include RFFORI01 for printing check and payment advise.
    Now if we run standard print program, spool will be generated first
    and then we can see the print prieview accordingly.
    But after my customization, after seeing print prieview when am clicking print button , then only spool is getting generated....
    i had checked everything...but not able to solve the issue.
    Please help.
    Regards
    Saurabh goel

    Hi,
    Just use below logic for script
    itcpo-tddest = p_print. " Printer name
    itcpo-tdnewid = 'X'.
    itcpo-tdimmed = 'X'.
    itcpo-tdcopies = '1'.
    call function 'OPEN_FORM'
    exporting
    device = 'PRINTER'
    dialog = ' '
    form = 'ZAUTO_REPLPRINT'
    language = sy-langu
    options = itcpo
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb100438#q-2
    Regards,
    Shiva(reward if helpful).

Maybe you are looking for

  • Creating ePub file in Unstructured FrameMaker 10-RoboHelp 9.

    Hello, I've created a book in FrameMaker, linked it to a project in RoboHelp and generated an ePub file. I can view the file in Adobe Digital Editions, but cannot load it to an iPad and view. There are some formatting issues that I need to work on (b

  • I have a unknown person's macbook connected to my network. How do I remove it?

    I have an unknown person's macbook connected to my computer as a "shared" directory.  How can I remove it?  i'm signed in as my computer's administrator, but it says I don't have sufficient permissions to remove it...

  • Phone doesn't respond

    sometimes when trying to return to the Call screen.  Example:  When I'm on a call and need to view Contacts, I'll press Speaker, hit the Home button, view my Contacts then press the Green Bar to return to the Call screen, the phone doesn't respond an

  • My ipad keeps shutting off and cannot restart immediately

    please help, my ipad keeps shutting off for no reason and will not come back on again unti it is ready.  at least 5 times now very frustrating. any suggestions?

  • Export with transparency / alpha

    I am doing a green screen key, and I prefer to compose the background with the keyed foreground i FCP. I am achieving great results with DV-keying in shake, and would like to export my keyed clips with their alpha layer, so that FCP will import it wi