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

syntax error in program - update failed in MIRO

Former Member
0 Likes
720

Hi All,

I was trying to post invoice in MIRO in sandbox. When I tried posting the document i get an update failure message.

There is a corresponding dump - syntax error. the error is as follows:

The following syntax was found in the program SAPLZGFI_MRM_ENTRY_RAP. " The field "GT_RSEG" is unknown, but there is a field with the similar name "T_RSEG".

I am a Basis admin and I am not much aware of ABAP Development. So please let me know what I could do to remove this. I can try the solution as htis is sandbox.

Thanks and REgards,

Raghavan

2 REPLIES 2
Read only

vinod_vemuru2
Active Contributor
0 Likes
517

Hi,

This error looks like in some Z-object (Might be a Z-function module called in user exit/enhancement spot). Go to the source code of the syntax error and see. Since its a sandbox system, someone might have experimented something. You can ask the ABAPer to deactivate that piece of code.

Thanks,

Vinod.

Read only

Former Member
0 Likes
517

Hello Raghavan,

"GT_RSEG" and "T_RSEG" will be treated as two different internal tables. If "GT_RSEG" is not declared but still used in the program then program will throw syntax error as given by you.

Please check if "GT_RSEG" is declared as an internal table in the program SAPLZGFI_MRM_ENTRY_RAP (Use find to check whether it is declared or not). If not then someone might be trying to use this internal table in some customer exit (i.e. Z function module). You can either declare it in data declaration just like "T_RSEG" or change it to "T_RSEG" (maybe the ABAPer who is doing some changes in Z function module might have written the internal table name as "GT_RSEG" by mistake instead of "T_RSEG").

Safe side declare another internal table as "GT_RSEG" in the program as below:


Data: gt_rseg type standard table of <table_name>.

Or-Maybe you can contact that ABAPer by checking the version management of the program where error is coming (you can come to know the place of error through short dump ST22 transaction code) and inform him/her about the error. In this way, he/she will change the code accordingly.

Hope this is helfpul!

Regards,

Saba

Edited by: Saba Sayed on Feb 13, 2011 12:56 AM