2011 May 05 5:39 AM
Hi Experts,
i have added a maintenace view to the view cluster which has 5 fields out of which 4 fields are of character type and the 5th field is 'split-percentage' with type 'DEC' with length 6 decilmals 2.
In the view cluster i maintained entries and i have given for eg. ( 123,22) for split percentage .
i wrote an event in the the view cluser whichh upon saving a form routine is triggered . i have used the standard routine ' vcl_set_table_access_for_obj ' for getting the maintenance view data in the table <vcl_total>. All the entries in the maintaince view are getting populted correctly in the table <vcl_total> except the field split precentage. it is getting populted in some unrecognizable format (l like chinese characters) .
short summary of the problem:
for ex: in the maintenae view of view cluster i have maintained the entries like
vgroup prim_vend part_vend split_percentage
g1 12000 14500 123,22
upon saving it the form routine gets trigggered ( because i have used Events in view cluster) . collected the data in the table <vcl_total> of type any table .
in this table the data is appearing in ths following way.
200 g1 12000 14500 &^%(some special characters)
Kindly help me in solving this issue.
Best Regards,
Ravi.
Hi Experts,
i have added a maintenace view to the view cluster which has 5 fields out of which 4 fields are of character type and the 5th field is 'split-percentage' with type 'DEC' with length 6 decilmals 2.
In the view cluster i maintained entries and i have given for eg. ( 123,22) for split percentage .
i wrote an event in the the view cluser whichh upon saving a form routine is triggered . i have used the standard routine ' vcl_set_table_access_for_obj ' for getting the maintenance view data in the table <vcl_total>. All the entries in the maintaince view are getting populted correctly in the table <vcl_total> except the field split precentage. it is getting populted in some unrecognizable format (l like chinese characters) .
short summary of the problem:
for ex: in the maintenae view of view cluster i have maintained the entries like
vgroup prim_vend part_vend split_percentage
g1 12000 14500 123,22
upon saving it the form routine gets trigggered ( because i have used Events in view cluster) . collected the data in the table <vcl_total> of type any table .
in this table the data is appearing in ths following way.
200 g1 12000 14500 &^%(some special characters)
Kindly help me in solving this issue.
Best Regards,
Ravi.
2011 May 06 2:38 PM
this is because the structure is mapped without any conversion
if you convert it back you should retrieve the original value
as you know which is the table name you do not need to use a generic (flat) structure in the routine linked to your event
so you can convert it back to a fully typed structure before you handle the values
2011 May 09 6:27 AM
Hi François Henrotte ,
Thanks a lot for your valuable input. This solved my probelm.
Cheers,
Ravi.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |