cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PRT Documents

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

solomon_macwan
Active Contributor
0 Kudos

Hi Salvatore,

It will be better if you can download and post the error.

regards,

Solomon