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_ALM_NOTIF_CREATE - long text

Former Member
0 Likes
3,097

Hi All,

I am creating a notification of type M1 by using the BAPI BAPI_ALM_NOTIF_CREATE.

However, I am not able to save the longtext for header in the notification, which I pass in the parameter table "LONGTEXTS" in the BAPI.

Entries in this table are in the following format -

OBJTYPE OBJKEY FORMAT_COL TEXT_LINE

QMEL 0 >X * 07.05.2008 19:00:SM

QMEL 0 >X * test line 1

QMEL 0 >X * test line 2

Is there something missing?

Thanks and Regards,

Shivali

Hi All,

I am creating a notification of type M1 by using the BAPI BAPI_ALM_NOTIF_CREATE.

However, I am not able to save the longtext for header in the notification, which I pass in the parameter table "LONGTEXTS" in the BAPI.

Entries in this table are in the following format -

OBJTYPE OBJKEY FORMAT_COL TEXT_LINE

QMEL 0 >X * 07.05.2008 19:00:SM

QMEL 0 >X * test line 1

QMEL 0 >X * test line 2

Is there something missing?

Thanks and Regards,

Shivali

5 REPLIES 5
Read only

Puneet_Gupta
Contributor
0 Likes
1,724

Looks like you are missing the OBJKEY values in the rows.

As per the BAPI Documentation

OBJKEY must have the corresponding sort field for the values named above. The combination of sort field of item/cause, item/task and item/action must be unique within a notification. If you leave the sort field empty and the OBJTYP = QME, then a long text is created for the notification header.

Thanks,

Puneet

Read only

0 Likes
1,724

Yes, OBJKEY must be blank and OBJTYPE = QMEL, for it to create the notification header long text.

Read only

0 Likes
1,724

Hi,

Just pass the value '1234' into the OBJKEY and rest of the code as you are using currently.

It will solve ur problem.

Regards

Shirin

Read only

0 Likes
1,724

When you create a long text, the fields OBJTYP and OBJKEY must be filled. OBJTYP can have the following values:

1. QMEL - Notification header

2. QMFE - Notification item

3. QMUR - Notification cause

4. QMSM - Notification task

5. QMMA - Notification action

OBJKEY must have the corresponding sort field for the values named above. The combination of sort field of item/cause, item/task and item/action must be unique within a notification.

If you leave the sort field empty and the OBJTYP = QME, then a long text is created for the notification header.

Read only

former_member431412
Participant
0 Likes
1,724

I am having the same problem. Did you get this to work? If you did, please tell me how you resolved it.

Thanks