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

Problem with Sapscript

Former Member
0 Likes
1,281

Hi Guys,

I am new to sapscripts, can anyone tell me how to do modifications in medruck, i mean how to customize that, and where should i do modification in driver prog.

thanks,

ramesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,110

Registered: 6/19/06

Re: Problem with Sapscript

Posted: Jul 11, 2006 8:53 AM Reply E-mail this post

Hello Ramesh,

First you will need to copy the form from SE71 to a newly created zform.

This can be done by going to utilities and then copy from client.

There give the original form name like medruk in your case and the new zform name and the source client same as the client in which you have logged on to.

now there will be a standard driver program attached to the original form , you can attach the same standard program to the newly created zform using nace or you can copy the driver program as well into zprogram and then attach it in nace.

The choice of going for a standard driver program or not depends on the no of modifications you need to do.

If there r only a few modifications do it in the new zform itself or else if there r many modifications do it in the new zprogram.

Please revert back if any further help is required.

If useful reward Points.

Rgerads

9 REPLIES 9
Read only

Former Member
0 Likes
1,110

Hello Ramesh,

First copy the form from SE71 to the Zform. If ur modification is small u can do in the form itself by using Perform in Program Statement.

If u want make more changes. Then write the driver program of ur own. Create an output type for that and atttach that in the Tcode Nace.

If useful reward Points.

Rgerads,

Vasanth

Read only

Former Member
0 Likes
1,110

first of all you should know what is your requirement. i mean what you want to do with MEDRUCK ? do you want to add more functionaliy or any other ?

if you want to add more functionality to the script, normally what we do is, copy the standard script to Z & do the modifications to that Z layout & assign that Z to the output type in NACE(transaction).

regards

Srikanth

Read only

0 Likes
1,110

hi,

i want to do more modifications, the entire layout is different. ok, wht abt driver program.

thanks,

ramesh

Read only

0 Likes
1,110

Hi Ramesh,

the layout appearance can be customised in SAPSCRIPT by copying the MEDRUCK form into a Y or Z form. from ur driver program ( Report SAPFM06P or Function group MEDRUCK ), u can modify the logic of the data or add additional information that is required by the customer.. For this, u need also to copy the standard program n Function group into a customised one and make the necessary amendments..

Read only

Former Member
0 Likes
1,110

Hi Ramesh,

its all Depends on your Requirement, what modifcations you are planning and accordingly you need to code and modify the form.

Regards

vijay

Read only

Former Member
0 Likes
1,111

Registered: 6/19/06

Re: Problem with Sapscript

Posted: Jul 11, 2006 8:53 AM Reply E-mail this post

Hello Ramesh,

First you will need to copy the form from SE71 to a newly created zform.

This can be done by going to utilities and then copy from client.

There give the original form name like medruk in your case and the new zform name and the source client same as the client in which you have logged on to.

now there will be a standard driver program attached to the original form , you can attach the same standard program to the newly created zform using nace or you can copy the driver program as well into zprogram and then attach it in nace.

The choice of going for a standard driver program or not depends on the no of modifications you need to do.

If there r only a few modifications do it in the new zform itself or else if there r many modifications do it in the new zprogram.

Please revert back if any further help is required.

If useful reward Points.

Rgerads

Read only

0 Likes
1,110

Sir,

as i am new to ABAP

i am struggling with the modification of the standard SAPSCRIPT MEDRUCK or assigning my own SAPSCRIPT in NACE to the PO output types.

i have seen your forum and acted accordingly

here are some problems that i am facing please help Sir

-


assigning my own SAPSCRIPT

-


1. it is showing OPEN FORM error for document 'so and so' on having the print preview.

-


copying the MEDRUCK SAPSCRIPT and Modifying

-


i would like to tell you that when i copied MEDRUCK SAPSCRIPT into a ZMEDRUCK, i am not able to add, delete any new elements there. i can edit or modify those which are reviously there but adding new window or repositioning the old windows is not possible

1. while copying the program SAPFM06P the language is german, how to change that as language option is not there

2. i also copied the include FM06PE02, now on saving its asking for a ENHANCEMENT POINT

3. i copied the Function Group MEDRUCK and function modules ME_READ_PO_FOR_PRINTING and ME_PRINT_PO but I am not able to find the place where i have to mention the new SAPSCRIPT name so that it would work.wher woul i'll get OPEN_FORM, WRITE_FORM, where i'll get to give my SAPSCRIPT name

4. is it sufficient to change the name of the SAPSCRIPT in the NACE output types FORM or we have to change this name internally also if we are changing our own created SAPSCRIPT

5. right now a field is displaying a material number, i have the req. of taking its description from a structure on a specific condition and display it there, this coding will be done at which place, function gruop or SAPSCRIPT.

i have to do certain format changes that is

REPOSITIONING of ADDRESS and other windows

upload the logo

and some field display modification

for this what you will advice

1. copy of MEDRUCK and modifying ... because if i am copying it into ZMEDRUCK and placing it in NACE it is working without CHANGING the program and function group... but all my motives are not done as i told u its optionless of new windows and repostioning option

2. if i am making a new script then i am clueless what all thing to be changed and the trubles i mentioned above

please guide Sir

i need it urgently

Read only

Former Member
0 Likes
1,110

Hi Ramesh,

I assume that you are working on Purchase order layout.

First you copy MEDRUCK SAPscript for to Z* form and make required changes.

You also required to change configuration in NACE transaction. Attach your Z* form to output type in NACE. Please refer standard output type NEU in NACE.

You can use standard program SAPFM06P or you can copy this program and assign it to output type/Sapscript form.

The above program calls FM ME_READ_PO_FOR_PRINTING to extract purchase order data and FM ME_PRINT_PO to print purchase order.

Regards,

Naren

Read only

Former Member
0 Likes
1,110

HI,

Goto SE71, there is an option in Utilities as COPY ffrom Source client (000). Copy the from MEDRUCK into a Zname form. The common changes would be inserting a logo, using Std text for Terms and Conditions, alignment of windows as per client requirement, get xtra data if client is asking for somethign more.

After copying the MEDRUCK to Z, then goto NACE t.code and give the output type as NEW, and select the Printoutput, then in T.code ME9F, you can execute the MEDRUCK and see the output ...

<i>If you want to modify the Driver Program</i>

The driver program is a module pool program SAPFM06P. There is a function module call inside this program under the 'ENTRY_NEU' form(subroutine). This function call is ME_PRINT_PO(something like that) This function module resides under function group MEDRUCK and is what actually prints the form. So you will need to copy the MEDRUCK function group into ZMEDRUCK. Copy the function modules. Copy the SAPFM06P program into SAPFZM06P and change the call to the function module in the ENTRY_NEU form to call the "Z" version of the function module in ZMEDRUCK. You can then modify ZMEDRUCK as needed. Of course you should also copy the MEDRUCK sapscript form into a "Z" version and modify as well.

http://www.sap-img.com/sapscripts/questions-on-po-sapscripts-medruck.htm

Thanks

Sudheer