Conversion of PO into Sale order

Hi All,
Is it possible to convert a PO to a sale order in the same client for two different plant in two diffrent company codes.
I mean to say a PO is generated from one plant in company code 1 should become a saleorder for company code 2 in second plant.
Lekhram

Hi,
As mentioned this is the standard SAP functionality of an STO. You don't actually get a Sales order but you do get a sales delivery (and billing document if you need one and ONLY if the Plants are in different company codes as you have indicated they are).
So I would not try to make SAP generate a sales order for a STO.
If you relly MUST have a sales order and PO then treat each plant as a customer / vendor. But this would not be automatic and it is also questionable accounting practice.
Did you want the sales order so that the "sale" shows up in your sales figuires for the issuing plant? If so then you are really treating this as a sale to an external customer and not an STO.
You may be able to achieve some automation by using workflow to link the two processes, or simply get MRP to automatically generate the requisition and convert it to a PO using the normal way for "normal" customers.
A "third party" sales order (as suggested) would not be appropriate because this would not manage the stock at receipt stage.
Steve B

Similar Messages

  • Gross & Net Weight not flowing into sales order

    Hi all,
    When i am creating a sales order the Gross weight and Net weight is not flowing into the sales document. i have checked the material master it was maintained properly and item category also it is checked.
    if you have any solution please post.
    thanks in advance
    Sri

    Hi,
    The unit you're using into sales order is the same of material master?
    If not, the unit conversion is mantained in material master?
    What kind of material type r you using?
    There are "order quantity"? (sorry for that silly question...)
    I think when double checking those itens probably you will find the solution.
    Regards,
    deme

  • Want to pass STRS2 field into sales order and contract.

    Hi Friends.
    I am creating Sales order using function module IDOC_INPUT_ORDERS and Contract using SD_SALESDOCUMENT_CREATE.
    Now I want to pass STRS2(House number field into Sales Order/Contract). In IDOC I tried to pass E1EDKA1-STRS2, but its not coming into Sales order output.But SD_SALESDOCUMENT_CREATE dont have an option to pass the field value.
    So in that case how can I achieve the desired functionality, Is there any user exit or let me know the suitable method to achieve the functionality.
    Thanks
    Gowrishankar

    Yes I tried that also.I passed the value from program to user exit MV45AFZZ and updated the structure XVBADR in USEREXIT_SAVE_DOCUMENT_PREPARE, but its not getting reflected in Sales Order/Contract.
    Anyone have suggestion..plz let me know.
    Thanks
    Gowrishankar

  • Can Multiple Objects be copied into Sales Order??????

    Hi,
    I have created three charecteristics and assigned to a class of class type 001. In the classification view of material master for each material i assigned the class.This assignment is done for calling the object at sales order level.
    I am able to find the multiple objects for single characteristics in sales order but multiple objects are not copied into sales order..only single object is copied into sales order...when i try to copy multiple objects system is throwing warning message as "You can only copy one object in this mode".... Is it possible to copy multiple objects ?? Any answers will be highly appreciated.
    Ramagiri.

    Hi,
    But what's the purpose behind that.Material Class 001 is just only for information purpose only to search the materials with help of class and characterstic.
    If your material is configuable one then you have to use Class type 200 - Material (Configurable Objects) and for the same you have maintain the characterstic value during sales order creation.
    Regards,
    Dhaval

  • Editing the conversion field in the sales order

    Can any one tell me how to use the user exit USEREXIT_FIELD_MODIFICATION in order to make the conversion field in the sales order enabled so that i can edit it in the sales order
    Regards,
    SD Consultant

    Hi Serry,
    As per my understanding you are talking about currency conversation in sales order which is in grayed out at sale header level,the values are coming from VBKD - KURSK so through the user exit ask your abaper make that filed in editable mode.
    Regars
    Ram

  • Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?

    Is there a way on CONVERSION to create a sales order with a scheduled ship date in the past?
    Customer wants to maintain the original scheduled ship date on converted ordered, but the scheduled dates is defaulting to sysdate for past due shipments on converted orders.

    Hi Friend,
    As of now there is no functionality to display SSD,RD,PD backdated, max it can be sys date, not lower then that.
    Regards
    Shyam
    Please see following Metalink Note ID for all in One solutions
    Oracle E-Business : All In One Metalink Note ID's
    If you are happy with the Document, please mark as Helpful by doing so this will provide assistance for other people looking for answers to their queries.

  • Z-Table Values, can it be pulled into Sales Order?

    Dear Gurus,
    If i maintain values for different disocunts in Z-Tables, can it be possible to pull those values into sales order?
    If so, please show me the way forward...
    SKumar

    Hii
    For using Z-Table value for discount calculation against particular condition type, you have to create one Routine in Transaction Code VOFM  => Go to formula from menue bar ==> Condition Base Value
    Create on routine there with the logic that base value of condition calculation will be Z- table (You can create your own logic)
    Then use that routine against your condition type in Pricing procedure in Alt Cal Type column
    Hope it will help you
    Thanks and Regards
    Shambhu Sarkar
    Edited by: SHAMBHU SARKAR on Apr 25, 2011 12:04 PM

  • ECP Planned values into Sales order

    Hi,
    I have a scenario where client maiantians the planned costs with ECP for around 50 wbs elements. Client would like to bill the customer based on the planned costs of wbs elements.
    He would like to see all the wbs elements as individula line items in the sales order and then he will add some mark up and then bill the customer.
    Is there any process where i can transfer the planned cost of each wbs element into sales order as line items?
    Please suggest.
    Rams

    Hi Ravi,
    I am using an internal activity and sometimes maiantaining ECP for activities also. But when i click on sales price system is not picking up the activity plan values. I tried different combinations on ODP1 but its not triggering the activity ecp values.
    Characteristics i chose in the DIP profile are
    1. Activity number   Char relevant
    2.Cost element            do
    3.Material                     do                   mat determination
    4.object number          do
    5.Transaction Currency do                 No Summarization
    6.UOM                          do                      do
    7.WBS                          do
    i didnt selected structuring for any of these characteristics.
    Could you pls tell me how to pick the activity into sales price screen.
    Thanks in advance.
    Rams

  • How the system pic the tax (cst and BED) into sales order

    Hai Guru
    How the system pic the taxes into sales order level ...
    Anybody tell me in a sequence........
    Thanks

    Dear Anjaneyu
    In TAXINJ, UTXJ is the triggering condition type to determine taxes.
    UTXJ links taxcode, Pricing procedure & tax procedure. UTXJ records are maintained in VK11. In taxcode (FTXP)  the BED & CST % maintained. For each combination of BED, Add cess, she cess, VAT/ CST diffrent taxcodes are maintained in FTXP. Tax posting in FI (OB40)
    TAXINN tax rates are maintained in condition records. For each condition type the possible condition records are maintained in VK11. For MM it is FV11
    If you require detail you can search in SDN. Here FI postings thru VKOA
    If you require more information search in SDN itself. Many posting related to TAXINN & INJ
    Thanks
    Deepu Pillia

  • No. of enquiries converted into sales orders

    Dear Experts
    is there any setting  for measuring no.of enquirers converted into sales order
    Regards
    D.Jeevan

    Dear D.Jeevan ,
    Take TCode: SE11
    Put table VBFA.
    Choose DISPLAY
    press (ctrlshiftF10)
    Give VBTYP_V (Document category of preceding SD document) as A
    Give VBTYP_N (Document category of subsequent document) as C
    Click on (CTRL+F7) or number of entries in the menu to get the total number of inquiries converted to SALES ORDER.
    If you want to know the details about inquiry and the corresponding sales order created, click (F8) or execute button.
    Thanks & Regards,
    Hegal K Charles

  • Required delivery date not to be cpoied into sales order from quotation

    My requirement is that required delivery date should not be copied when i create a sales order with reference to quotaion,
    In the sales document types i have unchecked propose delivery date .it works fine while creating quotaion but then when i create sales order with ref to quotation the required delivery date is copied into the sales order which i dint want.
    Kindly guide me on this

    Hi,
    I think if u dont want to copy only required delivery date from QT to OR  you need to write the routine and has to assign in VTAA -Coping requirements.
    if u assign 502 it ill not copy quantiy in schedule lines i think.
    Just ask your ABAPer about 502 , if it work then assign the same to ur document types in VTAA.
    Hope this will helps u
    Regards,
    Ramesh
    Edited by: Ramesh on Mar 30, 2009 11:25 AM

  • Error when drilling into Sales order

    I have a user that is getting an error when trying to open a document.  The error is 'SBO FormDataEvent - Menu - Cannot activate a disabled menu'.  She is accessing this through BP Master, clicking the SO arrow to get to the Sales Order Balance screen and then tries to drill into the SO using the orange arrow on the right of the SO number.  What could be wrong?

    Hi Pat,
    Easy to test is create a new user and copy her authorisation .
    User profile  might have been corrupted .
    BTW ,Did you aske her to log off from the system and log back in
    Hope this helps
    Bishal

  • Quantity update into sales order using BAPI_SALESORDER_CREATEFROMDAT2

    Hi All,
    I am able to create a sales order using the BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
    But even after assinging the Target_quntity and the Target_quantity_units, the values are not getting updated into the Sales order, but the sales order gets created .
    Did anyone of you had a similare problem, how was it solved.
    cold some one please help me out on this.
    Regards

    Hi
    I had used below code (using <b>BAPI_SALESORDER_CREATEFROMDAT1</b>)..but never faced any problem.. you can try the same...
    Regards,
    Raj
    REPORT  z_sd_salesorder_create
            NO STANDARD PAGE HEADING
            LINE-SIZE 150
            MESSAGE-ID zz.
                  S T R U C T U R E  D E C L A R A T I O N S             *
    TYPES: BEGIN OF x_ppl,
            ppl_order(18),   " ppl Orderno
            auart(4),         " Sales Doc Type
            vkorg(4),         " Sales Organization
            vtweg(2),         " Distribution Channel
            spart(2),         " Division
            div(3),           " Division
            kunnr(10),        " Sold-to Party
            date(10),         " Doc Dt
            matnr(18),        " Item Matnr#
            uom(3),           " UOM
            qty(15),          " Qty
           kschl(4),         " Pricing condiiton type
           kbetr(11),        " Rate
           END OF x_ppl.
    TYPES: BEGIN OF x_file,
            loc(30),          " Location
            div(3),           " Division
            ppl_order(18),   " ppl Orderno
            kunnr(10),        " Sold-to Party
            date(10),         " Doc Dt
            matnr(20),        " Item Matnr#
            qty(15),          " Qty
            uom(3),           " UOM
           kbetr(11),        " Rate
           discount(5),      " Discount
           END OF x_file.
    TYPES: BEGIN OF x_output,
            ppl_order(18),       " ppl Orderno
            mesg(130),            " Mesg Success/Error
           END OF x_output.
    TYPES: BEGIN OF x_werks,
            name2(30),                " Location
            werks TYPE werks_ext,     " Plant
           END OF x_werks.
    TYPES: BEGIN OF x_info,
            vkorg TYPE vkorg ,   " Sales org
            vtweg TYPE vtweg,    " Dist channel
            werks TYPE werks_ext," Plant
            spart TYPE spart,    " Storage Loc
           END OF x_info.
    TYPES: BEGIN OF x_material,
            ppl_prdid(20),      " ppl Prd id
            matnr TYPE matnr,    " Material (SAP)
           END OF x_material.
           I N T E R N A L    T A B L E    D E C L A R A T I O N S       *
    DATA: it_file  TYPE STANDARD TABLE OF x_file  WITH HEADER LINE." File Data
    DATA: it_data  TYPE STANDARD TABLE OF x_ppl  WITH HEADER LINE." ppl File
    DATA: it_out TYPE STANDARD TABLE OF x_output WITH HEADER LINE. " Outcome
    DATA: it_werks TYPE STANDARD TABLE OF x_werks WITH HEADER LINE.    " Plant
    DATA: it_info TYPE STANDARD TABLE OF x_info WITH HEADER LINE.      " Othr Info
    DATA: it_matnr TYPE STANDARD TABLE OF x_material WITH HEADER LINE. " Material Info
    DATA: it_item TYPE STANDARD TABLE OF bapiitemin WITH HEADER LINE.  "Order Itm data
    DATA: it_partner TYPE STANDARD TABLE OF bapipartnr WITH HEADER LINE. "Order Partner data
               V A R I A B L E S      D E C L A R A T I O N S            *
    DATA  : v_correct  TYPE i,
            v_error    TYPE i,
            v_total    TYPE i,
            v_return   LIKE bapireturn1,
            v_index    LIKE sy-tabix.
    *- Return values
    DATA: it_orderh TYPE bapisdhead, "Order Hdr data
          order TYPE bapivbeln-vbeln,
          soldto TYPE bapisoldto,
          shipto TYPE bapishipto,
          return TYPE bapireturn1.
    DATA: hdate   TYPE sy-datum.
                    U S E R   I N P U T S   S C R E E N                  *
    SELECTION-SCREEN: BEGIN OF BLOCK blk01 WITH FRAME TITLE text-t01.
    PARAMETERS: p_file TYPE rlgrap-filename OBLIGATORY. " File name
    SELECTION-SCREEN END OF BLOCK blk01.
                      S E L E C T I O N    S C R E E N                   *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_file.
                    S t a r t    o f    S e l e c t i o n                *
    START-OF-SELECTION.
      PERFORM get_upload.
      PERFORM validate_data.        " Validate the data
      PERFORM data_swap.            " Prepare the data for processing
      IF NOT it_data[] IS INITIAL.
        PERFORM get_update.           " Create SalesOrders
      ELSE.
        MESSAGE i001(zz) WITH text-001.
        STOP.
      ENDIF.
                    E n d    o f    S e l e c t i o n                    *
    END-OF-SELECTION.
      IF NOT it_data[] IS INITIAL.
        PERFORM get_write.
      ENDIF.
    *&      Form  get_file
          Get File name
    FORM get_file .
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          program_name  = syst-repid
          mask          = '*'
        CHANGING
          file_name     = p_file
        EXCEPTIONS
          mask_too_long = 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.
    ENDFORM.                    " get_file
    *&      Form  get_upload
          to upload the file
    FORM get_upload .
      DATA l_file TYPE string.
      CLEAR: it_file, it_file[].
      l_file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = l_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = it_file
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSEIF sy-subrc = 0.
        SORT it_file BY loc ppl_order.
      ENDIF.
    ENDFORM.                    " get_upload
    *&      Form  get_update
          Creating mapping Data in Z table
    FORM get_update .
      DATA: l_itemno(2) TYPE n,
            l_partner TYPE parvw,
            l_kunnr TYPE kunnr,
            l_matnr TYPE matnr,
            l_mesg TYPE string,
            l_kbetr TYPE p DECIMALS 2.
      DATA: l_in_qty LIKE vbap-zmeng,
            l_meins LIKE mara-meins,
            l_qty   LIKE vbap-zmeng.
      CLEAR: v_correct, v_error, v_total.
      SORT it_data BY ppl_order.
      LOOP AT it_data.
        CLEAR v_index.
        v_index = sy-tabix.
    *- New SalesOrder
        AT NEW ppl_order.
          READ TABLE it_data INDEX v_index.
          CLEAR: it_orderh, it_item, it_partner,
                 order, soldto, shipto, return,
                 it_item[], it_partner[].
          v_total = v_total + 1.  "Increment Total SalesOrders counter
          CLEAR l_itemno.
          l_itemno = '10'.
    *- Covert date fields into Internal format
          CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
            EXPORTING
              datum = it_data-date
              dtype = 'DATS'
            IMPORTING
              idate = it_data-date.
    *- Populate SalesOrder header data.
          CALL FUNCTION 'CONVERSION_EXIT_AUART_INPUT'
            EXPORTING
              input  = it_data-auart
            IMPORTING
              output = it_data-auart.
          it_orderh-doc_type   = it_data-auart.
          it_orderh-sales_org  = it_data-vkorg.
          it_orderh-distr_chan = it_data-vtweg.
          it_orderh-division   = it_data-spart.
          it_orderh-purch_no   = 'DEPOT'.
          it_orderh-price_date = it_data-date.      "Doc Dt
          it_orderh-req_date_h = it_data-date.      "Del.Dt
          it_orderh-purch_no_s = it_data-ppl_order.
    *- Partner data
          CLEAR: l_partner, l_kunnr.
    *- Convert Partner type into internal format
          l_partner = 'SP'.  "SoldTo Party
          CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'
            EXPORTING
              input  = l_partner
            IMPORTING
              output = l_partner.
    *- Convert Customer into internal format
          l_kunnr = it_data-kunnr.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = l_kunnr
            IMPORTING
              output = l_kunnr.
          it_partner-partn_role = l_partner.
          it_partner-partn_numb = l_kunnr.
          APPEND it_partner.
          CLEAR it_partner.
        ENDAT.
    *- Item data
        it_item-itm_number = l_itemno.
    *- Convert material number into internal format
        CLEAR l_matnr.
        l_matnr = it_data-matnr.
        CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
          EXPORTING
            input        = l_matnr
          IMPORTING
            output       = l_matnr
          EXCEPTIONS
            length_error = 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.
        it_item-material  = l_matnr.
    *- Call FM to get new qty based on SAP UOM
        CLEAR: l_meins, l_qty, l_in_qty.
        l_in_qty = it_data-qty.
        CALL FUNCTION 'Z_GET_QTY_FROM_UOM'
          EXPORTING
            matnr     = it_item-material
            in_meins  = it_data-uom
            in_qty    = l_in_qty
          IMPORTING
            out_meins = l_meins
            quantity  = l_qty.
        IF sy-subrc = 0.
          it_data-qty = l_qty.
          it_data-uom = l_meins.
        ENDIF.
        it_data-qty = it_data-qty * 1000.
        it_item-req_qty = it_data-qty.
        it_item-sales_unit = it_data-uom.
        it_item-req_date   = it_data-date.
    *- Pricing data
       it_item-cond_type = it_data-kschl.  "Pricing condition
       CLEAR l_kbetr.
       l_kbetr = it_data-kbetr / 10. "Price (Rate)
       it_item-cond_value = l_kbetr.
        APPEND it_item.
        CLEAR  it_item.
    *- Increment Item counter.
        l_itemno = l_itemno + 10.
    *- At end of SalesOrder
        AT END OF ppl_order.
          READ TABLE it_data INDEX v_index.
    *- Call the BAPI for SalesOrder creation
          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
            EXPORTING
              order_header_in = it_orderh
            IMPORTING
              salesdocument   = order
              sold_to_party   = soldto
              ship_to_party   = shipto
              return          = return
            TABLES
              order_items_in  = it_item
              order_partners  = it_partner.
          IF sy-subrc = 0.
            COMMIT WORK.
          ENDIF.
          v_return = return+0(1).
          IF v_return = 'E'.
            v_error = v_error + 1.
            CLEAR l_mesg.
            l_mesg = return.
            CONDENSE l_mesg.
          ELSE.
            v_correct = v_correct + 1.
            CLEAR l_mesg.
            CONCATENATE 'Salesorder'(007) order 'successfully created.'(008)
            INTO l_mesg SEPARATED BY space.
            CONDENSE l_mesg.
          ENDIF.
    *- Populate the output table
          CLEAR it_out.
          it_out-ppl_order = it_data-ppl_order.
          it_out-mesg = l_mesg.
          APPEND it_out.
          CLEAR it_out.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " get_update
    *&      Form  get_write
          Write the results
    FORM get_write .
      WRITE:/ 'Total Number of Records :'(002), v_total COLOR 1.
      WRITE:/ 'Total Correct Records   :'(003), v_correct COLOR 3.
      WRITE:/ 'Total Error Records     :'(004), v_error COLOR 6.
      SKIP 3.
      IF NOT it_out[] IS INITIAL.
        WRITE:/5 'ppl Order #'(005),
              28 'Message'(006).
      ENDIF.
      SKIP 1.
      LOOP AT it_out.
        WRITE:/5  it_out-ppl_order,
               28 it_out-mesg.
      ENDLOOP.
    ENDFORM.                    " get_write
    *&      Form  validate_data
          Validate the data
    FORM validate_data .
      DATA: l_bstkde TYPE bstkd_e.
      LOOP AT it_file.
        SELECT bstkd_e INTO l_bstkde
         UP TO 1 ROWS
         FROM vbkd
         WHERE bstkd_e = it_file-ppl_order.
        ENDSELECT.
        IF sy-subrc = 0.  " This ppl Order is already been created in SAP, so delete record
          DELETE it_file.
        ENDIF.
      ENDLOOP.
      SORT it_file BY ppl_order.
    ENDFORM.                    " validate_data
    *&      Form  data_swap
          Prepare the data for processing
    FORM data_swap .
      CLEAR: it_werks, it_info, it_matnr, it_data,
             it_werks[], it_info[], it_matnr[], it_data[].
      IF NOT it_file[] IS INITIAL.
    *- Get the plant from location
        SELECT name2
               werks
          INTO CORRESPONDING FIELDS OF TABLE it_werks
        FROM t001w FOR ALL ENTRIES IN it_file
        WHERE name2 = it_file-loc.
        IF sy-subrc = 0.
          SORT it_werks BY name2 werks.
    *- Get the Sales Org, Division and Distribution Channel
          IF NOT it_werks[] IS INITIAL.
            SELECT vkorg
                   vtweg
                   werks
            INTO CORRESPONDING FIELDS OF TABLE it_info
            FROM tvkwz FOR ALL ENTRIES IN it_werks
            WHERE werks = it_werks-werks.
            IF sy-subrc =  0.
              LOOP AT it_info.
                it_info-spart = '99'.
                MODIFY it_info INDEX sy-tabix.
              ENDLOOP.
              SORT it_info BY vkorg vtweg werks.
            ENDIF.
          ENDIF.
        ENDIF.
    *- Get material from ppl material
        SELECT ppl_prdid
               matnr
          FROM zppl_master
          INTO TABLE it_matnr FOR ALL ENTRIES IN it_file
          WHERE ppl_prdid = it_file-matnr.
        IF sy-subrc = 0.
          SORT it_matnr BY ppl_prdid matnr.
        ENDIF.
      ENDIF.
    *- Update the data in it_data
      LOOP AT it_file.
        CLEAR it_data.
       it_data-auart = 'OR'.
        it_data-auart = 'OR'.  " CHANGED BY Jo ON 3103005
        READ TABLE it_werks WITH KEY name2 = it_file-loc BINARY SEARCH.
        IF sy-subrc = 0.
          READ TABLE it_info WITH KEY werks = it_werks-werks BINARY SEARCH.
          IF sy-subrc = 0.
            it_data-vkorg = it_info-vkorg.
            it_data-vtweg = it_info-vtweg.
          ENDIF.
        ENDIF.
    *- Material
        READ TABLE it_matnr WITH KEY ppl_prdid = it_file-matnr BINARY SEARCH.
        IF sy-subrc = 0.
          it_data-matnr = it_matnr-matnr.
        ENDIF.
        it_data-ppl_order = it_file-ppl_order.
        it_data-date  = it_file-date.
        CONCATENATE it_file-kunnr it_file-loc+1(2) INTO it_data-kunnr.
        it_data-qty   = it_file-qty.
        it_data-uom   = it_file-uom.
       it_data-kbetr = it_file-kbetr.
    *- Pricing condition
       it_data-kschl = 'PR00'.
        CASE it_file-div.
          WHEN 'BRN'.
            it_data-div = '04'.
          WHEN 'GEN'.
            it_data-div = '03'.
          WHEN 'IVF'.
            it_data-div = '02'.
          WHEN 'OPH'.
            it_data-div = '01'.
        ENDCASE.
        it_data-spart = it_data-div.
        APPEND it_data.
        CLEAR  it_data.
      ENDLOOP.
    ENDFORM.                    " data_swap

  • Conversion factor error in sales order - Unit of measure

    Hi All,
    I have uploaded a sales item in to sales order with alternate UoM. The base unit of measure for that material is TO but i have uploaded with a alternate UoM KG. After that i have created project deliveries, invoices and accounted those invoices in last financial year and now i found that the conversion factor which is taken by the system was wrong.
    Instead of taking 1000 KG = 1 TO, system has taken 1KG = 1000 TO
    I have checked the material master there there is no alternate UoM has maintained.
    So now my concern is that
    1. how i can correct this conversion factor with out disturbing my old transactions.
    2. From where system is considered this conversion factor.
    Thanks & Regards,
    Bhadrarao.

    Check your conversion factors in your Unit of Measure configuration.  Transaction CUNI. Look at the unit of measures for Mass.
    Best Regards,
    Brian

  • Automated insertion of text into Sales order header

    Hi Guru's,
    we are recently working on specific request for automated creation of sales documents.
    On each sales order there is a need to update specific fields on header level with default values - no problem.
    There is also need to insert specific text into Header text: "Service reendered YYYY-MM-DD" into each single order generated by this automated way.
    Do you know any functionality that we can implement into our solution or any other solution which is coming to your mind?
    THANK YOU!!!

    Hi
    Please try with the following user exits.
    USEREXIT_MOVE_FIELD_TO_TVCOM_H
    You can use this user exit to influence text determination for header texts. For example, you can include new fields for text determination or fill fields that already exist with a new value.
    USEREXIT_MOVE_FIELD_TO_TVCOM_I
    You can use this user exit to influence text determination for item texts. For example, you can include new fields for text determination or fill fields that already exist with a new value.
    Regards,
    P Gomatheeswaran.

Maybe you are looking for

  • Pen tool and masking in cs6.

    In previous versions I could create a custom (vector) mask using the pen tool in 2 easy steps. Draw a shape then drag that shape to the image i wanted the mask on. Done. This "feature" has been removed from CS6 and its extremely annoying. Or has it j

  • Lost mail inbox after sync - help!

    After a recent new version of iTunes was downloaded onto the iMac, the my iPhone (version 4.2.10) mail inbox was empty after the first sync.  The only way I can find to retrieve the emails is to resend them to myself.  This is at least the 3rd time t

  • What are the standard functions in XI ?

    What are the standard functions in XI ?

  • Java portletRequest.getUser().getEmail returns null

    I have defined an oid manager for my portlets in the myprovider.properties file like this: oidManager=true oidAdminClass=oracle.portal.sample.v2.devguide.oid.UnsafeOidInfo oidHost=myhost oidPort=389 oidUser=orcladmin oidPasswd=mypwd Im using jdevelop

  • Achieving functionality of many preferences using one context index

    Hi Gurus, We have a table of following format SCOTT@orcl_11gR2> insert all 2 into test_sh values (1, 'Mark Antony') 3 into test_sh values (2, 'Mark-Antony') 4 into test_sh values (3, 'markantony' ) 5 into test_sh values (4, 'markantony' ) 6 into test