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 Notification using BAPI_QUALNOT_CREATE with ref to existing notif

Former Member
0 Likes
2,190

Dear All,

I am creating a Quality Notification using the BAPI_QUALNOT_CREATE with reference to and existing notification no.

I have passed the following fields in the header and the table key_relationship.

wa_notifheader-refobjecttype = 'BUS2078'.

wa_notifheader-refobjectkey = i_viqmel-qmnum. "Parent Notification

wa_notifheader-refreltype = 'REFZ'.

and have passed the all the other required data.

The notification is created successfully, but the relation is not established between the Parent and the new notification and the field QWRNUM is not populated.

CALL FUNCTION 'BAPI_QUALNOT_CREATE'
        EXPORTING
          notif_type         = lv_notif_type
          notifheader        = wa_notifheader
          sender             = lv_bapi_sender
        IMPORTING
          notifheader_export = wa_notifheader_export
        TABLES
          notitem            = it_notitem
          notifcaus          = it_notifcaus
          notifactv          = it_notifactv
          notiftask          = it_notiftask
          notifpartnr        = it_partner
          longtexts          = it_longtexts
          key_relationships  = it_keyrelation
          return             = it_notif_return.

Please help.

regards,

Jinson

3 REPLIES 3
Read only

mvoros
Active Contributor
0 Likes
1,082

Hi,

have a look at documentation for this BAPI. It looks like you have to fill field SENDER as well.

transferred in the export table KEY_RELATIONSHIP. If the fields SENDER,

REFOBJECTTYPE, and REFRELTYPE are filled, an object relationship can be

created at notification header level.

Cheers

Read only

Former Member
0 Likes
1,082

>

> Hi,

>

> have a look at documentation for this BAPI. It looks like you have to fill field SENDER as well.

>

>

> transferred in the export table KEY_RELATIONSHIP. If the fields SENDER,

> REFOBJECTTYPE, and REFRELTYPE are filled, an object relationship can be

> created at notification header level.

>

>

> Cheers

Dear Martin,

Thankyou for the reply.

I am already passing the current logical system as the SENDER.

But even then the relation is not getting created.

Thanks,

Jinson

Read only

Former Member
0 Likes
1,082

Hello Jinson,

I am facing the same issue as you did.

Do you get any solution for it? Please let me know if you solve your problem. Thank you!

regards,

CAI