Cannot Record Material Inspection Results as per wiki use case * SOLVED *

=== EDIT ===
Playing around, I solved my issue.
I did not realize that I needed to set both flags
CloseIndicatorSpecified  = true;
CloseIndicator = false;
Adding that fixed it; I suspect I cannot set them to null even if the WSDL allows it.
Michel.
=== ORIGINAL POST ===
Hi,
I have a project to integrate SAP and our LIMS using the SAP web services with the Material Inspection business object.
In the Wiki, there are a few [use cases|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ESpackages/IntegrationofQualityManagementSystems] on the subject.
Following that, I successfully retrieve all the required data using the following web services:
[Find Material Inspection Basic Data by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindMaterialInspectionBasicDatabyElements]
[Find Material Inspection Subset Operation by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindMaterialInspectionSubsetOperationbyElements]
[Find Subset Operation Inspection Activity Basic Data by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindSubsetOperationInspectionActivityBasicDatabyElements]
[Read Subset Operation Inspection Activity|https://wiki.sdn.sap.com/wiki/display/ESpackages/ReadSubsetOperationInspectionActivity]
From there, I want to record results. According to the Wiki , I should use
[Record Subset Operation Inspection Activity Result|https://wiki.sdn.sap.com/wiki/display/ESpackages/RecordSubsetOperationInspectionActivity+Result]
I tried directly through the [WS Navigator|http://sr.esworkplace.sap.com/webdynpro/dispatcher/sap.com/tcesiespwsnavui/WSNavigator] to test web services. Whenever go through that tho, I get the following error:
Conversion Error: Invalid Input Format (701 SFB)
Obviously, I get the exact same error using c# (at least I'm consistent!)
Below is the code (some is truncated because it is too long but I think you can get the idea).
The question: Can anyone help me understand why I am getting that error? Maybe there is one or more property I don't understand... It would be practical if the actual failing property was identified in the LogItem, but it is not.
Some things I tried (to no avail):
1. Tried all sort of combination for actionCode
2. Removed actionCode and set actionCodeSpecified = false
3. Removed the Measure property
4. Removed the Text property
5. Removed the ChangeStateID
Thanks in advance!
Michel
...RequestMessage_sync messageIn = new ...RequestMessage_sync();
messageIn.MaterialInspection = new u2026RequestMessage_syncMaterialInspection();
messageIn.MaterialInspection.ID = new MaterialInspectionID();
messageIn.MaterialInspection.ID.Value = "3265";
messageIn.MaterialInspection.ChangeStateID = "1";
messageIn.MaterialInspection.Subset = new u2026RequestMessage_syncMaterialInspectionSubset();
messageIn.MaterialInspection.Subset.ID = new InspectionSubsetID();
messageIn.MaterialInspection.Subset.ID.Value = "0";
messageIn.MaterialInspection.Subset.Operation = new u2026RequestMessage_syncMaterialInspectionSubsetOperation();
messageIn.MaterialInspection.Subset.Operation.ID = "0300";
u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivity activity = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivity();
activity.ID = "0010";
activity.CloseIndicatorSpecified = false;
activity.Result = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivityResult[1];
activity.Result[0] = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivityResult();
activity.Result[0].ID = "0001";
activity.Result[0].AcceptanceStatusCodeSpecified = false;
activity.Result[0].DefectNumberValueSpecified = false;
activity.Result[0].ExceptionIndicatorSpecified = false;
activity.Result[0].InspectedNumberValueSpecified = false;
activity.Result[0].Comment = string.Empty;
activity.Result[0].NonConformingUnitNumberValue = 0;
activity.Result[0].Measure = new Measure();
activity.Result[0].Measure.Value = decimal.Parse("4.15";);
activity.Result[0].Measure.unitCode = "AMP";
activity.Result[0].Text = new Text();
activity.Result[0].Text.Value = "Some Text Here";
activity.Result[0].actionCode = ActionCode.Item01 |ActionCode.Item02 | ActionCode.Item03;
activity.Result[0].actionCodeSpecified = true;
activity.CloseIndicatorSpecified = false;
messageIn.MaterialInspection.Subset.Operation.InspectionActivity = activity;
messageIn.MessageHeader = new BasicBusinessDocumentMessageHeader();
messageIn.MessageHeader.ID = new BusinessDocumentMessageID();
messageIn.MessageHeader.ID.Value = "starlims_update";
try
      u2026ConfirmationMessage_sync messageOut = ws.MaterialInspectionSubsetOperationInspectionActivityResultRecordingRequestConfirmation_In(messageIn);
      if (messageOut.Log.Item != null)
            string message = String.Empty;
            foreach (LogItem item in messageOut.Log.Item)
                  message += (item.Note + "\n");
            MessageBox.Show(message);
catch (Exception ex)
      MessageBox.Show(ex.Message);
Edited by: Michel Roberge on Jul 16, 2008 2:38 PM

See post for solution.

Similar Messages

  • SAP QM Result recording - Copy inspection results functionality

    Dear all,
    I have two queries.
    1) The Raw materials used in various plants are same. I want to copy the inspection results to the inspection lot if the batch is already accepted in other plant. The material, batch and vendor is common point. Some of the characteristics are caluculated characteristics. How to map this requirement.
    2) I want to test the standard functionality for copy results but in my system, the settings for copy inspection results is not appearing in quality inspections in SPRO. I want to confirm whether I am missing some other setting.
    Regards,
    Manohar

    Hello Jessica,
    you could try the following bapis:
    BAPI_INSPCHAR_GETRESULT
    BAPI_INSPCHAR_SETRESULT
    Although the desired functionality was actually implemented in higher releases.
    Hope this helps you.
    Regards,
    Isabelle

  • Inprocess Inspection & result recording

    Hi all,
    We are implementing QM.
    The requirement of client is to carry out inprocess inspection(preferable without inspection plan) including result recording & defect recording & that to with quiet ease.
    Help me with the basic settings.
    Also to have the relevant report to analyse the inspection activities.
    We are using developed T code for operation confirmation, in the back end it is co11n only. So also elaborate the consequences of the same if any.
    Mangesh

    Ramanuj/ Murali,
    Thanks for your reply.
    Let me explain the process in details.
    We are having around 10 operations.
    We need to carry out inprocess inspection for 8 operation starting from 3rd operation.
    The inspection to be carried out is like length- 5 cms, shape- ok or not ok, if not ok then what is the defect, assay- 90%, if below 90% then defective like this.
    I have assigned inspection type 03 in QM view in the material master.
    Inspection lot is also getting created.
    I am stuck up at result recording & defect recording.
    So kindly guide me how to map this in details.
    Efforts would be appreciated.
    SmanS

  • FM for Quality Inspection Results Recording.

    Hello!
    I was wondering if someone can help me out on this one:
    The requirement calls for entering the same set of results for several inspection lots.  Short of using batch input, is there a function module that can enter the results of an inspection lot?
    Thanks in advance.  Points for anyone who can give helpful answers...

    Hi Vidhya,
                     Can you please elucidate the isuue a bit more in detail........ in which tab during result recording you are trying to attach file......So I can help with what ever little I know in SAP...........
    Regards
    Kaushik

  • Material to material transfer with inspection results

    Hi,
    Could you please suggest me, how to tranfer inspection results from material to material?
    Thanks & Regards,
    Nataraj

    Hi,
    once list of inspection lots are generated, the data may contain  several results as opted, incldung Start date and end date for the inspection, Plant, Processing status of the inspection lot  and Material description. from the data generated, the transfer of inspection results may be taken up as the generation of lot results are not completed till usage decision code is entered. u may try with following link
    [http://help.sap.com/erp2005_ehp_04/helpdata/EN/2d/351bb1448c11d189420000e829fbbd/frameset.htm]
    [http://help.sap.com/erp2005_ehp_04/helpdata/EN/2d/351bb1448c11d189420000e829fbbd/frameset.htm]
    i think the link-1 will be more useful to solve ur que.
    with regards,
    mahesh.

  • IPQC cannot input inspection results

    Hi Experts,
    I have the following done for IPQC:
    1. Finished product enabled inspection type 03
    2. Inspection Plan for same finished product is created with usage 1. (1OPERATION with 1 CHARACTERISTIC inside)
    3. Created Production Order for Finished Product, Released and Saved
    4. Inspection Lot created, number beginning with 3xxxxxxxxxxx
    Problem:
    When trying to input inspection result for that inspection plan, SAP prompted "no characteristics were found".
    How can SAP shows characteristics and let user enter inspection results one by one?
    Thanks!
    Regards,
    Daniel

    Hi Sujit Gujar,
    Is the sampling also related to the routing instead of inspection plan in IPQC?
    Thanks a lot!
    Regards,
    Daniel

  • SAP QM - Raw material inspection

    Hi,
    I am following these steps for raw material inspection.
    MM01 - Maintaining QM- view & assigned inspection setup
    QDV1 - Creation of sampling procedure
    QS21 - Creation of MIC's.
    QP01 - Creation of Inspection plan
    QA01 - Creation of Inspection lot.
    QA32 - Picking inspection lot, Results recording, Usage decision
    Please correct me if i missed any thing.
    Thanks & Regards
    Srinivas.L

    Hi,
    Inspection lot will generate automatically as per your master setting at the time of goods receipt.
    First go through the process. If you get any error then post the same.

  • Recording against inspection lot

    Hi Gurus,
    We have one non valuated material. For this material we have prepared manual inspection lot and we assigned inspection point to it. Work center & shift are maintained as inspection point identifier. how many times we can record results against this inspection lot. is it fixed that we can do fix number of recording against this lot or we can record n number of results against this single lot.pls. help
    Regards
    Amit

    Hi Amit
    You can record N number of result against one inspection lot. Purpose of inspection point is to update results as per interval for larg time spam to eneble sufficient history for analysis purpose
    Regards
    Atul

  • Printing inspection results

    Hello friends;
    After results recording for inspection lot, we can print all those results directly from QA32 or QGA3. I dont want all recorded results in print out. I want only certain results in print out. How can i do it, so that only required results get printed. Is there any settings for that ?
    Waiting for reply!
    Thanks!

    HI
    Kiran
    For this u goto QAG3 and select inspection lot number or batch and go to dynamic selection symbol in menu in that select material specification and in that  selection criteria select operation number and master inspection charac   and   put operation number and mic as per ur printing requirment.
    thanks
    avinash

  • Copy Inspection Results of one lot to other lots at a time

    Dear Experts,
                         As per settings made under "Make Settings for Copy of Inspection Results" I am able to copy inspection results but still I am not getting what I exactly want. Below are different requirements explained in details
    1. I am not able to copy twice on the same lot. e.g. if a lot has status RREC i.e. RR has been done then if at a later time I want to copy some other results over here then it's not happening.
    In help.sap page somewhere it is mentioned that copy is possible if lot has status CALC. I want to have some configuration which I don't know for which SAP should allow the copy functionality with status RREC also.
    2. By above functionality I want to do RR for several lots collectively at a time. E.g. if I have 100 lots then with same quality results it's tedious to copy results for each one by one. Like "QA16 - Collective Usage Decision" I didn't find any similar transaction for results recording(collectively).
    3. Although my results are being copied from one lot another but MIC valuation are not being transferred given that I am not using any sampling procedure. I want manual valuation to be copied to the destination lots.
    Any valuable suggestion will be highly appreciated.
    Regards,

    Dear,
    it is not clear from your question.
    Please get more details,
    In which release you are working?
    In SPRO what special setting you made for this special case
    Inspection origin is linked with no range/TL type/insp type.
    Wher exactly you set this new configuration.
    Please let us know so that we can simulate and help you out

  • Inspection result to multiple batches

    Hello,
    For my client, I need to figure out a way to get the inspection results from QM into multiple batches. Is there a simple (standard) way to do this?
    The situation is that my client produces 3 batches at once. Samples for analysis are only taken from 1 of those 3 batches. After the analyses, at the usage decision, the values need to be copied into the characteristics of all 3 batches.
    Anyone can help me out with this one?

    Hi,
    That means you have only one inspection lot(manually created) for the production of 3 batches. But you can link only one material/one batch to an inspection lot in SAP. In your case, you can record the results for 1 batch and maintain the other batches in text field(that Inspection not required for other 2 batches).
    By the way which inspectin type are you using?
    WR,
    Sanjeev

  • Copying Inspection results from inspection lot.

    Dear All,
    Please explain me the process of copying inspection results in QM. Following is my clients requirement:
    During receiving inspection they receive the same material in say 10 batches (coils). They want to create the independent batch for  each coils of same material for tracking mechanism, so I  don't have any option to generate that many number of lots.
    Out of this 10 lots, say there are 2 masters (mother coils). Means there are two set of characteristics only which i need to copy for 5 lots each.
    As I  learn from SDN, EA - PLM  need to be activated . But I don't know what are the  adverse effects of activating  same.
    Please explain me the process.
    Best Regards.
    Shekhar Mokashi

    Hi Shekhar,
    Refer the OSS note 855959 - Activation of Extension Sets via SPRO not successful.
    I think all your doubts regarding to this Enhancement package will get resolved.
    The big warning is given there in that note itself about implementing the EA-PLM enhancement is.....
    Once an Enterprise extension set has been activated, it cannot be de-activated by de-selecting the option in the SPRO or otherwise, because BC Set activations cannot be undone.
    Appart from that note refer the document for
    Release Notes
    SAP ERP Corporate Services
    SAP enhancement package 2 for SAP ERP 6.01.
    the link for the same is pasted here FYI.
    [Chap_04_RNCorporateService|http://www.id.uzh.ch/dl/sw/sap/upgrade/Chap_04_RNCorporateService.pdf]
    Even after this much stuff completion, you don't have your doubt cleared up then I would advice you to ask the question in [ SAP Enhancement Packages|/community [original link is broken]; forum.
    Regards with lots of good luck wishes.
    Shyamal.
    Edited by: Shyamal Joshi on Jul 26, 2008 12:19 PM
    Edited by: Shyamal Joshi on Jul 26, 2008 3:06 PM

  • QM Inspection results transfered back to batch

    Experts,
    after taking a usage decision, I want all inspection results to be transfered back to the batch.
    But if a result is out of spec, it gets a negative valuation, then I get the warning 'batch could only be partially valuated' and the result of this char is not writte back to the batch.
    How can I have also the negative results recorded in the batch?
    Thx

    In the batch level make sure that any value you are giving will be accepted.
    master data required
    Batch and batcth charectristics
    MIC- copay from batch charectristics
    Material specification with same MIC's.
    Quality plan with same MIC's.
    In the batch charectistics make sure that the range is more tahn that in MIC so that any value is taken or in batch chereristics -check box -  aditional value allowed in value tab page is active.
    With this setting you should be in the position to get the results

  • Deletion of inspection results

    Hi Gurus,
    While doing result recording once i enter result for a characteristics, the system is not allowing me to delete the results recorded for characteristics.System gives warning message You can not delete the entry here and records the previously entered results automatically.Is there any way so that once i record and save result and if i want to delete the result of one of the mic, i can delete it.
    Regards
    Amit

    Hi Amit
    It is only possible to chage/Add/Edit a char... if You select the MIC as a "long term inspection".
    For this in control indicator you must select it as a "long term char".
    This will allow you to delete the result recorded as wel as chnge the result recoreded in long term.
    Also for the existing char/MIC (with status 5 )you can "Put in process" that is Unlock the cahrectoristic.
    Here observe the status as  will become "2:Processed"
    FYI
    0     Can be processed
    1     Must be processed
    2     Processed
    3     Valuated
    4     Skip
    5     Processing is completed
    6     Transfer Characteristic to Subsystem
    7     Fixed (cannot be processed)
    9     Blocked for evaluations
    A     Rqd char.when controlling char.accepted
    B     Rqd.char.when controlling char.rejected
    I hope this will help
    Edited by: SujitSND on Mar 15, 2009 12:35 PM

  • Uploading/Interfacing Inspection Results

    HI QM Users,
    Our manufacturer is planning to send the inspection results using XML, ASCII file and we need to upload that in our SAP QM system.  What is the best way to achieve this?   Does anyone has done results recording by reading from a input file before?  Is it simple to do?
    I also have following concerns about this process-
    1. How to match all insp. plan (characteristics, possible code values, sampling and possibly the valuation mode etc.) per SAP requirements.  How to define the file structure for such file transfer.
    2.  How to validate the accuracy of the data in the source system. i.e. possible values/parameters for each characteristics.
    Regards,

    Usually you set the inspection up that you expect to have data uploaded to from an external system with a QDR system assigned to the workcenter.  This cause the characteristics to be identified as going to be recorded from an exrternal system such as a LIMS.
    LIMS vendors usually provide the interface to perform the function of loading the data to SAP. In your case you will have to design that piece.  SAP provides the routines to do this.  You'll need to design a way to get the file from your vendor into the format needed to to load.
    The info below should help you get started.
    Craig
    Communication with External Systems
    RFC function modules are available in QM for communication with external systems. The names of all the function modules begin with QIRF_, which makes them easy to find within the development environment.
    QIRF_SEND... These function modules allow you to download data from an ERP system to a subsystem.
    QIRF_GET... These function modules allow you to upload data from a subsystem to an ERP system.
    For further details on the function modules, see the documentation for QM.
    QIRF_SEND_REQUIRMENTS_GET_DATA
    You use this function module to download operation and characteristics data to the subsystem. Ensure that the Record Type field in the I_QUAILS input structure is empty and that the SUBSYS (Subsystem) field is filled.
    QIRF_GET_ORIGINAL_VALUES
    You use this function module to upload inspection data recorded in the subsystem to an ERP system.
    For quantitative characteristics, use record type Q51. For qualitative characteristics, use record type Q52.

Maybe you are looking for

  • My CD DVD drive cant be found. It did work, now it doesnt.

    Need help with my CD DVD not being detected.

  • Frustration has sunk in. . .CSS in Dreamweaver help needed!

    I just took over a website that was previously built. When trying to update I really messed it up> I am not that familiar w/ CSS and am attempting to learn . . . My problem is the background on the page should go down to the footer (leaving the foote

  • How to create an Add-In for Flash

    Hi all, I would like to create an Add-In tool for Flash IDE. I know there are others add-in all around (i.e. FlashCast), and I want to build mine. But I don't know where to start from: how to interact with Flash? what functions can i use? I think the

  • Inf reg process chains design

    Hi All, My process chain is done succesfully.. I followed as Main Chain Start->Delete Data (3ods)->Load data(3ods)->Activate(3ods)-> And(all success ful)->2local process chains(series to and) -> Materdata Load(parallel to and)->Attribute change run L

  • When texting phone won't insert contact

    iPhone 5 Help? When I am texting or emailing, the iPhone won't auto-select a contact's name as I type it.... It used to and I am wondering why? I did just get a new MBP and I am wondering if maybe I have not 'synced' (my contacts...?) right or someth