‎2008 Jul 03 7:29 AM
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
‎2008 Jul 03 7:50 AM
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
‎2008 Jul 03 7:36 AM
Hi,
This seems to be form problem. Check printing form where tax amount is wriiten.
Reward pts if usefull.
Regards,
Dhan
‎2008 Jul 03 7:50 AM
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