Model and Value node data in one form...?
Hello,
I have a requirement where the adobe form is expected to have model data available and then in the same form teh user provides data, which is maintained in value node.
Now the problem we are facing is, we are unable to maintain both value node and model node(i.e,attributes) under one type of node.(Invalid node type error appears when tried to place both attributes under one node).
How do we provide them to data source, as it takes only one node.
Thanks & Regards,
Sharath
Hi,
you could try to add a some calculated attributes in the node which is bound to the interactive form. In the getter and setter methods of these calculated attributes you can read and set the value of your model attributes.
Regards
Sebastian
Similar Messages
-
Invalidation of model and value nodes
Hii,
I have a RFC which fetch values for me after giving some input values.The code for fetching is
ResultNode : model node containing values fetched from RFC execution.
OutputDetailsNode : value node for populating the fetched values to the table in View.
OutputDetailsNode.invalidate();
wdThis.wdGetTdc_DataCustController().execute_zsm_actual_allocation_input();
if(ResultNode.size()!=0)
wdComponentAPI.getMessageManager().reportSuccess(""ResultNode.size() "resultnode's size");
for(int i=0;i<ResultNode.size();i++)
ResultElement = ResultNode.getT_ResultElementAt(i);
OutputDetailsElement = OutputDetailsNode.createCtx_vn_OutputDetailsElement();
OutputDetailsElement.setTeam(ResultElement.getTeam());
OutputDetailsElement.setESA(ESA);
OutputDetailsElement.setUtilization(utilization);
OutputDetailsElement.setPercent_Sum(Percent_Sum);
OutputDetailsElement.setPercent_Alloc(percent_alloc);
OutputDetailsNode.addElement(OutputDetailsElement);
if(BapiNode.size()!=0)
for(int i =0;i<BapiNode.size();++i)
BapiElement = BapiNode.getBapiReturn_T_MessageElementAt(i);
wdComponentAPI.getMessageManager().reportSuccess(""
BapiElement.getMessage_V1()""+BapiElement.getMessage_V2());
OutputDetailsNode.invalidate();
BapiNode.invalidate();
//ResultNode.invalidate();
The problem lies : When at cases ResultNode size is 0, that is it does not fetch any values and BapiNode prints the message
"Data does not exist" ....after that when it is expected to fetch values, evrytime the ResultNode size prints to 0 and no
data is displayed.....
invalidating both ResultNode and OutputDetailsNode did not help.
Please do suggest.Hi,
u can write like this na,
OutputDetailsNode.invalidate();
wdThis.wdGetTdc_DataCustController().execute_zsm_actual_allocation_input();
if(ResultNode.size()!=0)
wdComponentAPI.getMessageManager().reportSuccess(""ResultNode.size() "resultnode's size");
for(int i=0;i<ResultNode.size();i++)
ResultElement = ResultNode.getT_ResultElementAt(i);
OutputDetailsElement = OutputDetailsNode.createCtx_vn_OutputDetailsElement();
OutputDetailsElement.setTeam(ResultElement.getTeam());
OutputDetailsElement.setESA(ESA);
OutputDetailsElement.setUtilization(utilization);
OutputDetailsElement.setPercent_Sum(Percent_Sum);
OutputDetailsElement.setPercent_Alloc(percent_alloc);
OutputDetailsNode.addElement(OutputDetailsElement);
}else{
// here give error message.
use external debugging to know the rfc returns the value or not ?
why you using the bapinode to check the no data exists ?
Regards,
ramesh -
How to make qury form and copy one data from one form to another
Hi,
i would like to develop a form which is used to query a particular data and copy that data to other form.
ThanksHi,
i have to develop two form namely memo and chalan.
memo will generate by different departments and send to store department to create a chalan.
first memo data will enter by department and this memo no will send to store department.
store department will find that memo by find button and data should copy from memo form to chalan form -
How to pass Data from one form to the other
Hi all
Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
If any one of u have any idea, give me a reply
Thank you
SuhasiniIf you choose the second alternative you should erase these global variables after the second form is opened
You can erase the global variable using:
erase('global_var')
Greetings,
Sim -
Migrate PY and TM cluster data from One SAP System to another
Hi Experts,
Could you please suggest me some options to migrate PY and TM cluster data from One SAP System to another? My requirement is to move all the cluster data (Active and Inactive ees).
I see that PU12 is an option. Anybody used that to migrate between SAP systems. Please provide some details
Points guaranteed
I see that using PU12 you can export only PCL2 Clutsers. Are there any ways to move the other clusters like PCL4 ?Hi,
As far as data transfer, If have all normal configuration settings in your targeted system you can use LSMW (Use T.code AS91 in LSMW for recording) to transfer your data in your both cases.
Hope it resolves your both the issues.
Regards,
Murali -
How to make Copy and Paste buttons to transfer data from one form to another
Hi, a complete newbie here. I’m looking to create a Button 1 that can Copy data from a filled out adobe form, mainly the text fields and checked radio buttons, and then have another Button 2 that can Paste the copied data to another form, containing the exact same text fields and radio buttons.
Example:
1. Click "Copy" in Form 1
2. Click "Paste" in Form 2
3. Fills data from Form 1 to Form 2
Any idea how to do this?Users will need to uncheck Enable Global Object Security Policy, found in the JavaScript section of the Preferences to do it. That's unlikely to be the case since the opposite is the default.
Take a look at the section of the JavaScript SDK "Querying an Acrobat form field value in another open form" for details on how to do it.
http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/JS_Dev_AcrobatForms.76.41.html -
How can we get data from One Form to Another Form
Hi All,
I have 2Forms.I'm calling one form from another form buy using next form button.
If i press itis opening 2nd form,Simultaneously i have to get the data to the 2nd form.Can any one help me in this.
Any triggers has to be fire tell me the solution
Regards
Sivayou may have better success over here
Forms -
Retrieving spatial and non spatial data in one query
Hello. I am having slight difficulties using JDBC to retrieve both spatial and non spatial data in the same query. The following is code from a sample program of mine that retrives spatial data from spatial tables.
(In spatialquery geom is a geometry column and city is simply the name of the city):
try
Geometry geom = null;
String database = "jdbc:oracle:thin:@" + m_host + ":" + m_port + ":" + m_sid;
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = (OracleConnection)DriverManager.getConnection(database, sUsername, sPassword);
GeometryAdapter sdoAdapter =
OraSpatialManager.getGeometryAdapter("SDO", "8.1.7", STRUCT.class, null, null, con);
String spatialquery = "SELECT a1.geom, a1.city \n" +
"FROM cities a1";
Statement stmt = con.createStatement();
OracleResultSet rs = (OracleResultSet) stmt.executeQuery(spatialquery);
int i = 0;
int noOfFeatures = 2;
while (rs.next())
for(i = 1; i <= noOfFeatures; i++)
STRUCT dbObject = (STRUCT)rs.getObject(i);
try
geom = sdoAdapter.importGeometry(dbObject);
catch(GeometryInputTypeNotSupportedException e)
System.out.println("Input Type not supported");
catch(InvalidGeometryException e)
System.out.println("Invalid geometry");
System.out.println(geom);
}//end while loop
This retrieves the sptial data fine, however when I attempt to retreive the non-spatial data I keep getting a "ClassCastException" error. I understand it is something to do with "STRUCT dbObject = (STRUCT)rs.getObject(i);" line. Can anyone tell me how to retrieve both spatial and non-spatial data in the one query using JDBC. I have tried nearly everything at this stage. Cheers joeTheresa A Radke
Posts: 20
OTN Member Since: Jul, 2001
retrieving spatial and non spatial in same query. May 23, 2003 12:02 AM
retrieving spatial and non spatial in same query. -
Wrong value is passing from one form to a other form's parameter
I am passing value from one form to another form using following code
DECLARE
pl_id ParamList;
pl_name VARCHAR2(10) := 'task_id';
BEGIN
pl_id := Get_Parameter_List(pl_name);
--destroy_parameter_list(pl_id);
IF Id_Null(pl_id) THEN
null;
ELSE
destroy_parameter_list(pl_id);
END IF;
pl_id := Create_Parameter_List(pl_name);
pl_id := Get_Parameter_List(pl_name);
IF NOT Id_Null(pl_id) THEN
Add_Parameter(pl_id,'PARAM_SEIT_ID',TEXT_PARAMETER,'120');
END IF;
call_form('D:\dir1\form1', no_hide, no_replace,query_only, SHARE_LIBRARY_DATA, pl_id);
delete_Parameter(pl_name,'PARAM_SEIT_ID');
exception
when others then
message('Error'||sqlerrm);
message(1);
END;
I am created a parameter with the same name in the other form, but value is not passing to that parameter properly. it is showing value
-5153000000000000000000000000.
Please solve my problemTry this code
DECLARE
PA_1 VARCHAR2(30);
PA_2 VARCHAR2(30);
PA_3 VARCHAR2(30);
PA_4 VARCHAR2(30);
PA_5 VARCHAR2(30);
PLISTREP paramList;
BEGIN
/* give value to parameter */
PA_1 := :PARAMETER.P_1;
PA_2 := :PARAMETER.P_2;
PA_3 := :PARAMETER.P_3;
PA_4 := :PARAMETER.P_4;
PA_5 := :PARAMETER.P_5;
PLISTREP := Get_Parameter_List(pl_name);
IF Not Id_Null(PLISTREP) THEN
Destroy_Parameter_List(pl_name);
End If;
PLISTREP := Create_Parameter_List(pl_name);
IF Id_Null(PLISTREP) THEN
Message('Error creating parameter list '||pl_name);
RAISE Form_Trigger_Failure;
END IF;
/* ADD_PARAMETER TO PARAMETER_LIST */
Add_Parameter(PLISTREP,'P_1',TEXT_PARAMETER,PA_1);
Add_Parameter(PLISTREP,'P_2',TEXT_PARAMETER,PA_2);
Add_Parameter(PLISTREP,'P_3',TEXT_PARAMETER,PA_3);
Add_Parameter(PLISTREP,'P_4',TEXT_PARAMETER,PA_4);
CALL_FORM(name_of_your_form,no_HIDE,NO_REPLACE,QUERY_ONLY,SHARE_LIBRARY_DATA,PLISTREP);
I have tried to adapt to your case.
Hope it helps you,
Fabrizio -
Download the KTOPL field data and GLT0 table data into one Internal table
Hi,
I have downloaded GLT0 table fields data to PC file . But i need to download KTOPL(Chart Of Accounts) data also. in GLT0 table there is no KTOPL field.
But in SKA1 table have KTOPL field. Then what is the issue is GLT0 data & KTOPL field data needs to download into one Internal Table.
anybody could you please solve this problem. immediately need to solve this.
Below is the code.
REPORT ZFXXEABL_1 NO STANDARD PAGE HEADING
LINE-SIZE 200.
Tables Declaration
TABLES : GLT0.
Data Declaration
DATA : FP(8) TYPE C,
YEAR LIKE GLT0-RYEAR,
PERIOD(3) TYPE C,
DBALANCE LIKE VBAP-NETWR VALUE 0 ,
CBALANCE LIKE VBAP-NETWR VALUE 0.
*Internal table for for final data..
DATA : BEGIN OF REC1 OCCURS 0,
BAL LIKE GLT0-TSLVT value 0,
COAREA LIKE GLT0-RBUSA,
CA(4) TYPE C,
KTOPL LIKE ska1-ktopl,
CCODE LIKE GLT0-BUKRS,
CREDIT LIKE VBAP-NETWR,
CURRENCY LIKE GLT0-RTCUR,
CURTYPE(2) TYPE N,
DEBIT LIKE VBAP-NETWR,
YEAR(8) TYPE C,
FY(2) TYPE C,
ACCOUNT LIKE GLT0-RACCT,
VER LIKE GLT0-RVERS,
VTYPE(2) TYPE N,
CLNT LIKE SY-MANDT,
S_SYS(3) TYPE C,
INDICATOR LIKE GLT0-DRCRK,
END OF REC1.
DATA : C(2) TYPE N,
D(2) TYPE N.
DATA REC1_H LIKE REC1.
Variable declarations
DATA :
W_FILES(4) TYPE N,
W_DEBIT LIKE GLT0-TSLVT,
W_CREDIT LIKE GLT0-TSLVT,
W_PCFILE LIKE RLGRAP-FILENAME ,
W_UNIXFILE LIKE RLGRAP-FILENAME,
W_PCFILE1 LIKE RLGRAP-FILENAME,
W_UNIXFIL1 LIKE RLGRAP-FILENAME,
W_EXT(3) TYPE C,
W_UEXT(3) TYPE C,
W_PATH LIKE RLGRAP-FILENAME,
W_UPATH LIKE RLGRAP-FILENAME,
W_FIRST(1) TYPE C VALUE 'Y',
W_CFIRST(1) TYPE C VALUE 'Y',
W_PCFIL LIKE RLGRAP-FILENAME.
DATA: "REC LIKE GLT0 OCCURS 0 WITH HEADER LINE,
T_TEMP LIKE GLT0 OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF REC3 OCCURS 0.
INCLUDE STRUCTURE GLT0.
DATA: KTOPL LIKE SKA1-KTOPL,
END OF REC3.
DATA: BEGIN OF T_KTOPL OCCURS 0,
KTOPL LIKE SKA1-KTOPL,
SAKNR LIKE SKA1-SAKNR,
END OF T_KTOPL.
Download data.
DATA: BEGIN OF I_REC2 OCCURS 0,
BAL(17), " like GLT0-TSLVT value 0,
COAREA(4), " like glt0-rbusa,
CA(4), " chart of accounts
CCODE(4), " like glt0-bukrs,
CREDIT(17), " like vbap-netwr,
CURRENCY(5), " like glt0-rtcur,
CURTYPE(2), " type n,
DEBIT(17), " like vbap-netwr,
YEAR(8), " type c,
FY(2), " type c, fiscal yr variant
ACCOUNT(10), " like glt0-racct,
VER(3), " like glt0-rvers,
VTYPE(3), " type n,
CLNT(3), "like sy-mandt,
S_SYS(3), "like sy-sysid,
INDICATOR(1), " like glt0-drcrk,
END OF I_REC2.
Selection screen. *
SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1.
SELECT-OPTIONS : COMPCODE FOR GLT0-BUKRS,
GLACC FOR GLT0-RACCT,
FISYEAR FOR GLT0-RYEAR,
no intervals no-extension, "- BG6661-070212
FISCPER FOR GLT0-RPMAX,
busarea for glt0-rbusa,
CURRENCY FOR GLT0-RTCUR.
SELECTION-SCREEN END OF BLOCK BL1.
SELECTION-SCREEN BEGIN OF BLOCK BL2 WITH FRAME TITLE TEXT-BL2.
PARAMETERS:
P_UNIX AS CHECKBOX, "Check box for Unix Option
P_UNFIL LIKE RLGRAP-FILENAME, " Unix file Dnload file name
default '/var/opt/arch/extract/GLT0.ASC', "- BG6661-070212
P_PCFILE AS CHECKBOX, "Check box for Local PC download.
P_PCFIL LIKE RLGRAP-FILENAME " PC file Dnload file name
default 'C:\GLT0.ASC'. "- BG6661-070212
DEFAULT 'C:\glt0_gl_balance_all.asc'. "+ BG6661-070212
SELECTION-SCREEN END OF BLOCK BL2.
*eject
Initialization. *
INITIALIZATION.
Try to default download filename
p_pcfil = c_pcfile.
p_unfil = c_unixfile.
if sy-sysid eq c_n01.
p_unfil = c_unixfile.
endif.
if sy-sysid eq c_g21.
p_unfil = c_g21_unixfile.
endif.
if sy-sysid eq c_g9d.
p_unfil = c_g9d_unixfile.
endif.
Default for download filename
*{ Begin of BG6661-070212
CONCATENATE C_UNIXFILE
SY-SYSID C_FSLASH C_CHRON C_FILENAME INTO P_UNFIL.
*} End of BG6661-070212
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-name = 'P_PCFIL'. "PC FILE
screen-input = '0'.
modify screen.
endif.
if screen-name = 'P_UNFIL'. "UN FILE
screen-input = '0'.
modify screen.
endif.
endloop.
if w_first = 'Y'.
perform path_file.
w_first = 'N'.
endif.
if w_cfirst = 'Y'.
perform cpath_file.
w_cfirst = 'N'.
endif.
Start-of-Selection. *
START-OF-SELECTION.
*COLLECT DATA
PERFORM COLLECT_DATA.
*BUILD FILENAMES
PERFORM BUILD_FILES.
*LOCAL
IF P_PCFILE = C_YES.
PERFORM LOCAL_DOWNLOAD.
ENDIF.
*UNIX
IF P_UNIX = C_YES.
PERFORM UNIX_DOWNLOAD.
ENDIF.
IF P_PCFILE IS INITIAL AND P_UNIX IS INITIAL.
MESSAGE I000(ZL) WITH 'Down load flags both are unchecked'.
ENDIF.
END-OF-SELECTION.
IF P_PCFILE = C_YES.
WRITE :/ 'PC File' , C_UNDER, P_PCFIL.
ENDIF.
*& Form DOWNLOAD
Download *
FORM DOWNLOAD.
P_PCFIL = W_PATH.
DATA LIN TYPE I.
DESCRIBE TABLE I_REC2 LINES LIN.
WRITE:/ 'No of Records downloaded = ',LIN.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = P_PCFIL
FILETYPE = C_ASC "c_dat "dat
TABLES
DATA_TAB = I_REC2 " t_str
fieldnames = t_strhd
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8.
IF SY-SUBRC EQ 0.
ENDIF.
ENDFORM.
*& Form WRITE_TO_SERVER
text *
--> p1 text
<-- p2 text
FORM WRITE_TO_SERVER.
DATA : L_MSG(100) TYPE C,
L_LINE(5000) TYPE C.
P_UNFIL = W_UPATH.
DATA LIN TYPE I.
DESCRIBE TABLE I_REC2 LINES LIN.
WRITE:/ 'No of Records downloaded = ',LIN.
OPEN DATASET P_UNFIL FOR OUTPUT IN TEXT MODE. " message l_msg.
IF SY-SUBRC <> 0.
WRITE: / L_MSG.
ENDIF.
perform header_text1.
LOOP AT I_REC2.
TRANSFER I_REC2 TO P_UNFIL.
ENDLOOP.
CLOSE DATASET P_UNFIL.
WRITE : / C_TEXT , W_UPATH.
SPLIT W_UNIXFILE AT C_DOT INTO W_UNIXFIL1 W_UEXT.
CLEAR W_UPATH.
IF NOT W_UEXT IS INITIAL.
CONCATENATE W_UNIXFIL1 C_DOT W_UEXT INTO W_UPATH.
ELSE.
W_UEXT = C_ASC. " c_csv.
CONCATENATE W_UNIXFIL1 C_DOT W_UEXT INTO W_UPATH.
ENDIF.
ENDFORM. " WRITE_TO_SERVER
*& Form BUILD_FILES
FORM BUILD_FILES.
IF P_PCFILE = C_YES.
W_PCFILE = P_PCFIL.
***Split path at dot**
SPLIT W_PCFILE AT C_DOT INTO W_PCFILE1 W_EXT.
IF NOT W_EXT IS INITIAL.
CONCATENATE W_PCFILE1 C_DOT W_EXT INTO W_PATH.
ELSE.
W_PATH = W_PCFILE1.
ENDIF.
ENDIF.
IF P_UNIX = C_YES.
W_UNIXFILE = P_UNFIL.
SPLIT W_UNIXFILE AT C_DOT INTO W_UNIXFIL1 W_UEXT.
IF NOT W_UEXT IS INITIAL.
CONCATENATE W_UNIXFIL1 C_DOT W_UEXT INTO W_UPATH.
ELSE.
W_UPATH = W_UNIXFIL1.
ENDIF.
ENDIF.
ENDFORM.
FORM CPATH_FILE.
CLEAR P_PCFIL.
CONCATENATE C_PCFILE
C_COMFILE SY-SYSID C_UNDER SY-DATUM SY-UZEIT
C_DOT C_ASC INTO P_PCFIL.
ENDFORM. " CPATH_FILE
FORM PATH_FILE.
CLEAR P_UNFIL.
if sy-sysid eq c_n01.
CONCATENATE C_UNIXFILE
C_COMFILE SY-SYSID C_UNDER SY-DATUM SY-UZEIT
C_DOT C_ASC INTO P_UNFIL.
endif.
if sy-sysid eq c_g21.
concatenate c_g21_unixfile
c_comfile sy-sysid c_under sy-datum sy-uzeit
c_dot c_asc into p_unfil.
endif.
if sy-sysid eq c_g9d.
concatenate c_g9d_unixfile
c_comfile sy-sysid c_under sy-datum sy-uzeit
c_dot c_asc into p_unfil.
endif.
ENDFORM. " PATH_FILE
Local_Download *
Local *
FORM LOCAL_DOWNLOAD.
perform header_text.
LOOP AT REC1.
REC1-CLNT = SY-MANDT.
REC1-S_SYS = SY-SYSID.
MOVE: REC1-BAL TO I_REC2-BAL,
REC1-COAREA TO I_REC2-COAREA,
REC1-CA TO I_REC2-CA,
REC1-KTOPL TO I_REC2-CA,
REC1-CCODE TO I_REC2-CCODE,
REC1-CREDIT TO I_REC2-CREDIT,
REC1-CURRENCY TO I_REC2-CURRENCY,
REC1-CURTYPE TO I_REC2-CURTYPE,
REC1-DEBIT TO I_REC2-DEBIT,
REC1-YEAR TO I_REC2-YEAR,
REC1-FY TO I_REC2-FY,
REC1-ACCOUNT TO I_REC2-ACCOUNT,
REC1-VER TO I_REC2-VER,
REC1-VTYPE TO I_REC2-VTYPE,
REC1-CLNT TO I_REC2-CLNT,
REC1-S_SYS TO I_REC2-S_SYS,
REC1-INDICATOR TO I_REC2-INDICATOR.
APPEND I_REC2.
CLEAR I_REC2.
ENDLOOP.
IF NOT I_REC2[] IS INITIAL.
PERFORM DOWNLOAD .
CLEAR I_REC2.
REFRESH I_REC2.
ELSE.
WRITE : / ' no record exist due to unavailability of data'.
ENDIF.
ENDFORM. " LOCAL_DOWNLOAD
*& Form UNIX_DOWNLOAD
FORM UNIX_DOWNLOAD.
LOOP AT REC1.
REC1-CLNT = SY-MANDT.
REC1-S_SYS = SY-SYSID.
MOVE: REC1-BAL TO I_REC2-BAL,
REC1-COAREA TO I_REC2-COAREA,
REC1-CA TO I_REC2-CA,
REC1-KTOPL TO I_REC2-CA,
REC1-CCODE TO I_REC2-CCODE,
REC1-CREDIT TO I_REC2-CREDIT,
REC1-CURRENCY TO I_REC2-CURRENCY,
REC1-CURTYPE TO I_REC2-CURTYPE,
REC1-DEBIT TO I_REC2-DEBIT,
REC1-YEAR TO I_REC2-YEAR,
REC1-FY TO I_REC2-FY,
REC1-ACCOUNT TO I_REC2-ACCOUNT,
REC1-VER TO I_REC2-VER,
REC1-VTYPE TO I_REC2-VTYPE,
SY-MANDT TO I_REC2-CLNT,
SY-SYSID TO I_REC2-S_SYS,
REC1-INDICATOR TO I_REC2-INDICATOR.
APPEND I_REC2.
CLEAR I_REC2.
ENDLOOP.
IF NOT I_REC2[] IS INITIAL.
PERFORM WRITE_TO_SERVER.
CLEAR I_REC2.
REFRESH I_REC2.
ELSE.
WRITE : / ' no record exist due to unavailability of data'.
ENDIF.
ENDFORM. " UNIX_DOWNLOAD
*& Form HEADER_TEXT
text *
--> p1 text
<-- p2 text
*form header_text.
concatenate c_bal c_ba c_ca c_cc c_credit c_currency c_curtype
c_debit c_fisyear c_fisvar c_acct c_ver c_vtype c_indicator
into t_strhd
separated by c_comma.
append t_strhd.
*endform. " HEADER_TEXT
*& Form HEADER_TEXT1
text *
*form header_text1.
concatenate c_bal c_ba c_ca c_cc c_credit c_currency c_curtype
c_debit c_fisyear c_fisvar c_acct c_ver c_vtype c_indicator
into t_strhd1
separated by c_comma.
append t_strhd1.
transfer t_strhd1 to p_unfil.
*endform. " HEADER_TEXT1
*& Form COLLECT_DATA
Collect Data *
FORM COLLECT_DATA.
SELECT * FROM GLT0 INTO TABLE REC3
WHERE BUKRS IN COMPCODE
AND RYEAR IN FISYEAR
AND RPMAX IN FISCPER
AND RACCT IN GLACC
AND RTCUR IN CURRENCY.
SELECT KTOPL FROM SKA1
INTO TABLE T_KTOPL
FOR ALL ENTRIES IN REC3
WHERE SAKNR = REC3-RACCT.
LOOP AT REC3 .
select *
from glt0
into table t_temp
where rldnr = rec-rldnr
and rrcty = rec-rrcty
and rvers = rec-rvers
and bukrs = rec-bukrs
and ryear = rec-ryear
and racct = rec-racct
and rbusa = rec-rbusa
and rtcur <> 'ZAR'
and rpmax = rec-rpmax.
if sy-subrc = 0.
rec1-bal = '0.00'.
else.
rec1-bal = rec-hslvt.
endif.
*READ TABLE T_KTOPL WITH KEY SAKNR = REC-RACCT BINARY SEARCH.
MOVE T_KTOPL-KTOPL TO REC3-KTOPL.
CLEAR: CBALANCE, DBALANCE.
REC1-BAL = REC3-HSLVT.
IF REC3-DRCRK = 'S'.
IF REC3-HSLVT NE C_ZERO.
YEAR = REC-RYEAR.
PERIOD = '000'.
CONCATENATE PERIOD C_DOT YEAR INTO FP.
REC1-INDICATOR = REC-DRCRK.
REC1-DEBIT = C_ZERO.
REC1-CREDIT = C_ZERO.
REC1-CCODE = REC-BUKRS.
REC1-YEAR = FP.
REC1-CURRENCY = REC-RTCUR.
REC1-ACCOUNT = REC-RACCT.
rec1-bal = rec-hslvt.
dbalance = rec1-bal.
REC1-CURTYPE = C_CTYPE.
REC1-FY = C_FY.
REC1-COAREA = REC-RBUSA.
REC1-VER = REC-RVERS.
REC1-VTYPE = C_CTYPE.
REC1-CA = C_CHART.
APPEND REC1.
C = 0.
PERFORM D.
ENDIF.
IF REC3-HSL01 NE C_ZERO.
YEAR = REC3-RYEAR.
PERIOD = '001'.
CONCATENATE PERIOD C_DOT YEAR INTO FP.
REC1-INDICATOR = REC3-DRCRK.
REC1-DEBIT = REC3-HSL01 .
REC1-CCODE = REC3-BUKRS.
REC1-YEAR = FP.
REC1-CURRENCY = REC3-RTCUR.
REC1-ACCOUNT = REC3-RACCT.
rec1-bal = REC3-hsl01 + dbalance.
dbalance = rec1-bal.
REC1-CURTYPE = C_CTYPE.
REC1-FY = C_FY.
REC1-COAREA = REC3-RBUSA.
REC1-VER = REC3-RVERS.
REC1-VTYPE = C_CTYPE.
REC1-CA = C_CHART.
REC1-KTOPL = REC3-KTOPL.
APPEND REC1.
C = 1.
PERFORM D.
ENDIF.
IF REC3-HSL02 NE C_ZERO.
REC1-DEBIT = REC3-HSL02.
YEAR = REC3-RYEAR.
PERIOD = '002'.
CONCATENATE PERIOD C_DOT YEAR INTO FP.
REC1-INDICATOR = REC3-DRCRK.
REC1-DEBIT = REC3-HSL02.
REC1-CCODE = REC3-BUKRS.
REC1-YEAR = FP.
REC1-CURRENCY = REC3-RTCUR.
REC1-ACCOUNT = REC3-RACCT.
rec1-bal = REC3-hsl02 + dbalance.
dbalance = rec1-bal.
REC1-CURTYPE = C_CTYPE.
REC1-FY = C_FY.
REC1-COAREA = REC3-RBUSA.
REC1-VER = REC3-RVERS.
REC1-VTYPE = C_CTYPE.
REC1-CA = C_CHART. "-BF7957-070503
REC1-KTOPL = REC3-KTOPL. "+BF7957-070503
APPEND REC1.
C = 2.
PERFORM D.
ENDIF.
IF REC3-HSL03 NE C_ZERO.
YEAR = REC3-RYEAR.
PERIOD = '003'.
CONCATENATE PERIOD C_DOT YEAR INTO FP.
REC1-INDICATOR = REC3-DRCRK.
REC1-DEBIT = REC3-HSL03.
REC1-CCODE = REC3-BUKRS.
REC1-YEAR = FP.
REC1-CURRENCY = REC3-RTCUR.
REC1-ACCOUNT = REC3-RACCT.
rec1-bal = REC3-hsl03 + dbalance .
dbalance = rec1-bal.
REC1-CURTYPE = C_CTYPE.
REC1-FY = C_FY.
REC1-COAREA = REC3-RBUSA.
REC1-VER = REC3-RVERS.
REC1-VTYPE = C_CTYPE.
REC1-CA = C_CHART. "-BF7957-070503
REC1-KTOPL = REC3-KTOPL. "+BF7957-070503
APPEND REC1.
C = 3.
PERFORM D.
ENDIF.
IF REC3-HSL04 NE C_ZERO.
REC1-DEBIT = REC3-HSL04.
YEAR = REC3-RYEAR.
PERIOD = '004'.
CONCATENATE PERIOD C_DOT YEAR INTO FP.
REC1-INDICATOR = REC3-DRCRK.
REC1-DEBIT = REC3-HSL04.
REC1-CCODE = REC3-BUKRS.
REC1-YEAR = FP.
REC1-CURRENCY = REC3-RTCUR.
REC1-ACCOUNT = REC3-RACCT.
rec1-bal = REC3-hsl04 + dbalance .
REC1-CURTYPE = C_CTYPE.
REC1-FY = C_FY.
REC1-COAREA = REC3-RBUSA.
REC1-VER = REC3-RVERS.
REC1-VTYPE = C_CTYPE.
REC1-CA = C_CHART. "-BF7957-070503
REC1-KTOPL = REC3-KTOPL. "+BF7957-070503
APPEND REC1.
dbalance = rec1-bal.
C = 4.
PERFORM D.
ENDIF.
Thanks and Regards,
Ramuse logical database SDF, nodes ska1 and skc1c
A. -
Need to raise an error if Users puts wrong value for date datatype in Forms
Hi all,
I've created a new form using Template.fmb in forms 10g having some text item with data type as DATE.
and now i wanted to raise an error if users inputs any wrong data rather than DATE format.
Please help me if anyone knows how to do this...b_kapsy wrote:
As of now i am not looking for validation, i know the validation will automatically done but if you see by default it will not raise any error message if you fill any wrong value in text item with date data type. It will freeze the cursor to the text item.That is NOT the default. The default is to issue various FRM-nnnnn messages, between 50002 and 50026. From notes I have:
-- 50002: Month must be between 1 and 12.
-- 50003: Year must be 00-99 or 1000-4712
-- 50004: Day must be between 1 and last of month.
-- 50012: Date must be entered in a format like <fxMMDDRR>
-- 50017,18,19: Hour,Min,Sec must be between 0 and 23,59,59.
-- 50025: Date/time must be entered in a format like <xxyytttt>
-- 50026: same as 50012 and 50025 with <yyyy> year.
And from my old, dusty copy of the Oracle Developer/2000 "Messages and Codes Manual", those messages have an error level = 15.
If you are not seeing those messages, then you have done one of two things:
1. Set your System.Message_Level to a value of 15 or higher. You should NEVER set it above zero, since all that does is hides error messages like these. If you want to bypass or prevent an error message, it should be handled in the Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011.
2. You have some bad code in an On-Error trigger that fails to handle errors correctly. -
Copy the caption and value text from a pdf form to a word doc.
I designed a form to be used by nurses for entering data. They then want to copy the info into a text editor of a program (similar to word). When they copy paste it only copies the field and not the values entered. Any fixes?
When the form I designed for some nurses is used, the information has to be copied and then pasted into a text editor program for a patient file. When I do a select all and copy, it only copies the fields, not the information entered by the nurses. Is there a way to allow all of the fields and text entered to be copied and then pasted in the editor program?
-
Allowing "Reader Users" to Save MULTIPLE Unique Sets of Forms Data for One Form
I own Acrobat Pro X. I use it to create many documents in my law practice. I need to deliver a contract form to a client that the client will use again and again and again... The client only owns Acrobat Reader. I need this to be like a "template" in Microsoft Word. The client needs to be able to fill-in the fillable fields on the document that I have created, then print and save it (e.g. as "Jones.pdf"), then fill it with new data and print and save it again (e.g. as "Smith.pdf"). This process may need to be repeated hundreds or thousands of times. Sometimes the client will need to reopen a document (data set) that was previously saved and printed and see it as it was last printed (so, to load "Jones.pdf" and see it as it was created). Sometimes the client will need to send a "filled" PDF to one of his customers, where the client's customer can print the document, but not change any of the fields (much less the body of the document, of course). So to sum up:
* Attorney creates contract with fillable fields in Acrobat Pro X and sends to client;
* Client uses PDF created by attorney to create, print and save an infinite number of unique 'data sets' for the document, any of which can be opened and printed at any time; and
* Client sends locked-down, un-changeable PDF to Client's customer for customer to print, but not change.
All of this needs to be able to happen without the Client ever buying Acrobat. Is this possible? I'm aware of File > Save As > Reader Extended PDF > Enable Additional Features, but I cannot figure out if this will work, since I don't use Reader on my pc.
Surely this scenario is faced by document creators often. However, I tried and failed to find a set of search terms which would reveal discussion threads that were relevant to this query.I apologize for being unclear. I'll try to clarify the facts.
1. I have written a custom subcontract agreement for one client. This is the only client that I will ever give this particularl document/subcontract. My client will *never* send the data or the document back to me. Once I turn over this document to my client, it is from my perspective, a one-time, one-way transaction.
2. My client
Will be the only person who will ever put data in the fields (using Acrobat Reader);
Will create hundreds or thousands of unique subcontracts using the document that I have created, but the only difference between each will be the data that my client has put in the fields;
Needs to be able save each unique set of data as a unique pdf (jones_1.pdf; smith_2.pdf; etc.);
Needs to be able to email the completed document to his customer in a way that his customer cannot modify the document, but can view it, print it, sign the paper printout and snail-mail it back.
3. My client's customer
Should be able to view and print, but be unable to change anything in the document;
Will not need to sign the document electronically (there will be no digital signatures)
Users of Microsoft Word are familiar with the concempt of templates. When you create a new document based on a template, the content and formatting can be changed in each new iteration made from the template, but the original template is not changed. I could give my client the subcontract as a Word template, but his staff could easily or accidentally change important language that I don't want them to be able to change. For the client's own protection, I want the client only to be able to change data in the fields that I've designated. This sort of scheme is impossible using a Word document or template. I hope it's possible with a PDF. -
Insert data from one form to another table
I have a form which of course insert data into table1, i created a process within this form and include a sql statement to achieve this for me. My thoughts are this will take whatever is the value from the form and insert it into table2.
INSERT INTO ML_LIST (ML_TITLE,ML_LASTNAME)
VALUES
(P20_SSR_TITLE, P20_SSR_LASTNAME);
My error is column not allowed here
Any suggestionsI used the following
Begin
INSERT INTO ML_LIST (ML_TITLE,ML_LASTNAME)
VALUES
(:P20_SSR_TITLE,:P20_SSR_LASTNAME);
End; -
How to get custom field name and value in data table using csom
i am using using this code but iam not getting FieldValues property..
internal void ReadProjectCustomFields(string strProjectName)
string url = "https://techwhizepm.sharepoint.com/sites/rnd/";
using (ProjectContext projContext = new ProjectContext(url))
SecureString passWord = new SecureString();
foreach (char c in "Pass@word123".ToCharArray()) passWord.AppendChar(c);
projContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord);
projContext.Load(projContext.Projects, o => o.Where(i => i.Name == strProjectName));
projContext.ExecuteQuery();
foreach (PublishedProject _t in projContext.Projects)
DraftProject dftproj = _t.Draft;
//CustomFieldCollection custs = dftproj.CustomFields;
CustomFieldCollection custfs = dftproj.CustomFields;
projContext.Load(dftproj);
projContext.Load(custfs);
projContext.ExecuteQuery();
ddlcfields.Items.Clear();
if (!custfs.Count().Equals(0))
ddlcfields.DataSource = custfs.AsEnumerable().Select(o=>o.Name);
ddlcfields.DataBind();
DataTable dt = new DataTable();
dt.Columns.Add("Name", typeof(string));
dt.Columns.Add("InternalName", typeof(string));
dt.Columns.Add("FieldType", typeof(string));
//dt.Columns.Add("FinishDate", typeof(string));
DataRow dr = null;
foreach (CustomField _cust in dftproj.CustomFields)
dr = dt.NewRow();
dr["Name"] = _cust.Name;
string intername = _cust.InternalName;
dr["FieldValue"] = dftproj[intername].ToString();
//dr["FinishDate"] = _task.Finish;
dt.Rows.Add(dr);
GridView1.DataSource = dt;
GridView1.DataBind();I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
Error:
Error: Export failed.
Detail: File not found.
This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this?
Maybe you are looking for
-
How to get the name of a duplicated control or created control and add a callback to it
Hi All, Depending on how many input points I need, I am duplicating a numeric or string input with the DuplicateCtrl function. My question is, how do I get the name and id of the control that was just created, and how can i assign a callback to it? A
-
HI When i am trying to post the revaluation of an asset by AR29N then i am getting following error. I am doing following settings in AR29N asset valued amount revaluation offsetting account T -type 897 Depreciation wout/ writeback revaluation measure
-
Leopard install disks being scratched during install
I have had a couple of very strange experiences trying to install Leopard (upgrading from 10.4.10). I initially ordered (at a special price) and received a Leopard disk under the program whereby I had purchased my MacBook Pro within the month prior t
-
After sending email thunderbird gives a "not responding" message for about 2 minutes
after sending an email thunderbird will not respond for approx 2 minutes.
-
How many countries is the iTunes store available in?
Anyone know this? I cannot find a definite answer. thank you! Michael