Skip to Content
0

SAP PRT Documents

May 22, 2017 at 02:27 PM

61

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Solomon Macwan May 23, 2017 at 06:32 AM
0

Hi Salvatore,

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

regards,

Solomon

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member May 23, 2017 at 09:24 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded