Creating Quality Notification via BAPI
I am attempting to create a quality notification using BAPI_QUALNOT_CREATE but am running into an issue. I need the ability to link the inspection lot number to the quality notification but I do not see a field for inspection lot in any of the BAPI segments. When i record results using defect codes in SAP, the quality notification that is created has the inspection lot linked to it (in the reference object tab). As there another field within the BAPI that i can use to pass the inspection lot number??
Thanks in advance...
Brock,
Thanks for the response. I have attempted to use the FM you suggested but still am not having much luck. After I feed the required data to the FM, I am prompted with the error message u201CNo quality notification type maintained for inspection lot type.u201D However in SPRO, under Quality Management -> Quality Inspection -> Inspection Lot Creation -> Maintain Inspection Types, the notification type is defined for each of the inspection types I am using. Is there any additional configuration I may be missing? Thanks againu2026
Harm
Similar Messages
-
Create quality notification using bapis
Hi all
i want to create quality notification(QM01) using bapi. I know bapi - BAPI_QNOTIFICAT_CREATE can be used to create that. Using this i can create basic quality notifcation.But if you go to transaction QM1, there are two more tabs - validity datetask and materialquantitydelivery date. How to populate these two tabs. Is any other bapi need for the same?I had to create a notification and fill Material , batch , product cat,Disposition , Reference , priority ,department , coding, description
I had a reference notification and i used the foll code to create new noti.
SELECT SINGLE zzprdcat zzdispos zzdivisn qwrnum refnum
priok qmcod qmkat qmtxt qmgrp objnr INTO
(gs_qmel-zzprdcat, gs_qmel-zzdispos, gs_qmel-zzdivisn,
gs_qmel-qwrnum, gs_qmel-refnum, gs_qmel-priok,
gs_qmel-qmcod, gs_qmel-qmkat, gs_qmel-qmtxt,
gs_qmel-qmgrp, gs_qmel-objnr)
FROM qmel WHERE qmnum = gs_qmel1-qmnum.
SELECT SINGLE parnr INTO (ihpa-parnr) FROM ihpa
WHERE objnr = gs_qmel-objnr
AND parvw = 'AB'.
PERFORM bdc_dynpro USING 'SAPLIQS0' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RIWO00-QMART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RIWO00-QMART'
c_qmart.
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=10\TAB02'.
PERFORM bdc_field USING 'VIQMEL-MATNR'
gs_mseg-ummat.
PERFORM bdc_field USING 'VIQMEL-CHARG'
gs_mseg-umcha.
PERFORM bdc_field USING 'VIQMEL-ZZPRDCAT'
gs_qmel-zzprdcat.
PERFORM bdc_field USING 'VIQMEL-ZZDIVISN'
gs_qmel-zzdivisn.
PERFORM bdc_field USING 'VIQMEL-ZZDISPOS'
gs_qmel-zzdispos.
PERFORM bdc_field USING 'VIQMEL-QWRNUM'
gs_qmel-qwrnum.
PERFORM bdc_field USING 'VIQMEL-REFNUM'
gs_qmel-refnum.
PERFORM bdc_field USING 'VIQMEL-PRIOK'
gs_qmel-priok.
PERFORM bdc_field USING 'BDC_CURSOR'
'DIIHPA-I_PARNR'.
PERFORM bdc_field USING 'DIIHPA-I_PARNR'
ihpa-parnr.
PERFORM bdc_field USING 'RQM02-PARNR_VERA'
sy-uname.
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VIQMEL-QMCOD'.
PERFORM bdc_field USING 'VIQMEL-QMGRP'
gs_qmel-qmgrp.
PERFORM bdc_field USING 'VIQMEL-QMCOD'
gs_qmel-qmcod.
PERFORM bdc_field USING 'RIWO00-HEADKTXT'
gs_qmel-qmtxt.
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BUCH'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VIQMEL-QMCOD'.
PERFORM bdc_field USING 'VIQMEL-QMGRP'
gs_qmel-qmgrp.
PERFORM bdc_field USING 'VIQMEL-QMCOD'
gs_qmel-qmcod.
PERFORM bdc_field USING 'RIWO00-HEADKTXT'
gs_qmel-qmtxt.
CALL TRANSACTION 'QM01' USING bdcdata
MODE gc_mode
MESSAGES INTO messtab .
Thanks -
Hi,
I want to create quality notification and print the same in a report.
there is a BAPI , which is not useful in my case, as i have to give batch, order,matnr, long text etc fields.
can anybody give some FM to create a QNotification.
and I want to print the notification from the program.
How to print the notification from the program.
Regards,
K.KHi,
BAPIs for quality notifications
BAPI_QNOTIFICAT_CREATE Create Quality Notification
BAPI_QNOTIFICAT_GETCATALPROFIL Determine Catalog Profile for Quality Notification
BAPI_QNOTIFICAT_GETKEYFIGURES Determines Existing Quality Notifications
BAPI_QNOTIFICAT_GETLISTFORCUST Select Quality Notifications for a Customer
BAPI_QNOTIFICAT_GETMATLISTFCUS Select a Customer Material List for Quality Notifications
Use the one that matches ur requirement.
Regards,
Ramya -
Creation of notification via BAPI
Hi Guys,
I'm working in ECC 6.0 version. i have found a BAPI 'BAPI_ALM_NOTIF_CREATE' to create a notification. When i'm creating the notification through IW21 by passing notification type and functional location, i'm able to create a notification
But when i'm passing the same parameters to the BAPi, its neither returning any error record nor the notification is getting created.
Has anyone worked on the creation of notification via BAPI
Thanks in advanceThanks martin and ravi.
i have got the solution. Just thought of sharing with you guys.
After calling the BAPI passing the parameters notification type and functional location, a field NOTIF_NO will be returned which you have to pass to the BAPI 'BAPI_SERVNOT_SAVE
thats it
Thanks a lot -
QM01 - Add Production Order field to Create Quality Notification
Hi all SDNers,
I have searched and found many threads related to my question BUT I'm new to this and I don't know how to implement in detail.
Would you please guide me step by step adding a field into a standard TCode?
My requirement is to add the Production Order field (VIQMEL-FERTAUFNR) to the Create Quality Notification (QM01) Tcode under the 1st screen in Reference Documents section of the Reference Objects tab.
The program is SAPMQM00 and screen number is 3011.
Thanks,
KhanhHi all,
I used the screen number 0140 in program SAPLQM03 as the initial screen before creating Notification type Q2.
Use SPRO:
Quality Management --> Quality Notifications --> Notification Creation --> Notification Type
--> Define Screen Templates --> Define Initial Screens
Then use Function Module QM03_CREATE_QMEL_WITH_WINDOW and screen 0140 above to configure.
Hope this will help others.
Regards,
Khanh -
Steps to create Quality Notification
Hi,
Can anyone let me know the steps involved and the process to create Quality Notification.
Regards,
RamHi ,
Ram hope this helps you in creating the QN .
<b>Creating a quality notification</b>:
1.Choose Logistics-> Quality management -> Quality notification-> Create.
2.Enter the notification type and then choose Enter.
<b>Notification types:</b>
Q1 - Customer complaint
Q2 - Complaint against vendor
Q3 - Internal problem
Another dialog box may be displayed before the notification is created, depending on how the quality notifications were customized. If a dialog box is displayed, you may have to enter additional reference information (for example, a material, sales order or delivery).
<b>Creating a user-specific quality notification</b>
1.Choose Logistics -> Quality management -> Quality notification -> Create.
2.Enter the notification type and then choose Enter.
To be able to create a user-specific notification, you must specify a user-specific notification type that has been predefined in Customizing.
<b>Creating a quality notification with reference</b>
1.Choose Logistics -> Quality management -> Quality notification-> Create.
2.Enter the notification type.
3.Enter the number of the notification you want use as a copy model and choose Enter
To reduce the amount of data that you need to enter, you can use an existing quality notification as a copy model. You can use any notification type as a copy model, regardless of the notification type for the new notification.
When you save the new quality notification, the notification you used as a copy model is saved at the same time in the notification. This means that you can later select the quality notifications that were created using certain references.
<b>Changing a quality notification</b>
1.Choose Logistics-> Quality management -> Quality notification -> Change.
2.Enter the number of the notification you want to change and choose Enter.
Make the necessary changes to the notification and then save the data
If you have further queries please do write .
cheers
kp -
Bapi to create quality notification with inspection lot and defects of char
Hello experts,
Can any body tell me how to create notification using inspection lot.
regards
Narendranath ReddyHi Narendranath,
Have you tried BAPI_QNOTIFICAT_CREATE? Based on inspection lot data, you should have the data you need to create a quality notification.
Good luck.
Best regards,
Guus
Edited by: Guus Jansen on Feb 2, 2011 10:05 AM -
FM to create Quality Notification
Hello Friends,
Can anybody tell me the Function module or BAPI to create a Quality Notification.
Following FMs are not solving my purpose.
BAPI_QNOTIFICAT_CREATE
QM05_CREATE_NOTIFICATION
QM06_FM_TASK_CREATE_QM_NOTIFIC
Regards,
Krishna.Even We've been trying to find suitable BAPI or FM to create qality notification... and finally decided to go with BDC..here it is..may be useful for you...
PERFORM bdc_dynpro USING 'SAPLIQS0' '0200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RIWO00-QMART'
'Z2'. "notification Type
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=10\TAB02'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VIQMEL-DEVICEID'.
PERFORM bdc_field USING 'RQM00-MATNR'
l_qals-matnr. "material
PERFORM bdc_field USING 'RQM00-MAWERK'
l_qals-werk. "plant
PERFORM bdc_field USING 'VIQMEL-CHARG'
l_qals-charg. "batch
PERFORM bdc_field USING 'VIQMEL-LGORTCHARG'
l_qals-LAGORTCHRG. "storage location
PERFORM bdc_field USING 'VIQMEL-REFNUM'
number. "inspection lot number
PERFORM bdc_field USING 'VIQMEL-FERTAUFNR'
l_qals-aufnr. "order Number
PERFORM bdc_field USING 'VIQMEL-QMCOD'
l_qals-qmcod. "reason code
PERFORM bdc_field USING 'VIQMEL-RKMNG'
l_qals-LOSMENGE. "quantity
PERFORM bdc_dynpro USING 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BUCH'.
CALL TRANSACTION 'QM01' USING i_bdcdata
MODE g_mode.
*& Form bdc_dynpro
FORM bdc_dynpro USING in_program
in_dynpro.
CLEAR wa_bdcdata.
wa_bdcdata-program = in_program.
wa_bdcdata-dynpro = in_dynpro.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.
ENDFORM. " bdc_dynpro
*& Form bdc_field
FORM bdc_field USING in_fnam
in_fval.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = in_fnam.
wa_bdcdata-fval = in_fval.
APPEND wa_bdcdata TO i_bdcdata.
ENDFORM. -
Create Support Message via BAPI with additional partners
Hi all,
i need to create a support message (slfn) via bapi / function module. The basic creation is no problem with BAPI_NOTIFICATION_CREATE.
But i need to set additional partner(functions) like "approved by" in the support message. With this bapi i can only set the processor and creator of the message.
How can i add additional partners via BAPI call?
Any help would be much appreciated.
DanielHi Daniel,
i do not think there is a standard functionality for this.
you can use function module CRM_DNO_UPDATE_PARTNER to set partner functions to a message. You will have to build your own RFC enabled function module around this, though.
Then you can use it to add your partners after the message was created.
Regards,
Christoph -
Document and PS Project - create a link via BAPI?
Hi everybody,
follow problem: I have a document and a project. How can I create a link between both via BAPI?
Means: create a real exsitens document in a project with ...
FB's. What is to do?
Thanks for help.
Regards ThomasHi,
one sol. might be ta <b>OAOH</b> with BUS-object 2001
another <b>OAOR</b>. pls search the corresponding fm's in that transactions
Andreas -
Create Quality Notification With Default Initial Priority
Has anyone found a way to configure a quality notification so that when the notification type is initially created it is automatically assigned a default priority?
Thanks for any feedback.Thanks a lot for pointing me in the right direction. This seems to be exactly what I need, as function module permits me to enter the notification type and the priority.
Since I have never implemented a user exit (I am more functional than technical) can you provide steps on how to move forward?
Thanks! -
Create PS project via BAPI - using project templates (CJ01)
hi anybody,
if is pos. to create a new project with BAPI* (if yes, which one? and how?) and use a project template (not an existing project).
thanks for help.
regards thomasThanks for welcome.
This BAPI create a new PROJ_DEF, thats clear. But i want to create a new project (with WBS and networks etc.) via BAPI and this with using a existing project template (please look in CJ01), not an existingproject (CJ20N).
You know what I want?
Thomas -
Create BOM alternative via BAPI
How can we create a BOM alternative via BAPI?
I now use CSAP_MAT_BOM_MAINTAIN but then I get the following error:
BOM already exists for 1234 W041 9
I do not want to use batch input.
Kind regards,
LieselotHi,
U can use the following BAPI'S
BAPI_MATERIAL_BOM_GROUP_CREAT
BAPI_MAT_BOM_EXISTENCE_CHECK
i hope they solve your purpose!!
thanks -
How to create sto po via bapi-BAPI_PO_CREATE1
if create sto po via bapi_po_create1, which fields must be defined? and i want to change sto price.how to define bapi fields? can anyone give me a sample?
hi
check following
BAPI_PO_CREATE1
http://abap.wikiprog.com/wiki/BAPI_PO_CREATE1
hope it helps
regards
kunal
award if helpful -
Problem with creating business partner via BAPI
Hello! I have a simple File-RFC-File scenario:
XML-file with Firstname, Lastname and PartnerCategory. I use BAPI_BUPA_CREATE_FROM_DATA to create a partner with this data.
It works, in target file I have a number of new business partner, but I can't find new partner in the system. Like I only tested BAPI_BUPA_CREATE_FROM_DATA in "bapi" transaction without real effect.Hi,
probably you didn't comit the BAPI
RFC adapter allows to specify comit for BAPI
add this to your RFC channel configuration and you will see the partner
for more info read section:
Commit Control for Single BAPI Calls
from
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
Regards,
Michal Krawczyk
Maybe you are looking for
-
My parents and my brother are using my apple id. They are using my cloud and my money. I want to create a new Apple ID. But if i do, is there anyway to transfer purchases such as music to my apple device which will have a different Apple ID than the
-
i tunes will not play any songs . the songs are there but when i press play nothing happens the maxtor external drive is the problem but im stuck have removed drive downloaded latest itunes still no joy
-
ITunes Match - Infinite Sign Out/Sign In Loop, Can't Even Get Computer Recognized
I've signed out three dozen times, turned on port throttling (per other community recommendation). Can't get anything to even start. Infuriating. Any ideas?
-
Hi My iphone 4 has stopped working...the lock button IS working...when it stopped working it had a 50% battery remaining...it was working when I last used it and when I returned it had a blank screen....it will now not charge or connect to itunes whe
-
Detecting character encoding?
I'm running into a problem with Safari (I've got Safari 4 beta installed, but I think this was a problem with 3 as well) where it won't automatically detect character encodings. These are sites in Japanese which load and display correctly in Firefox