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
Similar Messages
-
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?
thanksHI
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 -
Problem in writing form-endform in Smartform
Hi,
I am writing following FORM-ENDFORM in Form routines and Perform in Initialization of global definitions
in smartforms.
FORM GET_STD_TEXTS USING V_LANG
CHANGING
T_DAMAGE_TRANSIT TYPE STANDARD TABLE OF TLINE.
DATA:lt_lines LIKE tline OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = V_LANG
name = 'Z_DAMAGE_TRANSIT'
object = 'TEXT'
TABLES
lines = lt_lines
EXCEPTIONS
OTHERS = 8.
IF sy-subrc = 0.
T_DAMAGE_TRANSIT[] = lt_lines[].
ENDIF.
ENDFORM.
PERFORM GET_STD_TEXTS USING V_LANG
CHANGING
G_DAMAGE_TRANSIT.
In global definitions I have defined :
G_DAMAGE_TRANSIT TYPE TLINE
V_LANG TYPE NAST-SPRAS
<b>But there is something worng. I am getting following error:
Global Definitions: "OF" has already been declared already</b>This solves the problem partially now I don't get any error when I do syntax check for form-endform.
But still I get error saying G_DAMAGE_TRANSIT is not internal table in PERFORM.
PERFORM GET_STD_TEXTS TABLES
G_DAMAGE_TRANSIT
USING V_LANG.
In global definitions I haved defined:
G_DAMAGE_TRANSIT TYPE TLINE.
Please help.... -
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
charandeclare in global data and it will be visible and available in form routines too.
-
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,
PrabuHello,
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 -
Enquiry in Routine in Smartform
Hi,
Can any one help me to include code in Form Routines in Global Settings in SMARTFORM with example.
Poojahi
it is same link normal abap program only..
one thing u have to remember here is u have to give all the varaiblesand ITAB names in INPUT and OUTPUT parameters of ITNAILIZATIONS tab
<b>calling the form in Initialization tab..</b>
* Get details for condition values.
PERFORM GET_INVOICE_CONDITION_VALUES USING IT_KOMV
IT_KOMVD
V_LAND1
IS_BIL_INVOICE-HD_GEN
CHANGING WA_INVOICE.
<b>difinatonin FORM routines tab</b>
FORM GET_INVOICE_CONDITION_VALUES
USING FP_IT_KOMV TYPE TY_IT_KOMV_T
FP_IT_KOMVD TYPE TY_IT_KOMVD_T
FP_V_LAND1 TYPE LAND1
FP_GS_HD_GEN TYPE LBBIL_HD_GEN
CHANGING FP_WA_INVOICE TYPE TY_INVOICE.
DATA: L_WA_KOMV TYPE KOMV,
L_WA_KOMVD TYPE KOMVD.
FORM GET_INVOICE_CONDITION_VALUES
USING FP_IT_KOMV TYPE TY_IT_KOMV_T
FP_IT_KOMVD TYPE TY_IT_KOMVD_T
FP_V_LAND1 TYPE LAND1
FP_GS_HD_GEN TYPE LBBIL_HD_GEN
CHANGING FP_WA_INVOICE TYPE TY_INVOICE.
DATA: L_WA_KOMV TYPE KOMV,
L_WA_KOMVD TYPE KOMVD.
xxxxxx
xxxxxx
xxxxx
ENDFORM. "GET_INVOICE_CONDITION_VALUES
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K -
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 YadavCusomization 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,
/AnnetteHi 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
KittuHello 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,
kamalHi ,
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
sasOK,
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 -
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
Maybe you are looking for
-
URGENT: SAVE_DATA takes forever to execute
Urgent, please advise. In the planning layout all the planning functions work fine. When a user tries to execute SAVE_Data standard SAP function, the system takes forever to execute, and times out. NO matter how many records are to be processed, 76 v
-
Hi I am taking an accelerated java course over the summer and recently got an assignment where we have two subroutines. One main, and one subroutine that prints a line of *'s. Here are the instructions: stars() 1. Use the parameter numberOfStars to c
-
HT1320 My ipod nano is frozen and I cannot reset it. How do I reset my ipod?
I have an ipod nano that I purchased in 2009. I believe it is a 5th generation. It is frozen and I cannot reset it.
-
Web Dispatcher 7.3 - Modification Handler
Hi experts, does anybody have experience with modification handler of web dispatcher 7.3? I tried to configure as mentioned at help.sap.com but meanwhile I guess that there are lot of errors in the documentation. Do you know a documentation / blog wh
-
HP Officejet Printer 6835 control panel not working
Am trying to set up my new printer (HP Officejet 6835 All-In-One) but the control panel is not working. Followed directions, plugged it in and turned it on but control panel is black. Am I doing something wrong or do I have a faulty printer? Tried tu