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: 

Editor in the Sap script

Former Member
0 Kudos

Hi All,

I am modifying a sap script.

when i open the PC editor in sap script (where i can find PERFORM statements), i dont find the page with signs " /: ".

Instead i am observing plane white screen with PERFORM statements.

what might be the reason for this..????

Pavan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

when the screen appears

from menu bar select

goto->change editor

4 REPLIES 4

Former Member
0 Kudos

Hi,

You have to WRITE PERFORM statements in the script explicitley for your requirement, when you wants to get some extra data displayed on your script output.

They are not predefined in script.

To calculate totals and sub totals in sap scripts you have to use subroutines.

Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine

/: DEFINE &TOT_PRICE&

/: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM

Then write the variable where ever you want it to be printed (mostly it will be in footer window)

Then create subroutine pool program and you have to write the code.

FORM F_GET_PRICE tables int_cond structure itcsy

outt_cond structure itcsy. data : value type kbert.

statics value1 type kbert.

Read int_cond table index 1.

value = int_cond-value.

value1 = value1 + value.

Read outt_cond table index 1.

outt_cond-value = value1.

Modify outt_cond index 1.

ENDFORM.

regards,

Anji

Former Member
0 Kudos

hi

when the screen appears

from menu bar select

goto->change editor

Former Member
0 Kudos

in menu goto-->change editor.

regards

shiba dutta

navin_khedikar2
Contributor
0 Kudos

hi

use path from menu bar select

goto->change editor

**Please reward suitable points***

With Regards

Navin Khedikar