Using FM with CHARxx Parameters in a Method

Michael Pokraka workflow at quirky.me.uk
Mon Mar 10 04:34:34 EST 2003


Hi Thad,
Find a similar (preferrably related) table field of similar size and use
that to declare your method parameter ... or am I misunderstanding
this?
Cheers
Mike
 
On Fri, Mar 07, 2003 at 12:04:47PM -0500, Thad Gorbal wrote:
> Hi All:
>
> I am implementing a function module to a method under ZVBRK.  Unfortunately
> that FM has several parameters defined as TYPE  'CHARxx'   (where xx stands
> for a number of characters).  Those parameters are for passing back
> literals, needed for my PC document creation step.
>
> When I attempt to create a method, I get an error message 'Data type CHARxx
> cannot be used for methods'.
>
> I am not sure how to best approach it. One way would be to create a custom
> structure with all the necessary fields, as far as length is concern.  And
> then use it for the function parameters as a references.
>
> However, I would hope there is a better and quicker way to tackle this one.
>
> Thanks in advance for your advice.
>
> Best regards,
> Thad
 


More information about the SAP-WUG mailing list