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

BAPI related customer service notification debugging

Former Member
0 Likes
2,625

unable to create customer service notification as i m going to debug the program it is still not working as debugger is not entering into the fm

IQS4_CHECK_NOTIF_TYPE_PM_CS do suggest ?

unable to create customer service notification as i m going to debug the program it is still not working as debugger is not entering into the fm

IQS4_CHECK_NOTIF_TYPE_PM_CS do suggest ?

11 REPLIES 11
Read only

Former Member
0 Likes
2,571

plz help me in this query

Read only

former_member187748
Active Contributor
0 Likes
2,571

Hi Upkar,

if you have not got even a single reply, why you have marked as assumed answer,

if you will do like this, people will think that it has been already answered.

And no one will look around this.

Read only

Former Member
0 Likes
2,571

actually it was done by mistake, working on it debuger goes out of it it does not enters into the

fm IQS4_CHECK_NOTIF_TYPE_PM_CS it directly comes out of it??


Read only

0 Likes
2,571

Hi Upkar,

Are you using the BAPI BAPI_ALM_NOTIF_CREATE?

The FM is under enhancement point have you seen this?

Read only

0 Likes
2,571

Hi Upkar,

please put a break point on return or on any other parameters, and execute

see it stops or nor, let me know ( i ahve used these parameters, you may have more than this

so put break point on any parameters in exporting / tables)

CALL FUNCTION 'IQS4_CHECK_NOTIF_TYPE_PM_CS' "

EXPORTING

i_qmart =  viqmel-qmart

i_qmnum =  viqmel-qmnum

TABLES

return =  bapiret2.

  .

Read only

0 Likes
2,571

after debugging the debogger directly goes into the below screen.

it is not going into fm to crete notification

Read only

0 Likes
2,571

Hi,

It is triggering for me!

Hi put the external break point inside the function module and try!

Read only

0 Likes
2,571

Hello Upkar,

how are you putting break point, i have debugged the same , see in screenshot

Read only

0 Likes
2,571

hi

here are the codes

DATAEXTERNAL_NUMBER TYPE QMNUM.

DATANOTIF_TYPE TYPE QMART.

************************************************************************

* Intrnal Table Declaration *

************************************************************************

DATA: it_nothdri TYPE STANDARD TABLE OF bapi2080_nothdri WITH HEADER LINE,

  it_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE,

  it_nothdre TYPE STANDARD TABLE OF bapi2080_nothdre WITH HEADER LINE,

  it_notfulltxti TYPE STANDARD TABLE OF bapi2080_notfulltxti WITH HEADER LINE,

  it_notitemi TYPE STANDARD TABLE OF bapi2080_notitemi WITH HEADER LINE,

  it_notcausi TYPE STANDARD TABLE OF bapi2080_notcausi WITH HEADER LINE,

  it_notactvi TYPE STANDARD TABLE OF bapi2080_notactvi WITH HEADER LINE,

  it_notifpartnr TYPE STANDARD TABLE OF bapi2080_notpartnri WITH HEADER LINE.

data: g_type LIKE bapi2080-notif_type.

PERFORM call_bapi.

*&---------------------------------------------------------------------*

*& Form CALL_BAPI

*&---------------------------------------------------------------------*

* text

*----------------------------------------------------------------------*

* --> p1 text

* <-- p2 text

*----------------------------------------------------------------------*

FORM call_bapi .

   DATA ls_notifheader TYPE bapi2080_nothdre.

*Call BAPI to create Notification

   CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'

     EXPORTING

*     EXTERNAL_NUMBER    =

       notif_type         = g_type

       notifheader        = it_nothdri

*     TASK_DETERMINATION = ' '

*     SENDER             =

*     ORDERID            =

     IMPORTING

       notifheader_export = it_nothdre

     TABLES

       notitem            = it_notitemi

*     notifcaus          = it_notcausi

       notifactv          = it_notactvi

*     NOTIFTASK          =

       notifpartnr        = it_notifpartnr

       longtexts          = it_notfulltxti

*     KEY_RELATIONSHIPS  =

       return             = it_bapiret2.

*Save Notification

   CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'

   EXPORTING

   number = it_nothdre-notif_no

   IMPORTING

   notifheader = ls_notifheader

* TABLES

* RETURN =

   .

   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

* EXPORTING

* WAIT =

* IMPORTING

* RETURN =

.

ENDFORM. " CALL_BAPI




notification is not created by these.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,571

Which FM/BAPI are you using for the same?

Read only

Former Member
0 Likes
2,571

hi sanjeev

that is what i m saying dat notification is not created as if notification type is 04 but there is no notification created as for the purpose of which we are using bapi