Skip to Content
avatar image
Former Member

SAP PRT Documents

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 23, 2017 at 06:32 AM

    Hi Salvatore,

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

    regards,

    Solomon

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 23, 2017 at 09:24 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded