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

Write statement for weights

Former Member
0 Likes
543

Hi,

I am trying to display output using write statement for weights. This is my code:

WRITE: /05 TEXT-019. " Gross Wt

WRITE: 55 WA_MARA-BRGEW UNIT WA_MARA-GEWEI,

76 WA_MARA-GEWEI.

What am I doing wrong? The output does not show any values even though brgew has value 0.259. Please suggest. Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
475

hi,

Try the below code .... Remove UNIT WA_MARA-GEWEI from write and now see ...


WRITE: /05 TEXT-019. " Gross Wt
WRITE: 55 WA_MARA-BRGEW ,
76 WA_MARA-GEWEI.

2 REPLIES 2
Read only

Former Member
0 Likes
475

the TEXT-019 value is over writing ...the other value..

try like this..

data:v_test(40) type c .

v_test = text-009.

WRITE: /05 v_test. " Gross Wt

WRITE: 55 WA_MARA-BRGEW UNIT WA_MARA-GEWEI,

76 WA_MARA-GEWEI.

Read only

Former Member
0 Likes
476

hi,

Try the below code .... Remove UNIT WA_MARA-GEWEI from write and now see ...


WRITE: /05 TEXT-019. " Gross Wt
WRITE: 55 WA_MARA-BRGEW ,
76 WA_MARA-GEWEI.