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: 

Sapscripts

Former Member
0 Kudos

Hi all,

How can I download a script on to the local presentation server ?

I a working with the modified version of standard program sapfm06p. Here I cannot understand how the data is transfered from program to the script. Suppose If I want to do some modifications like add 5% surcharge to the item price to the item data in the program I do not understand in which include they have been dealt. I have been trying the same for two days but I couldn't get any info from debugging. Is there any specific manner to find out which include deals what ?

Regards,

Varun.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

To answer your question about which include to modify, I believe that you will want to modify include LMEDRUCKF18, this is the include which holds the forms for PRINT_ITEM_PO. We have modified this at my company.

REgards,

Rich Heilman

6 REPLIES 6

Former Member
0 Kudos

Got to SE38 program RSTXSCRP. This helps to download Script on presentation server. Choose FORM radio button. Give mode as EXPORT. Give Layout set name in Object name.

Give File name with path to Dataset name and execute.

Message was edited by: Ashish Gundawar

Former Member
0 Kudos

check in which window does this field gets displayed on the screen. go to the window & check the field which is been used. Now, using this field check in program where it is been populated & how the window is called. U will find the window called & also the field been populated. This will be the include which needs to be modified in ur case.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

To answer your question about which include to modify, I believe that you will want to modify include LMEDRUCKF18, this is the include which holds the forms for PRINT_ITEM_PO. We have modified this at my company.

REgards,

Rich Heilman

0 Kudos

Hi Rich,

You have provided me with the right include. Its fine but what I want to know is in which include the data is getting populated into fileds or tables. I see a lot of select statements but they all populate data into some inernal tables but for displaying data in the script editor everything is in sap standard tables. Can yo clarify me on this.

Regards,

Varun.

0 Kudos

Hi varun,

check the Function modules ME_PRINT_PO & ME_READ_PO_FOR_PRINTING ..the latter reads the data from database n the former uses them to print it. ME_PRINT_PO conatins a lot of subroutines which u need to go through to understand better how this code works.

Hope it helps,

Regards,

Bikash

Former Member
0 Kudos

Hi Varun,

Just activate the debugger of the script & check what is the element where the item details are getting printed.You can activate by doing..<b>Utilitles--->Activate Debugger.</b>,then try to do F5 & see the flow of the program,then see the element which is triggering the item details & then go to the program & see where this element is accessed & do the required changes.