Change in Transfer Order for Storage Type & bin

Hi,
I want to change destination bin change during TO Creation. Steps are given below.
a) SPRO : Storage type setting: Two options are t there in stock placement section
                 Storage bin cannot be changed during confirmation
1     Storage bin can be changed during confirmation
I set it to 1.
b) LT06 : TO Created.
c) LT12: TO Confirmation: TO lines are coming grayed out. We can not change Destination storage bin, storage type , and section.
Could you please advice me how to change TO Bins change during confirmation.
Clients requirement: System will pick bin automatically. Print will be taken for this. Once placement is done & some of material are not kept as per TO Bin number. its a different bin,. Now User want to change bin number during TO Confirmation.
Thanks ,
Gupta

Hi Gupta,
In WM customizing - master data - storage type - in the detail data of     
the relevant destination storage type you set the flag                     
'Dst bin ch. during confirm.' from space to 1. Then the destination        
storage bin "in general" can be changed at confirmation time.                                                                               
Additionally you need to setup for the movement types that you are using   
that you work with the new confirmation list, see detail of the movement   
types, box screen control. (Try changing this setting to '1').                                                                               
Please also read in the R/3 library - logistics - logistics execution -    
warehouse management - warehouse movements - transfer orders - transfer    
order confirmation - confirming transfer orders.                                                                               
Here it is described when the destination bin can't be changed even        
with the correct customizing settings.                                                                               
If you set the indicator for Destination bin change during confirmation    
for the desired storage type in Customizing for Warehouse Management       
under Logistics Execution -> Warehouse Management -> Master Data ->        
Define Storage Type, you will be able to change the destination bin when   
confirming a transfer order if, for example, the destination bin           
proposed by the system is damaged.                                                                               
NO destination bin can be entered during confirmation for:                                                                               
- dynamic coordinates                                                     
- return items                                                            
- Lean WM (if the destination bin is defined in the movement type)        
- posting change TOs                                                      
- inventory based on putaway                                              
- additions to existing stock in storage units                            
- transaction Confirm single item                                         
Please check if your TO is related to one of these cases !!!
Regards,
Mauro

Similar Messages

  • Sorting for  storage type in LM12

    LM12 - change sort display so that alpha storage types with bin info displayed before numeric storage type and bin info.
    The standard LM12 shows sort order for storage type as  numeric storage types first then alpha storage types.
    But User is requesting that alpha storage types are displayed first along with relevant info in alpha order. Standard SAP displays numeric storage type first and then alpha storage types.
    Plz can any one help us to give solution for above  issue.

    Hi VIk,
    SAP help of the customizing node (sPRO > LE > WM > Strategies > Activate Storage type Search):
    If you want the system to search through the entire warehouse number for stock pick, enter "***" (stands for strignent FIFO) as the storage type. The system then will search the entire warehouse for the oldest stock of the material. The entry "+ + +" means that the system branches to the user exit to the stringest FIFO process (MWMT0013).
    Regards,
    Csaba
    Edited by: Csaba Szommer on Jul 27, 2009 8:54 AM

  • Transfer Order : Data for storage type search is not defined (A   )

    Dear Experts ,
    While trying to use the Transfer Order and trying to determine the storage type this error appears :
    Data for storage type search is not defined (A   )
    Message no. L3007
    Diagnosis
    Information on the storage type search has not been defined.
    How ever , I have already configured the search and here is the Storage Type search's data in OMLY
    1. Warehouse number : W10
    2. Operation : A "Stock Removal"
    3. Indicator :   E
    4. Stock Category : Blank
    5. Special Stock Category : Blank
    6. Storage Location Ref :10
    7. Storage Type : 10E
    Please Advice
    Edited by: Sap Sap on Feb 24, 2011 10:54 AM

    Hello,
    The storage type in which you want to place the material or pick the material from has not been defined in the storage type search sequence.
    You need to define the search sequence in customization so that storage type is determined automatically when the transfer order is created;
    SPRO>>Logistics Execution>>Warehouse Management>>Strategies>>Activate Storage Type Search
    In this go to determine search sequence and then
    for warehouse number W10, operation as stock removal 'A' and in this maintained the relevant the storage type (10E) so that it is determined automatically.
    I hope this helps.
    BR,
    Tushar

  • SAP Warehouse Management change Storage Type Bin type while creating TO

    My requirement is to find an exits which allow us to change the Destination Storage Bin and storage type when creating Transfer orders through Inbound Deliveries.
    I have tried using "MWMTO003", "MWMTO004". But the problem here is that none of the funtion exits have both storage type and bin as exporting parameters.
    The exit "EXIT_SAPLL03A_001" has Destination bin (LTAP-NLPLA) as a changing parameter but not Destination storage type.
    I have activated the check box to trigger User exits using SPRO->LE->WhM->Master Data->Define Storage Type and Activate.
    I got a  BADI "LE_WM_STORAGETYPE_HU" with both Storage bin and type as changing parameters but then when I activate it and put a break point. My control never stops there.
    Kindly Suggest what is the correct User Exit required for this?
    Do i need two User Exits to change Storage Type and Storage Bin?
    Kindly provide how to approach.

    I managed to change the casetype now by
    1) Changing the corresponding SCMG_T_CASE_ATTR entry
    2) Changing the record model POID in the XML file of the case, by manually parsing and replacing the XML
    Still wondering if this is a valid approach, or if I've overlooked something...

  • Creating Transfer Order for Delivery with Specified Source Bin

    Hello,
    My requirement is to create a pick transfer order for an outbound delivery.
    <b>L_TO_CREATE_DN</b> works perfectly well, however, it does not let me to specify the source (fixed) bin in my warehouse.  It actually executes the bin determination routine to pick the source bin for me, which is not acceptable.
    <b>L_TO_CREATE_SINGLE</b> won't work as my destination bin is a dynamic bin, and this FM does not allow to set LTAP-NKDYN.
    So, I'm stuck.  LT03 actually allows the user to input source bin information, so I'm saving BDC as my last option, but wanted to see if anyone here has other ideas.
    Thanks in advance!
    R.D.

    Hi,
    Try this L_TO_CREATE_SINGLE
    Tks,
    Krishna

  • Storage bin for storage type

    Hi ,
    How to maintain storage bin for storage type in WM
    Regards
    RB

    Hi
    Check it in LS01N.
    This will do
    Regards,
    Raman

  • Create transfer order for moving storage units

    Hello guys,
    I need to create transfer order for moving storage units, the same with the transactions LT09, I found this FM 'L_TO_CREATE_MOVE_SU' but no work, somebody have an example for this FM, thanks a lot!

    Hello,
    I had the same problem today and I've fixed it by calling the FM in a different task (asychronous) .. this way the fugr/internal variables will be loaded again and you won't get this stupid error anymore. 
    CALL FUNCTION 'L_TO_CREATE_MOVE_SU' STARTING NEW TASK lv_task
    In case you need it syncronous use PERFORMING clause together with WAIT UNITL
    Hope this helps!
    Cristian

  • Creating Transfer Order for a Material document

    Hi,
    I am transferring the Unrestricted stock from one material to another material through Movement type 309.
    I am creating a material document through BAPI_GOODSMVT_CREATE. Once the Material document is created and if the stock is in multiple storage types or storage bins, then I need to perform LT06. Instead of doing BDC recording I am using L_TO_CREATE_MULTIPLE function module for creating the TO. I am passing all the necessary values to this FM. TO is getting created but the Material document is not reflecting in that TO.
    As per the configuration, movement type 309 will create the posting change only not the Transfer Requirement.
    Does anybody have encountered the same problem?. If so please let me know how you have resolved the issue.
    Regards,
    Kishore.

    Hello Kirankumar,
    It is possible to assign external number ranges for Storage unit, so maintain storage unit number range to assign SU number externally.
    Now when you create Transfer order for material document at that time you can assign SU number externally.
    Hope this helps.
    regards,
    Arif Mansuri

  • BAPI - Goods receipt and then create transfer order for a production order

    Hello Everyone
    We need to do goods receipt and then create transfer order for a production order (Material for WM scenario)
    We are using BAPI 'BAPI_GOODSMVT_CREATE'
          i_items-orderid = wa_afpo-aufnr .
          i_items-order_itno = wa_afpo-posnr.
          i_items-mvt_ind = 'F'.
          i_items-stge_loc   = wa_afpo-lgort.
         i_items-stge_type = '901'. "wf_styp.
         i_items-stge_bin = wf_sbin.
          i_items-entry_qnt  = wf_qty.
          i_items-entry_uom = wa_afpo-meins.
          i_items-entry_uom_iso = wa_afpo-meins.
          i_items-batch      = wa_zmobtag-charg.
          i_items-move_type  = '101'.
          i_items-move_reas  = wl_3131.
    We are passing i_items (like line of goodsmvt_item) along with other parameters to BAPI and its creating material document and Transfer order automatically. Problem is the TO created is showing destination storage bin as default storage bin( from material master).
    The field goodsmvt_item-stge_bin is just changing the Source bin details. There is no field for bin in the BAPI so that we can change the Destination storage bin as per our requirement.
    My requirement : Creating material doc and then TO. Material should move to specified storage bin.
    Please let me know any alternate way( No BDC) so that my requirement is achieved.
    Regards
    Swetabh

    Hi ,
    can u check these fields ,
    STGE_TYPE_PC     UBTYP     CHAR     3     0     Storage type for transfer posting
    STGE_BIN_PC     UBPLA     CHAR     10     0     Storage bin for transfer posting
    Regards
    Prabhu

  • Error during creation of transfer orders for material

    Hi,
            We are doing a transfer of stock from one storage with WM to a storage without WM.
    But system does not finish the process automatically displaing the following error message:
    "Error during creation of transfer orders for material document 49000XXXX"
    System cannot find source storage bin
    Thanks in advance for the help
    Regard
    Enzo

    your picking strategy does not find the bin where the material is.
    So you need to check what value you have entered for picking in WM view of material master.
    then you have to check where your material is (storage type and bin)
    then you need to check customizing to where what storage types are included in the picking strategy that is tight to the material master entry.

  • Create Transfer Order for Consingment Pick up

    Hey, is there anyone know how to create transfer order for consignment pick up.
    I had tried it using LT06 by using GR material document but it didnt work.
    Please i need the answer rather sooner than later.
    Thanks

    Hello,
    Customer consignment pick is from customer consignment stock back to plant stock.. First of all check in MMBE whether stock exists for that material under customer consignment stock. You can check this in MMBE.
    Your stock should be maintained  in customer consignment and not in interim storage type.
    Ideally your process shall flow like this
    Sales order (KA-Consignment Pick up with item category as KAN & schedule line category: F0 & F1)>>Enter the order reason, material and quantity in sales orde & Save It>>Create Outbound delivery (VL10B/VL01N)>>Now Create Tranfer order to move the stock from consignment to warehouse stock>>Go to VL02N Choose from menu  Subsequent Functions u2013 Create Transfer Order & Enter>>Add Storage bin if required>>Confirm the transfer order (LT12)>>Do the Post Goods Reciept (VL02N)
    Now Check Consignment stock quantity with MB58 Add Material , Plant , Customer Execute
    BR,
    Tushar

  • Create transfer order for material document - 4.6C system

    Hi Gurus
    Can any one provide me the function module or BAPI to create transfer for material document in 4.6c system. I have to give input as supply storage type and bin and destination storage type and bin while execting the function module.
    Thank you in advance
    Regards
    Sarath

    Sarath,
    Thanks for responding, I finally found my answere via Thread: create transfer order for material document - 4.6C system
    Thanks again.

  • ID Point for Storage Type V.S. Value in Storage Type Search Table.

    I am trying to perform a GR without PO (MVT 501) for material ABC into Plant 1000, Warehouse number 100, Storage Location 0100.
    During creation of Transport Order, the Destinated Storage Type appeared
    is 011  (ID point for st.ty.010). However, the desired Destinated Storage Type should be 015 (High Rack) instead of 011.
    I have checked the following configuration:
    1. At the SPRO->LE->WM->Master Data->Define Storage Type, the value set for Field: Assigned ID (Identification point) for storage type under the Stock Placement Control = 011 (ID point for st.ty.010).
    2. At the Storage Type Search Strategy, 015 is put as the first Storage Type, followed by Storage Type 001 (high Rack Storage)
    3. And I found out that using LX03 (Bin Status Report) that there is no
    Storage Bin created for the combination of the following
    Plant 1000, WN 100, SLOC 0100, Storage Type 015, Storage Section 001
    Since we do not have any Storage Bin created for Storage Type 015, it will display 011 as the destinated storage type during TO creation.
    My question
    After I have manually created a Storage Bin 03-01-01 for storage type 015, during the TO Creation, system still suggests 011 as Destinated Storage Type instead of the 015 I put in the 1st column of the Storate Type Search.
    I already have the Storage Bin created for Storage Type 015, why the system still fails to pick it but suggests 011 from Assigned ID (Identification point) for storage type.

    Dear Karthik
    You are right, I did activated Indicator: Activate Storage Unit Type Check for Stock Placement in SPRO->LE->WM->Master Data->Define Storage Type
    The Indicator: Storage type with storage unit management was also ticked automatically by system when I selected Indicator: Activate Storaget Unit Type Check for Stock Placement.
    Are you trying to say the ID Port defined in Storage Type will have higher priority over the Storage Type value I maintained in the Storage Type Search Table?
    I have already maintained the Storage Bin and I still do not understand why system still go for ID port. As far as I know, system will suggest the Storage Type from ID Port ONLY if storage bin in this storage type as their destination are not maintained in first in the other setting.
    Quoted from SAP HELP
    Identification point for storage type
    Identification point (storage type) of the current storage type.
    All goods movements that do not have a specific storage bin in this storage type as their destination are first directed to the identification point.
    Here the goods are identified and a transfer order is generated for the actual transfer of the goods into the storage type concerned.
    Please help.
    Edited by: Daimos on Nov 4, 2011 3:25 AM

  • 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

  • Error in Transfer posting for movement type 303

    Hi Sir,
    I am getting following error while doing Transfer posting for movement type 303 thru BAPI_GOODSMVT_CREATE
    Error in Function:
    Order    not found or not permitted for Goods Movement.
    I am passiing all mandatory parameter for it as per BAPI Documentaion in tcode BAPI
    Transfer posting
    Transfer posting without reference to a reservation
    The following fields must be populated:
    Material number
    Plant
    Storage location
    Movement type
    Movement indicator
    Quantity in unit of entry
    ISO code unit of measurement for unit of entry
    If I am doing manually by MB1B tcode, it is successfully done.......here its not asking any ORDER No...
    Please help me .........
    Regards,
    Krishan

    I'm not sure what you're system set up is...   So I'd suggest looking at everything you enter on the screen and then checking to make sure you are passing all the information in the BAPI.
    With that said our system does require posting date, and batch.  You might check that.   Also check that you've included all the required information in the header.
    Did you use the same data when you tried to process the BAPI that you used when you tried to do MB1B manually?

Maybe you are looking for

  • How do I switch my clash of clans account with Game Center?

    I'm logged into my dad's clash of clans account with Game Center and now I am trying to log in using my Game Center account but it's not letting me I have logged out of my dad's account on everything and logged into mine and I deleted the game and re

  • Can I transfer apps on an ipad account to another account?

    Okay so on our ipad, the account that was there to download apps and games are my mom's account and I also bought some games since she let me and lets me use her ipad and buy things on it. but i want to make a new account with my own email (well i cu

  • How to clear paper jam in MX922?

    101 paper that came with the printer into the wrong tray. I fed it into the regular tray. Now I got the error message that said there's a paper jam inside. I've opened all the doors and trays that I could find but I didn't see the papers. I can't see

  • Service entry sheet cannot revoke acceptance

    Dear All, Service PO is created with four line items in Service tab in item details. All are entered as short text i.e without service master record. Three Service entry sheets are created for the first three items. But only one material document (wi

  • Can't get Export to work

    I'm relatively new to Fireworks.  I created a small image map, but when I try to export the image and html to Dreamweaver, I get a message a message saying "Could not complete your request - The file was not found."  I've tried Export, Export Wizard,