BAPI_INSPOPER_RECORDRESULTS, Record Insp Lot Results
I posted the following message back in June. I did not have alot of success with it and dropped it for a while. I have picked it up again and am still struggling with the exact same thing.
Can anyone help? If anyone has successfully used this BAPI before, would you be able to send me some sample code?
I have been trying to figure out how to use this BAPI to record Test Results against an Inspection Lot. The BAPI appears to work - sort of. There are no errors in the Return Table. The Inspection Lot though does not get updated with the result for inspection characteristic 0030. It does however evaluate and close it. I am absolutely stumped. I have attached a simplified version of my code. I cannot figure out how come the test result itself is not getting updated (mean_value of 2.17) Can anyone help me out? thx in advance.
DATA: BEGIN OF ichar_results OCCURS 0.
INCLUDE STRUCTURE BAPI2045D2.
DATA: END OF ichar_results.
DATA: BEGIN OF bapireturn2 OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF bapireturn2.
ichar_results-insplot = '70000009065'.
ichar_results-inspoper = '0010'.
char_results-inspchar = '0030'.
ichar_results-mean_value = '2.17'.
ichar_results-closed = 'X'.
ichar_results-evaluated = 'X'.
ichar_results-evaluation = 'A'.
APPEND ichar_results.
CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
EXPORTING
INSPLOT = '70000009065'
INSPOPER = '0010'
IMPORTING
RETURN = bapireturn2
TABLES
CHAR_RESULTS = ichar_results.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = bapireturn2.
I finally figured out. A very important lesson learned in all this is that when you are using a bapi to load data into SAP, it would be a really good idea to run the applicable "get" bapi to see what is actually there. In this case, I ran the BAPI_INSPOPER_GETDETAIL bapi. In order to use the BAPI_INSOPER_RECORDRESULTS I had to use the SINGLE_RESULTS to write the result value and CHAR_RESULTS to do the valuations etc. Here is the code ..
DATA: BEGIN OF ichar_results OCCURS 0.
INCLUDE STRUCTURE BAPI2045D2.
DATA: END OF ichar_results.
DATA: BEGIN OF isingle_results OCCURS 0.
INCLUDE STRUCTURE BAPI2045D4.
DATA: END OF isingle_results.
DATA: BEGIN OF bapireturn2 OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF bapireturn2.
isingle_results-insplot = '70000009550'.
isingle_results-inspoper = '0010'.
isingle_results-inspchar = '0010'.
isingle_results-res_value = '1.65'.
isingle_results-res_no = '0001'.
APPEND isingle_results.
ichar_results-insplot = '70000009550'.
ichar_results-inspoper = '0010'.
ichar_results-inspchar = '0010'.
ichar_results-closed = 'X'.
ichar_results-evaluated = 'X'.
ichar_results-evaluation = 'A'.
APPEND ichar_results.
CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
EXPORTING
INSPLOT = '70000009550'
INSPOPER = '0010'
IMPORTING
RETURN = bapireturn2
TABLES
CHAR_RESULTS = ichar_results
SINGLE_RESULTS = isingle_results.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = bapireturn2.
Similar Messages
-
Hi, activated qm for procurement. po generated and gr done and insp lot no taken from md04. pls note that the sys status here is crtd, chcr, sprq shows in MDO4 for that insp lot details.while searching same insp lot no in qe51n, it gives the message "no entries found". pls advise how tosolve and to do rsults recording.
Hi,
Check Whether you have created the Inspectionplan for that material(QP01 for creation). If not create it.
And Check In Material master -
> Inspection type deatiled view whether auto. Assignment Check box is selected or not. If not , Select it.
Now Onwards the Created Inspection lots will be released Status and you can do result recording for them.
For Existing Lots with CRTD Status do the following steps.
1) Create Inspection Plan(QP01)
2) QA02 -> Inspection lot change> Insp.Specification Tab> Click On Task list/specification push button> It will Auto matically assign the Inspection plan and then Inspection lot get convert into Release Status. Then Save it.
Noe you can do the result recording for it.
Regards
Praveen -
When to use insp. lot origin 03?
Hi,
I would like to set up QM for production and I am not sure whether I should use lot origin 03 with quality planning in the work plan or 04 with quality planning in insp. plan.
Up to know the quality planners are using insp. plan for certain inspections in production. Because we use a separate routing for each material in production the workload for the quality planners will rise up dramatically if I use lot origin 03.
Besides the integrated confirmations for operations, is there any feature for which I MUST use lot origin 03 and quality planning in work plans?Marcus,
03 inspection is the in-process inspection. As the name suggests this is used if you production process requires in-process inspection. The specifications of the material getting processed may have some inspection characteristics which you want to record/ monitor and control the further production flow based on these results. If this is not the case and you want to record the inspection results of the final product only then 04 is sufficeint.
S decide upon based on the above and choose if 03 is required.
Ram -
Reg insp lot at the time of delivary
Dear all,
To carryout insp at the time of delivary , I have give insp type-12 in material master and in customization assigned insp type to delivary document type,at the time of delivary we are getting error as "status of insp lot no 120000000052 patial lot 00000 does not allow goods issue", although we are doing delivary for total qty we are getting this error, please help me in solving it.
Thanking you allHi,
If your assign the Inspection at delivery level means follow the below step.
1. Save the delivery document without PGI. After saving the delivery system create the inspection lot.
2. Clear the Inspection lot (result recording & Usage Decision by using QA32)
3. After complete the UD only system will allow to do the PGI (Go to change mode delivery and do the PGI)
Note: Condition for PGI UD should be accepted. If UD has been rejected cancel delivery.
Revert further clarification.
Regards,
S.Babusingh -
Creation of Insp Lot through FM QPL1_INSPECTION_LOT_CREATE
Hi Guru
Can any body help me to create Insp Lot through FM QPL1_INSPECTION_LOT_CREATE
based on fields of Z-table for following data:-
Z-table relevant fields
INSCALLNO- INSPECTION CALL NO
PSPID-PROJ DEFINITION OR PLANT
PACKCODE-PACKAGE NUMBER (PO NO.)
INSP OFFICE AS ART FOR QALS
MFR (MANUFACTURER CODE) AS LIFNR IN QALS
Record to be created throuhg FM for QALS table
following relevant fields are to be appended
Z Field as ZZEBELN (PO no.)
Z Field ZZINSCALLNO from INSCALLNO of Z-table
PRUEFLOS
LIFNR
HERSTELLER
MATNR
KTEXTLOS
ART
STSMA
ENSTEHDAT
OBJNR
ENTSTEZEIT
KTEXTLOS
ERSTELLER
ERSTELDAT
ERSTELZEIT
and other relevant fields.
Thnaks.
YPBHi
for Inspection lot origin : 01 ,03 ,04 You can create Inspection lot manuaaly.through QA01 tcode.
Regards
Sujit -
Requirement: Insp lot of self Certified material should not get skipped
Hi Gurus following is req pls suggest me
Requirement: Insp lot of self Certified material should not get skipped
if there is a change in Material Revision. As of now Auto Usage Decision
takes place on Self certified material Lots. This happens even after
there is a material revision. This is undesirable as QC is Not able to
ensure the implementation of design changes.
Appsi have understood the following from ur reply
new revision created by design- purchaser creates po- materials comes in quality - auto skip
quality don't come into picture in ur scenario
solution :
new revision created by design - while creating po they will get error q info record for new revision not present- intimation to quality for creating q info record - decide whether to insp or skip it - normal process
use of q info record
in material master maintain control key for q info record.
create q info record for material, rev, plant , vendor
keep rest evertthing as it is - as a normal procedure material will be skipped
when any new rev is created - while creating po they will get error q info record for new revision not present- QC will get intimation regarding this new rev. -after all approval u can create q info record for this new rev. and then only purchaser will be allowed to create po.
make necesary chages in plan after every new revision -
REPORT TO CHECK DIFFERENCE G.R DATE AND U.D DATE FOR A INSP LOT
Hi
I want to track how many dates it has been taken to clear a insp lot for a G.R. So I am looking for a report which shows these days or a report which have G.R date and U.D for inspection lot.
Please guide if there are any reports for this.
Thanks
DhananjayDear Dhananjay
This is available in MCXA, MCXC report as lead time. Lead time is nothing but time taken for clearing the lot after GR
Regards
Gajesh -
How do I insert new record and get results on a landing page
how do I insert new record and get results on a landing page
It's not clear from your post what you are asking. In a SQL database, you use the INSERT statement to insert a row into a table. You use the SELECT statement to retrieve rows. Here's some basic info on how to do that within PHP
PHP MySQL Insert Into
PHP MySQL Select -
How to create inprocess insp. lot manually
HI Team,
I have requirement to create inprocess inspection lot as & when required. What are the settings required to do in QM view insp. type.
I have tried with "Preferred inspection type" set up, but no inspection lot is allowed to create manually in QA01.
Then I tried with 03 insp. type "Active". But it generated lot for every production order during release of order.
But my requirement is to create lot during inprocess production only when it is rejected.
Pls suggest me solution.
ThanksHello Bhushan ,
You can create a insp lot with 03 origin by putting plant & insp origin in QA01 initial screen ....but I will suggest to use inspection origin 89 with relevant setting as per business requirement as you want to create the lots only when material is rejected .
Else you can maintain one more insp type say,0301 with insp origin 03. This will help in classifying the inspection lots which are created for this process & not standard in-process inspection,
Can you please explain the business scenerio which demands to create lots only incase of rejections .....as to ascertain whether the product is inline with quality standards we need to inspection the same (which requires inspection lot for lab processing & tracebility)
Thanks
Kaushik -
Method to find no. of records in a result set.
hi,
tell me the method to find the no. of records in a result set.
I tried getFetchSize() method of ResultSet Interface. But it gives the error method not found in ResultSet interface.
thanks in advance.You can use cachedRowSet.size() with JDBC 2.0 (I think).
If you have a scrollable result set you use rs.last(), rs.getRow() and can then reposition your cursor using rs.beforeFirst().
You can use the SQL select count(*).
You can loop through the result set and count the rows.
There are many, many posts concerning this topic. Be sure to take advantage of your ability to search the forums so you don't have to wait for an answer. You may want to search now and see if there are more possible solutions.
Good Luck. -
No insp lot reqd. for customer return in warehouse
There are 4 plants
3 manufacturing and 1 is warehouse (storing & distributing place)
when retun sales order is created it can be created in any plant out of these 4.
Mvt type is 655
in 3 plants insp is required,I don't want inspection in warehouse.
when pgi is done for warehouse plant , insp lot(05) is getting created even if inspection type is not activated or post to inspection tick is removed.
I can deactive quality for 655 mvt as I want lot to be created in manufacturing plants.
Please helpHi,
Try customer enhancement QAAT0001. In FM EXIT_SAPLQAAT_002 you can raise no inspection for the combination of movement type and plant of your choice.
Regards. -
Stock posting of Insp. lot in alternative unit of measure
Dear All,
I have a material whose Base unit of measure is Ton and alternative unit is PCS. There is an insp. lot of 10 Ton. Now i want to do its stock posting in PCS. So how can i do that.SAP Note 605861 - Provision of a BAdI for input help for quantities in UD
refer thread
Posting stock in Alternate Unit of Measurement -
How to cancel Rep. manufacturing Insp Lot
Dear All,
I have inspection lot with Inspection Type 13 [Rep. Manufacturing], which is having CRTD PASG status.
When I go to menu
Insp Lot---->functions -
> Cancel this has deactivated/Hide mode.
Please suggest how to cancel this lot
Regards
HonyalDear,
You can used QAC1 to correct the inspection lot quantity.
Make the inspection lot quantity to 0. This can be one of the way.
OR Change inspection Lot QA02 / Inspection lot / function /cancel lot and save it
Or go to QA02 enter the lot no then chage the status to REL.
Regards,
R.Brahmankar -
Dear All,
senario is as below
we are doing 313 movt within the same plant for stock transfer after 313 stock will be in transit after that we
do 315 movt for recieving of the stock.
settings done insp activated for 313 and 315 movt types and 08 insp type is activated in M.M.
but system is not creating insp lots and the stock directly goes into unrest use.
can any body suggest what setting is missing?
your suggestions will be highly appreciated
Thanks
AnilHi Anil
when you post using 315 mvt. type, system will create inspection lot
plz. check @ OMJJ -- for the 315 mvt.type -- QM should be active --> then system will create inspection lot
before that make sure Mat. master for that material 08 insp. active ,and post to inspection stock,task /mat spec, and Automatic assignment and characteristc --> these fields to be active
let me know if u need further detail
Thanks
Sami -
hi
in my system one of the material having quality stock in MMBE but in MD04 not showing insp lot no. How can i trace the insp lot
RegardsHi
this Happens due to following reasons..
01Inspection type is not active in MM01-->Qm view
and .Buyer while creating PO/GR post Material to Quality in Where tab of PO/MIGO
So Matreial goes to QI stock but can not be seen in QA32.
You can go to MB1B do 321 mvt and check whearthar you can move material to Unrestricted.
This is only possible when you have activated Qm view-->01 inspection type.
Check this
Sujit
Maybe you are looking for
-
I have a 2009 macbook pro with os x10.9.2 and can't find drivers for windows
i have a 2009 macbook pro with os x10.9.2 and can't find drivers for windows. i trying to install windows using bootcamp but does not allows me to download the drivers..
-
How can I get credit for movie that I am unable to watch on AppleTV
I ordered to rent "The Hobbit" over a week ago to watch on my AppleTV, but every time I tried to start movie, keep getting error message and to try again later. I have tried more than 5 different times since, still unable to watch movie.
-
Mail not working in new mini mac
i got new mini mac and mail not working. i get this message. You have Mail version 4.2 (1078/1084). It can't be used on Mac OS X Version 10.6.8 (Build 10K549). For more information, click the Help button. dont know what to do thanks
-
Add Flight is not Functioning in ESS Travel and expenses
Hi All, I had one issue in Travel and Expenses when I am creating Movement Order In ESS ->Travel and Expenses -> Movement Order -> After Completion Of giving the -->General Data(Start date ,End date , address etc...) I am clicking o
-
HT201272 I'm trying to recover my Ipod serial number that was stolen
my ipod was stolen and I'm trying to recover the serial number from itunes