Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dump with operation create

Former Member
0 Likes
989

Hi,

I've a dump when I use 'BAPI_ALM_ORDER_MAINTAIN' in a program when i create an operation...

The dump description is:

Err. run-time RAISE_EXCEPTION

"NOT_FOUND"

Programma SAPLCOBO

Include LCOBOU41

Riga 60

Tipo modulo (FUNCTION)

Nome modulo CO_BT_AFVG_READ_WITH_LOGKEY

Thanx in advance.

CV

6 REPLIES 6
Read only

Former Member
0 Likes
846

There are a number of notes. You can start by looking at 599388.

And maybe 705126.

Rob

Edited by: Rob Burbank on Feb 20, 2008 12:33 PM

Read only

Former Member
0 Likes
846

This note is already present in sap version 7.0

I don't find an util sap note for this problem...

CV

Read only

Former Member
0 Likes
846

I resolve the problem. I modify standard pgm because there is not a sap note.

Read only

Former Member
0 Likes
846

Resolve

Read only

0 Likes
846

Hi, can you explain how you solved it, because I have the same issue.

Thanx

Read only

Former Member
0 Likes
846

I've modified standard fm 'CO_ZF_OPR_STAT_ADD'.

At the points where is executed fm 'CO_BT_AFVG_READ_WITH_LOGKEY' you have to manage the exceptions:

          IF ls_afvgd IS INITIAL.

*       Vorgang nachlesen

            CALL FUNCTION 'CO_BT_AFVG_READ_WITH_LOGKEY'

              EXPORTING

                aplfl     = opr_aplfl

                aufnr_act = ord_aufnr

                vornr     = opr_vornr

              IMPORTING

                afvgd_exp = ls_afvgd".

*[ init modify standard

             EXCEPTIONS

                not_found       = 1

                OTHERS          = 2.

* end modify]

          ENDIF.

There are two points with call function '''CO_BT_AFVG_READ_WITH_LOGKEY'!!!

More over you have to manage the 2 points with call function 'CO_ZR_OPERATION_RELEASE_WB':

*[

          if sy-subrc = 0.

* ]

            CALL FUNCTION 'CO_ZR_OPERATION_RELEASE_WB'

              EXPORTING

                afvgd_imp   = ls_afvgd

                caufvd_imp  = ls_caufvd

              EXCEPTIONS

                free_failed = 1

                OTHERS      = 2.

*[
          endif.

*]

Th fm 'CO_ZR_OPERATION_RELEASE_WB' must be executed only if sy-subrc = 0!!!

You can try this solution only if you don't find a sap-note.

Ciao