Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create quality notification using bapis

Former Member
0 Likes
1,841

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,358

Please help. it is required.

Edited by: Yogesh Chavan on Sep 10, 2009 6:28 PM

Edited by: Yogesh Chavan on Sep 10, 2009 6:28 PM

6 REPLIES 6
Read only

Former Member
0 Likes
1,359

Please help. it is required.

Edited by: Yogesh Chavan on Sep 10, 2009 6:28 PM

Edited by: Yogesh Chavan on Sep 10, 2009 6:28 PM

Read only

0 Likes
1,358

Is it that difficult as I have not got any reply? Let me ask another way.

There is requirement to create quality notification from external system which is giving rfc call to SAP bapis.

Go to transaction QM02/QM03 and view any qualtiy notification. There are 3 tabs. The 3rd tab is material/quantity/delievery date. I want to know which bapi is used to populate fields in that third tab i.e. material, quantity,quantity factor, UOM,rate,currency , amount. These fields are part of table QMMA but i can not find any structure which is using these fields.

currently i am testing bapi IQS4_CREATE_NOTIFICATION to create quality notification which is working fine except above mentioned issue.

Help appreciated.

Read only

0 Likes
1,358

Hi Yogesh ,

I also faced the same problem but none BAPI or FM worked.

I fianlly used BDC for QM01 .

Read only

0 Likes
1,358

Hi supriya.. thanks for reply.

Could you please let me know in detail about BDC? i need it very urgently.

Read only

0 Likes
1,358

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

Read only

0 Likes
1,358

I have a similiar requiremet but I also need to pass the

u2022 External Reference Number (REFNUM)

u2022 Start Date of Malfunction (AUSVN)

u2022 Start Time of Malfunction (AUZTV)

u2022 End Date of Malfunction (AUSBS)

u2022 End Time of Malfunction (AUZTB)

Would I too have to use a BDC?