Skip to Content
author's profile photo Former Member
Former Member

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 11:39 AM

    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

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 11:34 AM

    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.
    
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.