Question:
Hi,
I'm using BAPI BAPI_SERVNOT_MODIFY_DATA to change service notifications items. It works fine when I want to change 1 item, but once I try it with several items it returns an error.
When debugging this BAPI, I've found this in include LIQS6F01
....
LOOP AT P_NOTIFITEM_X.
LOOP AT P_NOTIFITEM WHERE ITEM_KEY = P_NOTIFITEM_X-ITEM_KEY.
*--- only one entry for each item allowed.
IF SY-TABIX <> 1. H_STATUS = CHARE. EXIT. ENDIF.
READ TABLE P_WQMFE WITH KEY FENUM = P_NOTIFITEM-ITEM_KEY
KZLOESCH = SPACE.
....
So with a code like this no wonder why it doesn't work with several items. And the same goes for tasks, activity, ...
Am I missing something or it is a limitation from SAP? If it is the case why would they use tables in the BAPI interface instead of structures, it wouldn't leave room for confusion.
My idea is that it is a bug but I haven't found anything on OSS.
Has anyone encountered the same issue?
Thanks in advance for your input
Cheers
P.S. We're in 4.6C support package SAPKH46C14.
Answer:
My mistake, I've found this note 526354.
It's in German, that's why I didn't find it in the first place.
Cheers