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

Getting exception XFELD_WRONG

Former Member
0 Likes
660

HI Experts,

I am using FM L_TO_CANCEL with all the important parameters. But I am getting the XFELD_WRONG exception in my program. But when I try in SE37 the TO was cancelled successfully.

Do you have any suggestion to avoid this exception?

Thank you in advance,

Lyssa

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
606

Dear Lyssa,

In the Program, please check the values you are passing.

I believe somewhere you are passing wrong value (may be a check field)

Especially 1 character field, it should be " " (space) or "X" (capital X).

Regards

Sajid

4 REPLIES 4
Read only

Former Member
0 Likes
607

Dear Lyssa,

In the Program, please check the values you are passing.

I believe somewhere you are passing wrong value (may be a check field)

Especially 1 character field, it should be " " (space) or "X" (capital X).

Regards

Sajid

Read only

0 Likes
606

Thank you Sajid for your advice. I accidentally used 'x' for commit work insted of using abap_true to be sure that 'X' is pass to the parameter.

Read only

aferngas
Active Participant
0 Likes
606

Hi Lyssa,

This exception it raised when one parameter which must be filled with a "X" has been filled with another character.

You should place a break-point inside of IF of "XFELD_PRUEFEN" form (include LL03BF02). Run the program and investigate which PERFORM call is raising the error using the call stack view of debugger.

Regards,

Alex

Read only

Former Member
0 Likes
606

Thank you very much Alex for this information. I will make sure to check the parameters being passed to the FM.