Skip to Content
author's profile photo Former Member
Former Member

help in metod

hallow

i use this metod for some infotype(0000,0008....) but when i have in some infotype with field that empty and type decimal i get 202.00 20002.000 .... insted of empty field

why?

FIELD-SYMBOLS: <ls_pnnnn> TYPE ANY.

CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn

EXPORTING

prelp = ls_prelp

IMPORTING

pnnnn = <ls_pnnnn>.

regards

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 12:46 PM

    Hello

    before call method assign field symbol for infotype you are using then you may get proper data

    for ex if ur using it-0008

    then use

    assign ((MP000800)P0008) to <ls_pnnnn>.

    similarly for other Infotypes.

    before call method check if <ls_pnnnn>. assigned. else may give dump if not assigned

    reward if helpful

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.