Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to use a write statement?

0 Likes
723

Hi,

There is write statement which moves a quantity field(l_lips-brgew) to (l_lin-kcbrgew).

Here l_lips-brgew is of type lips-brgew & l_lin-kcbrgew is defined as kcbrgew(13).

There is two delivery documents which triggers same Message Type and calls the same form(ZFORM).

For First Document: l_lips-brgew -> 1678.40 && After using 'write l_lips-brgew to l_lin-kcbrgew UNIT 'ST' '

l_lin-kcbrgew contains 1,678.40

For Second Document: l_lips-brgew -> 1678.40 && After using 'write l_lips-brgew to l_lin-kcbrgew UNIT 'ST' '

l_lin-kcbrgew contains 1.678,40

This is the Issue i am getting. How this can be possible behaving in different way for same Message Type triggering same form.

If there is any problem with the User's own data then it should behave same for both the documents. But it's not happening.

Move statement cannot do this because it copies as it is to the target variable from the source variable.

Is there any issue with the write statement?

4 REPLIES 4
Read only

roberto_vacca2
Active Contributor
0 Likes
676

Hi...

It seems to me there's something to know better at functional level .. The UNIT seems to divide for 1000 and for 1... So probably, there's something defined on the document, about stock quantity or like that..

Read only

roberto_vacca2
Active Contributor
0 Likes
676

Try to make a comparison field to field in the lips with the documents you're working on...

Read only

Former Member
0 Likes
676

If this is in custom code, just include statement SET COUNTRY 'US' in the first line of the form and everything will get normalized and the output will always be the same.

Raj

Read only

0 Likes
676

Hi,

Sorry i could not under stand your statement. Can you elaborate it.

Thanks.