‎2006 Jun 01 7:08 AM
Hi All,
We are having a release strategy for PO.For that we have coded into the user exit EXIT_SAPLEBND_002.But in the case of Scheduling Agreement the code is getting a short Dump.
The Short Dump is attached below.
The Short Dump is generated at bold line.
Plz help.
Thx in Advance.
ShrtText Field symbol has not yet been assigned.
Whathappened?
Error in ABAP application program.
The current ABAP program "SAPLXM06" had to be terminated because one of the statements could not be executed.
This is probably due to an error in the ABAP program.
SourceCodeExtract
Line SourceCde
17|*>>>>Log06/05/2006
18|TABLES :komv.
21|DATA :l_name(50). 22|DATA: my_tkomv TYPE TABLE OF komv.
24|DATA : wa TYPE komv. |
25|DATA : effwr LIKE bekpo-effwr.
27|FIELD-SYMBOLS: <tkomv> TYPE table.
29|DATA ok_code TYPE sy-ucomm. 31|IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N' OR sy-tcode = 'ME31K' OR sy-tcode = 'ME32K' OR
32| sy-tcode = 'ME35L' OR sy-tcode = 'ME35K' OR sy-tcode = 'ME28N'.
34| CLEAR:effwr.
36| ok_code = sy-ucomm.
38| l_name = '(SAPLMEPO)TKOMV[]'.
39| ASSIGN (l_name) TO <tkomv>.
<b>my_tkomv[] = <tkomv>. </b>
42| e_cekko = i_cekko . |
44| LOOP AT my_tkomv INTO wa
45| effwr = effwr + wa-kwert. ENDLOOP.
48| e_cekko-usrn1 = effwr.
50|ENDIF. 51| 52|*<<<< Log 06/05/2006
‎2006 Jun 01 7:13 AM
You are trying to read a variable of a different program which is not being passed in the user exit.
38| l_name = '(SAPLMEPO)TKOMV[]'.
39| ASSIGN (l_name) TO <tkomv>.
my_tkomv[] = <tkomv>.
What you can do is to check for SY-SUBRC AFTER the ASSIGN statement. But if the ASSIGN fails the functionality that you are trying to achieve might not work.
Bottom line, (SAPLMEPO)TKOMV[] the table TKOMV is not in scope in the user exit.
Regards,
Ravi
Note :Please mark the helpful answers
‎2006 Jun 01 7:57 AM
Ravi,
I can check the SY-SUBRC after the ASSIGN statement.But my functionality will fail.
In case of PO the data are populated into TKOMV,can you please tell me the table at runtime of Scheduling Agreement which is populated with data that contain values of Scheduling Agreement.
Thanks in Advance.
Atrai.
‎2006 Jun 01 8:37 AM
Hi,
You will have to debug and find out which table is accessible in the user exit.
Regards,
Ravi