Include form--endform
i put in include
form xxxx
endform.
and i get error why?
what should i do?
I don't think that you can do that, have an INCLUDE inside of a FORM. Put the INCLUDE statement at the end of your program outside the FORMS, you can include your code by wrapping it in a another FORM which is in the INCLUDE.
FORM XX.
perform call_alv_grid.
ENDFORM.
include YY.
Now in the include source, have a FORM.
**include YY.
form call_alv_Grid.
* Do whatever.
endform.
Also you can call the FORM directly instead of going thru the FORM XX.
Make sense?
Regards,
Rich Heilman
Similar Messages
-
How to write Form - Endform in between Function - Endfunction
Hi Experts,
I need to write some code in between form & endform in an Include(User-exit)
This form ---endform doesnot have perform [ Perform is inside a standard Code ] . I tried using Generate pool subroutine. It is also not helping.
The call for this perform is inside Standard Code.Pls tell how to write Form-Endform between Function -
Endfunction.
thanks
surbhiNo no no. You're committing after each row! soany
other session running the same query will see the
changes you're making. Your session will equallysee
changes caused by running this query in those
sessions.Other session, yes, but current session will only see
the changes once it has completed the current
statement. Otherwise my "rn" column would not have
gone up sequentially in the above example. it would
have gone
1st row rn = 1 (all rows get updated by 1:-
2,3,4,5,6,7,8,9,10,11)
2nd row rn = 3 (all rows get update by 1:-
3,4,5,6,7,8,9,10,11,12)
3rd row rn = 5 (all rows get update by 1:-
4,5,6,7,8,9,10,11,12,13)
4th row rn = 7 (all rows get update by 1:-
5,6,7,8,9,10,11,12,13,14)
5th row rn = 9 (all rows get update by 1:-
6,7,8,9,10,11,12,13,14,15)
6th row rn = 11 (all rows get update by 1:-
7,8,9,10,11,12,13,14,15,16)
7th row rn = 13 (all rows get update by 1:-
8,9,10,11,12,13,14,15,16,17)
8th row rn = 15 (all rows get update by 1:-
9,10,11,12,13,14,15,16,17,18)
9th row rn = 17 (all rows get update by 1:-
10,11,12,13,14,15,16,17,18,19)
10th row rn = 19 (all rows get update by 1:-
11,12,13,14,15,16,17,18,19,20)
So the fact the commit happens each time the rows get
updated, isn't effecting the currently running select
statement.
No, actually you DO see the other session changes. This is because it is AUTONOMOUS transaction, and this a function.
Test by adding:
create or replace function incvals return number as
pragma autonomous_transaction;
v_val number;
begin
update t set rn = rn + 1;
select max(rn) into v_val from t;
dbms_lock.sleep(1); --add this line
commit;
return v_val;
end;
And test in two sessions.
You will NOT get sequential ascending.
>
Think about the effect of two parallel sessionsboth
running this query at the same time, and ask isthis
sensible?Gawd, no, of course not. Like I said, I'd never use
this sort of thing myself. I'm just wondering what
on earth the OP is trying to achieve.
:)Glad to hear it. -
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.... -
Adobe Acrobat 11 pro includes form central?
Hi, I am buying adobe acrobat 11pro, and I think it includes form central templates, if I wanna create conditional based form which I think PDF doesnt support, and I dont want to embed the form into website, so what are my options.
1. I want to create conditional form if I can do that in PDF is really good, like live cycle designer can do.
2. If I buy adobe acrobat 11 pro then I'll have access to form central ?
3. If I create a form in form central then is it possible I can see all the response in my inbox rather then seeing them online?1-Acrobat XI and FormsCentral cannot create PDF forms with conditional logic. FormsCentral web forms do support conditional logic.
2-You have access to the free version. If you want additional capabilities you would need to purchase FormsCentral Basic or Plus subscription
3-FormsCentral supports sending email notifications that include a summary of the data in the email body text. -
How install Oracle Developer Suite 10g for Linux (Including Forms & Reports
hi
i want to install Forms & Reports Developer Suite in Linux OS So i have downloaded From OTN Site
"Oracle Developer Suite 10g for Linux (Including Forms & Reports)"
These are the File's i have Downloaded:
as_linux_x86_ids_101202_disk1.cpio
as_linux_x86_ids_101202_disk2.cpio
so in the Oracle Documentation Site they have given Guide as Follows:
$cpio -idmv < as_linux_x86_ids_101202_disk1.cpio
$cpio -idmv < as_linux_x86_ids_101202_disk2.cpio
after that what should i do ...
How to Install Oracle Developer Suite 10g for Linux (Including Forms & Reports)
Kindly Reply ASAPPl follow the steps in the Install Guide - http://download.oracle.com/docs/cd/B19375_02/doc/frs/install/B19314_02/toc.htm
Srini -
Hi,
We have an old Oracle Forms 10g application (about 200 forms).
We are making a new Apex 3.2 application on 10g.
As we want users to familiarize with the new interface, we want to include forms in the new Apex application. Then we will progressively replace forms content by Apex content.
I tried to include the generated HTML code of a Form in an APEX region, it works, but it ask me again login/password for the Forms application, although I'm already authenticate in Apex. We use custom authentication scheme in apex (call to a web service), but Forms application uses database authentication.
As I have never worked with Oracle Forms, I would not have to modify too much things on it. So is there a way to pass a login/password from apex to Forms ? As we don't use database authentication, and as we need security, we can't pass them in the url as shown in this document.
In Roels blog, he speak about an APEX$CALL_FORM procedure but I can't find any information an that one, how to use it, parameters, etc... You have more information about it ?
Thanks.
Yann.The (or a) normal way to start forms is by entering an URL like : http://localhost:7778/forms/frmservlet?config=apex
if you start a Form that way and look in the generated HTML you'll notice some HTML code (after <!-- Forms applet definition (start) -->).
One of the lines is:
<PARAM NAME="serverArgs"
VALUE="escapeParams=true module=your.fmx userid= ...
If you generate that HTML with a procedure you can generated the userid/password@database at that location.
Dependent of IE or FF you have to put the code there or in the <EMBED tag further down. -
How to get names of INCLUDE or FORM within included forms
Hello,
I want to get names of Include program and included form within included forms.
I tried SY-REPID or SY-CPROG but these two SYST variables return the name of report program that performs the form, not the name of Include or form.
Please give me any advice about how to get names of include / included form.
thanks and regards,
HozyYou can use the statement
READ REPORT <Report name> into itab
to read the source code into an internal table.
Later you can use the "Contains Pattern" operator to get the statements that you need. -
SOA includes FORMS and REPORT service???
Hi all,
Is any one know the Oracle SOA Suite 10g Release 3 (10.1.3.1.0) includes forms and report service ??? Thanks in advance.
Thanks,
-james.Hi James,
No, forms and reports are not included. You have to setup another iAS instance for that. The latest iAS release including forms/reports is 10.1.2.x.
Kind regards,
H -
Hi,
I wrote the code like this .I am trying to use FORM which is defined in Report programm,But I am always getting error
message "Error at parameter 2 ":what change should i do for this. earlier I used the same code in ABAP ( not ABAP OO) it was working.
First Programm :
DATA : l_t_OTIFARR TYPE STANDARD TABLE OF /bic/aYO_SID0100,
w_table_to_be_read(30) type c.
w_table_to_be_read = '/bic/aYO_SID0100'.
perform READ_ODS in program YBW1_OTIF__SI_INCLUDES
tables SOURCE_PACKAGE
l_t_OTIFARR
using w_table_to_be_read.
****** REPPORT with FORM Definition
REPORT YBW1_OTIF__SI_INCLUDES.
FORM READ_ODS
TABLES SOURCE_PACKAGE structure /BIC/CS8YO_IGORD
l_t_ODS type TABLE
USING TABLE_TO_BE_READ TYPE C.
refresh l_t_ODS.
select * from (TABLE_TO_BE_READ) into table l_t_ODS
for all entries in SOURCE_PACKAGE
where /bic/ynv_order = SOURCE_PACKAGE-/bic/ynv_order.
ENDFORM.
Titled modified and code tags added by: kishan P on Oct 22, 2010 10:47 AMI was wrong about the parameters not working. I didn't spot the TYPE keyword.
I've tested the idea that it's an OO problem, and still can't see that it is. With the following, I get no problem.
data : l_t_otifarr type standard table of t100,
w_table_to_be_read(30) type c.
data: source_package type standard table of t000.
* CLASS tst DEFINITION
class tst definition.
public section.
class-methods: main.
endclass. "tst DEFINITION
* CLASS tst IMPLEMENTATION
class tst implementation.
method main.
select * from t100 up to 10 rows into table l_t_otifarr.
w_table_to_be_read = 'T100'.
perform read_ods in program ymabitest1
tables source_package
l_t_otifarr
using w_table_to_be_read.
endmethod. "main
endclass. "tst IMPLEMENTATION
start-of-selection.
tst=>main( ).
YMABITEST1.
*& Form READ_ODS
* text
* -->SOURCE_PACKAGE text
* -->L_T_ODS text
* -->TABLE_TO_BE_READ text
form read_ods
tables source_package structure t100
l_t_ods type table
using table_to_be_read type c.
endform.
Edited by: Matt on Oct 22, 2010 4:57 PM -
Hi,
In BW start routine, I want to put the code in a routine such as perform so I can call it repeatedly, passing different value each time as in an ABAP program in ECC. Can this be done? For example, I have a function module to get the month/year 1 month ago, 6 month ago, or 10 months ago. This is the current code:
*to get the month date 3 months ago.
ALL FUNCTION 'ZBW_CALMONTH'
EXPORTING
calmonth = DATA_PACKAGE-calmonth
backmonths = '2'
IMPORTING
smonth = month_3.
*to get the month date 6 months ago.
ALL FUNCTION 'ZBW_CALMONTH'
EXPORTING
calmonth = DATA_PACKAGE-calmonth
backmonths = '5'
IMPORTING
smonth = month_6.
I want to do:
PERFORM get_month using data_package-calmonth '2'. " to get the date 3 months ago.
PERFORM get_month using data_package-calmonth '5'. " to get the date 6 months ago.
Please advise.
Thank you.Hi Ravi,
Try this way.
*$*$ begin of global - insert your declaration only below this line *-*
* TABLES: ...
* DATA: ...
FORM get_month_3_ago CHANGING lv_month TYPE c(2).
ENDFORM.
FORM get_month_6_ago CHANGING lv_month TYPE c(2).
ENDFORM.
*$*$ end of global -
*$*$ begin of routine - insert your code only below this line *-*
* fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
* to make monitor entries
LOOP AT data_package INTO w_area.
if date GT sy-datum.
PERFORM get_month_3_ago CHANGING w_area-month.
else.
PERFORM get_month_6_ago CHANGING w_area-month.
ENDLOOP.
*$*$ end of routine - insert your code only before this line *-*
If you want this in BW 7.0, you can declare the FORM in
*$*$ begin of 2nd part global
*$*$ end of 2nd part global -
Sap script - using form-endform
I have used follwing code in subroutine,but in quality control this is rejected because of "structure" keyword.
FORM GET_TKNUM TABLES CT_INTAB structure ITCSY
CT_OUTTAB structure ITCSY.
IF CT_INTAB[] IS NOT INITIAL.
LOOP AT CT_INTAB INTO LV_INTAB.
READ TABLE CT_INTAB INDEX 1.
CHECK SY-SUBRC = 0.
MOVE ct_INTAB-VALUE TO LV_REQNO.
CLEAR CT_INTAB.
ENDLOOP.
ENDIF.
Then i used following code but values are not coming from script.
FORM SHIP_INFO USING CT_INTAB TYPE TABLE ITCSY
CT_OUTTAB TYPE TABLE ITCSY.
IF CT_INTAB[] IS NOT INITIAL.
LOOP AT CT_INTAB INTO LV_INTAB.
READ TABLE CT_INTAB INTO LV_INTAB INDEX 1.
CHECK SY-SUBRC = 0.
MOVE LV_INTAB-VALUE TO LV_SHIPNO.
CLEAR LV_INTAB.
ENDLOOP.
ENDIF.
what is another way to define form?Try using 'LIKE'.
LOOP AT CT_INTAB INTO LV_INTAB.
ENDLOOP.
FORM GET_TKNUM TABLES CT_INTAB LIKE ITCSY[]
CT_OUTTAB LIKE ITCSY[].
IF CT_INTAB[] IS NOT INITIAL.
READ TABLE CT_INTAB INDEX 1.
CHECK SY-SUBRC = 0.
MOVE CT_INTAB-VALUE TO LV_REQNO.
CLEAR CT_INTAB.
ENDIF.
ENDFORM
You may also refer to the below sample code from ABAP HELP. (I could not find a hyper link to it though)
TYPES: BEGIN OF FLIGHT_STRUC,
FLCARRID LIKE SFLIGHT-CARRID,
PRICE LIKE SFLIGHT-FLDATE,
END OF FLIGHT_STRUC.
DATA: MY_FLIGHT TYPE TABLE OF FLIGHT_STRUC,
IBOOK1 TYPE TABLE OF SBOOK,
IBOOK2 LIKE TABLE OF IBOOK1,
STRUC TYPE SBOOK.
PERFORM DISPLAY USING MY_FLIGHT IBOOK1 IBOOK2 STRUC.
FORM DISPLAY USING P_ITAB LIKE MY_FLIGHT[]
P_BOOK1 LIKE IBOOK1[]
P_BOOK2 LIKE IBOOK2[]
P_STRU LIKE STRUC.
DATA: L_FLIGHT LIKE LINE OF P_ITAB,
L_CARRID LIKE L_FLIGHT-FLCARRID.
WRITE: / P_STRU-CARRID, P_STRU-CONNID.
LOOP AT P_ITAB INTO L_FLIGHT WHERE FLCARRID = L_CARRID.
ENDLOOP.
ENDFORM. -
How to include form bookmarks in assembled document
Hello
My assembled documents consists of pdf forms and pdf converted from word documents). The forms are multi-paged so I would like to bookmark the major sections of the form. Ideally the ouput document would have bookmarks created from the the source bookmarks. However, when the input
to the assembler include a pdf form with bookmarks the resulting assembled document does not open cleanly. A popup appears (Warning: JavaScript Window) containg the message: "This PDF form requires a newer version of Adobe Acrobat...."
My question is does the assembler handle PDF Forms with bookmarks ( The form bookmarks were added in Designer using JavaScript). Maybe another module (Form ES) is required. Thanks for any information or insight. jb1809Hello
I am using ES2 version of LiveCycle. Thanks for any insight.
Regards -
Pass the flag in form endform.
I have decleared 2 flags in a type , how to pass these flag in a form endform
Hi!
Somehow like this:
PERFORM form1 CHANGING flag1 flag2.
form form1 changing p_flag1 p_flag2.
MOVE 1 TO p_flag1.
endform. " form1
Regards
Tamá -
Will you include form filling in the next release?
I really need to be able to fill out and save fillable PDF forms with Adobe Reader Touch. Microsoft Reader has limited support for filling pdf forms, but it frequently will not save the filled-in form. Will Adobe Reader Touch have this feature soon?
We have just released Adobe Reader Touch version 1.3 for Windows 8 and Windows RT.
Basic form filling
Color and opacity (transparency) options for Text Markups (Highlight, Strikeout, Underline)
Adobe Reader Touch version 1.3 also includes the past updates.
Printing
Commenting tools (Sticky Notes, Highlight, Strikeout, Underline)
Go to Page
Save and Save As
You can update your app from the Windows Store to get this latest capability and let us know what you think.
FAQ: How to update Adobe Reader Touch to the latest version -
hi guru's,
i have design a payslip in PE51 but problem is that i dont know how and where i will include it or how i'll call it?
can anyone please tell me step by step procedure? its urgent.
regards nitin.Hi,
Please go through this like.It may useful to u....
PE51 - Form Editor
Regards
Kiran
Maybe you are looking for
-
Re-importing Configuration Objects
experts! I have imported Configuration Objects from .tpz files in Integration Directory. Because of those objects where unable to activate, I did a reject change and all objects were gone. When I try re-import from the same .tpz file, it is not showi
-
Oracle ORAOLEDB Provider removes trailing blanks in parameter values of Type IN CHAR
Hi, I often use StoredProcedures With Ref_Cursor parameters to read data from an Oracle 11g DB. Because we use VARCHAR2 columns in our tables, we have to pad blanks for an exact match, the Input Parameter has to contain For example "WW2 ", This was w
-
I am using MAC OS X 10.7.5 i want to update to 10.8
Can any One Help it out .. How to upgrade the to 10.8
-
We are using oracle 10.2.0.3 RAC in window environment and have two instances with different database installed on the same host. If we are going to use RMAN and not going to use recovery catalog, is there impact if our dbid and dbname are the same f
-
How can I use 'Find my iPhone' on my MacBook
I wish to track my iPhone 6 using my MacBook and also be able to track my iPhone 6 using my MacBook. Can this be done?