Regarding spool creation with 0 pages...

Hello,
I am using following code for spool creation but it gets created with 0 pages. Even though I can see data the spool has 0 pages due to which it causes issues when I try to convert spool to pdf.
DATA :
     lv_handle     TYPE sy-tabix,
     lv_spoolid    TYPE tsp01-rqident,
     lv_rc         TYPE c,
     lv_errmessage TYPE c,
      et_table     TYPE scarr OCCURS 0 WITH HEADER LINE.
SELECT *
FROM scarr
INTO TABLE et_table.
CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'
  EXPORTING
    dest       = 'LP01'
  IMPORTING
    handle     = lv_handle
    spoolid    = lv_spoolid
    rc         = lv_rc
    errmessage = lv_errmessage.
LOOP AT et_table.
  CALL FUNCTION 'RSPO_WRITE_SPOOLREQUEST'
    EXPORTING
      handle     = lv_handle
      text       = et_table-url
    IMPORTING
      rc         = lv_rc
      errmessage = lv_errmessage.
ENDLOOP.
CALL FUNCTION 'RSPO_CLOSE_SPOOLREQUEST'
  EXPORTING
    handle     = lv_handle
  IMPORTING
    rc         = lv_rc
    errmessage = lv_errmessage.
DATA: v_pdf_bytecount TYPE i,
               it_pdf          TYPE tlinetab.
" convert spool number to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
  EXPORTING
    src_spoolid   = lv_spoolid
    no_dialog     = ' '
  IMPORTING
    pdf_bytecount = v_pdf_bytecount
  TABLES
    pdf           = it_pdf.
Please help.
Regards,
Jainam.
Edited by: Jainam Shah on Aug 26, 2009 5:53 PM
Edited by: Jainam Shah on Aug 26, 2009 5:53 PM
Edited by: Jainam Shah on Aug 26, 2009 6:07 PM

Solved by my own.
We need to use a FM as below to create page..
CALL FUNCTION 'RSPO_PAGE_BREAK_SPOOLREQUEST'
  EXPORTING
    HANDLE                 = LV_HANDLE
  OPTIONS                =
  LENGTH                 =
IMPORTING
  RC                     =
  ERRMESSAGE             =
EXCEPTIONS
  HANDLE_NOT_VALID       = 1
  OTHERS                 = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Similar Messages

  • Regarding spool (payment with printout)

    i posted vendor pmt through f-58, i assigned seqential cheque lot. when the document is saved cheque number is assigned to document automatically, but when i check (sys->services->output control) 2 spool req r coming.
    1.cheque
    2.payment advice
    i m taking print out of the cheque by selecting spool req(cheque), after taking printout spool is appearing from spool requests. how can i reprint the cheque (suppose enduser may wrongly assign another cheque) or how can i call back spool req of the printed cheque.
    can anyone helpme

    Hi,
    Use transaction FCH7 for reprinting the check.If the user has given wrong check number give that check number to void with a void reason code and assign new check for printing the same.

  • Spool request with more than 255 columns

    Hi,
    Please let me know what formatting type has to be used to have spool output with more than 255 lines.
    X_24_80_JP        L      ANY           00024   00080   ABAP list HR Japan: At least 24 rows by 80 columns
    X_44_120          L      ANY           00044   00120   ABAP/4 list: At least 44 rows by 120 columns
    X_51_140_JP       L      ANY           00051   00140   ABAP list HR Japan: At least 51 rows by 140 columns
    X_58_170          L      ANY           00058   00170   ABAP/4 list: At least 58 rows by 170 columns
    X_60_80_JP        L      ANY           00060   00080   ABAP list HR Japan: At least 60 rows by 80 columns
    X_65_1024/4       L      ANY           00065   01024   ABAP List: At Least 65 Lines 4*256=1024 Columns Four-Sided (Only for SAPlpd)
    X_65_132          L      ANY           00065   00132   ABAP list: At least 65 rows by 132 columns
    X_65_132-2        L      ANY           00065   00132   ABAP List: 2-column 65 characters 132 columns (only for SAPLPD from 4.15)
    X_65_200          L      ANY           00065   00200   ABAP list: at least 65 lines with 200 columns (not for all device types)
    X_65_255          L      ANY           00065   00255   ABAP/4 list: At least 65 rows with a maximum number of columns
    X_65_256/2        L      ANY           00065   00256   ABAP list: At least 65 lines 2*128=256 double columns (SAPLPD only)
    X_65_512/2        L      ANY           00065   00512   ABAP List:  At least 65 Lines 2*256=512 Columns 2-sided (Only for SAPlpd)
    X_65_80           L      ANY           00065   00080   ABAP/4 list: At least 65 rows by 80 columns
    X_65_80-2         L      ANY           00065   00080   ABAP List: 2-column 65 characters 80 columns (only for SAPLPD from 4.15)
    X_65_80-4         L      ANY           00065   00080   ABAP List: 4-column 65 characters 80 columns (only for SAPLPD from 4.15)
    X_90_120          L      ANY           00090   00120   ABAP list: At least 90 rows by 120 columns
    X_PAPER           L      ANY           00010   00010   ABAP/4 list: Default list formatting
    X_PAPER_NT        L      ANY           00001   00001   ABAP/4 list: Obsolete (do not use)
    X_POSTSCRIPT      L      ANY           00001   00001   Pre-prepared PostScript
    X_SPOOLERR        L      ANY           00001   00001   ABAP list: Spooler problem report
    X_TELEX           L      TELEX         00001   00001   Telex: 69 characters wide, only as many lines as supported by TTU
    ZABC_SAP        L      ANY           00065   00550   LCM Report Page Type
    I have created a custom Format Type with 65*550 (ZABC_SAP) , but still the output gets truncated in the spool.
    In sp01 . For the spool request ... If it displayed in Graphical layoout ... Output is getting truncated but when we see in Raw format .. i can see the entire output. But it is not at all formatted.
    Thanks,
    Tanuj
    Message was edited by:
            Tanuj Kumar Bolisetty

    Hello Tanuj,
    You need to use a page format greater than 255 columns for sure. However still if it does not solve the issue then you may consider using the note 186603.
    PS: I guess you are on a higher release than 4.6 C . For this release this note íIt has a text attachment for a report tat allows to display such spool requests.
    Regards.
    Ruchit.

  • How to get spool along with e-mail or FAX

    Hi,
    I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
    I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
    Could any one suggest me how to get spool along with e-mail or FAX option.
    Thanks in advance.

    Hi,
    check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
    hope u'll get some idea.
    Regards,
    Sneha.

  • Error message display for PO creation with reference to internal orders

    Sir,
    While creating PO with Tcode ME21N (item category I) with reference to ' Internal Order with Funds provided (Tcode KO12), system displaying error message  when Budget is exceeded.
    But when Funds provision is not mentioned (Funds value is initial in KO12) , error message is not being given by the system during Po creation with ME21N.
    Where should I configure in img(Tcode SPRO) , so that system will throw error mesage while creating PO without Budget Provision (Funds not mentioned ) in Internal Orders.
    Regards,
    Srinivasa Murthy

    Hi Anupam,
    The error message display as follows. (when the PO Price exceeds the Planned Funds kept for internal order)
    This error comes during PO creation Process and PO can not be saved. This error message display is correct.
    Item 001 Order 600643 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 001 Order 600643, budget  for fiscal year 2009 was exceeded by 99,960,000.00 INR.
    But  my question is 'when funds have not at all been mentioned for the internal order' then system has to throw the same error as mentioned above. But it is not happening. System is allowing the PO to save which is not correct.
    Regards,
    Srinivasa Murthy

  • Is there really not an email address for tech support that you (or I, if absolutely need be) could forward my below email to?  ( I really do not want to waste time being put on hold on the phone.)  Issues times 3 - Regarding iPad 2 with IOS 7:  1.)  I can

    Is there really not an email address for tech support? ( I really do not want to waste time being put on hold on the phone.)
    However, I have 3 Issues Regarding iPad 2 with IOS 7:
    1.)  I can no longer open up the apps from the update page. (I used to be
    able to &amp; it was a quick way of making certain that I wanted to keep an app
    before I updated it.
    2.)  I have many apps that I have updated since installing the new
    operating system &amp; they now have "open" symbols next to them, but I don't
    know how to get them off of my update list (since that has already been
    done to them).
    3.)  My iPad has gotten stuck or frozen more in this last week since the
    new update then has in the last 2 years put together. (It seems to be stemming from the "Updates" page as sometimes  that page is just white &amp; will not open, even though everything else opens &amp; I have an internet connection.)

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430http://support.apple.com/kb/ht1430
     Cheers, Tom

  • Po Creation With Reference to contract

    Dear Experts
                       We are creating the purchase order with reference to contract the contract quantity not copied to po. it is asking to enter the qty. but it should copy the contract quantity. the same contract price also not copied to po. it is copying from the info record price.
    my scenario is at the time of po creation with reference to contract it should copy the contract qty and price any copy control assignment is there or any other settings required.
    Please help
    Regards
    Anand

    Hi,
    If a contract with one of your principal vendors exists for a material, you can create purchase orders referencing this contract. Purchase orders created in this way are called contract release orders.
    The price, vendor data,  terms of payment, delivery costs, and any instructions to the vendor are adopted from the contract automatically.
    If  you have created the contract & info records is also exists  then system will give priority to contract to determine the conditions.
    Please check the source list ,whether contract is maintained over there or not.
    Thanks,
    AMIT

  • BOM changes(Not creation) with EC Number

    Hi
    I want to make the ECN as mandatory while changing the BOM,not for creation.
    I tried by setting OS27,OS25 settings for BOM. I tried BOM creation with status 3(With history requirement). System gives only warning message,not the error message.(Message no. 29045)
    I tried to make the Change number field as mandatory,but it applies it to CS01 & CS02. I want only in CS02.
    Plse help me out if any knows the soultion.

    Dear Sudhar,
    1.Please check in OS27 - Tick mark is included for EC Management Active &
    BOM validity manitained and History Requirement.
    2.In OS25 - For History Requirement.
    3.Get the help from ABAP consultant,to make use of field exit for the particular
    screen CS02 ,which has got a screen number.The system will not allow the user
    to enter into the next screen unless that field is not filled.
    4.Check for the Auth.Object C_STUE_NOH
    With this Logic only we are using in my present project.
    Check & reply.
    Regards
    Mangal

  • Problem regarding the creation of Table using CSS.

    Hi ,
    Here I have a Problem regarding the creation of Table using CSS.
    In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties:
    width:900px;
    height : auto,
    Overflow : visible,
    Max-height: : 200px.
    If I use above properties,I'm getting a table with 5 or 6 rows(height upto 200px).After that i am getting the Vertical ScrollBar.
    The problem is when a table has many columns, Vertical and Horizontal Scrolls are coming at the time of setting the table. The table height is not Increasing dynamically.
    How can i use "height" property in CSS? (I want the table height to be increased when the columns are more.)
    Thanks & Regards
    Madhavi

    Hey humble user. Errr I'm trying to understand what ur trying to do. U want to create a section of a region destructively from an existing region right? If so select the option convert to new region (opt-comm-R or selecting it by right clicking). Check your audio bin to make sure. Whats the "merge" function? Are u refering to the glue tool?

  • BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

    Hi Everybody,
           We are in ECC 5.0 version.
           I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
           Is any BAPI available for this ?
           Any input on this will be very much helpfull.
           Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
           Thanks in advance.
    regards,
    Nagarajan.J

    Hi Nagarajan,
    The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
    The below is the sample code...
      data:lt_request      like bapideliciousrequest
                                    occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
                                    occurs 0 with header line,
           lt_return       like bapiret2
                                    occurs 0 with header line.
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = vbeln.
        lt_request-document_item      = posnr.
      lt_request-material           = matnr.
      lt_request-plant              = werks.
      lt_request-stge_loc           = lgort.
      lt_request-quantity_base__uom = base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Thanks
    Ramakrishna

  • IN bapi- how to provide spool report with messages

    in BAPI, how to provide spool report with messages?

    >
    sujan T wrote:
    > Thanks for your reply.
    >
    >    What is the logic to call the standard report from zprogram?Inside the zpogram how to call standard report?
    >
    > Regards,
    > Sujan
    no special logic is required
    If u want to use
    RPUAUDOO IN THE ZREPORT.
    Put the submit button where ever required
    ex: In zreport after certain process reacedu want to call then use
    submit rpuaudoo and return.
    Regards
    Sas

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • How can i setup pages to automatically open when double clicked.  Currently when I double click it creates cpgz file and does not open.  The only way to open pages doc is to manually ask to open with pages.

    Currently when I double click it creates cpgz file and does not open.  The only way to open pages doc is to manually ask to open with pages.

    Hi Karen,
    Sounds like OS X has lost the association between Pages and its files.
    Start by quitting Pages, then going to Finder.
    In Finder, locate a .pages file. Click on it (once), then press command-I (eye, not one) to Get Info.
    In the Info window that opens, expand the Open With section.
    In this section, click on the pop-up menu and choose Pages (even if Pages is already shown).
    Click the Change All button to associate all files with the .pages extension with Pages.
    Close the info window.
    Double click any .pages file to check that Pages will now launch and open the file.
    Regards,
    Barry

  • Purchase order creation with reference to Contract

    Dear All
                    Purchase order creation with reference to quantity contract the contract quantity is not copied in to po. any configuration copying rules required. please guide
    Regards
    Anand.

    Hi Buddy
    The correct business process is RV Preq created by a user from any department then buyer converts this Preq to a MK contract with some quantity keeping the duration as some months/year. Then as and when material mentioned in the contract is required during the validity period of the contract MRP creates Preq or buyer manually creates NB preqs , same are then converted to PO but these PO are released against MK contract. So qty in PO are different then mentioned in contract because contract is for  a large qty keeping in mind the duration (for example one year).
    Regrds
    Yogesh

  • In Acrobat pro 9, I can't find staple and fold options for booklets and no matter what options I choose in the print dialogue my booklet ends up with pages upside down and out of order?

    In Acrobat pro 9, I can't find staple and fold options for booklets and no matter what options I choose in the print dialogue my booklet ends up with pages upside down and out of order? I am working on a Macbook pro running OS X 10.9.4.  Our printers are fully capable for booklets with staples and folds. Would love some help. Thank you!

    To: ~graffiti
    (This email is not intended to go on public forum -- but I wanted to respond
    to you)
    Thanks for your reply....FYI...I was trying to download from www.adobe.com on
    the specific page that has downloads of your products.    As far as the
    alternate source is concerned I am not totally sure what the capabilities it has as
    I am recovering from a hospital stay and had to send my wife to retailer to
    pick this up because I am accessing email from home until I return to work and
    need something to work now.  I don't yet have the SW.  (I would have had her
    buy the actual Adobe Pro 9.0 -- but it is a wapping $499 and change).
    Regards,
    Staurt Rednor ("Stu") - [email protected]
    ===========================================================
    Subj:   New message: "No matter what I try can't download
    Adobe Pro 9.0 or free Adobe Reader"   
    Date:   4/5/2009 7:38:17 PM Eastern Daylight Time  
    From:   [email protected]   
    Reply-to:   [email protected] 
    To: [email protected]  
    Sent from the Internet (Details)   
    SGuitar43,
    A new message was posted in the thread "No matter what I try can't download
    Adobe Pro 9.0 or free Adobe Reader":
    http://forums.adobe.com/message/1867664#1867664
    Author  : ~graffiti
    Profile : http://forums.adobe.com/people/~graffiti
    Message:

Maybe you are looking for

  • How to get rid of deleted songs in music list?

    I have many songs I don't want on my phone anymore. With ios7 it shows all the songs I have purchased on all my devices. Is there anyway to get rid of this because I have useless sound effects on my phone (I used them for a project) and songs I don't

  • My Macbook Pro shuts off within 5 minutes when just using the battery..why?

    The problem started a while ago, but I never much payed attention to it because I kept the laptop on my desk and connected to the wall. But it started around a year and half ago, when I disconnect my computer from the power source, it might last a li

  • What should be needed for cost reports to be activated in Business Content?

    Hi experts,   I am completely new to Business Content so sorry if I ask a silly question. Currently we are trying to migrate custom fixed queries to queries from Cubes in Business Content, because the company has growed in the past years.   Our first

  • Search help for 'Account ID' field in 'Identify Account' section

    Hello all, We are on CRM 5.0. I want to attach the search help 'BUPA' for the 'Account ID' field in 'Identify Account' view of IC Webclient. Can you please let me know how I can achieve this. Regards, Nag

  • PI - SQL Port number change

    Hi Team, We had implemented SQL 2008 for PI 7.1 environment for default SQL Port number 1433, but to bring this to standards we want to change it to 3180. But when we made the change at SQL level, as expected SAP Java is not coming online and ConfigT