‎2008 Jun 13 7:21 AM
Hi Team,
I am working in one Upgrade project, in this one of the activity is I need to clear the EPC errors. While clearing the error I am facing following errors, tell me how to clear the errors.
Itu2019s very urgent.
Error :1
Use addition CURRENCY when outputting <FS_RECORD>-V_EXBAS
Use auxiliary field when outputting with MESSAGE
Use addition CURRENCY when outputting WA_RECORD-V_EXBAS
Use auxiliary field when outputting with MESSAGE
Use addition UNIT when outputting WA_RECORD-LGMNG
Use auxiliary field when outputting with MESSAGE
But in output no need to display the currency reference field, and also no hexadecimal code to comment this error.
Error :2
Table UT_SOURCE[] and its header line ,Field string UT_SOURCE is not referenced statically in the program.
The above error is coming in FORM/PERFORM.
Error :3
Syntax check warning
This warning is only displayed in SLIN.
where matnr = wa_record-v_matnr.
^
Messages:
In "SELECT SINGLE ...", the WHERE condition for the key field "SPRAS" does not test
for equality. Therefore, the single record you are searching for may not be
unique.
To clear this error i used SELECT...UP TO 1 ROWS ,but in this we need to use ENDSELCT and it will create performance issue ,if its used inside LOOP ENDLOOP and also outside the LOOP.
Error :4
Syntax check warning
This warning is only displayed in SLIN.
gjahr = ibkpf-gjahr ebeln = <wa_likp>-vgbel ebelp = <wa_likp>-vgpos.
^
Messages:
Assigning to "EBELP" may result in data loss. transported.
Give me any idea to clear the errors. Its very urgent.
Regards,
Ram.
‎2008 Jun 13 7:29 AM
Hi Raja Ram,
Error :1
use : WRITE : ITAB-FIELD to ITAB-FIELD CURRENCY 'USD'
IT doesnt mean that currency will be displayed in output but the amount format will be in USD format
Error 2 :
as the error says UT_SOURCE is not used in the program, u can delete that declaration
Error 3 :
use matnr = wa_record-v_matnr AND
SPRAS = SY-LANGU
if it suits the requirement
Error 4 :
try this
FIELD-SYMBOLS : <VALUE> TYPE ANY.
ASSIGN COMPONENT 'VGBEL' OF STRUCTURE <WA_LIKP> TO <VALUE>.
EBELN = <VALUE>.
‎2008 Jun 13 8:05 AM
Hi Chandrasekhar,
Thankx for ur quick reply.
In Error # 2 ,
The internal table UT_SOURCE is used in program ,so i cont deleted that.
its used in ,
form fill_sourcefiles tables ut_source type txw_vdt_sourcefile_t.
data: ls_source like line of ut_source.
In this point i am getting error like,
Table UT_SOURCE[] and its header line ,Field string UT_SOURCE is not referenced statically in the program.
How to clear this error.
One more error i am facing ,
Field string VBFA is not referenced statically in the program
but it is used in one query .how to clear this error and also i am not able comment with Psedo comment .
Its urgent.
Regards,
Ram.
‎2008 Jun 13 8:12 AM
hi
form fill_sourcefiles tables ut_source type txw_vdt_sourcefile_t.
data: ls_source like line of ut_source.isted of ut_source use ls_sourse directly.
‎2011 Jun 16 10:41 AM