on 05-22-2017 3:27 PM
Hi guru,
a question about Documents used as PRT in routings.
When I change a routing operation, adding a PRT (document) just used in another operation of the same or another routing, at saving moment system return an ABAP error, and don't save the change.
Any idea about this?
This is dump
Category ABAP programming error
Runtime Errors DBSQL_DUPLICATE_KEY_ERROR
Except. CX_SY_OPEN_SQL_DB
ABAP Program SAPLCFDB
Application Component PP-BD-PRT
---------
1|FUNCTION CF_DB_PLFH_INSERT. |
| 2|*"---------------------------------------------------------------------- |
| 3|*"Lokale Schnittstelle: |
| 4|*" TABLES |
| 5|*" PLFH_TAB STRUCTURE PLFH |
| 6|*"---------------------------------------------------------------------- |
| 7| |
| 8|* Mandant setzen |
| 9| LOOP AT PLFH_TAB. |
| 10| PLFH_TAB-MANDT = SY-MANDT. |
| 11| MODIFY PLFH_TAB. |
| 12| ENDLOOP. |
| 13| |
| 14|* Einfügen der neuen PLFH-Sätze in die DB |
|>>>>>| INSERT PLFH |
| 16| FROM TABLE PLFH_TAB. |
| 17| |
| 18|* Return-Code prüfen |
| 19| IF SY-SUBRC <> 0. |
| 20| MESSAGE A881 |
| 21| WITH 'PLFH' |
| 22| SY-SUBRC. |
| 23| ENDIF. |
| 24| |
| 25|ENDFUNCTION.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Salvatore,
It will be better if you can download and post the error.
regards,
Solomon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.