IDoc Error in LSMW for MB1C - Special stock type is E

When we use MB1C for GR to enter initial entry of stock balance into unrestricted stock for special stock type is E.
The document is Posted.
But, when we use LSMW for the above Transaction, the document is not posted.
In the Inbound processing of IDOC  has the status "Application document not posted".
In the IDoc Status record gives
   current status : 51 ("SD Document XXXXXXXXX is not in the database or has been archived"
Pl explain how this problem can be addressed.

Hi,
It seems that the stock indicator in E demands for a sales order in the MB1C transaction. The sales order provided by you in the flat file is getting validated by SAP and that sales order is not available in the system or might have been archived.
It is better to provide a live Sales order to book the stock to that particular sales order. If in case if the Sales order mentioned by you is closed or not required, in such as case the material can be stored under unrestricted stock and not under the sales order stock
Thanks and Regards,
Dilli Babu R

Similar Messages

  • Table for Special Stock Types

    Hi All,
    I am creating a report to display the stock information of a material. In that i need to include all the special stocks also.
    Can anyone please tell me the table containing the data for special stock type E,K,M,O,P,Q,V,W,Y

    Check these tables.
    MSCA     Sales Orders on Hand with Vendor
    MSCD     Customer stock with vendor
    MSCS     Customer stock with vendor - Total
    MSFD     Sales Order Stock with Vendor
    MSFS     Sales Order Stock with Vendor - Total
    MSID     Vendor Stock with Vendor
    MSIS     Vendor Stock with Vendor - Total
    MSKA     Sales Order Stock
    MSKU     Special Stocks with Customer
    MSLB     Special Stocks with Vendor
    MSOA     Total Sales Orders on Hand with Vendor
    MSPR     Project Stock
    MSRD     Project Stock with Vendor
    MSRS     Project Stock with Vendor - Total
    MSSA     Total Customer Orders on Hand
    MSSL     Total Special Stocks with Vendor
    MSSQ     Project Stock Total

  • Special Stock types

    Hi,
    Can any one explain what are all the special stock types and signifcance of them.
    How are they useful for business purposes.
    I understand that Project stock is for specific project, and also consignment stock.
    Pls explain me in detail.
    Thnx

    Hi
    Special stocks are:
    <b>Consignment:</b> the vendor provides materials and stores them on your premises. The vendor remains the legal owner of the material until you withdraw materials from the consignment stores. Only then does the vendor require payment. The invoice is due at set periods of time, for example, monthly. In addition, you can also arrange with the vendor that you take over ownership of the remaining consignment material after a certain period of time.
    <b>Subcontracting:</b> In Sub Contract process, you have to provide material to vendor for conversion purpose, Till ytu receive final product, material which has sent to vendor shows as "material provide to Vendor"
    <b>Stock transfer using stock transport order</b>: A number of procedures are available to enable you to transfer materials from one plant to another:
    Stock Transfer Between Plants in One Step
    Stock Transfer Between Plants in Two Steps
    Stock Transport Order Without Delivery
    Stock Transport Order with Delivery via Shipping
    Stock Transport Order with Delivery and Billing Document/Invoice
    <b>Third-party processing</b>: In third-party processing, you place a purchase order with a vendor to deliver goods or perform a service for a third party (for example, for a customer).
    This means that your company does not deliver the material. You forward the order to an external vendor instead, who then sends the material directly to the customer and invoices you.
    <b>Returnable transport packaging</b>: Returnable transport packaging (RTP) is a multi-trip packaging medium (for example, pallets or containers) in which goods can be transported more than once between vendors and customers.
    Returnable transport packaging from a vendor that is stored at a location on your premises is managed as special stock and clearly assigned as belonging to the vendor. It is the property of the vendor and is therefore not included in the customer’s valuated stock.
    <b>Pipeline handling</b>: A pipeline material is a material that flows directly into the production process from a pipeline (for example, oil), from a pipe (for example, tap water), or from another similar source (for example, electricity).
    A material from the pipeline is always available; i.e. it can be withdrawn from the pipeline at any time and in any quantity.
    <b>Sales order stock</b>: Stock that is used for a sales order. It is directly allocated to a sales order. Components can only be used to produce material ordered by the customer and the finished product can only be delivered to the customer via the sales order.
    <b>Project stock</b>: Quantity of a material which is held in stock for the completion of a project. The project stock is allocated to a work breakdown structure (WBS) element. Components can only be withdrawn for the WBS element.
    regards
    Srinivas

  • Special Stock type O

    Hello
    I would like to know if there is a option in customazing for sended stock to subcontract.
    Now, we can see in trasaction MBLB all stock which are sended, but we can not see the PEP of them, so if we want to know the PEP we need to look for in data of puerchase order.
    Is there a option in customazing for it?
    We use the special stock type O, but this option don´t use PEP, is there another type of stock for subcontracting?
    Thanks
    Regards.

    we use PEP, to determine the project.
    The material can be CSO (that mean, it can be used for all project) or MTO (that mean, it can be used only for one project, this is in master data):
    When i create a subcontract purchase order, then with movement 541 i send the material to subcontract but in this movement i don´t send the project of material.
    So intransaction of MM we can see this data (project), we would like is it posibble to use another customizing, similar to stock o, but for MTO material.
    We read that there is a option in customazing but we can find it.
    Thanks

  • Error in LSMW for MM41 - "No batch input data for screen SAPLMGMW 0100"

    I'm trying to create an LSMW for MM41 to create new Retail articles en Mass. This will be used to only create the Basic view as other LSMW's already exist to maintain the other views. I've created the Recording and setup the LSMW already. My data is read correctly from the source file. When I execute the batch session it fails with the following error - "No batch input data for screen SAPLMGMW 0100".
    I assume the fields in MM41 screen are not setup for batch processing. Could someone with more knowledge or experience in SAP Retail please confirm my assumption and explain where this is setup or provide an alternative to creating new articles en Mass via MM41? The direct input method is more suited for MM01 and not MM41.
    Regards
    Fawaaz

    Hi Guys,
    Thanks so much for all the prompt responses. My issue is now resolved.
    The issue, I'm sure, was my default settings in the MM41 screen which the recording probably took into account or the batch program didn't like. I deleted my recording and created a new one but before I started the recording, I went into the MM41 screen and removed all default values AND view selections. I made my Basic view selection constant in my recording and also in my field mapping. My LSMW for MM41 is now working perfectly.
    Just to answer some of the questions above, my LSMW was Reading and Converting the data in my source file fine. When I display the Read and Converted data, it shows the data fields in the correct place.
    Thanks again.
    Regards
    Fawaaz

  • Error in LSMW for ME11

    Hi,
    I am getting error while creating LSMW for ME11, No QM info record exists for vendor xxxx.
    How will I know for vendor QM info record to be maintained.
    Smitha

    this problem has actually nothing to do with LSMW, you get the same error without LSMW
    In your material master QM view is a control key, and based on the cusotmizing of the control key it requires a Q-info record.

  • Error in lsmw for t-code QP01

    Hi Experts,
    Iam uploading data through LSMW for QP01 but in the second last step that is create batch input session its giving me this error "No profile with entry tool for task list / / / in session QP01" can anyone help to get rid of this error. pls reply ASAP.
    Thanks in advance.
    Abhishek Pandey.

    Hi,
       Check below link, it may be useful.
    Re: QM_LSMW BY RECORDING METHOD FOR QP01
    Thanks,
    Asit Purbey.

  • Error in LSMW for MD61

    Hi gurus
    when i run LSMW for MD61 i get the below error ,
    6P 007 "Argument does not exist in Table". what could be the reason\
    Regards,
    Prasanna

    Dear Prasanna,
    Can you please click on the error which you get in the bottom of the screen &
    post that here?That will be helping to findout the exact problem.
    or else Better use the test script for using that properly ,also fill the
    required fields in the template.
    Regards
    Mangal

  • Idoc error - inconsistency rate for currency..

    Dear Experts,
    When running WE02, I found idoc error message : inconsistency rate for currency..Diagnosis : The items in an accounting document have been provided with at least two exchange rates for currency. Actually, for this error I asked my client to update the data manually into SAP since the Act doc is created.
    My question is : Could I coorect this error to prevent the same error arises in the future? After checked, in each idocs which contain the error, they have 2 exchanges rates. How the system caould be detected only one currency?
    Please advice.
    Thank you.

    Hi Puri,
    your IDOC when generated, pick up the details from the Line item in the billing.
    check the Copy controls on the billing, if the exchagne rate for both the line items are different or not.

  • How to transfer special stock type ''O'' from unrestricted into blocked

    Hello!
    I would like to finD out if there is any movement type which would move sprecial stock ''O'' (provided for Vendor) from unrestricted to blocked? The stock should still belong to vendor afterthat.
    We want to move the quantity of some batches into ststus blocked as we do not want them to be used (bad quality) - the are physicaly at vendor. We move this unavailable materials from vendor to our plant every 2-3 months and would need to have accurate information about unrestricted stock.
    Many thanks in advance for your answer.

    Hi ,
    For the stock of material provided to vendors, the available stock types are unrestricted-use stock and stock in quality inspection. So you can NOT change the stock type to blocked.
    I suggest you create a special storage location for this purpose.
    Best regards,
    CM

  • Special Stock type indicator

    Dear Friends...
    Where is the setting for special stock indicator stock type. for eg the for an MTO product attached to a sales order
    the material is received in the Storage loc with special stock indicator E.
    I would like to change this setting, how do I do it.
    Please help...
    Kind Regards
    Ravi

    Before suggesting something, can you please let me know as to why you need to deviate the standard.
    For information, even if you remove the special stock indicator in VOV7, I dont think your requirement can be met due to the fact that this also depends on your Requirement Class.  In OVZG, if you select your Requirement Class and click the blue lens on top left, you can see the same field (Special Stock) there also and you cannot edit this as it will be grey mode.
    thanks
    G. Lakshmipathi

  • LSMW for MB1C with Batch & Characterstic

    Dear All,
    I want to upload the initial stock with movement type 561.My materials are Batch Managed and the Batch are having certain Characterstic.So i want to upload the Stock with Batch Characterstic.This is not possible with recording in LSMW.Can anybody help me out in making the LSMW.
    Thanks
    Jagmohan

    Try this code
    REPORT zosmm_carga_caract_lote NO STANDARD PAGE HEADING LINE-SIZE 100.
    Global Parameters
    DATA: BEGIN OF t_message OCCURS 0.
    INCLUDE STRUCTURE bapiret2.
    DATA: END OF t_message.
    DATA: BEGIN OF t_archivo OCCURS 0,
    lineas(42),
    END OF t_archivo.
    DATA: BEGIN OF t_carga OCCURS 0,
    charg(10),
    valor(30),
    END OF t_carga.
    DATA: BEGIN OF t_caract OCCURS 40,
    atnam LIKE cabn-atnam,
    atinn LIKE cabn-atinn,
    atfor LIKE cabn-atfor,
    anzst LIKE cabn-anzst,
    END OF t_caract.
    BAPI structures
    DATA: BEGIN OF wa_allocvaluescharnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_char.
    DATA: END OF wa_allocvaluescharnew.
    DATA: BEGIN OF wa_allocvaluesnumnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_num.
    DATA: END OF wa_allocvaluesnumnew.
    DATA: BEGIN OF wa_allocvaluescurrnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_curr.
    DATA: END OF wa_allocvaluescurrnew.
    Variables
    DATA: lineas TYPE i,
    w_rc LIKE sy-subrc,
    mens LIKE message,
    date_err(1) TYPE c,
    swc(1).
    DATA: c_totreg(6),
    c_vanreg(6).
    DATA: v_atinn LIKE cabn-atinn,
    v_atfor LIKE cabn-atfor,
    v_anzst LIKE cabn-anzst.
    SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK uno WITH FRAME TITLE text-001.
    PARAMETER: p_matnr LIKE mara-matnr OBLIGATORY,
    p_atnam LIKE cabn-atnam OBLIGATORY.
    PARAMETER: p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK uno.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    PERFORM buscar_archivo USING p_file.
    START-OF-SELECTION.
    START-OF-SELECTION.
    REFRESH: t_archivo, t_carga, t_caract.
    *** Characteristics Values
    SELECT SINGLE atinn atfor anzst
    INTO (v_atinn, v_atfor, v_anzst)
    FROM cabn
    WHERE atnam = p_atnam.
    IF sy-subrc NE 0.
    MESSAGE i899(m3) WITH 'Not Valid Characteritics'.
    ELSE.
    *** Read input and upload
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'ASC'
    TABLES
    data_tab = t_archivo
    EXCEPTIONS
    conversion_error = 1
    invalid_table_width = 2
    invalid_type = 3
    no_batch = 4
    unknown_error = 5
    gui_refuse_filetransfer = 6
    OTHERS = 7.
    IF sy-subrc EQ 0.
    LOOP AT t_archivo.
    CLEAR t_carga.
    SPLIT t_archivo AT ';'
    INTO t_carga-charg t_carga-valor.
    APPEND t_carga.
    ENDLOOP.
    DESCRIBE TABLE t_carga LINES lineas.
    IF lineas > 0.
    PERFORM clasificar_lotes.
    ELSE.
    MESSAGE i899(m3) WITH 'Doesn't exist batch to process'.
    ENDIF.
    ELSE.
    MESSAGE i899(m3) WITH 'Error on upload'.
    ENDIF.
    ENDIF.
    TOP-OF-PAGE
    TOP-OF-PAGE.
    WRITE: /'TITLE', sy-datum, sy-uname NO-GAP.
    WRITE: /'Material: ', p_matnr.
    WRITE: /'Characteristics: ', p_atnam.
    SKIP.
    WRITE: 01 'Batch', 11 'Valor', 30 'Log'.
    ULINE.
    *& Form clasificar_lotes
    FORM clasificar_lotes.
    DATA: w_matnr LIKE mara-matnr,
    w_cuobjbm LIKE mch1-cuobj_bm,
    w_obtab LIKE inob-obtab,
    w_objek LIKE inob-objek,
    w_class LIKE klah-class,
    w_clint LIKE kssk-clint,
    w_valor(8),
    w_mbapi(80),
    logline(100).
    CLEAR: t_message.
    LOOP AT t_carga WHERE charg IS NOT INITIAL.
    REFRESH: wa_allocvaluescharnew,
    wa_allocvaluesnumnew,
    wa_allocvaluescurrnew.
    CLEAR: wa_allocvaluescharnew,
    wa_allocvaluesnumnew,
    wa_allocvaluescurrnew,
    date_err,
    w_mbapi,
    logline.
    CONCATENATE t_carga-charg t_carga-valor
    INTO logline SEPARATED BY space.
    *** Find object to classified
    SELECT SINGLE cuobj_bm matnr
    INTO (w_cuobjbm, w_matnr)
    FROM mch1
    WHERE charg = t_carga-charg
    AND matnr = p_matnr.
    IF sy-subrc EQ 0.
    SELECT SINGLE obtab objek
    INTO (w_obtab,w_objek)
    FROM inob
    WHERE cuobj = w_cuobjbm.
    *** Find class from object
    SELECT SINGLE clint INTO w_clint
    FROM kssk
    WHERE objek = w_cuobjbm
    AND mafid = 'O'
    AND klart = '023'.
    IF sy-subrc = 0.
    SELECT SINGLE class INTO w_class
    FROM klah
    WHERE clint = w_clint.
    TRANSLATE t_carga-valor USING ',.'.
    CONDENSE t_carga-valor.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    objectkey = w_objek
    objecttable = 'MCH1'
    classnum = w_class
    classtype = '023'
    KEYDATE = SY-DATUM
    UNVALUATED_CHARS = ' '
    language = sy-langu
    IMPORTING
    STATUS =
    STANDARDCLASS =
    TABLES
    allocvaluesnum = wa_allocvaluesnumnew
    allocvalueschar = wa_allocvaluescharnew
    allocvaluescurr = wa_allocvaluescurrnew
    return = t_message.
    *** Define characteristics type
    CASE v_atfor.
    WHEN 'CHAR' OR 'BOOL'.
    wa_allocvaluescharnew-charact = p_atnam.
    wa_allocvaluescharnew-value_char = t_carga-valor.
    APPEND wa_allocvaluescharnew.
    LOOP AT wa_allocvaluescharnew WHERE charact = p_atnam.
    wa_allocvaluescharnew-value_char = t_carga-valor.
    wa_allocvaluescharnew-value_neutral = t_carga-valor.
    MODIFY wa_allocvaluescharnew.
    ENDLOOP.
    WHEN 'NUM' OR 'TIME'.
    wa_allocvaluesnumnew-charact = p_atnam.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    APPEND wa_allocvaluesnumnew.
    LOOP AT wa_allocvaluesnumnew WHERE charact = p_atnam.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    MODIFY wa_allocvaluesnumnew.
    ENDLOOP.
    WHEN 'DATE'.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
    EXPORTING
    datum = t_carga-valor
    dtype = 'DATS'
    IMPORTING
    error = date_err
    idate = w_valor
    messg = mens.
    IF date_err = 'X'.
    CONCATENATE logline '-> Error: Fecha no valida'
    INTO logline SEPARATED BY space.
    ENDIF.
    wa_allocvaluesnumnew-charact = p_atnam.
    wa_allocvaluesnumnew-value_from = w_valor.
    APPEND wa_allocvaluesnumnew.
    LOOP AT wa_allocvaluesnumnew WHERE charact = p_atnam.
    wa_allocvaluesnumnew-value_from = w_valor.
    MODIFY wa_allocvaluesnumnew.
    ENDLOOP.
    WHEN 'CURR'.
    wa_allocvaluescurrnew-charact = p_atnam.
    wa_allocvaluescurrnew-value_from = t_carga-valor.
    APPEND wa_allocvaluescurrnew.
    LOOP AT wa_allocvaluescurrnew WHERE charact = p_atnam.
    wa_allocvaluescurrnew-value_from = t_carga-valor.
    MODIFY wa_allocvaluescurrnew.
    ENDLOOP.
    ENDCASE.
    IF date_err IS INITIAL.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> by AGARCIA
    CALL FUNCTION 'BAPI_OBJCL_CHANGE_KEY'
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    objectkey = w_objek
    objecttable = 'MCH1'
    classnum = w_class
    classtype = '023'
    status = '1'
    TABLES
    allocvaluesnumnew = wa_allocvaluesnumnew
    allocvaluescharnew = wa_allocvaluescharnew
    allocvaluescurrnew = wa_allocvaluescurrnew
    return = t_message.
    IF sy-subrc EQ 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    LOOP AT t_message WHERE type CO 'EA'.
    CONCATENATE w_mbapi t_message-message ';'
    INTO w_mbapi SEPARATED BY space.
    ENDLOOP.
    IF w_mbapi IS INITIAL.
    CONCATENATE logline '-> Ok!' INTO logline SEPARATED BY space.
    ELSE.
    CONCATENATE logline '-> Error:' w_mbapi
    INTO logline SEPARATED BY space.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Problem on BAPI Execution
    INTO logline SEPARATED BY space.
    ENDIF.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Class object don't found'.
    INTO logline SEPARATED BY space.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Class object don't found'.
    INTO logline SEPARATED BY space.
    ENDIF.
    WRITE: / logline.
    ENDLOOP.
    WRITE: / '>>>>>>>>>> FIN DEL PROCESO <<<<<<<<<<'.
    ENDFORM. " clasificar_lotes
    Form buscar_archivo
    Muestra el diálogo para seleccionar el archivo
    +----
    FORM buscar_archivo CHANGING ie_arch.
    DATA: v_file1 LIKE dynpread-fieldname,
    v_file2 LIKE ibipparms-path.
    v_file1 = ie_arch.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    field_name = v_file1
    IMPORTING
    file_name = v_file2.
    ie_arch = v_file2.
    ENDFORM. " BUSCAR_ARCHIVO

  • Error in LSMW for new matl-You have not fully maintained the descriptions

    Hi Experts,
    I am creating a LSMW to create a new material master, but at the end part get the error "You have not fully maintained the descriptions" Message no. MG171. I am using the Standard batch/direct input" and Program Name         RMDATIND.
    Can you please help me.
    Thanks and Regards,
    Amol Kale

    Amol,
    as description is mandatory field while creating material, you need to assign description text.
    also check are you maintaining multiple langauges during this material xreation , if yes, you need to give discription for all langauges.
    hope it will help you.
    Thanks
    Ritesh

  • IDoc status 51 - LSMW for Creating Purchasing Info Records

    Dear All,
    My req is to create a Conversion for Purchasing Info Records. LSMW's IDoc method is used to develop this conversion wherein Message Type "INFREC" and Basic Type "INFRECMASS01" are being used.
    In the 14th step (Start IDoc Processing), I 'am getting the IDoc status "51" and Status Text "Application document not posted". If I double click on respective IDoc number, I got its Control record, Data records, and Status records; in the status records I can see "51" in Red color with the message "Function module not allowed: IDOC_INPUT_INFREC". If I double click on this it asks me to check the process code...
    Request you guys to resolve the issue....
    Solution will b rewarded.. Thanks in advance....

    I shouldnot use basic type INFREC01 instead of NFRECMASS01.
    'coz Within the FM there is a check for basic type like:
    check idoc type
    if f_idoc_control-idoctp c_idoctp_infrec01. " INFREC01
    raise wrong_function_called.
    endif.
    Even one can go to WE57 and see the basic Type INFREC01 assigned to the FM IDOC_INPUT_INFREC, hence one shud use this basic type...

  • IDoc status 51 - LSMW for Creating Purchasing Info Records using IDoc meth

    Dear All,
    My req is to create a Conversion for Purchasing Info Records. LSMW's IDoc method is used to develop this conversion wherein Message Type "INFREC" and Basic Type "INFRECMASS01" are being used.
    In the 14th step (Start IDoc Processing), I 'am getting the IDoc status "51" and Status Text "Application document not posted". If I double click on respective IDoc number, I got its Control record, Data records, and Status records; in the status records I can see "51" in Red color with the message "Function module not allowed: IDOC_INPUT_INFREC". If I double click on this it asks me to check the process code...
    Request you guys to resolve the issue....
    Solution will b rewarded.. Thanks in advance....

    U should use basic type INFREC01 instead of NFRECMASS01.
    Within the FM there is a check for basic type like:
    check idoc type
        if f_idoc_control-idoctp <> c_idoctp_infrec01. " INFREC01
          raise wrong_function_called.
        endif.
    Edited by: Joyjit Ghosh on Sep 15, 2008 4:57 PM

Maybe you are looking for