Convert Production Order using LSMW

Hi, we want to create Production Orders from a legacy system, and are exploring using LSMW. Has this been done before?
If we choose Batch Input Recording, handling different number of operations/components will be a problem. If we chooseStandard Batch/Direct Input there is no Object called Production Order. If we choose IDOC, it seems there are limitations on the use of message type LO1PRO. BAPI BAPI_PRODORD_CREATE cannot be used because ALE message type does not exist..
Please advise whether this is possible using LSMW....thanks!!!!!

Hi all,
yes we have no problem coming up with a flat text file containing all the data. My question is:
since Production Order has both header and operation line items and component line items,
is this handled in LSMW? Because I do not see an object in LSMW called Production Order that
seems usable...
Of course we're looking at standard tools like LSMW first, before considering ABAP programs..
tks.

Similar Messages

  • Can i create production order using process material ?

    Dear All.
    Please help me.
    I want to create production order using process material (material type is PROC).
    For may knowledge, process order is standard for the process material, but my customer want to use the PP module for the process material.
    But I cant convert the planned order of precess material to production order in MD05.
    The system message is "System does not support planned orders for process materials."
    The followings are my test steps.
      1. Master Creation
          - Material Master, BOM, ROUTING
    In standard, process material (Material Type : PROC) need creation of master recipe. But due to my clients need (Using production order
               for the process material), I create the work center and ROUTING
      2. DM Creation
          - In MD61, I create the planned independent requirement (Type : LSF)
      3. Planned order creation for the process material using MRP
          - In MD01, I run the total MRP, the the planned order is created.
            It's order type is "LA"
      4. Converting the planned order to Production Order
          - In this step, the system give the error "System does not support planned orders for process materials."
             and can not do anything.
    I want to know that the above case is possible, and how.
    Please Help meu2026..

    Hi
    First of if yur want to create production order or process order why do you go for material type :PROC.
    you can create the same material as FERT & go ahead.
    I do not understand the logic to select the material type as PROC.
    Pl. go through SAP library where PROC is used.
    Regards
    YMREDDY

  • Transfer of Intercompany sales orders using LSMW

    Hi
    I have to Transfer the open intercompany sales orders using LSMW. Consider a scenario where customer places an order on sales org A with plant A. sales org A raises purchase order on Sales org B with plant B. The material moves from Plant B ie supplying plant to delivering plant A. THen it is delivered to custome from plant A. Can u please tell me whether i have to pass the suppying plant or it will be determined automatically. Similarly what about the purchase requisition no. Is it created automatically.
    Thanks
    regards
    Tushar

    Hi,
    The purchase requisition is going to automatically created incase of a intercompany order  (ie nothing but the third party order).  In this case of orders the line item category in the sales order would be TAS. The intercompany sales order nothing different from a normal order during the creation of the order, after that the operations will be different from the normal standard order.  You can use the same LSMW which you have used for transfering normal standard orders.
    The configs are going to be different in the system for intercompany sales orders compared to the standard sales orders. That is the problem of the functional consultant to take care.
    Thanks,
    Mahesh.

  • Batch classification during GR against production order using txn MIGO

    Hello All
           I am usng batch classification during for movement type 101, when am doing the GR against production order using txn MB31 the system automatically navigates to classification screen wherein i need to enter the characterstic value & it all goes well, I can also view the stock with batch no and the classifcation value when the GR is being done with txn MB1.
          But when am dong the same thing i.e. GR against production order using txn MIGO system doesnt navigates to classification screen for characterstic value entry and am able to do the posting. I want that system must navigate to classification screen automatically if i do the GR using MIGO also as it doen in the case of txn MB31.
           Please suggest what settings are to be done for the same, I am unable to figure out why the system is behaving in this manner. Kindly provide your inputs to sort out this issue. Waiting for your valuable inputs.
    Regards,
    J K Tharwani

    Dear,
    did u refer SAP Note 519303 ?
    After keeping Batch Classification as 4 in OMCV, in MIGO, it will start showing the Batch Classification button under "Batch" Tab, it will not show the Batch Classification Pop-up automatically as it shows in case of MB31.
    If you wan users to enter the characteristics values mandatorily in the Batch Classification then in CT04 for these characteristics activate Entry required indicator in "Basic Data" Tab
    SAP Note 519303
    Please refer this also,
    [MIGO|Re: How can I get the MRP history?]
    Regards,
    R.Brahmankar

  • Goods reciept through MB31 against production order using serial number

    Dear ALL,
    We are using MB31 for goods receipt against production order using serial number.
    First we do confrmation by tcode co11 and then recieve the material by mb31 against the order.
    I want that sysstem should not allow good reciept by mb31 more than the confirmation done in co11.
    Please suggest.
    regards,
    Pradeep

    Hi,
    There are two ways to control this problem; 1) User Exit    2) BADI
    1) User-Exit
    Enhancement: MBCF0002
    Function module: EXIT_SAPMM07M_001
    Code for your copy pasting in the source code of ZXMBCU02.
    Remember to activate the program. In SMOD enter the enhancement, press F8 and then click on activate button.
    *& Include ZXMBCU02
    data it_afvv like afvv occurs 0 with header line.
    tables: afvv, afko, afpo.
    data tot_gr like mseg-menge.
    If i_mseg-bwart = '101' and i_mseg-aufnr is not initial.
    select single * from afko where aufnr = i_mseg-aufnr.
    select * from afvv into table it_afvv where aufpl = afko-aufnr.
    sort it_afvv by aplzl descending.
    read table it_afvv index 1.
    select single lmnga from afvv into afvv-lmnga where aufpl = afko-aufnr and aplzl = it_afvv-aplzl.
    select single * from afpo where aufnr = i_mseg-aufnr.
    tot_gr = afpo-wemng + i_mseg-menge.
    if tot_gr > afvv-lmnga.
           MESSAGE 'GR Qty greater than Confirmation Qty of the last operation' TYPE 'E'.
    Endif.
    endif.
    2) BADI
    Implement the BADI for WORKORDER_GOODSMVT in this there is method
    MANUAL_GOODS_RECEIPT under that
    write you code here
    if_ex_workorder_goodsmvt~manual_goods_receipt.
    endmethod.
    Technical Logic
    Check the confirmation qty in AFVV table with production order get the last operation confirmation qty and subtract the Delivered qty. If this is Greater than or equal to the GR Qty entered in the screen allow the posting or through Error.
    Tables: S022, AFPO, AFKO, AFRU, AFVV
    Regards,
    Sankaran

  • Update the material quantity in the sales order using LSMW...

    Hi Guru's,
    I created one sales order using BAPI..now i wanted update the material quantity in the sales order using LSMW...
    could you please provide the step by step process....
    if anyone of you provide the program logic similar to requirement that would be helpfull to me...
    thanks in advance
    Srinivas....

    Hi Sri,
    Hope it may help you.
    First do the recording for VA02 transaction, in that give the existing sales order number
    and update the Quantity and save it. Remaining steps are same what we used(LSMW) to upload data to applications.
    Regards,
    Vishvesh
    if helpful, rewards it.

  • Inspection Lot on Production Orders using HU

    Hi Experts:
    I'm trying to notify using production orders some HU. I was reading the help.sap.com and it says:
    1. An inspection lot is never created, if the indicator Inspection for HU is not set in the Inspection setup of the material master (Quality Management view) for storage locations requiring HUs.
    2. In general, it is not possible to create the inspection lot at goods receipt in storage locations requiring HUs.
    That's confuse me.
    In the system I have the following information:
    a. Create my order and release.
    b. My material have inspection 04. I marked the indicator Inspection for HU on Quality Management view.
    c. I used Tx COP1 to create my HU
    d. I notify my production using COWBHUWE
    If I checked my MMBE the quantity is on Quality Status. But I don't have my inspection Lot.
    I create my Inspection plan with indicator 5.
    Someboday can tell me why the inspection lot isn't create?
    I checked the configuration:
    In Customizing for Handling Unit Management (Inventory Management), the respective movement type is not deactivated for quality inspections. The indicator QM not active is not set.
    In the (respective) material master record, the corresponding inspection type is created and activated for the respective goods movement, and the indicator Inspection for HU must be set.
    Thxks

    Sorry firefighter I'm going to explain more in detail.
    1. I tested my integration process QM-PP-HU on a Storage Location without HU.
    The results were:
    a. Hu created
    b. Inspection Lot Created
    But when I did the DE the units from the HU were moved, but the HU still in Q status.
    So I changed my test.
    2. I tested my integration process QM-PP-HU on a Storage Location with HU
    The results were:
    a. Hu created
    b. Inspection Lot Not Created
    In this case, I marked on Material Master the HU Indicador on 04 Class (Quality Management View)
    That's my problem.
    Addittional I tested a MM-HU process using 01 Inspection Class.
    1. I create a Purchase Order Me21N to a Storage Location with HU
    2. I create the Delivery using HU
    3. The system create the Inspection Lot and made the DE (reference to the HU)
    My problem is stilling the PP-QM-Hu on Storage Location with HU

  • Error while doing Good Issue for Production Order using BAPI

    Hi All,
    I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
    I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
    *Action in Transaction (GM_CODE)
    *GM Code for Goods Issue for Production Order is 03
      gs_gmcode-gm_code = '03'.
    *Header Data
    *Posting date
      gs_header-pstng_date = sy-datum.
    *Document date
      gs_header-doc_date   = sy-datum.
    *Item Data
    *Material
      gs_item-material  = zptp_s_rf_migo_261-matnr1.
    *Movement Type
      gs_item-move_type = '261'.
    *Movement Indicator
      gs_item-mvt_ind   = 'F'.
    *Stock Type
      gs_item-stck_type = 'F'.
    *Plant
      gs_item-plant     = gv_plant.
    *Storage Location
      gs_item-stge_loc  = gv_str_loc.
    *Quantity
      gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
    *Unit
      gs_item-entry_uom = gv_uom.
    *ISO code for unit of measurement
      gs_item-entry_uom_iso = gv_uom.
    *Order Number
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = zptp_s_rf_migo_261-aufnr
        IMPORTING
          output = gs_item-orderid.
    *Reservation Number
      gs_item-reserv_no = gv_resv_num.
    *Reservation Item
      gs_item-res_item = gv_resv_itm.
    *Reservation Type
      gs_item-res_type = gv_resv_type.
      APPEND gs_item TO gt_item.
    Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = gs_header
          goodsmvt_code         = gs_gmcode
        IMPORTING
          goodsmvt_headret      = gs_headret
        TABLES
          goodsmvt_item         = gt_item
          goodsmvt_serialnumber = gt_serial
          return                = gt_return.
    Thanks in Advance.

    hi,
    did you look at message ?
    System says, there are differences between the interface data and the order data. It can be anything. I think you should check
    data in the interface . 
    this is the long explanation of your message :
    Diagnosis
    When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
    Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
    The system checks this for the material and the order item.
    System response
    Due to this difference, the system cannot post the goods receipt.
    Procedure
    Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
    << Moderator message - Point begging removed >>
    Edited by: Rob Burbank on Feb 6, 2012 11:24 AM

  • Goods issue in production order using BAPI_PRODORDCONF_CREATE_TT

    Hi All,
    This is regarding goods issue in a production order.We are trying to do this using BAPI_PRODORDCONF_CREATE_TT.
    We have a finished good say FK_PROD_ORD_CONV(with BOM -FKTESTOUT2).we need to do a Goods Issue for this which implies that at reporting point 0001,we need to issue x quantities of BOM FKTESTOUT2 from a particular plant and storage location, and of a particular batch. Therefore, we need to pass the following:
    Production order number
    Plant
    Material (BOM) = FKTESTOUT2
    Movement indicator (which is u2018Fu2019 for goods movement) = u2018Fu2019.
    Movement type = 261(for Goods Issue)
    Storage location of BOM
    Batch
    Operation (Routing point) = 0001
    Entry quantity
    Entry Unit of measure = PC.
    In addition, we need to maintain entries in Link_conf_goodsmov-INDEX_CONFIRM and link_conf_goodsmov-INDEX_GOODSMOV. The value for both would be u20181u2019.
    In the Test program, although I am passing all these values, Goods Issue is not happening. I am not getting any error.The message just says that the production order has been confirmed but when i check for goods Issue,no corresponding data is there.
    After this i am calling fm to commit the work as well.
    Please let me know if I have missed something.

    Good day!
    Do you see you confirmation with CO14 transaction?
    What on movements tab?
    Look at postprocess transaction COGI CO1P.
    Check LINK_CONF_GOODSMOV TABLE with 1,1 record.

  • Post GM with reference to Production Order using BAPI_GOODSMVT_CREATE

    Hi Experts,
    We need to post Goods Movement with reference to Production order. In brief, we have to get the functionality of MB1A done. I'm trying to use BAPI_GOODSMVT_CREATE, but its not reflecting the Documented Goods Movements in the Production Order.
    Here is the data i'm using:
    goodsmvt_header : posting date, document date
    goodsmvt_code : 03
    goodsmvt_item:
    material
    plant
    storage loc
    batch
    mov typ : 261
    ENTRY_QNT
    ENTRY_UOM
    ENTRY_UOM_ISO
    order id
    Sometimes it generates material doc and year in exporting parameter, and sometimes it gives message "Content of order zzzzzzz : yyyyyyy transferred to interface (IMSEG): xxxxxxx".
    But despite of this I cannot see the Documented Goods Movements reflecting in the Production Order.
    Can anyone help on this. Is there anything else to be passed or I'm missing any process ?

    Experts,
    I could get the postings done with BAPI_GOODSMVT_CREATE. I was executing BAPI_GOODSMVT_CREATE and then BAPI_TRANSACTION_COMMIT separately, thus the generated Material doc number was not getting posted. When I used the Test Sequence option from SE37 menu, it worked.

  • To allocate to production order using template

    hi everybody!
    I am having issue about allocating cost.
    In product costing, there is a cost, called Batch cost. That means all cost which is relevant a production batch is only allocated to production orders belong that batch. I am opposed to use Business process to collect all cost relevant a Batch cost. Then allocate cost by template from Business process to Production orders which belong that Batch.
    But i don't know what will i maintain and configure template?
    may anybody help me?
    Thanks in advance

    hi..
      Actually Batch is nothing but to identify a product by defining some unique number throughout the process of manufacture.
    So, (1) One individual prod can be a batch
          (2) On bundle of products may be a batch
          (3) One process cycle can be a batch
              so on ....
    So if you have specific order for specific batch, then  you allocate cost to that order it will go productwise/batchwise.
    If you give some more details it will be easy to suggest.
    kkumar

  • Upload Production order using BAPI_MOSRVAPS_SAVEMULTI3

    Hi,
    I am uploading Production order in APO using BAPI BAPI_MOSRVAPS_SAVEMULTI3, I have an issue while uploading the Production Order, I want to upload the actual start date and End Date, but the BAPI is uploading the Start Date same as the End Date.
    I have seen few links in the forum regarding the issue but I am not sure regarding what should be the exact value of STRATEGY_PROFILE  and PLANNING_MODE_USAGE.
    Can anyone please provide a solution regarding how can I upload actual Start and End Date.
    Thanks & Regards,
    Sanjog Mishrikotkar

    Hi Sanjog,
    PLANNING_MODE_USAGE is Parameters for Controlling the Scheduling Mode here you can use either 0 or 1
    0 is No immediate planning
    1 is Observance of parameters from the product master
    End date will be calculated bassed on GI time production time as maintained in the PPM.
    Please check what you have maintained.
    Let me know  Whether it is following that or not.
    I hope this will help you.
    Regards,
    Kishore Reddy.

  • Rescheduling of Production Orders using COHV

    Hi,
    My Client Requirement is:-
    There are more production orders . I have to reschedule that production order one after the other.
    When I change 1st production order by 2 days in future then all the production orders are reschedule after 1st production order.
    Eg. Reschedule 1st Production order date is 20.01.2012 , then all remaining production order reschedule after the 1st production date 20.01.2012.
    I have tried in Mass processing of production order COHV but couldn't give result.
    Please tell me the Procedure for doing it with brief.

    Hi,
    You cannot schedule production orders dependending on each others dates in standart SAP. COHV schedules orders at a specified date, all for the same given date. You have to run COHV for a number of times using the outcome of the first run of scheduling.
    Generally capaciy leveling tools of SAP are used for requirements such as these. However these also do not consider any relation btween orders, only dependency of operations within an order is taken into account.
    Alternatively, a batch program may be developed to schedule orders reading orders line by line and dates for each.
    Regards.

  • How to read text in Production Memo tab of Production Order using READ_TEXT

    Hi all,
    Please help me, I was able to develop a program that using READ_TEXT function module to read the Production Order long text.
    Now my requirement is to read the text in the Production memo tabe of production order.
    Can some one tell mee how to do it? the same program is now not working.
    do i need to do any changes?

    Hi,
    TDOBJECT --> AUFK
    TDID -->KOPF
    IF your given same means it's correct i think check your coding
    i will give u sample coding analyze .
    REPORT  z_test1.
    TABLES:
      thead.
    PARAMETERS:
      p_vbeln TYPE vbak-vbeln.
    PARAMETERS:
      p_textid TYPE thead-tdid.
    DATA:
      BEGIN OF t_thead OCCURS 0.
            INCLUDE STRUCTURE thead.
    DATA:
    END OF t_thead.
    DATA:
      w_line TYPE i,
      w_idx TYPE i,
      w_flag TYPE i.
    DATA:
      BEGIN OF t_tline OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA:
    END OF t_tline.
    DATA:
      w_test TYPE thead-tdname,
      w_temp TYPE string VALUE 'TEST'.
    START-OF-SELECTION.
      w_test = p_vbeln.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = p_textid
          language                = sy-langu
          name                    = w_test
          object                  = 'VBBK'
        TABLES
          lines                   = t_tline
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc NE 0.
        MESSAGE 'HEADER TEXT NOT FOUND' TYPE 'I'.
      ENDIF.
    END-OF-SELECTION.
      LOOP AT t_tline.
        IF t_tline-tdline = w_temp.
          w_flag = 1.
        ENDIF.
      ENDLOOP.
      IF w_flag NE 1.
        t_tline-tdline = w_temp.
        APPEND t_tline.
      ENDIF.
      REFRESH t_thead.
      t_thead-tdobject = 'VBBK'.
      t_thead-tdname = w_test.
      t_thead-tdid =   p_textid.
      t_thead-tdspras = sy-langu.
      APPEND t_thead.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          client          = sy-mandt
          header          = t_thead
          savemode_direct = 'X'
        TABLES
          lines           = t_tline
        EXCEPTIONS
          id              = 1
          language        = 2
          name            = 3
          object          = 4.
      IF sy-subrc NE 0.
        WRITE: / 'ERROR'.
      ELSE.
        COMMIT WORK.
        WRITE: / 'TEXT SAVED'.
      ENDIF.
      LOOP AT t_tline.
        WRITE: / t_tline-tdline.
      ENDLOOP.
    Regards
    swamy

  • Find production order using quote and/or sales order number

    How can I find the related production order if I only have the quote/sales order number and line item?  I know that I can go through AFPO and/or AFKO but is there another way?
    Regards,
    Davis

    In the Table AFPO, the Field KDAUF contains the Sales Document Number and KDPOS the Line Item Number.   If you are looking for a Transaction to Enter the Sales Document Number at, use TCode CO26.

Maybe you are looking for

  • Black screen with 7950GT digital connection

    Hello to all in the forum. Sorry my first post is to ask for help  :( My PC spec A8N32-Sli Deluxe motherboard AMD Athlon 64 3800+ processor 2GB Ram Windows XP Pro service pack 3 and all updates. MSI 7950GT Grapics card I have MSI 7950GT for 3 yrs and

  • RE: Subclass windows

    Prasad: Good point!! If Forte went to fully dynamic binding, the problem would likely go away. The core problem appears to be that non-window classes are bound at 'compile' time. Window classes are bound at both initial code creation and compile time

  • I need some help with some of the basic playlists please?!

    Basically, I always enjoyed using the playlists 'recently added' and 'most played' that originally were on my ipod touch but suddenly they have gone off my ipod  but have remained on my itunes! I have tried syncing my ipod many times but nothing has

  • Speeding up quadrature encoder read out

    Hi, I`m using a quadrature encoder together with a 6259 DAQ Card and BNC2110 Terminal Block. I managed to have it working with the DAQ-Assistent at 80Mhz using the Counters and reading one value at a time. Before the DAQ-Assistent I used a DAQmx comm

  • Orabpel-11017 - Error during WriteFileAdapter INVOKE

    Im seeing this error on the invoke for my file adapter. <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code> </part><part name="summary"><summary>file:/appl/BPLDVLP2/BPLDVLP2/10.1.3/bpel/domains/default/t