cancel
Showing results for 
Search instead for 
Did you mean: 

Source code of Fm in Adobe form

Former Member
0 Kudos

Hi All,

Can anyone tell me where to look for the source code of the FM generated by Adobe form?

Though my interface and form are active, it gives a short dump saying "The following syntax error occurred in program "/1BCDWB/SAPLSM00000002 " in

include "/1BCDWB/LSM00000002F01 " in

line 696:

The field "SFPSY" is unknown, but there is a field with the similar name "SFSY". ."

I am not using any system fields in my form.

Thanks,

Sandeep

View Entire Topic
OttoGold
Active Contributor
0 Kudos

Weird message does not mean you need to correct what it is saying. In my opinion you should carefully read all the elements used in the form and think about what could cause the problem. Should be something like weird type in used data structure or something like that. Otto

p.s.: you can find the function module, but you MUST NOT change it in any way. It is SAP-generated code based on the interface and context.

Former Member
0 Kudos

Hello Otto,

In order to simplify the problem, I have removed all the fields from the layout except one field. This field is for sales order number.

Then I have activated the form and tried printing it.Still I get the sam error.

Why does SAP generates FM module source code with syntax errors?

In the source code of the FM it is assigning return code value to SFPSY-SUBRC whereas in reality the interface has SFSY-SUBRC.

Is there anything I am missing?

Thanks,

Sandeep