How to get spool no in print program of smartforms

hi All,
I am writing a new print program for smart form.i need to pass the spool no to NAST_PROTOCOL_UPDATE FM to see the spool no in processing log. in which structure do i see the spool no at run time? please advice.
Regards,
Sreekanth.

try like below:
DATA: ls_job_info           TYPE ssfcrescl.
determine smartform function module for invoice
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
         EXPORTING  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
         IMPORTING  fm_name            = lf_fm_name   ---> Get SF Function Module name
         EXCEPTIONS no_form            = 1
                    no_function_module = 2
                    OTHERS             = 3.
CALL FUNCTION lf_fm_name
           EXPORTING
                      archive_index        = toa_dara
                      archive_parameters   = arc_params
                      control_parameters   = ls_control_param
                mail_appl_obj        =
                      mail_recipient       = ls_recipient
                      mail_sender          = ls_sender
                      output_options       = ls_composer_param
                      user_settings        = space
                      is_bil_invoice       = ls_bil_invoice
                      is_nast              = nast
                      is_repeat            = repeat
           importing 
                     job_output_info      = ls_job_info
                    document_output_info =
                    job_output_options   =
           EXCEPTIONS formatting_error     = 1
                      internal_error       = 2
                      send_error           = 3
                      user_canceled        = 4
                      OTHERS               = 5.
ls_job_info-spoolids will have the Spool request id
Rgds,
Pavan

Similar Messages

  • How to find z or standard print program for smartform

    Hi all,
    I know the smartform name from this I want find print program used whether it is z or standard program.
    Thanks in advance,
    Regards,
    Harshada

    Hi,
    1. If you know the output type then you can check the Print program name in configuration.
    You can use tcode 'NACE' and select the your functional area then click on outout types.
    Choose your output type and click on 'Processing routines'.
    It will show you the print program attached to your smartform.
    2. You can directly go to table TNAPR, give your smartform name and execute. It will give you print program attached to that smartform.
    Thanks,
    Archana

  • 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.

  • How to Get Spool ID after PO release. (To send PDF for ext E-mail)

    Hi Experts,
    I am new to Email sending from SAP.
    I am facing a big problem from many days. I am in a new support project.
    I have a issue that when ever a PO is released from ME23N or ME28 it should send a mail to vendor.
    This is working fine in Development including delivery report or failed report back to approver...
    I dont know where is PRD and who is doing that,
    But my support manager says that only some PO's are sent to vendors not all...
    everytime they approve only some emails sent to vendors...!
    But every PO is same and for same vendor's...
    Even failure & delivery messages are missing for (sent failed email's)
    But after all I observed only one thing that we have a select statement....
      DATA:  GS_RESULT TYPE ITCPP.  
      DATA : L_DATE(9).
      DATA : BEGIN OF LT_TSP01 OCCURS 0,
              RQIDENT LIKE TSP01-RQIDENT,
              RQCRETIME  LIKE TSP01-RQCRETIME,
              DATE(8),
              TIME(8) TYPE N,
              END OF LT_TSP01.
      SELECT  RQIDENT RQCRETIME  FROM TSP01 INTO CORRESPONDING FIELDS OF
                           TABLE  LT_TSP01  WHERE RQCRETIME LIKE L_DATE
                                            AND   RQIDENT EQ GS_RESULT-TDSPOOLID.
      IF SY-SUBRC =  0.
    (All Email sending code)(including delivery & failure delivery)
    Endif.
    So I suspect it is not picking up the Spool request from this Table TSP01 or may be not updated to this table.
    I have searched in SCN, I have seen may E-mail Codings
    But every one says to get Spool- ID & Convert to PDF,,,
    My Question is How to get Spool ID correctly and tell me how it is updated. when a PO released by ME23N or ME28.
    please any one clear my doubt as I am completely helpless here.
    Thanks in advance,
    Dunlop.

    Hi,
      Is it a SMart form.....
    If it is a smartform, then Smartfom interface itself has a spool id parameter....
    you can directly het that from this parameter...
        CALL FUNCTION "FMa Name'
          EXPORTING
            control_parameters = wsl_control
            output_options     = wsl_outpt
            user_settings      = ''
            wtg_itemdetails    = tl_itemdet
             wtg_vttp              = l_vttp
          IMPORTING
            job_output_info    = sl_spooldet
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            OTHERS             = 5.
        IF sy-subrc <> 0.
        ENDIF.
    The inporting parameter sl_spolldet will have the Spool id.
    and you fetch by, using the below mentioned way..........
        READ TABLE wsl_spooldet-spoolids INTO wsl_wa_spool INDEX 1.
          IF sy-subrc = 0.
              Convert it into PDF using 'CONVERT_OTFSPOOLJOB_2_PDF'
              then attach it and send a mail.....with all properties set such as Delivery report....
          endif.
    If you have any issues, please let me know........
    Thanks & Regards,
    Vamsi

  • How to get the Double-sided print in SMARTFORM?

    Hi Folks,
    Can u  explain me , how to get the Double-sided print ?
    I create two pages : Page 1 and Page 2.
    Page 1 contains Main Window and some text data in it.....
    Page 2 contains  a secondary window with some TERMS & CONDITIONs data.
    Print Mode Settings:
    Page 1     Print Mode : D
    Page 2     Print Mode : Space
    I maintained all the above in my Smartform ,
    but i couldn't get my second page at all  and Double-sided print also....
    Is there any settings missing or any to be maintained ?
    GIve me a Solution....

    HI Surender,
    Check this one
    http://www.sdn.sap.com/irj/sdn/printing?rid=/library/uuid/90edfc78-dfc9-2b10-dcbe-d4612972ceb9&overridelayout=true
    Regards
    Ram

  • How to get on the apple seeding program?

    How to get in the apple seeding program. I really want to to test apples new iOS software.

    Yes, but if you're not already a developer you shouldn't be testing beta software.
    You shouldn't test beta versions of iOS on your day-to-day phone. You should have dedicated phone just for testing and it needs to be registered with Apple.
    Being part of the developer program and having access to iOS betas is not intended for just curious, non-developer people. It is for real developers who need to test their own apps on future versions of the OS and provide detailed feedback to Apple for bug fixing.
    If you're just curious about new OSs, don't bother.

  • How to write print program for smartforms

    Hi all
    I need to develop new smartform and its print program.
    But Im not experience in writing print program for smartform.
    Ive gone through the simple print program sample that use only one table as input and one table for output.
    But my smartforms require few tables for input and output.
    How should I define the Data?
    Can anyone guide me on how to write it.
    Thanks & Regards
    az

    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Reward points...

  • Anyone know how to get pdf files to print on Mac

    anyone know how to get pdf files to print on  a Mac. When i bring pdf file up and press print a box comes up saying cannot print. When i press that one another comes up saying no pages selected. Everything up to date, rebooted, checked to make sure plugins are there and up to date.

    Might not be exactly what you want and I haven't had time to fully investigate this but take a look at http://www.hanynet.com/waterroof/

  • Regarding passing an internal table from print program to smartform....

    Hi All,
    can any body let me how to pass an internal table to the smartform, i have processed the data in the print program then i want to pass the final internal table from the print program to smartform and with that data in the internal table i have to process it in the smartform (i want to get some more data based on the internal table data from the print program) and then i will display finally.
    for example: i have it_qals which contains all the lot numbers which is processed in teh printprogram, now i want to pass all these (it_qals) lotnumbers to smartform , and in the smartform i will use the lotnumbers in the it_qals table and will process other data accordingly 
    can any body help me plzz.. its very urgent

    Chek this code i am coping my whole program here.
    REPORT ZDP_SMARTFORMS_REPORT3 .
    TABLES: MARA,
    MAKT.
    DATA: FNAME TYPE RS38L_FNAM.
    DATA: BEGIN OF ITJOIN OCCURS 0.
    INCLUDE STRUCTURE ZDP_JOIN__IN_SMARTFORM.
    INCLUDE STRUCTURE MARA.
    INCLUDE STRUCTURE MAKT.
    data: END OF ITJOIN.
    *DATA: BEGIN OF ITJOIN OCCURS 0,
    MATNR LIKE MARA-MATNR,
    END OF ITJOIN.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: MAT FOR MARA-MATNR.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECT MARA~MATNR MAKTX "UP TO 5 ROWS
    FROM MARA JOIN MAKT ON MARAMATNR = MAKTMATNR
    INTO TABLE ITJOIN
    WHERE MARAMATNR IN MAT and maktspras eq 'EN'.
    into corresponding fields of table it
    *SELECT MATNR UP TO 5 ROWS FROM MARA INTO TABLE ITJOIN
    WHERE MATNR IN MAT.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZDP_SMARTFORMS_3'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FNAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    not necessar y above function if u copy function name from
    **- smartforms>environment>function name
    CALL FUNCTION '/1BCDWB/SF00000037'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    ITJ = ITJOIN
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Also check these links
    Check out this link,
    http://www.erpgenie.com/abap/smartforms.htm
    and also refer these threads,
    Passing table to smartform
    PASSING INTERNAL TABLE IN SMARTFORM
    Hope this helps.
    ashish

  • To find print program for smartforms.

    pls tell me how to find print programs for smartforms.pls tell me with all steps.clearly.i tried with tanpr table but unable to find

    hi,
    Please take a look at the NACE transaction where all the output conditions will be configured. Drill down into you specific application and you should be able to find the print program as well as the smart form name.
    Steps..
    Use NACE and follow procedure as follows
    1)Choose Application from list(eg PO)
    2)Click OP type
    3)Chose one OP type from Right pane.
    4)Click on processing routines
    and you got it
    regards,
    keerthi

  • How to make use of label printing in sap smartforms

    Hi Dear,
    How to make use of label printing in sap smartforms.. I need to print four records from internal table into sap smart forms. It will
    come as four labels.All page should follow the same procedure... How to do...please help me..
    Regards,
    Nikhil

    Hi,
    Please go through below link, would be helpfull for you.
    [http://help.sap.com/saphelp_nw04/helpdata/EN/6b/54b4b8cbfb11d2998c0000e83dd9fc/frameset.htm]

  • Need Print Program for Smartform /SAPSLL/SF_GL_EPL for Export Packing list

    Hello Friends,
                         I need a print program for Smartform /SAPSLL/SF_GL_EPL for Export Packing list. Please reply ASAP.
    Thanks,
    Ziad.

    Hi Sowjanya,
                         I am using FUEP o/p type for Export Packing list for Billing . I Copied SAPscript SD_EXPORT_FUEP form and the  print program for this is same RVADAUS1. Can we use the same print program for Smartform  /SAPSLL/SF_GL_EPL?
    Thanks,
    Ziad

  • How to get File name in Proxy program

    Hi,
    According to my business scenario, one XML file name comes from Legacy system and stores in a predefined directory. Now XI has to pick up that XML file and needs to call BAPI's which in turn updates the Target system ( SAP Tables).
    Now my problem is , XML File name is a combination of three fileds those are DATE , OBJECTKEY AND WORKFLOWNAME.
    Ex : YYYYMMDD_1234565789_WORKFLOWNAME.XML
         DATE_OBJECTKEY_WORKFLOWNAME.XML
    In proxy i need to get the file name and split into three fields ( those are DATE , OBJECTKEY AND WORKFLOWNAME ) which needs to send as import parameters in BAPI's.
    So please let me know from anyone in this group how to get the file name in the proxy program.
    Thanks & Regards
    K. naveen Kumar

    Hi,
    have a look at my new weblog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    to see how you can access filename
    Regards,
    michal

  • How ca we copy standard print program of SMARTFORM?

    guyz...
    how can we copy standard print program of RLB_INVOICE of invoice SMARTFORM to a Z program in ECC 6.0???
    regards
    Zid.

    Hi,
    enter the program name in the SE38 editor
    click on copy button
    then it will ask you for the new name
    when ever you click on the copy transfer buton
    then it will raise a pop and saying that what ever you want from the program like
    1) INCLUDES
    2)SCREENS
    3)USER INTERFACES
    4)VARIANTS
    5) DOCUMANTATION
    ETC..
    hat ever you clcik on that check box
    Thanks.

  • When i upgraded my ipad and reinstalled ibooks, the print on my books is so tiny  i can barely read the books.  Any idea how to get back my larger print?

    When i upgraded my ipad and reinstalled Ibooks, the print on my books is now so tiny i can barely read them.   Any idea how to get my larger print back?

    Media is not included in a backup. You should be able to resync them your copy of them on your computer's iTunes. If you haven't got your a copy of them then if they are still in the store, then you can re-download apps via the Purchased tab in the App Store, ibooks via the Purchased tab in the ibookstore in the iBooks app, and (depending upon what country that you are in) potentially music, films and tv shows via the Purchased tab in the iTunes store app.
    For podcasts you can download the Podcasts app

Maybe you are looking for

  • Cost element  of cost item 99 0100 not defined

    Respect to all HCM consultants, On releasing the planning scenario I am having error Cost element  of cost item 99 0100 not defined how do I over come this?

  • Mac Book Pro 15" Mountain Lion 10.8 Intermittent WiFi

    Hello All I know this is a well-discussed problem already but I'll try to provide relevant details to make this post not just another rant and run-around of solutions we already know. Before ML Reinstall (not erase and install): - Intermittently Safa

  • Connecting to a foreign wireless network with my macbook pro

    hi i'm swapping my NY apt for one in italy. i have a brand new mac book pro and can see the network on my airport, and i have the WPA password. when i enter the password it says it's invalid. i've read the apple support pages and troubleshooted the p

  • Update Bios ???

    Hello, I have an All in One HP TouchSmart 600 PC. I need to boot from USB, but when I check in Bios I don`t have such option. There is something I can do, so I can boot from USB? Thank you in advance for your support!

  • Layout is it User-specific or Standard ?

    I have an ALV report that contains user specific layout and standard layout. My question is if user enters the layout name in the selection screen . i wanted to know whether the layout is user-specific or standard layout. How we can differentiate thi