Skip to Content
author's profile photo Former Member
Former Member

SAPscript (Medruck)

Hi Experts

Can anybody please give me the acutal scenario how modifications are done in the Industry in an existing form (through print program or anything else) as I am fresher and have to mention in resume that i worked on SAPscript/Smartforms.

I will be thankful to you if anybody can give me specifiactions(live) along with some idea about how modifications are done and on which point one has to concentrate

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2006 at 04:45 AM

    Rashmi,

    For SAP Scripts, you usually copy that form into a custom one and make modifications according to the customer requirements, like printing the line items along with the scheduling details, printing terms and conditions, printing details of the material etc etc.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2006 at 05:14 AM

    Hello Rashmi,

    The way u did is also a way to determine to which program the layout is attached but the other way is through customisation. For purchae order go to tcode olme->messages->Forms->Assign forms to putput program for purchase order. Here u can c which is the program to which ur layout set is attached and also the entry pooint the program.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      wen u execute a script from se71, u dont have values at present for the variables,ie, the values r to be passed from the program wen we execute the program which calls that script..hence, the crosses appear wen u directly c the preview from se71....

      for selecting the program, again as i said among those programs, there may be includes, function groups n reports.. u may not be able to take print directly from se38 for some applications like purchase order(me21n) wherein u get the print from the transaction itself( me21n or me9e).. these programs have been configured to print...sapfm06p is the main program which has several includes...these includes contain function modules that come under a function group..

      for PO, report is sapfm06p n function group is medruck..

      so there may be several programs mentioned in tnapr but by trial n error u may find out for ur requirement.. as i mentioned earlier, for sapscript n smartforms ther will be different driver programs..

      Regards,

      Bikash

  • author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2006 at 06:41 AM

    Thanks guys for all your efforts

    but am keeping this thread open, will get back to you again in case problem arises

    Thanks one again

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Rashmi,

      All these Scripts will be triggered based on something MESSAGE OUTPUT DETERMINATION (Configuration) of each of the business documents. There will a entry made in NAST for each document that has to processed via SCRIPT / SMART Form.

      All these messages will be processed by the program RSNAST00 collectively. You can do the settings in such a way that the message of the document is processed immediately as well, so that the SCRIPT is triggered immediately.

      Regards,

      Ravi

      Note :Please close the thread, if answered

  • author's profile photo Former Member
    Former Member
    Posted on Apr 24, 2006 at 10:03 AM

    Hello Rashmi,

    Hi Rashmi,

    u cannot use RSNAST00 program directly it is called by the std SAP program when u are saving the PO. U can check the progrm in SE38 ->RSNAST00 (last char are digit 0 and not char o).

    As for OLME it should show u Purchasing structure. In that u should c Messages around 26th line from the top.

    Once u c it click on it. Within that click on Assign Form and Output Program for Purchase Order. Here for the output type which in ur case is NEU and medium as 1 u assign ZSAPFM06P with form routine as ENTRY_NEU and form as MEDRUCK.

    as for the line number if u open the RSNAST00 program and goto line 874 u will

    <b> PERFORM (tnapr-ronam) IN PROGRAM (tnapr-pgnam) USING returncode

    us_screen

    IF FOUND.

    </b>

    this is the place from where a call to ur program (ZSAPFM06P) will be made

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Rashmi,

      More often than NOT you will see the print program is being changed to accomodate the changes required for the Script. I would say its a pretty common situation. And when you do the changes, its your job to do a end to end testing and see that the values are coming as expected.

      Anyways, Please close the thread and mark all the helpful answers.

      Regards,

      Ravi

  • author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2006 at 06:36 AM

    Hello Rashmi,

    through Se71 u will never get the place holders replaced by actual values. It will just show u how the layout looks like and where all the data if any will be printed.

    Secondly in tnapr u will get multiple entries for the program because they are connected to different output types and for different medium. Output types can be purchase order being sent as mail/fax/print out....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 24, 2006 at 05:49 AM

    Hello Rashmi,

    The entire scenario is like this...

    The configuration part which u need to do is through OLMe. In this go to messages-> Assign forms and output program to purchase. In this u assign for each output type a medium i.e how u want to output the PO and for each medium program with an entry point. Now based on the discussion u have copied SAPFM06P program as Z. U will have to create and entry for this Z program. so ur entry will look like

    NEU Purchase order 1 ZSAPFM06P ENTRY_NEU MEDRUCK

    the other std entry will have to be deleted as the key for the table is output type and medium.

    Now the process of printing. When u create or change any PO, in simple form an output is generated based on what is the setting in the message. Say u go to PO->messages. Select the message and click further data, u will c dispatch time which indicates when will the pO be generated. If it set to send immediately when saving then it will create a message when u save. While in the process of saving the std SAP program access RSNAST00 program and through this program (line 874) it dynamicall acess the configuration and gets the FORM entry name and the program.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Abhijit

      I tried using RSNAST00 program..it says this program doesnt eixst

      Also in transaction OLME.. i was unable to see Messages option anywhere

      Secondly can you please tell me how to create entry for this zprogram and where to create it

      and how to know line no 874

      Plz repet the steps clearly if you can

      Thanks in advance

  • author's profile photo Former Member
    Former Member
    Posted on Apr 24, 2006 at 04:31 AM

    Hi All

    that program (SAPFM06P) is subroutine pool and not executing

    plz tell me how to get print program of Medruck or how changes are done in this form or how to get values in place of crosses??

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Rashmi,

      Go to SPRO transaction.

      SAP Customizing Implementation Guide --> Materials Management --> Purchasing --> Messages --> Forms (Layout Sets) for Messages --> Assign Form and Output Program for Purchase Order

      Here you will be able to assign the Program name / Subroutine name (FORM Routine) and the SAP Script (FORM) Name.

      Regards,

      Ravi

      Note : Please mark the helpful answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 24, 2006 at 05:31 AM

    THanks a lot

    I will do it

    in case any problem comes..

    will get back again

    Thanks once again

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.