cancel
Showing results for 
Search instead for 
Did you mean: 

Error in pdf form

Former Member
0 Kudos

Hello all,

I have problem with my pdf form. When i'm testing my form arise some error:

The following syntax error was found in the program /1BCDWB/SAPLSM00000267 :

"Field "MSEG-MEINS" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. ."

"MSEG-MEINS" i don't use in the form, and use "Meins" in import structure.

276 * Now call the generated function module
>>>>   CALL FUNCTION gv_fm_name
 278     EXPORTING
 279       /1bcdwb/docparams = gs_docparams
 280       it_body             = l_pos       
 281       is_header         = l_hd        
 282     EXCEPTIONS
 283       OTHERS            = 1.
 284   IF sy-subrc <> 0.
 285 *      MESSAGE e021.
 286   ENDIF.
 287 *  ENDLOOP.
 288 *>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 289 * Close spool job
 290   CHECK sy-subrc = 0.
 291   CALL FUNCTION 'FP_JOB_CLOSE'.
 292

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thx all, problem is solved

alex_cook
Active Participant
0 Kudos

Howdy,

You'll probably find there is a quantity field in one of the structures that uses MSEG-MEINS as its reference field.

Cheers

Alex

andrs_sarcevic
Contributor
0 Kudos

You'll probably find there is a quantity field in one of the structures that uses MSEG-MEINS as its reference field.

Alex, that was exactly the problem I had, but in my case was much easier the approach I took rather than change the standard dictionary structure.

Cheers.

andrs_sarcevic
Contributor
0 Kudos

Hi Artem,

Are you using a standard PDF Form or Z copy from standard? I had the same issue but with another field. Here's a quick solution that worked for me:

In your Z interface, define at the end a new OPTIONAL parameter type MSEG. Activate and execute it.

Cheers.