Skip to Content
avatar image
Former Member

Source code of Fm in Adobe form

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 13, 2010 at 09:47 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Jul 12, 2010 at 10:58 PM

    If you look at the interface of the form, the system field / system structure is automatically inserted I guess Import parameters

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      I solved it by myself by removing the loop condition in the context whihc inturns does not assign the return value to SFPSY-SUBRC.

      Thank you all for the patience

      Sandeep