cancel
Showing results for 
Search instead for 
Did you mean: 

Dump in transction FD02 - Syntax error.

Former Member
0 Kudos

In transction FD02 i got a dump Syntax error.

I tried to apply this note " 1571237", that corresponds to my problem note but sap says is not applicable.

1 FUNCTION cmd_enqueue_exkna1.
 2 *"-----------------------------------------------------------------
 3 *"*"Lokale Schnittstelle:
 4 *"  IMPORTING
 5 *"     VALUE(MODE_KNA1) TYPE  ENQMODE DEFAULT 'E'
 6 *"     VALUE(MANDT) TYPE  KNA1-MANDT DEFAULT SY-MANDT
 7 *"     VALUE(KUNNR) TYPE  KNA1-KUNNR OPTIONAL
 8 *"     VALUE(X_KUNNR) DEFAULT SPACE
 9 *"     VALUE(_SCOPE) DEFAULT '2'
10 *"     VALUE(_WAIT) DEFAULT SPACE
11 *"     VALUE(_COLLECT) TYPE  DDENQCOLL DEFAULT ' '
12 *"  EXCEPTIONS
13 *"      FOREIGN_LOCK
14 *"      SYSTEM_FAILURE
15 *"-----------------------------------------------------------------
16
17   DATA: lv_msgtext(72),
18          ls_bapiret2      TYPE bapiret2,
19          lv_user          TYPE symsgv,
20          ls_syst          TYPE syst,
21          ls_error         TYPE cvis_message,
22          lv_in_lock_table TYPE boolean,
23          lb_badi_lock     TYPE REF TO cmd_additional_locks.
24
25
26 * Initialize exporting parameter
27   CLEAR:
28     ls_error.
29
30 * Check internal table gt_lock_kunnr whether KUNNR is locked
>>>>>   CALL METHOD cmd_ei_api=>get_lock
32     EXPORTING
33       iv_kunnr         = kunnr
34     IMPORTING
35       ev_in_lock_table = lv_in_lock_table.
36
37 * KUNNR is locked already, back to caller
38   IF lv_in_lock_table = 'X'.
39     RETURN.
40   ENDIF.
41
   42 * KUNNR is not locked, try to lock......
   43   CALL FUNCTION 'ENQUEUE_EXKNA1'
   44     EXPORTING
   45       mode_kna1      = mode_kna1
   46       mandt          = mandt
   47       kunnr          = kunnr
   48       x_kunnr        = x_kunnr
   49       _scope         = _scope
   50       _wait          = _wait

My system is a ECC 6.0 kernel 720 patch90.

Component SAP_APPL is 605 patch 5.

Anyone have seen this issue or know how to fix ?

Thank you in advance

Edited by: telmodom on Oct 26, 2011 2:41 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

You couldn't apply this note because the corrections delivered via this note have already been delivered by SAP_APPL 605 patch 05 and your system already has 605 patch 05.

BTW, kernel 100 is available for download, if you are not able to find out any other reason for this syntax error then kernel update can also be tried.

Thanks

Former Member
0 Kudos

Hello.

Kernel update made but no results :(.

Any more ideas ?

Tks

marcin_cholewczuk
Active Contributor
0 Kudos

Hi,

What kind of syntax error you get? Maybe this class is not active?

BR

Marcin Cholewczuk

Former Member
0 Kudos

I found the cause for this issue...

The class " CMD_EI_API" is active but when i trie do activate it again just says that the class " CMD_EI_API has syntax erros ".

Now how can I fix this class ?

Thank you

marcin_cholewczuk
Active Contributor
0 Kudos

Hi,

"Syntax error" is not detailed enough. Try to check it with extended check. You should get a list of errors. Maybe for some reason some class objects are not present in system, but this is only my guess.

BR

Marcin Cholewczuk

Former Member
0 Kudos

I tried to do that but without sucess. The list of erros was empty.

I will try to work arround . If i got sucess i will reply this post to tell the solution.

Regards.