12-07-2005 7:24 AM
Hi all,
I want to copy an existing plant-specific inforecord from plant A to plant B using call transaction method.
But an error occurs when I fill in the plant A's planned delivery time to that of plant B,
Error:
EINE-APLFZ input value is longer than screen field.
I just retrieve plant A's data into internal table (ITAB-APLFZ) and fill it for batch input, what's wrong / meaning for the above error?
Thanks
12-07-2005 7:43 AM
Hi. Macy.
EINE-APLFZ is DEC field.
Maybe, I think you defined ITAB-APLFZ field with DEC.
But, screen field is character format.
so, you must converted APLFZ field value to character.
ex:
data : w_aaa(3) type n.
move ITAB-APLFZ to w_aaa.
move w_aaa TO bdcdata-fval.
Good Luck..
12-07-2005 7:27 AM
Hi Macy,
There is no problem in copying data inside ur internal table but c to that u give the appropriate size of the field that u have declared inside ur program.
EINE-APLFZ may exceeed the size.
Hope this helps u,
Regards,
Nagarajan.
12-07-2005 7:40 AM
Hi,
I don't quite understand. which field size should I consider? How to check ?
the internal table ITAB just has APLFZ like EINE-APLFZ.
Thanks.
12-07-2005 7:43 AM
Hi. Macy.
EINE-APLFZ is DEC field.
Maybe, I think you defined ITAB-APLFZ field with DEC.
But, screen field is character format.
so, you must converted APLFZ field value to character.
ex:
data : w_aaa(3) type n.
move ITAB-APLFZ to w_aaa.
move w_aaa TO bdcdata-fval.
Good Luck..
12-07-2005 7:44 AM
Hi Macy!
With batch input you convert normally your fields with 'write' before appending your batch tables. Then you can get a space (for a not needed sign) at the end -> number output format is longer than 3. Try to use a shift left and itab-aplzf(3) or something similar.
Or just run once in display mode, than you should easily discover conversion problems.
Regards,
Christian