Print Packing Note(SD) on saving Transfer Order.

Hi,
I need to print the packing note, which is currently printed in transaction VL01N, when a new Transfer Order (LT01) is saved.
I have the Print program and SAPScript for printing packing note in VL01N transaction but i have no idea about how the print program and SAPscript are handled in  Transfer Order (LT01).
Regards,

Hi,
I need to print the packing note, which is currently printed in transaction VL01N, when a new Transfer Order (LT01) is saved.
I have the Print program and SAPScript for printing packing note in VL01N transaction but i have no idea about how the print program and SAPscript are handled in  Transfer Order (LT01).
Regards,

Similar Messages

  • Regarding Print of Single Form for multiple Transfer Order  ( LT03 )

    Hi All,
    When user creates Transfer Order and if transfer order items are more than 22 then split of Transfer Order occurrs and multiple TO's get created in system.  The standard prog. RLVSDR40 prints form for each TO's , however the requirment is to print only one form for multiple TO ( Actually TO Form containes info. abt delivery, but triggering point should be from TO creation ) .
    There is one prog. RLKOMM40 which is used for multiple processing,  whether this prog. will be useful for above requirement.  Or is there any exit available for above requirement .
    Thanks for help.

    Hi,
      is there any routines used in Copy controls from order - delivery .- re-check once.
    as your post, everything seems fine. I didnt see any reason for not creating single delivery.
    is it happening only with this customer or respective ship to's? if yes, something gone wrong in CMR - i.e. complete delivery / order combination etcc., ( just an assumption)
    Regards,
    ReazuddinMD

  • Proforma invoice not created for stock transfer order

    Hi Experts
    while creating a proforma invoice for stock transfer order between the plants we are not able to create proforma invoice , the process is replenishment delivery is created and Wm is also done and the billing with reference to delivery and the item category is relevant for billing with value J, and below is the message i get whilw creating invoice
         Technical data
             Tech. data details
              Client                                
              Group Number
              Sales Document Number                
              Item Number of the SD Document         000010
              Schedule Line Number                   0001
              Counter in Control Tables              00
              Message Identification                 00
              System Message Number                  001
              Output Type                            E
              Message Variable 01
              Message Variable 02
              Message Variable 03
              Message Variable 04
              Group Type                             F
    No biliing documents generated
    Please suggest.
    Thanks

    This explanation is not in detail and hence I am not clear about your configuration settings. 
    First go to IMG Logistics-General => Tax on Goods Movements => India => Business Transactions => Outgoing Excise Invoices => Assign Billing Types to Delivery Types.
    There ensure that you have assigned the billing type JEX (assuming that you are using the standard) to your delivery type NL.
    Perhaps, you can also try with "D" for your item category in Billing Relevance field but I am not sure this will solve your issue.  Try in development client.
    thanks
    G. Lakshmipathi

  • Not able to create transfer order..

    Hi all,
    When i am trying to create Transfer order,it gives an error"No items that are to be picked were found".
    I have maintained all the settings regarding item categories and delivery item categories.
    i am using Lean ware house management,What I feel is that there is some error in ware house settings.Please suggest..
    Roopak

    hi,
    i think you have 2 or more line item in sales order, the delivery date for one or two item will be in the past,so when you create delivery the item which is in the past delivey date will not get copied to delivery.
    check all item is there in the delivery document,if no check the mising item delivery date, create the delivery based on that delivery data.
    update the thread
    regards
    senya

  • ES_SAPMV50A-OP of delivery not triggered on WM transfer order in upgrade

    ES_SAPMV50A - enhancement FCODE_BEARBEITEN_03 is not called for delivery when the transfer order is created.
    earlier system was 4.5, the same config worked in it.
    however in upgrade, when the WM transfer order is created the output is not generated.
    After creation of transfer order, if one goes in the delivery VLN02 the output is generated.
    Pls help
    Regards
    Meghana Munj

    Hi,
    no, unfortunately I found no other solution than the approach described in the original thread - but for my requirement, it works fine.
    Rudi

  • STO history not update in stock transfer order,

    Hi, Experts,
    I have create delivery against Stock transfer order , But i checked in some STO case - purchase order history tab not update, What is the reaon for this . can any body gives solution.
    One more question, I had created STO & Then do PGI against this STO, After this i also take GRN for this, But when i had check ddocument flow for outbound delivery GRN document not update, But it display in STO history tab.
    Pls give me solution for both question.
    Thanks a lot in advance,
    Regards

    Hi, Harsh Panara ,
    1. Is this problem reproducible? If yes, you may need to create a message for it in service market place.
    2. If this is only a single case, you can re-create the EKBE (po history) entry via report ZCREA_EKBE. Please check SAP note  433505.
    3. Regarding the GR document and document flow, this is related with how you post the GR. If you post GR in MIGO with reference to the outbound delivery, it should be updated to the document flow. How did you post it?

  • RF Queue not determined in the transfer order

    Hi we are using RF queues as a part of effecient picking.
    The problem I am facing is that the transfer order created is not showing up the queue as desired.
    I have maintained the following settings in IMG
    1) Define queue for warehouse number.
    2) assign areas and activities to queue - Here I have maintained data such as warehouse number, prepration screen for stock removal, transfer type A, Source storage type ***, Source picking area ****, door and Queue.
    3) lastly I have assigned users to the defined queue.
    Now since the TO created is not determining the queue, as a result of which the users are not able to see them in the RF queue maintained in their profile.
    I am not aware of any other setting which is suppose to be done for this purpose.
    Please let me know if anyone has a solution for it.
    Thanks.

    Hi,
    for source storage type do not use wild card (***). You can use it for destination storage type in case of stock removal.
    In my production system it works fine.
    Andrzej

  • User exit not active when saving sales orders

    while creating a sales order (VA01)   i need  to update  the  storage location  based on  division . for this the badis  and user exits  are not triggering   while creating a sales order for the above requirement
    any solution........
    <removed by moderator>
    thanks in advance..
    <Subject edited. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]>
    Edited by: Mike Pokraka on Aug 7, 2008 8:38 AM

    JVP,
    MV45AFZZ this is the include which is trigger while creating SO.
    use  FORM USEREXIT_FIELD_MODIFICATION   to write code.
    your code look like if sy-tcode = 'VA01'.
    update field.
    endif.
    Amit.

  • ERROR DURING SAVING PRODUCTION ORDER

    Hi GURUS,
    WHILE SAVING A PRODUCTION ORDER I AM GETTING AN ERROR START_FORM,OPEN_FORM MISSING.MSG NO IS TD423
    REGARDS
    RAMKUMAR WARIYAR

    Hi Ram
    You might have assigned print shop floor paper while saving prod order in Production Scheduling profile.  .
    You might not have defined output printer for this. If you want paper to print, set printer for this. Also check have you assgined order type in scheduling profile at the bottom for MTS, MTO, Rework. Order type for production order is picked from scheduling profile.
    Check this order is the one which you are using.
    If you do not want to print shop floor paper remove the tick.
    Regards
    J . Saravan
    Edited by: J. Saravanan on Apr 10, 2008 6:29 AM
    Edited by: J. Saravanan on Apr 10, 2008 6:30 AM

  • Automatic creation of transfer orders from goods receipt of purchase order.

    Hi experts
    The project i am currently working on requires the following;
    When goods receipting a purchase order i have a requirement for the system to create automatic transfer orders to put the stock away into storage bins.  I am aware that the stock goes straight into the 902 area once goods receipted.  Is it possible to have the transfer orders created automatically out of 902 once the goods receipt has been posted.
    In support of this, i have made an entry in transaction OMKX for the following;
    Reference Movement Type - 101
    Movement Indicator - B (goods movement for purchase order)
    Movement Type - 101
    TR Create Transfer requirement - X
    Immed. TO Creation - A
    Addl Data - X
    Once i receipt the PO it just sits in 902 and does not create any automatic transfer orders.
    Could someone please help me
    Thanks
    Simon

    Please try to process the material document of the GR manually by LT06 in foreground to find out the root cause of the error.
    You may also want to setup the mail control (V_T321-MAILK) for immediate TO creation in OMKX. The system will send you a express message (depending on your setup) if TO creation is failed.

  • Sap Script Transfer Order Change

    Hello Gurus,
    I have a sapscript for Pick For delivery (Transfer Order pick List) once the transfer order created from the delivery is confirmed.
    In the current form, material number is being printed on the form from the transfer order table LTAP.
    Now the change need to be made is to print the delivery item number (before the material number like delivery_item_number space material_number) of the corresponding material number. I need to write a logic in order to extract the delivery item position number. do you have any idea how I can do that.
    Please help me out.
    the sapscript is closest to sap form LVSTALISTE.
    Regards,
    B
    Edited by: Balu on Aug 13, 2008 6:26 PM

    Subroutine program
    FORM CALC_NETPRICE TABLES in_tab STRUCTURE itcsy
    out_tab STRUCTURE itcsy.
    Data : w_matnr type LTAP-MATNR,
              w_posnr type LIPS-POSNR.
      READ TABLE in_tab INDEX 1.
      w_matnr = in_tab-value.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT         = w_matnr
        IMPORTING
          OUTPUT        = w_matnr.
    SELECT SINGLE POSNR FROM LIPS INTO W_POSNR WHERE MATNR EQ W_MATNR.
      READ TABLE out_tab INDEX 1.
      MOVE W_POSNR TO out_tab-value.
      MODIFY out_tab INDEX sy-tabix.
    ENDFORM.                    "CALC_NETPRICE
    Now add the Field &LIPS-POSNR& where u required.
    Just make sure that the PERFORM statement is before the fields output. i.e,  &LIPS-POSNR& ,, &LTAP-MATNR&
    Regards
    Krishna

  • Auto Confirmation of transfer order - 999 mvt from storage type W01 to S01

    Hi,
    I am trying to automate the confirmation of transfer orders between storage type W01 and S01 using a 999 movement type. The 999 movement type appears to work perfectly when doing a bin to bin movement within the W01 storage type (for example move batch abc from bin 01 to bin 02) no confirmations are required. However if I transfer from a bin in W01 storage type to the S01 storage type (which only has a single bin to represent a staging area) a manual confirmation of the transfer order is required via lt24 or lt12. It appears therefore that the issue is with the storage type S01 for this particular Warehouse. The setting to confirm the TO immediately is already activated for movt 999 in customizing, is there a setting for the storage type that must be defined.
    Regards,

    F1 help for field V_T333-SQUIT:
    Means that the transfer order item can be confirmed immediately during the creation procedure.
    SAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f83e4d4afa11d182b90000e829fbfe/frameset.htm
    To set the confirmation requirement for foreground processing, select the indicator for TO item can be confirmed immediately.
    As per my understanding the immediate confirmation indicator does not mean that the transfer order will be confirmed immediately. It makes possible that during the creation of transfer order you CAN put a flag in the confirmation checkbox.
    If you use it together with "propose confirmation" flag (setting for WM movement type; V_T333-VQUIT), the falg in confirmation check box will be populated automatically during TO creation.
    Edited by: Csaba Szommer on May 10, 2011 11:22 AM

  • Printing of transfer order . error Print indicator 029 not defined.

    Hello everyone.
    I need some help.
    when i run program RLVSD40 (Initiate printing of transfer order).
    i got error.
    Print indicator 029 not defined
    Message no. L3118
    what should i do to solve this error ?
    please help...

    is 029 your warhouse?
    if so then SAP found a record with print indicator "blank" , but this "blank" print indicator is not defined in OMLV.

  • Immediate Transfer Order Creation not occuring for Sales Document Type

    Hello gurus,
    I have a situation where a transfer order is not being created immediately for a specific sales document type.
    Here is an example document flow of a desired scenario where the system is working:
    Sales document type:  ZOR
    >  Delivery type:  LF
    >  WMS transfer order
    The Item Category in this scenario is TAN.
    Here is an example of the document flow in the current scenario where the system is not working:
    Sales document type:  ZPRD
    > Delivery type:  LF
    The Item Category is also TAN in this scenario.  The only identifiable difference in these scenarios is the sales document type.  For the ZOR SaTY, a Transfer Order prints immediately once the delivery is created.  For the ZPRD SaTY, a Transfer Order needs to be manually created after delivery creation.
    Is there a configuration setting that is controlling this?  Any help would be greatly appreciated.

    Thank you very much for the link.  When I insert the WMTA output type in the delivery output header, the Transfer Order is automatically created.
    The problem I'm running into now is the configuration setting that controls this.  I thought I figured it out when going to this IMG path:
    SAP Customizing Implementation Guide  -->  Logistics Execution -->  Shipping -->  Basic Shipping Functions  -->  Output Control -->  Define Print Parameters Shipping
    When selecting the Delivery Note, the shipping point I was using was not configured in this location.  I added the shipping point into this transaction, saved, and created a new order & delivery.  However, the WMTA output type still was not automatically inserted into the delivery when saving.  Is there another location I should be looking to fix this so that when I enter an order with a particular Shipping Point, the WMTA output type automatically appears in the delivery?

  • Automatic form generation on creation transfer order for delivery note?

    Hi,
    I have to create a form that should automatically be generated on the creation of a transfer order for delivery note. How do I trigger this automatic creation of the form? And how can the transfer order number be passed to my print program?
    Thx!

    hi christophe,
    To issue the delivery output, go to transaction VL02N.
    Then go to EXTRAS-> OUTPUT->HEADER->EDIT
    In the Message output screen enter the relevant output type created for the delivery.
    Choose the relevant medium of output.
    Choose Simple Mail, in this case the field NAST-NACHA will be having a value of 7.
    Specify the Partner Function; in this case it is MA -> Mail partner address
    Select the Communication Method for the output type maintained.
    This will take you to the SAPOFFICE screen.
    Enter there the  E-Mail Address to which you want to send the delivery document as PDF.
    A mail will be sent to the e-mail address of the E-Mail Address specified, with the delivery output form as a PDF attachment.
    hope it will help u ..
    *& Report  ZZ_TEST                                                     *
    REPORT  zz_test                                 .
    INCLUDE zz_test_top.
    INCLUDE zz_test01.
          FORM entry                                                    *
    -->  RETURN_CODE                                                   *
    -->  US_SCREEN                                                     *
    FORM entry USING return_code us_screen.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing USING us_screen.
      CASE retcode.
        WHEN 0.
          return_code = 0.
        WHEN 3.
          return_code = 3.
        WHEN OTHERS.
          return_code = 1.
      ENDCASE.
    ENDFORM.                    "entry
    *&  Include           ZZ_TEST_TOP                                      *
      TABLES : nast,
               tnapr.
    TYPES : BEGIN OF t_SOUDNAMEI1.
            INCLUDE STRUCTURE SOUDNAMEI1.
    TYPES : END OF t_SOUDNAMEI1.
    Internal Table declarations
      DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
      i_tline TYPE TABLE OF tline WITH HEADER LINE,
      i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
      i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    *Objects to send mail.
      i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
      i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
      i_lips LIKE lips OCCURS 0 WITH HEADER LINE,
      i_SOUDNAMEI1 TYPE STANDARD TABLE OF t_SOUDNAMEI1.
    Work Area declarations
      DATA:w_objhead TYPE soli_tab,
      wa_control_parameters TYPE ssfctrlop,
      wa_output_options TYPE ssfcompop,
      w_return TYPE ssfcrescl,
      w_doc_chng TYPE sodocchgi1,
      w_data TYPE sodocchgi1,
      w_buffer TYPE string,"To convert from 132 to 255
      wa_SOUDNAMEI1 TYPE t_SOUDNAMEI1,
    Variables declarations
      w_form_name TYPE rs38l_fnam,
      w_len_in LIKE sood-objlen,
      w_len_out LIKE sood-objlen,
      w_len_outn TYPE i,
      w_lines_txt TYPE i,
      w_lines_bin TYPE i,
      retcode      TYPE sy-subrc,
      xscreen      TYPE c,
      w_spld TYPE usr01-spld,
      w_receiver TYPE SOXNA-FULLNAME,
      w_OBJ_RECORD TYPE OBJ_RECORD,
      w_user type sy-uname,
      w_email TYPE ad_smtpadr.
    Constants Declaration
      CONSTANTS : c_x TYPE c VALUE 'X',
                  c_atrate(1) TYPE c VALUE '@'.
    *&  Include           ZZ_TEST01                                        *
          FORM PROCESSING                                               *
    FORM processing USING proc_screen.
      SELECT * FROM lips
        INTO TABLE i_lips
        WHERE vbeln = nast-objky.
    Call Function module to Getfunction Module name Generated by Smartform
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = tnapr-sform
        IMPORTING
          fm_name            = w_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc <> 0.
        retcode = sy-subrc.
      ENDIF.
      CLEAR : wa_control_parameters,
              wa_output_options.
      CASE nast-nacha.
        WHEN '1'.
          wa_control_parameters-device    = 'PRINTER'.
        WHEN '7'.
          DATA: l_email TYPE ad_smtpadr.
          wa_output_options-tdnoprev = c_x.
          wa_control_parameters-getotf  = c_x.
    To get the default output device maintained in the
    User profile
         SELECT SINGLE spld FROM usr01
          INTO w_spld
          WHERE bname EQ nast-usnam.
          IF sy-subrc EQ 0.
            MOVE w_spld TO  wa_output_options-tddest   .
          ENDIF.
          wa_output_options-tdnoprev = c_x.
          wa_control_parameters-getotf  = c_x.
    To get the email address maintained for the particular output
          CALL FUNCTION 'NAST_GET_MESSAGE_OBJECT_RECV'
            EXPORTING
              pi_objkey             = nast-tdname
            IMPORTING
              pe_addr               = w_receiver
            CHANGING
              pc_objhandle          = w_obj_record
            EXCEPTIONS
              maildata_not_readable = 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.
          IF w_receiver NA c_atrate.
    To retrieve the E-Mail Id in case we get the User name from NAST
            CLEAR wa_soudnamei1.
            REFRESH i_soudnamei1.
            MOVE w_receiver TO wa_soudnamei1-fullname.
    To get the user name
            CALL FUNCTION 'SO_NAME_CONVERT_API1'
              EXPORTING
                name            = wa_soudnamei1
              TABLES
                names           = i_soudnamei1
              EXCEPTIONS
                user_not_exist  = 1
                parameter_error = 2
                x_error         = 3
                OTHERS          = 4.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
            CLEAR wa_soudnamei1.
            READ TABLE i_soudnamei1 INTO wa_soudnamei1 INDEX 1.
            MOVE wa_soudnamei1-sapname TO w_user.
    To get the e-mail Id maintained in the user profile
            CALL FUNCTION 'FTR_CORR_CHECK_EMAIL_SAP_USER'
              EXPORTING
                i_user              = w_user
              IMPORTING
                e_email_address     = l_email
              EXCEPTIONS
                mail_address        = 1
                determination_error = 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.
            MOVE l_email TO w_receiver.
          ENDIF.
          MOVE  w_receiver TO w_email.
      ENDCASE.
      wa_control_parameters-no_dialog = c_x.
      wa_control_parameters-langu     = nast-spras .
      wa_output_options-tdteleland    = nast-tland.
      wa_output_options-tdtelenum     = nast-telfx .
      wa_output_options-tdsenddate    = nast-erdat .
      wa_output_options-tdsendtime    = nast-eruhr .
      wa_output_options-tddataset     = nast-dsnam .
      wa_output_options-tdsuffix1     = nast-dsuf1 .
      wa_output_options-tdsuffix2     = nast-dsuf2 .
      wa_output_options-tdimmed       = nast-dimme .
      wa_output_options-tddelete      = nast-delet .
      wa_output_options-tdautority    = nast-tdautority.
      wa_output_options-tdcovtitle    = nast-tdcovtitle .
      wa_output_options-tdcover       = nast-tdocover .
      wa_output_options-tdreceiver    = nast-tdreceiver.
      wa_output_options-tddivision    = nast-tddivision.
      wa_output_options-tdcopies      = nast-anzal .
      wa_output_options-tdnewid       = c_x.
      wa_output_options-tdarmod       = nast-tdarmod.
      wa_output_options-tdnoarmch     = c_x.
      CALL FUNCTION w_form_name
        EXPORTING
         archive_index      = toa_dara
         archive_parameters = arc_params
          control_parameters = wa_control_parameters
          output_options     = wa_output_options
          user_settings      = ' '
        IMPORTING
          job_output_info    = w_return
        TABLES
          it_lips            = i_lips
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      IF nast-nacha EQ 7 AND sy-subrc EQ 0.
        i_otf[] = w_return-otfdata[].
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
            max_linewidth         = 132
          IMPORTING
            bin_filesize          = w_len_in
          TABLES
            otf                   = i_otf
            lines                 = i_tline
          EXCEPTIONS
            err_max_linewidth     = 1
            err_format            = 2
            err_conv_not_possible = 3
            OTHERS                = 4.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    Convert PDF from 132 to 255.
        LOOP AT i_tline.
    Replacing space by ~
          TRANSLATE i_tline USING ' ~'.
          CONCATENATE w_buffer i_tline INTO w_buffer.
        ENDLOOP.
    Replacing ~ by space
        TRANSLATE w_buffer USING '~ '.
        DO.
          i_record = w_buffer.
    Appending 255 characters as a record
          APPEND i_record.
          SHIFT w_buffer LEFT BY 255 PLACES.
          IF w_buffer IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
        REFRESH: i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
        CLEAR w_objhead.
    Object with PDF.
        i_objbin[] = i_record[].
        DESCRIBE TABLE i_objbin LINES w_lines_bin.
    Document information.
        w_doc_chng-obj_name = 'Smartform'.
        w_doc_chng-expiry_dat = sy-datum + 10.
        CONCATENATE 'Delivery' 'Note'
        INTO w_doc_chng-obj_descr.
    *w_doc_chng-obj_descr = 'Smart form output'.
        w_doc_chng-sensitivty = 'F'. "Functional object
        w_doc_chng-doc_size = w_lines_txt * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
        CLEAR i_objpack-transf_bin.
    Start line of object header in transport packet
        i_objpack-head_start = 1.
    Number of lines of an object header in object packet
        i_objpack-head_num = 0.
    Start line of object contents in an object packet
        i_objpack-body_start = 1.
    Number of lines of the object contents in an object packet
        i_objpack-body_num = w_lines_txt.
    Code for document class
        i_objpack-doc_type = 'RAW'.
        APPEND i_objpack.
    Packing as PDF.
        i_objpack-transf_bin = 'X'.
        i_objpack-head_start = 1.
        i_objpack-head_num = 1.
        i_objpack-body_start = 1.
        i_objpack-body_num = w_lines_bin.
        i_objpack-doc_type = 'PDF'.
        i_objpack-obj_name = 'Smartform'.
        CONCATENATE 'Delivery' 'Note' '.pdf'
        INTO i_objpack-obj_descr.
        i_objpack-doc_size = w_lines_bin * 255.
        APPEND i_objpack.
    Document information.
        CLEAR i_reclist.
    e-mail receivers.
        i_reclist-receiver = w_email.
        i_reclist-express = 'X'.
        i_reclist-rec_type = 'U'. "Internet address
        APPEND i_reclist.
    sending mail.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = w_doc_chng
            put_in_outbox              = 'X'
          TABLES
            packing_list               = i_objpack
            object_header              = w_objhead
            contents_bin               = i_objbin
       contents_txt               = i_objtxt
            receivers                  = i_reclist
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDFORM.                    "processing

Maybe you are looking for