Smartforms purchase order

hi,
I want to do the purchase order in smartforms, i already tried to do the same and struggling to fullfil the same, kindly let me know the how to do and if it is possible please send me the screen short for the same by step by step.
thanks
sujatha

Hi
Use the Smartform: /SMB40/MMPO_L  for purchase order and copy it and change it and assign in NACE tcode
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
<b>step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Smartform Purchase Order : EKKO vs PEKKO

    Hi all,
    I'm creating a smartform for purchase orders but I'm stuck at passing the right variables to the function module that calls the smartform.
    I don't know what to fill in for ZXPEKKO  = ??? --> What select statement should I do here ?
    It would also be helpfull to give me more information on the relationship between : EKKO & PEKKO
    The function module interface shows this info :
    ""Global Interface:
    *"  IMPORTING
    *"     VALUE(ARCHIVE_INDEX) TYPE  TOA_DARA OPTIONAL
    *"     VALUE(ARCHIVE_INDEX_TAB) TYPE  TSFDARA OPTIONAL
    *"     VALUE(ARCHIVE_PARAMETERS) TYPE  ARC_PARAMS OPTIONAL
    *"     VALUE(CONTROL_PARAMETERS) TYPE  SSFCTRLOP OPTIONAL
    *"     VALUE(MAIL_APPL_OBJ) TYPE  SWOTOBJID OPTIONAL
    *"     VALUE(MAIL_RECIPIENT) TYPE  SWOTOBJID OPTIONAL
    *"     VALUE(MAIL_SENDER) TYPE  SWOTOBJID OPTIONAL
    *"     VALUE(OUTPUT_OPTIONS) TYPE  SSFCOMPOP OPTIONAL
    *"     VALUE(USER_SETTINGS) TYPE  TDBOOL DEFAULT 'X'
    *"     VALUE(ZXEKKO) TYPE  EKKO
    *"     VALUE(ZXPEKKO) TYPE  PEKKO ---> ???
    CALL FUNCTION lf_fm_name
          EXPORTING
          archive_index       =   toa_dara
          archive_parameters  =   arc_params
          control_parameters  =   ls_control_param
          mail_recipient      =   ls_recipient
          mail_sender         =   ls_sender
          output_options      =   ls_composer_param
          user_settings       =   space
          is_nast             =   nast
          is_repeat           =   repeat
          ZXEKKO              =   ls_ekko
          ZXPEKKO             =  ??? --> Where should I select this info from ?
          IMPORTING
          document_output_info = document_output_info
          job_output_info      = job_output_info
          job_output_options   = job_output_options
          TABLES
    *     it_ekko             = it_ekko
          it_ekpo             = it_ekpo
          it_t001w            = it_t001w
          it_lfa1             = it_lfa1
          it_adrc             = it_adrc
          it_adr6             = it_adr6
          it_konv             = it_konv
          it_makt             = it_makt
          it_tline            = it_tline
          it_tline1           = it_tline1
          it_tline2           = it_tline2
          EXCEPTIONS
          formatting_error    = 1
          internal_error      = 2
          send_error          = 3
          user_canceled       = 4
          OTHERS = 5

    If it's you who has created the smartform, you should know what ZPEKKO is used for inside smartform.
    In other case, have a look at the smartform being called and see where is ZPEKKO used...(perhaps it's populated inside smartform)
    regards,
    Aabhas

  • SmartForms: Purchase order Print prog and SLIN

    Hi all,
    I am on 4.7 and Purchase Order Print Prog name is /SMB10/FM06P. When i am doing SLINE Check on this Prog. I am getting the following Message.
          Program:  /SMB10/FM06P  Row:      1
    The namespace of program /SMB10/FM06P has the setting "C" and cannot be tested.
    A possible cause for this is that an SAP program is being checked in a customer
    system.
    Note, the following rule applies after a change in the source code:
    For testing the namespace setting is ignored for one week
    (The message cannot be hidden using pseudo-comment "#EC .., or by using SET
    EXTENDED CHECK OFF/ON)
    Is any one have idea about this?
    Thanks in advnace.

    Thanks for your Reply,
    When i am doing Syntax check in SE38, I am getting the below error message.
    <b>"The Program "/SMB10/FM06P" is not Unicode-compatible, according to its program attributes."</b>
    I have found the OSS Note No: 751007
    Solution
    Copy the program into your own namespace (e.g "ZZsmbfm06p"), maintain the program attribute to make sure the flag "Unicode checks active" is selected. Then maintain the customizing for output control again.
    <b><u>
    GOD BLESS SAP, SAP asking to Create Custom Object.</u></b>
    Thanks
    Message was edited by: Vipin Nagpal
    Message was edited by: Vipin Nagpal

  • Smartform purchase order print duplex terms

    I have made change to print TERMS page last and it works. 
    Also the folder NOTES after MAIN still works as does page number, ie the TERMS do not add to total number of pages.
    However, page TERMS does not duplex and the printer can print in duplex. The device is HPLJ4350 and set for HP4300; but I did see that it did not have specific print mode print controls on that device type.
    I used SO10 for text SAPSCRIPT-PRINTMODETEST and it does all the print modes fine.
    SMARTFORM /SMB40/MMPO_L was used as base form that I modified.
    I added command node at end of MAIN where I checked Go to new page and Include Printer Control           SPMDU (this is the print control that was not specific to the device type).
    Any correct solutions will bring points to you!

    I think you want to do the following...
    PAGE   >  NEXT PAGE  >  OUTPUT OPTION (print mode)
    FIRST   >  TERMS          >       D(uplex)
    TERMS >  NEXT             >       blank
    NEXT    >  TERMS          >       D(uplex)
    The variation in my scenario previously described I wants the terms only on the back of last page.  I have since read that it is now believed that it is better to have preprinted terms and NOT have logic to print terms in SMARTFORM at all.  But I don't buy that as I feel the resource usage is not really a big deal and printing terms does NOT really impact adversely.  However, if you want solution that is universal regardless of print hardware capabilities, preprinting is the way to go.

  • Purchase Order - Smartform- Best practises

    Hi,
    Could anybody suggest on how to load the Bestpractises for Smartforms (Purchase Order) and access it in ECC 6.0 system.
    Regards
    Syam

    Hi Michael,
    You confirmed that the smartform and print program for PO in ECC6.0 are  /SMB40/MMPO_L and /SMB40/FM06P respectively.  I am a functional person and I understand that these form and program have to be assigned to the PO in the Purchasing configuration, where, you need to specify the medium, program, form routine, form, pdf/smartform, and the form type.  For the medium, I would need to indicate 1 (printout).  My questions are as follow:
    1.  For the Program, is it the /SMB40/FM06P? 
    2,  What is the equivalent std Form Routine for this smartform.
    3.  Under Form, should this be blank?
    4.  Under the PDF/Smartform, is this the/SMB40/MMPO_L ?
    The configurations are in
    A)  MM -> Purchasing ->Messages -> Forms for Messages -> Assign form and output program for PO
    b)  MM -> Purchasing ->Messages -> Output control -> Message type -> Define message type for PO
    I am new to forms and my first time to use ECC 6.0.  I hope to learn from you.  If possible kindly send your response to [email protected] where I can easily check my email.
    Thanks a lot.

  • Smartform Driver Program for Purchase Order & Request For Quotation

    Hi All,
    We are in ECC 6.0 EHP 4
    I am unable to find Driver Program /SMB40/FM06P for Smartform
    Purchase order  = SMB40/MMPO_L.
    Request For Quoation = /SMB40/MMRFQ_L
    So can anyone help me how to get the Driver Program into my SAP system.
    Regards
    Rakesh

    We had a similar problem... The package /SMB40/ is not installed by default with the ECC 6.0 system, so your Basis team should install it now.
    See this thread for more information, I hope it can be useful for you.
    /SMB40 and /SMB11

  • Creating a Purchase Order Smart Form (Form Interface)

    After reading up on all the posts about making a PO smart form I know this:
    - An SAP script "medruck" is the current output
    - A smartform exists for PO's named "/SMB40/MMPO_L" or "/SMB40/MMPO_A"
    - You need to install an update to get those smartforms if you are using ECC 6.0
    So my dilemma is that the SAP administrator is on vacation for a week, so I can't install the update to our system.  I'm trying to just create it from scratch using the medruck SAP script as a reference, but I am a little confused.
    Basically all I need to know is what form interface parameters do I pass in?  Meaning how do I find out what structures and tables are imported into the function module when print preview is called from t-code ME22N?  Can you please provide proper syntax for form interface solution or instructions on how to determine imported variables into the smartform?

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • Creating a purchase order form that has a flowable layout" Help Tutorial

    Regarding the "Creating a purchase order form that has a flowable layout" Help Tutorial,  I can't seem to get the data to pull in for just the PO in question, is there a secret?
    Ideally, it should create one form for each PO with the detail lines for each PO on the individual forms.  Can we do this?
    Many thanks!

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • PURCHASE ORDER IN A4 SIZE PAPER

    can any body  give the example for smartform purchase order, RFQ printing in A4 size paper. presently we are taking printing in pre-printed stationery.

    Hi,
    Just migrate the script 'RVORDER01' and create the Smartform.
    Then, layout details will automatically comes to the smartform. In the Page layout field of general attributes section select A4.
    Regards,
    Jagan

  • Purchase Order E-mailing with Release Strategy

    Hello,
        We are experiencing an issue when e-mailing a Purchase Order which has a release strategy. When the order is released, the confirmation e-mails are going to the person who releases it when it is supposed to go to the person who has created the P.O. We are using a Smartform P.O. based on /SMB11/BL_MM_PO_L and print program /SMB40/FM06P. I must note that there was a bug found in the aforementioned print program and before that was fixed e-mailing would not work at all.
      We have also attempted to use all combinations of standard unmodified print programs and standard unmodified smartforms and have had no luck at getting the confirmation e-mail to send to the correct person this way either.
      SAP has recommended that we use program SAPFM06P with form Medruck. While this combination does work correctly, Medruck is not a Smartform. Has anybody here used a smartform Purchase Order with a release strategy and had the confirmation e-mail send to the created and not the releasor?
      Below is a list of the print programs and forms we have tried in various combinations. We are running ECC6/Basis 7
    Print Programs:
    /SMB11/FM06P
    /SMB40/FM06P
    SAPFM06P (Sapscript Only)
    Forms:
    /SMB11/BL_MMPO_L
    /SMB11/MMPO_L
    /SMB40/MMPO_L

    Hi,
    Purchase order via e-mail in SAP sys,the configurations and pre-requisites are follow:
    1. You must maintain an e-mail address in the address in the vendor master.
    2. The same applies to your own user master. You also have to specify an e-mail address there in order to identify the sender.
    Note that it is not possible to change the e-mail address of the vendor via the SAP purchase order transaction (ME21N, ME22N, and so on). The system only uses the e-mail address of the vendor that is maintained in the vendor master!
    3. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy). As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
    4. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
    5. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).
    6. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.
    7. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.
    For more details, check SAP note:191470
    Regards,
    Biju K

  • Changing Purchase Order

    Hi,
    I am working on Smartforms (Purchase Order in ECC 6.0 ).My requirement is if we change any Quantity or Delivery Date , in the output it should show Quantity Changed or Delivery Date Changed. But it is not showing .How can we do this?
    But if we run this PO from ME9F after anything is changed in that Transaction it is displaying but in ME22N it is not showing. How can we do this?
    Sure Points will be rewarded.
    Regards
    Pavan

    Hi
    THis is already handled in the PO Driver Program SAPMF06P.
    In the std code it displays that.
    Even if you wants to happen it from ME22N you have to copy the Program and have to do the same changes to handle that text into a varaible and to display it in the smartform.
    or
    in the smartform CREATE PROGRAM LINES
    and capture the check condition which decides the qty or del date is changed
    and based on that move this text to a variable and display that variable in smartform.
    Reward points if useful
    Regards
    Anji

  • Regarding building a purchase order smart form

    hi guys,
    i got to design a  purchase order smart form  which consists of 3 pages and i need to enclose " terms and conditions " on the back side of every page. To be more elaborative on first page purchase order details and back side of it " terms and conditions " and same way on other 2 pages.
    how do i do it, can any one help me with this.
    thank you very much
         pavan

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • Smartform in Purchase Order ME21N

    Hi guys.
    I'm working in SAP 6.0 ECC. I am developing a sapscript for purchase order and it is working well, but i wanna do the same in smartform, i checked on the web that sap 6.0 ecc has some standard smartform for Purchase Order, but mine doesnt have it. In addition, i tried to convert my sapscript to smartform, but the only thing that converts are the windows, no tables or variables, so it doesnt work.
    how can i do it? somebody did a smartform for ME21N??? what are the parameters that i need to use? the idea is that this smartform will be trigged at the moment of release the purchase order throught ME29N.
    Regards
    it will be super usefull that somebody could send me a smartform

    Sending attachments by mail is not really compliant with forum rules (because other people won't get the information).
    The good answer would have been to look at SDN "smart forms" home page, then look at section "preconfigured smart forms".
    It says that it must be downloaded from SWDC (SAP software download center), choose Installations and Upgrades -> ...Entry by Application Group -> SAP Best Practices -> SAP BP BASELINE PACKAGE ...

  • SRM Purchase Order Smartform

    Hi all,
    I am having an issue in SRM 5.0.How to get the Purchase Order Amendment details in SRM Smartforms. In ECC we are using a function module to list the amendment details is there any function module in SRM which can do this. Please help me. This is a very very very urgent issue.
    Sure points will be awarded
    Thx in Adv...........
    Regards
    Pavan Kumar

    never mind, went to wrong thread
    Edited by: Rainer Hübenthal on Mar 17, 2010 12:26 PM

  • How to display the smartform of a purchase order from EBP (its) into a BSP

    Hello,
    I'm trying to make a bsp which lists the purchase orders (PO) for a user, that is not a problem.
    But I would like to open the smartform of a PO like in EBP (SRM) into my BSP.
    In EBP with the ITS i use this function :
    BBP_OUTPUT_PO_PREVIEW_SMART
    I give in input of this function the GUID (number) of my PO and the name of smartform to use with.
    I would like to reproduce this functionality in a BSP like on the ITS.
    Can someone help me ?
    Thanks a lot !
    Francois

    Indeed with the example of the bsp sf_webform_04 i can display my smartform !
    I have two choices : HTML or PDF.
    You only have to choose OTF for PDF or XSF for HTML !
    Thanks a lot !
    Francois
    Message was edited by: Francois Lavoissiere

Maybe you are looking for