Automatic creation of requirement for extra consumption in COGI

Dear.
For a production order with a component totally consumed during the backflushing of CO11N I run a new confirmation. The component isnu2019t available , the confirmation is done and the system create for the component an error movement in COGI.
If I see MD04 for this component I donu2019t see any production order requirement for the extra consumption quantity in COGI.
But the planner need to know the quantity that remain to withdrawn.
Which is the reason for the missing automatic creation of requirement for extra consumption in COGI ?
Thanks.

Dear Cris,
Have you manually edited and input extra qty in CO11N
When backflush is activated and Full qty is confirmed
Then if you perform confirmation second time then form where system will again pick the component
Once again check in production order BOM over view and also in BOM what is the qty given
Can you eloborate more in detail what you have performed ( steps required )
Dear Siva,
Just correct me if i am wrong
Regards
Madhu
Edited by: K.Madhu Kumar on Sep 30, 2010 1:10 PM

Similar Messages

  • Automatic creation of delivery for a PO

    Hi,
    We are in ECC 6.0. We have a requirement to automatically  create delivery for a product based on PO.
    Here is the scenario:
    We have a sub contracting scenario where in material MAT1is made by breaking up MAT2. 1CAR of MAT1 is made from 2 CAR of MAT2 and packaged.
    Now the requirement is when a when a Purchase order is created MAT1, we also manually create a delivery for MAT2s  for the subcontractor to pickup the stock of MAT2 to make MAT1.
    The requirement is when I create a PO for MAT1, the system should automatically create a delivery for MAT2. MAT2 is always in stock.
    I hope my explanation is clear.
    Can some body suggest me if there is a way to do this?
    Thanks.

    Hi,
    I would try to build solution based on WF events related to PO creation. Once PO is created(saved in system), the event is being raised. Here you can build function where you check whether PO is for MAT1 -> if yes -> raise automatic delivery creation for MAT2 (two possibilities:
    1. use bapi 2. batch imput).
    for this, you have to have some WF knowledge.
    hope it helps.
    regards,
    wojciech

  • Automatic creation of Reservation for Service Order (Return and Repair)

    Hi, Looking for your valuable help on Creation of Automatic Reservation
    I am working on Return and Repair process at Plant.
    1) So far
    Service Notification > Repair Order > Return Delivery > Service order . has been done.
    now requirement is when i am saving the service order for the Object (Fisnished Goods), in which components  required for servicing of material are maintained, when i will save the order a Reservation for the same needs to be reaised to Warehouse automatically.
    2) In Repair order all operation and components are not reflecting when i am selecting the line item and going to EDIT > Display Range > All Items in VA02 for which i need to do DP90.(Resource Related Billing)
    Please hepl,
    Thanks
    SUDIP SINHA

    Thanks for giving valuable answer,
    what if in the service order i am replacing some spare parts along with services when FERT is not under warranty. How the cost will be transfered to invoice. In my case only one service is transfered.
    i waqnted to transfer cost of components as well..
    Thanks
    SUDIP SInha

  • What are theSNP Settings required for Forecast Consumption with Sales Order

    Hello APO Folks,
    I have one SNP scenario:  (We don't have GATP)
    Forecast for Finsihed Product - "PNG_Fert" in Location "1000".
    I have forecast quantity of 500, now our requirement is - when SNP heuristic run will take place (without any sales order quantity) then there should not be any planned orders creation.
    Planned order creation should happen Only if any one places sales order from ECC , which comes to APO then against that sales order forecast quantity should consume and should create the planned orders equal to the nos. of sales order quantity.
    So if I have forecast of 500 qtys and sales order of 90 qtys then heuristic run should yield/create the planned order of 90 qtys and there should be 500-90 = 410 forecast quantities remaning.
    Please let me know which strategy will be used and other setting in ECC and APO for SNP. I
    The setting with strategy 50 in ECC and 30 in APO worked properly with PPDS - RRP3 view but from interactive planning /sapapo/sdp94 it is not working, so there will be different setting for SNP.
    Thanks in Advance,
    Regards,
    Vishal
    Edited by: Vishal24a on Oct 13, 2011 9:15 AM

    Vishal
    Can you please explain what issue you are facing when you load the product in planning book. First thing is do you see 410 against forecast and 90 against sales order key figure ? If yes then it means the forecast is getting consumed properly by SO.
    As far as your other requirement  goes (planned order should only be created for sale order quantity) you have to change your total demand macro calclation logic. Your total demand key figure should show 90 instead of 500 - so just include sales order in your total demand calculation (stock balance macro) and run heuristic. Your requirement will be satisfied
    Thanks
    Aparna

  • Settings required for Forecast Consumption with Sales Order

    Hello Folks,
    I have one scenario:
    Forecast for Finsihed Product  - "PNG_Fert" in Location "1000".
    I have forecast quantity of 500, now our requirement is - when SNP heuristic run will take place (without any sales order quantity) then there should not be any planned orders creation.
    Planned order creation should happen Only if any one places sales order from ECC , which comes to APO then against that sales order forecast quantity should consume and should create the planned orders equal to the nos. of sales order quantity.
    So if I have forecast of 500 qtys and sales order of 90 qtys then heuristic run should yield/create the  planned order of 90 qtys and there should be 500-90 = 410 forecast quantities remaning.
    Please let me know which strategy will be used and other setting in ECC and APO.
    Thanks in Advance,
    Regards,
    Vishal

    Hi,
    Please use planning strategy "PLANNING WITHOUT FINAL ASSEMBLY". Strategy 50 in ECC and 30 in APO. In this you can have forecasts and you can do the planning for the forecasts. But the planned orders created cannot be converted to production order. When the sales order comes in the forecast will be consumed and only for the sales order quantity a new convertible planned order will be created.
    Also the forecast and sales orders will be handled in different segments. This will help you to clearly track the changes.
    If you don't want to handle the sales orders in MTO segment, then the same can be achieved by using strategy 52.
    For more information please check the below link,
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/cb/7f9b7043b711d189410000e829fbbd/frameset.htm
    Regards,
    Manimaran M.

  • Inspection lot creation not required for intercompany Stock transfer order

    Hi Team,
    The client  does not want system to create inspection lots for inter comapny STO. But for intra STO system does not create the inspection lot and thye are happy with it.
    I have have flagged the indicator "QM not active' for the movement type
    101 entry as below at transaction code OMJJ.
    101  B(goods movement for Purchase Order) X(Stock Transport Order)
    Even after flagging the above indicator, system is still creating the inspection lot at the time of GR for InterCC STO.
    Are you aware any other place to control inspection lot creation for Inter company STO.
    Thanks & Regards
    Mangesh

    The ispection types assigned to the material are given below.
    Z05 Goods Return Inspection(copy of 05)
    Z09 Shelf life extension Inspection(copy of 09)
    Z89 Inspection for Quality Assurance(copy of 89)
    Z90 Goods Receipt  for Trading goods( It is a copy of 01 inspection type)
    There is no inspection type 08 active in the material .
    Thanks & Regards
    Mangesh

  • Automatic Creation of MIGO for stock transfer order with movement type 351

    I have used the BAPI - BAPI_GOODSMVT_CREATE_OIL to create the material document number. But the test ended with error "Goods movement not possible with mvmt type 351".
    Is there any ways to eliminate the above error....
    Friends need your help

    351 Goods issue for a stock transport order (without SD)
    The quantity is transferred from unrestricted-use stock in the issuing plant to stock in transit in the receiving plant.
    Movement type 351 is only used if the goods issue is posted without an SD delivery. A goods issue for a stock transport order with SD delivery is posted using movement type 641 or 643.
    The transfer posting is also possible for materials valuated separately.
    The goods issue for a stock transport order takes place using movement type 101.
    Possible special stock indicators: E, Q
    For special stock indicators E and Q and for purchase orders assigned to an account, ensure that the quantity is not posted to the stock in transit in the receiving plant.

  • What customization settings required for automatic availably check,

    Dear Guru's
    While doing Sales order my availability check should be carried out, but it is not happening automatically, what settings required for the automatic availably check. Pleasantly we are doing it manually.
    Regards,
    Kalyan

    Hi Kalyan,
    ATP check requires following configuration setting.
    1) The availability check is indecator needs to be switched on at requirement class lavel.
    2) The availability check is indecator needs to be switched on at schedule line lavel.
    3) Set availability check 02/ 01(individual / daily requirement) in Sales Genral plant view of Material master.
    4) Set the checking group in the MRP3 view of Material master.
    5) Above all a plant must be assigned to the line item in the sales order.
    Please do let me know if you have any concern.
    Thanks,
    Rupak.

  • Automatic creation of Purchase Order from Sales Order

    Hi,
    please is it possible to know the use of flag "Create PO automatically" into Sales Order Item Category customizing setting? Perhaps automatic creation of PO for Third Party sales process.
    Thank you very much
    Kind Reards
    Andrea

    Hi friend,
    You are right that chekbox is used for third party only. And it will be used when you are using ALE when you have distributed system where your sales order is supposed to be created in different system and PO will be raised in different system.
    If you activate this field, the system automatically generates both a purchase order requisition for third-party schedule lines as well as a purchase order in the background when you save the sales order. This function has been designed for Application Link Enabling (ALE) but you can also use it when working with distributed systems.
    To avoid errors caused by incorrect system settings, we recommend that you carry out the SAPEVENT OCU_LINK\DS:TRAN.BD86 for your third-party material. If you SAPEVENT OCU_LINK\DS:TRAN.PFTS tasks 8097 (create)and 8114 (change) (by choosing "Extras -> Employee assignment -> Maintain"), you will receive workflow objects in your inbox, should any errors occur.

  • Automatic creation of po during goods receipt

    Dear all,
    po has not been created, but while receiving the material i want automatic generation of po. i have some knowledge about it but it is not working. Can some one send detailed information. with navigation details. Tips that are posted on the sdn is not working.
    Regards

    Hi
    Pl Make sure you have done following settings for the Automatic Creation of PO during GR:
    1) In SPRO ---> Enterprise Structure ---> Assignment -
    >  Material Management ---> Assign Std. Purchase Org. to your Plant...
    2) In Material Master -
    > Purchasing View -
    > Pl. Check. Automatic PO check Box   and  Maintain Purchasing Group....
    3)Create your Vendor for oyur Company Code and  Std. Pur. Org. combination and in that Vendor Master -> Purchasing Data View--- > Pl. Check Auto. PO Check Box...
    4)For your Vendor -Material Master - Plant -Std. Pur. Org combination Maintain valid Info record...
    5)In OLMB --->  Goods Receipt -
    > Automatic Creation of PO ---> for the M.Type:101  pl. check  Auto PO check Box
    6) In OLMB ---> Movement types ---> Copy,Delete, Check M.Types ---> Choose the M.Type:101   and go into Details -
    > Then goto  allowed Fields for M.Types for M.Type:101 --->  there for the M.Type:101   make the field   LIFNR as a Mandatoty field...
    If you have done the above settings properly...then  in  MIGO ---> Choose Transaction GR  and referance as Others
      and do the GR....Make sure you are doing GR with M.Type:101....and yougive the Vendor's name during   GR....
    Now If you save the GR ...automatically PO will be created...
    this you can see it by displaying the MIGO Document..
    Reward if useful
    Regards
    S.baskaran

  • Automatic creation of Shipment VT01N

    Is it possible to have an automatic creation of shipment for a particular customer in transaction VT01N? If yes, could you kindly tell me how?
    I am thinking if it is possible to make a batch job to do this?
    Thanks in advance for the response.

    Try T-Codes:
    1. VT04 - Collective Processing
    2. VT07 - Collective Processing in Background
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Automatic TO creation and confirmation for a Material document

    Hi Dear All,
    i am new to MM andWM.
    I have to customization for auto transfer orders and confirmations for material documents what ever created with 101 movement type in Inventory Management. I have down configuration like below.
    SPRO->Logistics Execution->Warehouse Management->Activities->Transfers-> Set Up Autom. TO Creation for TRs / Posting Change Notices
    Double click on ‘control data ‘tab
    Hear for my warehouse I given input like   Auto TO = ‘1’,
                                                                             AddId = ‘select check box’.
    And in ‘Assign control’ tab for 101 movement type I have given input like below.
    Automatic TO = ‘1’.
    TO item can be confirmed immed. = ‘tick checkbox’
    Propose Confirmation = ‘tick checkbox’.
    Foreground/Backgrnd = ‘D’.
    After creating of Material document I am executing report RLAUTA10 in SE38.When I execute this report system showing message like ‘TO processing finished: TR total:   17, TO created:    0, Errors:   17’.
    If I check header details of transfer requirements in LB03, i am not seeing ‘Tick Mark’ in Auto TO Creation field.
    Can any one tell me what the mistake i have down or if i need to do any further configuration. Please help me regarding this concern?
    Thanks in Advance..

    Dear Steve,
    Thanks a lot for giving reply with what I need to do, but I am unable to see result.
    I have down configuration like below even though system not processing Auto TO creation. Can you explain me if I have down any mistake below.
    Click on ‘Assign’ button,
    Press on ‘New entries’
    WhN = ‘900’
    Reference Movement Type = ‘101’
    Movement indicator = ‘B’
    Movement type for Whse Mgmt = ‘101’
    TR create Transfer Requirement = ‘X’
    Immed.TO Creation
    Mail confirmation for background processing = ‘01’.
    GR date = ‘2’

  • Automatic PO creation from PR for non materials

    A requirement has recently been raised where the business wants to introduce the use of purchase requisitions and once the purchase requisiiton has been released (approved) a purchase order be automatically created from the purchase requisition. However the business do not use or maintain material records, purchasing info records or source lists. If the the standard automatic purchase order from purchase requisition is used (ME59N) these items are required. In entereing the purchase requisition it is expected that the 'Desired Vendor' will be entered. Has anyone had a similar scenario where the automation of purchase order creation is required? Any assistance is appreciated.
    Thanks

    Hi,
    For no material, only for SERVICE procurement , the Service auto- PO created by activating Automatic Purchase order creation for Service requisitions in t.code: ML91. Create info record based on Material Group. For Automatic PO , info record is mandatory. For more please read note 635511
    Regards,
    Biju K

  • Stop Automatic creation and confirmation of Transafer Order for a doc type

    Hello All,
    There is a requirement that I need to stop Automatic creation and confirmation of Transafer Order for a particular document type.
    The issue is that sometimes the cycle goes upto creation of Invoice automatically but sometimes this does not happen. More over the user wants that the transafer order needs to be confirmed manually.
    Can u please provide the .steps involved for thie case.
    Thanks
    Chandrashekhar

    Dear Steve,
    Thanks a lot for giving reply with what I need to do, but I am unable to see result.
    I have down configuration like below even though system not processing Auto TO creation. Can you explain me if I have down any mistake below.
    Click on ‘Assign’ button,
    Press on ‘New entries’
    WhN = ‘900’
    Reference Movement Type = ‘101’
    Movement indicator = ‘B’
    Movement type for Whse Mgmt = ‘101’
    TR create Transfer Requirement = ‘X’
    Immed.TO Creation
    Mail confirmation for background processing = ‘01’.
    GR date = ‘2’

  • 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

  • Tax Codes

    Hi, When the vendor sends us these EDI invoices, he calculates tax as per the applicable rate (in this case, VL @ 15% tax) on the base amount and sends the tax amount in the idoc. Normally, the system would accept the amount unless the 'system calcul

  • Delete or modify multiple digital signature options

    We use Acrobat 9 Pro (9.4.5) on an XP PC. We use the Windows certificate to self-certify our digital signatures. We use different signatures depending on what we're signing for - some signatures indicate authorship and some signatures indicate review

  • Report with goods supplier data

    Hi Gurus, Any standard report with purchase orders showing also general data of the goods supplier including number, name, address? Regards, Alberto

  • Opening files in Ps CS5

    In Photoshop CS5, why can't I open files?

  • Coverflow Component Performance

    My current project is trying to utilize Flex as the UI on small form-factor touchscreen laptops/netbooks.  Performance in this case is a must, especially since the application is kicking off extremely resource intensive applications in the background