2009 Feb 02 7:37 AM
hi friends,
i got this error, when i write this:
data: pt_req type hrobject,
p_hrobject_list type rcf_t_hrobject.
pt_req = pt_hrobject_list.
ho can i do that?
thanks.
dana.
2009 Feb 02 7:42 AM
Hi,
Use the following Code will Solve out your Problem,
data: pt_req type hrobject,
p_hrobject_list type HROBJECT.
pt_req = p_hrobject_list.
Or the following,
data: pt_req type hrobject,
p_hrobject_list type LINE OF rcf_t_hrobject." HROBJECT.
pt_req = p_hrobject_list.
Please Reply if any Else Issue.
Kind Regards,
Faisal
Edited by: Faisal Altaf on Feb 2, 2009 12:44 PM
2009 Feb 02 7:40 AM
Hi Dana,
The type for both the variables which you are equating should be same.
i think the type is not same and thats y u r getting an error.
Thanks.
2009 Feb 02 7:42 AM
Hi,
Use the following Code will Solve out your Problem,
data: pt_req type hrobject,
p_hrobject_list type HROBJECT.
pt_req = p_hrobject_list.
Or the following,
data: pt_req type hrobject,
p_hrobject_list type LINE OF rcf_t_hrobject." HROBJECT.
pt_req = p_hrobject_list.
Please Reply if any Else Issue.
Kind Regards,
Faisal
Edited by: Faisal Altaf on Feb 2, 2009 12:44 PM
2009 Feb 02 8:03 AM
thank you for replying.
no, its not working.
pt_hrobject_list is a sap variable, and i cant change it.
i want to "play" with his data, and that why i need to
give the data to pt_req.
pt_hrobject_list declare as rcf_t_hrobject
and i dont know how can i give the same values to pt_hrobject.
thanks,
dana.
2009 Feb 02 8:08 AM
Hi,
Test the folloing Hope this time it will work.
DATA: pt_req TYPE hrobject,
pt_hrobject_list TYPE LINE OF rcf_t_hrobject." HROBJECT.
pt_req = pt_hrobject_list .
Or Please Send you Complete Code.
Please Reply if problem is still there.
Kind Regards,
Faisal
Edited by: Faisal Altaf on Feb 2, 2009 1:09 PM
2009 Feb 02 8:13 AM