Application Development 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: 

Layout displaying the wrong qty...

former_member623843
Participant
0 Kudos

HI all,

I have developed SAP Script for delivery. In that one field QTY-SHIP (LIPS-LFIMG) displaying 1st time wrong value but if I try for second time it was showing correct value. May I know what is the reason behind thisu2026?

Can any body please tell me reason..

6 REPLIES 6

Former Member
0 Kudos

Hi,

Clear the variables and the workareas while looping the internal tables.

the field might be capturing the wrong values because of not clearing or refreshing.

thanks

karan

former_member623843
Participant
0 Kudos

Hi ,

When i give print for 1st time iam getting wrong value..

when i give Re-print then iam getting the correct value..

what is the problem.. Can any body..

0 Kudos

try by using refresh ur bdcdata.,

if ur code is small can u paste it here.

0 Kudos

Sorry very big code.

Here by using VL03N iam running thisprogram.

Former Member
0 Kudos

Hi,

May be for the first time your variable might carry the older values.

before giving print command i.e. before select statement refresh your internal table or work area.

this might solve your problem.

Rajesh Kumar

former_member623843
Participant
0 Kudos

Thanks to all