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

Calculated values not printing .

Former Member
0 Likes
471

Dear SAP expert,

When we created PO ( Scheduling Agreement ) for certain stationary items, the system calculates the taxes correctly, the calculated values are not printed in the PO document. And system showing zero against tax condition in printout.

Where should i check for the same?

Best Regards,

Venu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
430

HI,

Please enable the script debugger and find what values is being passed to that field.

TO Enable the debugger

go to SE71 -- > Enter Form Name --> Utilities --> Activate Debugger

if the correct value is not passed just call a subroutine from the script

and populate the value .

Sample Code To be written in script:

Perform <Subroutine Name> in <Program Name>

Using VAR1

Changing VAR2

EndPerform.

Sample Code in Program.

FORM <Subroutine name> TABLES INPUT STRUCTURE ITCSY

OUTPUT STRUCTURE ITCSY.

READ TABLE INPUT WITH KEY 'VAR1'.

VALUE1 = INPUT-VALUE.

SELECT var2 INTO var2 FROM <table> WHERE condition.

ENDSELECT.

READ TABLE OUTPUT INDEX 1.

MOVE var2 TO OUTPUT-VALUE.

SHIFT OUTPUT-VALUE LEFT DELETING LEADING SPACE.

MODIFY OUTPUT INDEX 1.

Regards

VIjay

Edited by: Vijay on Jul 3, 2008 8:51 AM

2 REPLIES 2
Read only

Former Member
0 Likes
430

Hi,

This seems to be form problem. Check printing form where tax amount is wriiten.

Reward pts if usefull.

Regards,

Dhan

Read only

Former Member
0 Likes
431

HI,

Please enable the script debugger and find what values is being passed to that field.

TO Enable the debugger

go to SE71 -- > Enter Form Name --> Utilities --> Activate Debugger

if the correct value is not passed just call a subroutine from the script

and populate the value .

Sample Code To be written in script:

Perform <Subroutine Name> in <Program Name>

Using VAR1

Changing VAR2

EndPerform.

Sample Code in Program.

FORM <Subroutine name> TABLES INPUT STRUCTURE ITCSY

OUTPUT STRUCTURE ITCSY.

READ TABLE INPUT WITH KEY 'VAR1'.

VALUE1 = INPUT-VALUE.

SELECT var2 INTO var2 FROM <table> WHERE condition.

ENDSELECT.

READ TABLE OUTPUT INDEX 1.

MOVE var2 TO OUTPUT-VALUE.

SHIFT OUTPUT-VALUE LEFT DELETING LEADING SPACE.

MODIFY OUTPUT INDEX 1.

Regards

VIjay

Edited by: Vijay on Jul 3, 2008 8:51 AM