‎2011 Oct 12 7:33 PM
hello guys,
when user runs Convert Data step,the LSMW goes to DUMP.
the dump has program /1CADMC/SAP_LSMW_CONV
i opened the program from se38..
the syntax error is due to a field not declared.
1)do we directly change this program?
2)how can one know the generated program name of any LSMW
3)in another such program we have error on this line
End of transaction
IF fg_skip_rec EQ 'X'.
*write errors file - header
TRANSFER poheader TO skip_file_head.
the error is with transfer statment,saying poheader has non C fields ..
in decalration of poheader their is field of type i
poheader is the source structure of this LSMW
but the generated program has an extra field apart from fields in source structure.
how to correct this error.
‎2011 Oct 13 3:30 AM
hello guys,
>
> when user runs Convert Data step,the LSMW goes to DUMP.
> the dump has program /1CADMC/SAP_LSMW_CONV
> i opened the program from se38..
> the syntax error is due to a field not declared.
> 1)do we directly change this program?
>
> 2)how can one know the generated program name of any LSMW
Prabhu>execute the step:convert data: from that selection screen>system>status>program.
> 3)in another such program we have error on this line
> * End of transaction
> IF fg_skip_rec EQ 'X'.
>
> *write errors file - header
> TRANSFER poheader TO skip_file_head.
Prabhu-->you need to do the sytax check in step:Mapping and conversion rule , there itself , you will get the syytax errors if any
> the error is with transfer statment,saying poheader has non C fields ..
> in decalration of poheader their is field of type i
>
> poheader is the source structure of this LSMW
> but the generated program has an extra field apart from fields in source structure.
>
> how to correct this error.
‎2011 Oct 12 8:21 PM
Never change the generated program directly. You can look at the generated code and find out the program name via LSMW step "display conversion program", you might have to add this step to your personal menu.
Almost always, such syntax errors are caused by additional, custom declarations and coding inside the mapping rules. Investigate these and change as needed to avoid the syntax errors. Speak to the creator of the mapping rules if in doubt.
Thomas
‎2011 Oct 13 3:30 AM
hello guys,
>
> when user runs Convert Data step,the LSMW goes to DUMP.
> the dump has program /1CADMC/SAP_LSMW_CONV
> i opened the program from se38..
> the syntax error is due to a field not declared.
> 1)do we directly change this program?
>
> 2)how can one know the generated program name of any LSMW
Prabhu>execute the step:convert data: from that selection screen>system>status>program.
> 3)in another such program we have error on this line
> * End of transaction
> IF fg_skip_rec EQ 'X'.
>
> *write errors file - header
> TRANSFER poheader TO skip_file_head.
Prabhu-->you need to do the sytax check in step:Mapping and conversion rule , there itself , you will get the syytax errors if any
> the error is with transfer statment,saying poheader has non C fields ..
> in decalration of poheader their is field of type i
>
> poheader is the source structure of this LSMW
> but the generated program has an extra field apart from fields in source structure.
>
> how to correct this error.
‎2011 Oct 14 9:12 PM
thank you,
I could now solve the errors succesfully.
thanks to thomas too.
Edited by: kumar gaurav on Oct 14, 2011 10:13 PM
‎2011 Oct 13 3:50 AM
Hi Kumar,
when user runs Convert Data step,the LSMW goes to DUMP.
the dump has program /1CADMC/SAP_LSMW_CONV
i opened the program from se38..
the syntax error is due to a field not declared.
1)do we directly change this program?
NO
2)how can one know the generated program name of any LSMW
In your dump please check the program name.
3)in another such program we have error on this line
End of transaction
IF fg_skip_rec EQ 'X'.
Did you change anything manually.
*write errors file - header
TRANSFER poheader TO skip_file_head.
the error is with transfer statment,saying poheader has non C fields
in decalration of poheader their is field of type i
Please change that into c with specific length.
Regards
Madhu.
‎2011 Oct 13 7:10 AM
Hi Kumar,
it seems, you or somebody in your company has added a field to CI_EKKODB, which has not character format.
This may cause issues in
- LSMW
- BAPI
We had a similar problem in a BAPI this week, when a programmer added a field to CI_EKKODB. This caused many dumps by a unicode check, although we have no unicode system.
Best way is to replace the non characeter field with a character field.
In LSMW you have a workaround to remove the flag Unicode check active in the program attributes by a program, if you have no unicode system. But your PO BAPIs may still fail, too.
Regards,
Klaus