Smartform - Form routines tab

Hi experts,
I had written a perform stmt in programl lines and had written FORM...ENDFORM in the form routines tab. But system throws a comliation error that the valriable does not exist even i had declared in GLOBAL defn..etc.
Pls some one give an example of how to use the FORM routines tab?
thanks

HI
  DAN
      Could you plese send me the coading of form routines tab.
      i have to define a form routine in my smart form report may be i can get help from your coading.
thanks
pardeep

Similar Messages

  • Form routines in smartforms

    how to use form routines in smartforms??..there is a option for using it in the global definition..plz explain the proper sequence of using it

    Hi Arun,
    In Form routines tab you enter routines that you want to use in the form via the program lines node. Within these form routines you cannot access any global data unless you explicitly pass them to the form routine interface.
    i hope this will be helpfull to u,
    Regards,
    swapnil

  • Global variable declaration in form routines

    Hi All,
    i am new of the smartforms, i have a small problem in smartforms.
    i need to display the one text based on the condtions, already i have putted the condtions in the condition tab for the text, i need to compare the one more condtion, the condtion is TB_INFORMATION IS NOT INITIAL.
    the code was devaloped in the formroutines , i need to implement the one condtion in the form routines,
    the condition is if TB_INFORMATION IS NOT INITIAL is not initial
                                  va_information = x.
                                endif.
    already i declared the variable in the global defination ,but i am getting the error.
    where can i declare the global variable in form routines.
    Please help me,
    Thanks & Regards
    charan

    declare in global data and it will be visible and available in form routines too.

  • Form routine problem

    what is the exact use of the form routine assigned in nace?
    eg:
    o/p type                                     script drv prog   form routine  formname
    NEU        (Purchase order)     SAPFM06P     ENTRY_NEU     MEDRUCK
    if i create any modifications in the form routine using itcsy then will i have to write all the code within this form routine?
    eg:
    perform <form routine name> in program zprog1.
    using
    changing
    endperform.
    i have searched sdn but cudnt find a suitable answer. pls explain with an example.

    Hi,
    The routine mentioned in the Nace will have the logic to Get the data required to ptint on the form and also it call the Form using the function modules lije Open_Form Start_form Write_form. If it is a smartform it calls the Smart form generated FM.
    Ex NACE--> ENTRY_NEU
    Driver Program in NACE is ZSAPFM06P
    This prgram contains the form  ENTRY_NEU
    Form ENTRY_NEU.
    *get the data
    *Call the form
    Endform.
    I hope it is clear.

  • Form routine for sales order adobe forms

    Hi Friends,
    I have a requirement to create z adobe forms for sales order for customized output type.
    When i checked, there is no form routine designed for calling the adobe forms.
    So, i am planning to copy the standard print program which is available for script and smartforms and creating a z form routine to include the function modules for calling the adobe form.
    Can any one please let me know whether have you worked in any of the same kind of situations and my apporach is ok or anything else can be done.
    Thanks & Regards,
    Prabu

    Hello,
    Plz check your caller program for the same and just find out the output type. for that purpose use the Tcode: NACE for finding the output type than proceed accordingly.
    Regards,
    Akg

  • Use of us_screen in the form routine :  FORM entry USING retcode us_screen

    Hello All,
    I have one print program entry routine as below.
    FORM entry USING retcode us_screen.
    Some code to print the form data...
    EndForm.
    When i Check the value of us_screen in the debuging, its value is coming as blank.
    When i checked the other form routine the value of us_screen is coming as 'X.
    I am my getting why in my case value of us_screen is coming as blank.
    What is significant of this field.
    Thanks & Regards
    Sachin Yadav

    Cusomization might be missing for that output type in transaction NACE.
    us_screen is blank because below query fails due to missing entry in table TNAPR.
    SELECT SINGLE * FROM TNAPR WHERE KSCHL = P_KSCHL
                               AND   NACHA = P_NACHA
                               AND   KAPPL = P_KAPPL.
    First assign the output type with a Transmission medium, Program, Form Routine, Form in transaction NACE
    Take the help of your functional consultant.

  • Form routines in CRM down loaded from R/3 for pricing

    Hi all,
    we have the following scenario:
    1) We have created an access sequence for tax condition in R/3 using standard form routines / requirements 7 (domestic) and 8 (export).
    2) The cutsomizing and conditions are down loaded to CRM (4.0) and the prices are calculated using the IPC.
    In R/3 the tax is determined correctly:
    check: komk-aland = komk-land1 -> domestic tax is determined.
    check: komk-aland ne komk-land1-> export tax is determined.
    In VOFM (R/3) it is possible to see the ABAP code of the requirement and set break points to check how the access is fullfilled.
    _Problem
    In CRM domestic tax is determined even though sold-to and ship-to party have different country codes. The same scenario that determines export tax in R/3 determines domestic tax in CRM.
    The pricing analysis in the transaction in CRM displays that the access is found and that requirement 7 is fullfilled which makes no sense.
    Does any one know where to find the code of the requirement in CRM and make a similar analysis with break points as in R/3 to see how the fields of the access are filled and the requirements are checked ? In customizing and the IPC only the form routine number is displayed but the code is not visisble.
    Thanks in advance,
    /Annette

    Hi Annette,
    I do not know what version of CRM you are running but I assume it is > 4.0. In all circumstances we are talking Java IPC developments which are not as easy to debug as ABAP. I will refer you to OSS note 809820 for further info.
    You can upload and download the Java devlopments to the CRM server in transaction /N/SAPCND/UE_DEV.
    Debugging is unfortunately not as easy as in R/3. I have not done it myself but I think you have to install Eclipse or NWDS on your machine. And then it should be possible to link it to CRM.
    There is some additional information here:
    http://help.sap.com/saphelp_nw04s/helpdata/en/f7/928f9e77da4588b9bf5e65d73bd674/content.htm
    But you definately need Java knowledge to do this
    Br,
    Anders

  • TRANSMISSION MEDIUM AND FORM ROUTINE IN CASE OF NACE TRANSACTION

    While saving a invoice, I have created a routine which will pick an output type when a certain condition is met.
    A custom report (Zprogram) needs to be triggered automatically during this invoice save. So we need to attach this Zprogram to output type.
    Could anybody tell me the transmission medium to be selected and also what needs to be entered in the field Form routine for this program which I have created in the transaction NACE->V3(Billing)->Output types->Processing routines?
    Thanks in advance.

    HI Shah,
    Form routine is nothing but a sub routine in your Z program (Driver Program). Simply one driver program can be used in multiple Layouts by using Form routines. If you are using the driver program only for one layout, then the routine declaration is not necessary.
    Simply select the transmission medium as Print out in case of print. Special function means whether you want trigger this form for only Bill-to-party or Ship-to-party etc.. I hope you need to maintain as SH or BP, check with your functional people once.
    You can check the below link for further customization reference.
    Link: [output type configuration;
    You can check the below link to know the exact meaning for Form routine.
    Link: [https://forums.sdn.sap.com/click.jspa?searchID=13772541&messageID=5319599]
    Regards,
    Raghu..

  • Error-handling in form routines to be called from maintenance  view

    hello,
    i have created a table maint. dialog. Under 'enviroment->modification->events' you can create form-routines for your own coding.
    I have the maint.event '01 - Before saving the data in the database'. Here i do some checks if entered values in some fields are okay or not etc.....
    When the users enters 'wrong' data i do a "message e000 with 'text' " So i got a error-message and the user is not able to save the data before changing it.
    BUT: i get the right error-message in the status-line, but i got an EMPTY screen, all the fields disapear. I have to go back with enter or the red cancel button. But then i 'fall back' to the selection screen of the maint. view. Thats not very user-friendly.
    Any ideas ?

    hi,
    think you have place your module not correct:
    try that: (without event)
    PROCESS AFTER INPUT.
      LOOP AT EXTRACT.
        FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
        CHAIN.
          FIELD Y789.
          FIELD Y012.
          MODULE LISTE_UPDATE_LISTE.
        ENDCHAIN.
    *begin of insertation
        CHAIN.
          FIELD Y123.
          FIELD Y456.
          module check_field  ON CHAIN-input.
        ENDCHAIN.
    *end of insertation
      ENDLOOP.
    Andreas

  • How to delete a Form Routine in Table Maintenance?

    Hello,
    Very Good Morning!
    How to delete a Form Routine in Table Maintenance?
    I had created a Form Routine at Environment>Modifcation>Events.
    I want to delete a Form Routine that I had created. Can any one please explain me the way I can delete it.
    Any suggestions are appreciated!
    Thanks & Regards
    Kittu

    Hello Rudra,
    Very Good morning!
    I am in Environment>Modification>Events.
    Here is had created a form routine ie...
    01   From_entry    Editor Icon
    In Editor Icon we will write the code.
    This will create a Include in the Function group.
    I had already comented that Include from the Function group. I can even delete it. But, I want to delete the Form Routine that I had created....
    01   From_entry    Editor Icon
    Can any one hepl me please...
    Thanks & Regards,
    Kittu

  • Regarding form routines IN ECC 6.0

    Hi Abapers,
                       I am currently working in ECC 6.0. I have come through an error as
    se old_entry_xxx as a form routine if you use an own print program
    I have a form routine in my include program as follows...
    FORM ENTRY_NEU USING ENT_RETCO ENT_SCREEN.
      XSCREEN = ENT_SCREEN.
      IF NAST-AENDE EQ SPACE.
        XDRUVO = '1'.
      ELSE.
        XDRUVO = '2'.
      ENDIF.
      CLEAR: XFZ, XOFFEN, XLMAHN, XLPET.
      CLEAR ENT_RETCO.
      PERFORM LESEN USING NAST.
      MOVE RETCO TO ENT_RETCO.
    ENDFORM.   
    Can anyone give any hints regarding how to come out of this error, i guess its a unicode error but not sure.
    Frnds looking for ur help.
    thanks
    & regards,
    kamal

    Hi ,
           I have'nt come up with any solutions yet. But wht i consider is the perform doesnt exist for that form routine.I m wondering , Is that a form routine has any "perform". Frnds if anyone is having any clues plzz provide.
    Its basically a Upgrade task.
    thanking u all.
    regards,
    kamal

  • Perform a form routine within a sap script form

    Hi!
    How can I
    perform a form routine within a sap script form.
    Regards
    sas

    OK,
    many thanks for your kindly reply.
    But basically there is a matter which I don't understand.
    Which way is the better way to loop at internal table:
    Solution1:
    FORM xxx.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       DEVICE                           = 'PRINTER'
       FORM                             = 'ZSD_PACKING_LIST'
       LANGUAGE                     =  SY-LANGU   .
    LOOP AT gt_versand_plan INTO gw_versand_plan.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'SHELEM'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN' .
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'.
    ENDFORM.
    Solution 2:
    Having the LOOP within the  sapscript form -> 'ZSD_PACKING_LIST'
    Regards
    sas

  • Form Routine in User Exit

    Hi
    I would like to include a form routine in user exit inlcude ZXTXWU01 but I guess that is not possible, so I created a new include ZXTXWZZZ in which I have developed the code for the form routines...
    But I still get the error in the main user exit ZXTXWU01 stating that the Form... End Form can be only after the End Function which obviously refers to the function module containing the main user exit..
    Please let me know how to over come this ....

    Hi,
    You cannot create another Form...EndForm if the first include ZXTXWU01 is already inside a Form..Endform.
    Meaning following structure is invalid:
                 Form first_form.
                       Include  zzzz
                 Endform.
    In  Include zzzz.
         Form  second_form.
         Endform.
    Instead of a Form..Endform subroutine...directly have the statements in the Include program and remove the Form..Endform.
    Regards,
    Subramanian

  • Get current FORM-Routine Name

    Hi,
    during runtime i want to know the current form-routine-name to write it in a variable and put it in an itab. The background-idea is to print out all procedures that have been executed after running the program.
    Any hints, suggestions how to get this done?
    Thanks in advance
    Gunther

    Hi, Gunther,
    The only way to do this is to read the ABAP Call Stack in an internal table.
    Code:
    TYPES: BEGIN OF t_s_abap_callstack,
             mainprogram LIKE sy-repid,
             include LIKE sy-repid,
             line TYPE i,
             eventtype LIKE abdbg-leventtype,
             event LIKE abdbg-levent,
             flag_system,
           END OF t_s_abap_callstack.
    variable for ABAP callstack
    DATA: g_callstack TYPE STANDARD TABLE OF t_s_abap_callstack,
          g_callstack_wa TYPE t_s_abap_callstack.
    call 'ABAP_CALLSTACK' id 'DEPTH' field 99
                            id 'CALLSTACK' field g_callstack.
    g_callstack now contains the program and routine names called, in sequence. 
    Pls be careful in using this C Call; in particular, usage in a Productive environment should only be envisaged with the utmost caution.
    Philippe

  • Passing internal table to FORM routine

    Hi friends,
    how do i do the following:
    i have an internal table with data and i want the internal table to be passed in a FORM routine, as i need to do some operations on the data within the table, so what i need is how to do the FORM test_itab USING ... statement.
    thanks for your help,
    points will be awarded instantly!
    clemens

    Hi,
    Below will give you a detailed over view of how to achive the following.
    If you specify the addition TABLES, each table parameter t1 t2 ... for the subroutine called that is defined with the addition TABLES to the FORM statement must be assigned an internal table itab as the actual parameter. The assignment of the actual parameters to the formal parameters takes place using their positions in the lists t1 t2 ... and itab1 itab2 ... .
    You can only specify standard tables for itab. Transfer takes place by means of a reference. If a specified table itab has a header line, this is also transferred; otherwise, the header line in the corresponding table parameter t is blank when it is called.
    Note
    Use of table parameters in the interface for subroutines is obsolete but a large number of subroutines have not yet been converted to appropriately typed USING or CHANGING parameters, so that they must still be supplied with data by the TABLES addition to the PERFORM statement.
    Example
    Static call of the internal subroutine select_sflight transferring a table parameter.
    PARAMETERS: p_carr TYPE sflight-carrid,
                p_conn TYPE sflight-connid.
    DATA sflight_tab TYPE STANDARD TABLE OF sflight.
    PERFORM select_sflight TABLES sflight_tab
                           USING  p_carr p_conn.
    FORM select_sflight TABLES flight_tab LIKE sflight_tab
                        USING  f_carr TYPE sflight-carrid
                               f_conn TYPE sflight-connid.
      SELECT *
             FROM sflight
             INTO TABLE flight_tab
             WHERE carrid = f_carr AND
                   connid = f_conn.
    ENDFORM.
    Thanks,
    Samantak
    Rewards points for useful answers.

Maybe you are looking for

  • Help writing to file

    This code is supposed to print all prime numbers between 1 and 100 to a file called PrimeNumbers. However, when I go back and check the file, all it contains is a 1. What is preventing it from printing all of the primes? Thank you. import java.io.*;

  • WHEN YOU PURCHASE RV SHOWS FROM ITUNES ARE YOU ABLE TO PUT IT ON A DVD AND WATCH ON A REAL TV?

    When you purchase a TV show from itunes are you able to put it on a DVD to watch on a real TV?

  • Best way to sync google contacts/calendar

    Just bought iPad2, and am wondering the best way to sync my contacts and calendars from google to my MacBook and iPad (my mac and phone sync to google and need to add ipad). My MacBook doesn't have Lion so I'm guessing that I wouldn't be able to keep

  • SU10 with CUA

    hi I have implemented CUA and trying to change roles for some users through SU10, which is not hapenning, but when i do the changes through su01 to individual users the effect take place. I am not able to do a Mass User change. Any Suggestions Thanks

  • How to use/consume/call a webservice

    Hello All,     I have created a webservice from the inbound proxy. i can test this using tcode wsadmin.   but i donno how to consume this service. for eg: i ahve created a PurchseOrderCreate webservice now i wnat to use this serivce to create PO. can