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

FM to create Quality Notification

former_member734916
Participant
0 Likes
3,953

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,422

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.

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.

4 REPLIES 4
Read only

Former Member
0 Likes
2,422

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.

Read only

0 Likes
2,422

Hello Perez,

Thank you for your reply.

While doing BDC for QM01, how to save text in texteditor in 'subject' tab.

Thanks in advance.

Regards.

Krishna.

Read only

0 Likes
2,422

Use SHDB and record steps for cretating texts by clicking 'Create text' button and save.

Add those PERFORM statements for existing code...

may this will solve your problem..

Read only

Former Member
0 Likes
2,423

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.