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: 

Sap Script Problem

Former Member
0 Kudos

Hi All,

I have a Sapscript program, in it, when i displaying its output, it shows 1 problem.

I insert MRP amount in main window..it coming right but when there is not MRP amount in between line items, it also show same as previous line item MRP amount..

For example:---

Sl. Mat........MRP Amount.....Unit

1....ABC....not MRP amount.....6

2....ASD.......500.00.................8

3....XYZ......not MRP amount....9 (But showing MRP value 500.00 for this line item also)..

4....AAA.......800.00.................3

I want that here must not show MRP value...

Plz explain....

6 REPLIES 6

Former Member
0 Kudos

Hi,

In ur driver program before fetching value for MRP Amt u clear and refresh variable what u have used.

Or uf u are modifying the internal table see ur select statement.

I think problem is there only. Modify line item wise. May be the loop statement is not properly modifing the vale.

Reward if helpfull.

Regards

Srimanta

0 Kudos

Hi,

In my driver program, i insert this code..

CLEAR ITAB9-KWERT23.

WHEN 'ZMRP'.

MOVE ITAB_KONV-CONVAL TO ITAB9-KWERT23.

But, after that it clear all MRP amount from all line items..

Now, what can i do...

Former Member
0 Kudos

Hi,

1.Write a condition like:

if mrp-field is not initial.

print.

endif.

2.Refresh the mrp field in the loop.

Regards,

Shiva.

GauthamV
Active Contributor
0 Kudos

hi,

whn u r pasing data inside the loop in ur final internal table

clear the workarea or internal table tht u r using.

generally thse cases hapen only if we dont clear internal table only.

reward points if hlpful.

Former Member
0 Kudos

You go to the form for that field of MRP you initilize so that it wion't show the value.

Regards,

Madan.

Former Member
0 Kudos

Hi all,

MY PROBLEM IS NOT SOLVE...

Plz tell anybody....