How can store my form financial values in G/L Account databas
hi friends,
i have one form which has a field like O.T.Allowance. when i give value to that field it shuold store in G/L Account database. can u help[ whats the source code? urgent
Hi Swetha,
then it is a journal entry try something like this
Dim val As Integer
Dim oInvoice As SAPbobsCOM.Documents
Dim k As Integer
Dim ousertable1 As SAPbobsCOM.UserTable
Dim ousertable2 As SAPbobsCOM.UserTable
ousertable1 = ocompany.UserTables.Item("SROW")
ousertable2 = ocompany.UserTables.Item("SHAFEDIT")
Try
oInvoice = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices) oInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Service
oInvoice.CardCode = bpname
oInvoice.CardName = carname
oapp.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
oInvoice.Lines.ItemCode = ccode
oInvoice.Lines.ItemDescription = des
oInvoice.Lines.Quantity = quan
oInvoice.Lines.LineTotal = tot
oInvoice.Lines.AccountCode = "700040"
oInvoice.Lines.TaxCode = tax
'''''' instead of des,quan,tot etc enter your OT allowance Employee name etc
Next j
val = oInvoice.Add()
If val = 0 Then
oapp.MessageBox("Sucess")
Else
oapp.MessageBox("Error: " & ocompany.GetLastErrorDescription)
End If
try this code and let me know whether it helps
Regards
Cool Ice
Similar Messages
-
How can I add form field value to the file name in save as dialog box
I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
A little background on the forms I want to use: My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example. I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server. We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box. The main office employees will decide into which server file the pdf should be saved.
I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
One little note: We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
Me and a lot of trees in this will really apprecitate any help you can give with this! :-)You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
app.beginPriv();
var myTrustedRetn = app.browseForDoc( oArgs );
app.endPriv();
return myTrustedRetn;
myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
app.beginPriv();
var myTrustedRetn = doc.saveAs( oArgs );
app.endPriv();
return myTrustedRetn;
The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
var fileName = this.getField("Roller Coaster").valueAsString;
try {
var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
try {
myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
catch(e) {
console.println("Save not allowed, perhaps readonly.");
catch(e) {
console.println("User cancelled Save As dialog box");
Good Luck! -
How can I get the edited value from the editor in JTable
I have a JTextField added as an editor to a cell in JTable.
I value gets changed when I press enter.
but in actionPerformed of the JTextField when I say
String txtEditorValue = txtEditor.getText();
I am getting the old value. How can I get the edited value? Thanks.Hi,
I guess, your understanding of how JTable works together with its models is not good enough - for example the method getTableCellEditorComponent(...) of the TableCellEditor interface is used to get the component, that should be used as editing component - its second parameter is a value that should be used to setup the editing component - it is normally not the editing component itself.
JTable uses an underlying TableModel to store the cell values - if you have edited a cell, JTable gets the value of the editing component by itself and stores it in the TableModel using its setValueAt(...) method. To retrieve this data you only need to query the TableModel using row and column of this cell as parameters
say jt is your JTable, and row and column are the row and column of the cell - so to get the value, simply use
Object obj = jt.getModel().getValueAt(row,column);
if you know, that there is a String in this cell use
String str = (String) jt.getModel().getValueAt(row,column);
The editor component is used for the view of the JTable - you only want the data, which is stored in the model - you don't have to deal with the GUI components in this case.
greetings Marsian -
How Can I Set a Javascript Value into an Attribute of BSP PAGE
Hi
Can anyone tell me.
How Can I Set a Javascript Value into an Attribute of BSP PAGEHi Mithlesh,
javascript runs on client side and you cannot assign the value to a Page attribute directly.
As a workaround,you can use an Inputfield,hidden if required,and set the value using javascript.Then the form will have to be submit to be able to read the value in onInputProcessing and then can be assigned to any variable.
In Layout
<head>
<script language="javascript">
function pass()
txt1 = document.getElementById("ip_mrf");
txt.value = "hello" ;
</script>
</head>
<htmlb:inputField id="ip_mrf"
value="<%=mrf_number%>"
visible="FALSE"/>
in onInputProcessing
cha1 = request->get_form_field( 'ip_mrf' ).
where cha1 is the page attribute
hope this helps,
Regards,
Siddhartha
Message was edited by: Siddhartha Jain -
How can i submit form-data with acrobat pocket pc
how can i submit form-data (http-post) on a PPC?
how can i store the data offline?
which submit-functions are availabe for the pocket pc reader?
do i need ARES?
where can i find a documentation of of the available functions for the ppc version?
where can i fond form-samples for ppc?
from the docu on my pocket pc:
Submit form data using handheld devices over a wireless connection. If you are working offline, the data is temporarily stored, then submitted once a connection is established. Send forms by e-mail or directly to the destination server using a cradle or cableTo your question regarding the Pocket PC version of Reader, I downloaded Adobe Reader for Pocket Pc 2 and installed it on my HP iPAQ . I then loaded my test PDF file onto the iPAQ. The Reader for Pocket PC preformed an email submission fine. However, I received no indication that anything happened when I tried an HTTP Post. So I think you can only do an email submission.
In general, I have been testing to see how much I can do without the Live Cycle Reader Extensions, since for sure I will never be able to purchase them. What I have found is that for Acrobat Reader 7, the email submission works for all of the people I have asked to test it, but the HTTP Post has worked for only one of the two people who have tested it so far with Reader 7 (the one for which it worked claims that he only has Reader 7 on his computernot Acrobat). -
How to call the form bean value on jsp withthe help of jstl tag
hi
all friends
i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag.
i now how to retrive the value through jsp:logic
eg. <logic:empty name="userListForm" property="users">
NO USER FOUND
</logic:empty>
see * userListForm mean formbaen name.
* users means collection object.
so how can i write above e.g in jstlYou use the jstl core:if or core:choose combined with the EL:
<c:if test="${empty users.userListForm}">
NO USERS FOUND
</c:if>I suggest you lookup the jsp expression language (EL) using google, it's very powerful. -
How can Filter ADF BC LOV values in ADF Faces UI?
How can Filter ADF BC LOV values in ADF Faces UI?
Hi i am bit struggle with filtering LOV values in ADF Faces UI.
I have table In UI ,that is from ADF BC .Now i am Filtering that table data using Select one choice in same page.That SOC is named Type App: ,So according to selection of Type in SOC table have to display.This portion is done.But my requirement is ,when i got perticular result table ,i want to add one more row related to that type only,so for that i had take popup and drag datacontrol as a form.In that form first column is Select one choice ,select Items will come from BC table.So here i want to filter those LOV values according selection in Type SOC.Suppose Type SOC contain Type1,Type2 values,then when i am selectin Type1,Type1 related date willl diplay on table,now click on ADD button popup will open and in that Type SOC will Dispaly only Type1 related values not Type 2 type values.Type1,Type2 values come from same Table.
Here i am asking every one,please do help.fyi
The HR schema I used to build the example application had some modifications in the context of https://tuhra2.samplecode.oracle.com/ .
So after running "demo/schema/mksample" as documented in "Resetting Sample Schemas" ...
at http://download.oracle.com/docs/cd/E11882_01/server.112/e10831/installation.htm#I6236
... I got "java.sql.SQLSyntaxErrorException: ORA-00904: "EMPLOYEES"."MODIFIED_DATE": invalid identifier ", using the example application in BindVarDefaultsInUIApp-v0.02.zip .
So, I have updated the example application to match the reset HR schema:
- see http://www.consideringred.com/files/oracle/2010/BindVarDefaultsInUIApp-v0.03.zip
- see screencast at http://screencast.com/t/gd6zKn63j
Because Re: af:table filter date format : task-flow navigation issue to get feedback, I created service request 3-2193340441 using My Oracle Support about (q1) and (q2).
regards
Jan -
How to pass the FORM Fields value by Form Personalization
Hi ALL,
I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
can any one suggest what to do???
i tried with these syntax
TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
Regards
RaviHi,
Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
Regards,,
Anil. -
How can we include the property value into the News RSS?
We have defined object property u201CDepartmentu201D that is used in News XML creating form. How can we include the property value into the News RSS (set value of the particular RSS XML tag)?
We have solved the issue with NWDS
-
How to display struts form list values?
HI,
How to display struts form list values?
I am having master and child data.
I can set list values master and child in action class.
How to display the master and child data in struts jsp form.
<logic:iterate id="result" name="listofEmployees" >
<td ><bean:write name="result" property="id"/></td>
<td ><bean:write name="result" property="name"/></td>
<td > <bean:write name="result" property="list"/> </td>
</tr>
</logic:iterate>Here I am displaying master data succesfully.
How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
how to iterate this list with java bean and display my child data
Thanks
saiStruts 1 or 2?
I guess 2 'cause you're just talking about Action, without mentioning the Form.
In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
bye. -
How can i read user input value to my User exist
Hi Guru's,
I am facing one problem in Variables in BPS.
I am calculating days from Month/year .I have one variable it is for Days,Second variable it is for Month/Year.
First variable is user exist (for calculating the days),Second varible is user defined variable(this is a Input to the first variable).
When i am giving the Month/Year(02/2008)variable i am getting the 29 days from the first variable.again i am changing the value of Month/Yera(03/2008) i am not getting the desired value.
my doubt is my user exist not able to read current value of variable(month/year).how can i pass my value to user exist because this value is user input value based on this value i am calculating the days and dynamically displaying the layout.
Here is the my sample code..
seq = '0000'.
ind = 0.
i_area = 'ZTEST1'.
area_var = 'ZVar2'.
PERFORM instantiate_object USING i_area
area_var
CHANGING lsr_var.
PERFORM get_current_value_of_variable
USING lsr_var
CHANGING lto_value.
READ TABLE lto_value INTO lso_value index 1 .
i_month = lso_value-low.
iv_month = i_month+4(2).
iv_year = i_month(4).
concatenate iv_year iv_month '01' into iv_date.
begindate = iv_date.
below bracket code calculating the leap year
( IF iv_date+4(2) = lc_feb.
lv_hlp_date_year = iv_date+0(4).
lv_hlp_rest = lv_hlp_date_year MOD 4.
IF lv_hlp_rest = 0.
EV_DAYS = lc_days_29.
lv_hlp_rest = lv_hlp_date_year MOD 100.
IF lv_hlp_rest = 0.
lv_hlp_rest = lv_hlp_date_year MOD 400.
IF lv_hlp_rest NE 0.
EV_DAYS = lc_days_28.
ENDIF.
ENDIF.
ELSE.
EV_DAYS = lc_days_28.
ENDIF.)
ELSE.
below bracket code calculating the days
( CASE iv_date+4(2).
WHEN lc_jan. EV_DAYS = lc_days_31.
WHEN lc_mar. EV_DAYS = lc_days_31.
WHEN lc_may. EV_DAYS = lc_days_31.
WHEN lc_jul. EV_DAYS = lc_days_31.
WHEN lc_aug. EV_DAYS = lc_days_31.
WHEN lc_oct. EV_DAYS = lc_days_31.
WHEN lc_dec. EV_DAYS = lc_days_31.
WHEN lc_apr. EV_DAYS = lc_days_30.
WHEN lc_jun. EV_DAYS = lc_days_30.
WHEN lc_sep. EV_DAYS = lc_days_30.
WHEN lc_nov. EV_DAYS = lc_days_30.
WHEN OTHERS. CLEAR EV_DAYS.
ENDCASE.)
ENDIF.
data: st_date(2) type c.
st_date = '01'.
ind = 0.
ind = ind + 1.
here i am passing the low value and high value.
yto_charsel-chanm = '0CALDAY'.
yto_charsel-seqno = 1.
yto_charsel-sign = 'I'.
yto_charsel-opt = 'EQ'.
yto_charsel-LOW = st_date.
yto_charsel-chanm = '0CALDAY'.
yto_charsel-seqno = 1.
yto_charsel-sign = 'I'.
yto_charsel-opt = 'BT'.
yto_charsel-high = ev_days.
INSERT yto_charsel INTO sto_charsel INDEX ind.
ETO_CHARSEL = sto_charsel.
lto_value = sto_charsel.
How can i pass user input value to read this exist ,some where again i have to write code or else??
This is very urgent can you help me..Hi,
Instead of two perform statements, use single perform.
PERFORM get_value USING i_area
i_variable
CHANGING lw_varsel.
Take the values from lw_varsel-low.
FORM statement for this perform is as follows.
DATA: li_varsel TYPE STANDARD TABLE OF upc_ys_api_varsel,
lv_varsel TYPE REF TO cl_sem_variable.
FORM get_value USING p_area TYPE upc_y_area
p_variable TYPE upc_y_variable
CHANGING
p_lw_varsel TYPE upc_ys_api_varsel.
CALL METHOD cl_sem_variable=>get_instance
EXPORTING
i_area = p_area
i_variable = p_variable
I_CREATE =
RECEIVING
rr_variable = lv_varsel.
EXCEPTIONS
NOT_EXISTING = 1
others = 2
IF sy-subrc <> 0.
EXIT.
ENDIF.
REFRESH li_varsel.
****Getting the Value*********
CALL METHOD lv_varsel->get_value
EXPORTING
i_user = sy-uname
i_restrict = 'X'
RECEIVING
rto_value = li_varsel.
CLEAR : p_lw_varsel.
READ TABLE li_varsel INTO p_lw_varsel INDEX 1.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDFORM. "get_value
Try this code.
Bindu -
How can i get the all values from the Property file to Hashtable?
how can i get the all values from the Property file to Hashtable?
ok,consider my property file name is pro.PROPERTIES
and it contain
8326=sun developer
4306=sun java developer
3943=java developer
how can i get the all keys & values from the pro.PROPERTIES to hashtable
plz help guys..............The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
InputStream is = new FileInputStream("tivoli.properties");
props.load(is); -
How can i get all these values in single row with comma separated?
I have a table "abxx" with column "absg" Number(3)
which is having following rows
absg
1
3
56
232
43
436
23
677
545
367
xxxxxx No of rows
How can i get all these values in single row with comma separated?
Like
output_absg
1,3,56,232,43,436,23,677,545,367,..,..,...............
Can you send the query Plz!These all will do the same
create or replace type string_agg_type as object
2 (
3 total varchar2(4000),
4
5 static function
6 ODCIAggregateInitialize(sctx IN OUT string_agg_type )
7 return number,
8
9 member function
10 ODCIAggregateIterate(self IN OUT string_agg_type ,
11 value IN varchar2 )
12 return number,
13
14 member function
15 ODCIAggregateTerminate(self IN string_agg_type,
16 returnValue OUT varchar2,
17 flags IN number)
18 return number,
19
20 member function
21 ODCIAggregateMerge(self IN OUT string_agg_type,
22 ctx2 IN string_agg_type)
23 return number
24 );
25 /
create or replace type body string_agg_type
2 is
3
4 static function ODCIAggregateInitialize(sctx IN OUT string_agg_type)
5 return number
6 is
7 begin
8 sctx := string_agg_type( null );
9 return ODCIConst.Success;
10 end;
11
12 member function ODCIAggregateIterate(self IN OUT string_agg_type,
13 value IN varchar2 )
14 return number
15 is
16 begin
17 self.total := self.total || ',' || value;
18 return ODCIConst.Success;
19 end;
20
21 member function ODCIAggregateTerminate(self IN string_agg_type,
22 returnValue OUT varchar2,
23 flags IN number)
24 return number
25 is
26 begin
27 returnValue := ltrim(self.total,',');
28 return ODCIConst.Success;
29 end;
30
31 member function ODCIAggregateMerge(self IN OUT string_agg_type,
32 ctx2 IN string_agg_type)
33 return number
34 is
35 begin
36 self.total := self.total || ctx2.total;
37 return ODCIConst.Success;
38 end;
39
40
41 end;
42 /
Type body created.
[email protected]>
[email protected]> CREATE or replace
2 FUNCTION stragg(input varchar2 )
3 RETURN varchar2
4 PARALLEL_ENABLE AGGREGATE USING string_agg_type;
5 /
CREATE OR REPLACE FUNCTION get_employees (p_deptno in emp.deptno%TYPE)
RETURN VARCHAR2
IS
l_text VARCHAR2(32767) := NULL;
BEGIN
FOR cur_rec IN (SELECT ename FROM emp WHERE deptno = p_deptno) LOOP
l_text := l_text || ',' || cur_rec.ename;
END LOOP;
RETURN LTRIM(l_text, ',');
END;
SHOW ERRORS
The function can then be incorporated into a query as follows.
COLUMN employees FORMAT A50
SELECT deptno,
get_employees(deptno) AS employees
FROM emp
GROUP by deptno;
###########################################3
SELECT SUBSTR(STR,2) FROM
(SELECT SYS_CONNECT_BY_PATH(n,',')
STR ,LENGTH(SYS_CONNECT_BY_PATH(n,',')) LN
FROM
SELECT N,rownum rn from t )
CONNECT BY rn = PRIOR RN+1
ORDER BY LN desc )
WHERE ROWNUM=1
declare
str varchar2(32767);
begin
for i in (select sal from emp) loop
str:= str || i.sal ||',' ;
end loop;
dbms_output.put_line(str);
end;
COLUMN employees FORMAT A50
SELECT e.deptno,
get_employees(e.deptno) AS employees
FROM (SELECT DISTINCT deptno
FROM emp) e;
DEPTNO EMPLOYEES
10 CLARK,KING,MILLER
20 SMITH,JONES,SCOTT,ADAMS,FORD
30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
CREATE OR REPLACE FUNCTION concatenate_list (p_cursor IN SYS_REFCURSOR)
RETURN VARCHAR2
IS
l_return VARCHAR2(32767);
l_temp VARCHAR2(32767);
BEGIN
LOOP
FETCH p_cursor
INTO l_temp;
EXIT WHEN p_cursor%NOTFOUND;
l_return := l_return || ',' || l_temp;
END LOOP;
RETURN LTRIM(l_return, ',');
END;
COLUMN employees FORMAT A50
SELECT e1.deptno,
concatenate_list(CURSOR(SELECT e2.ename FROM emp e2 WHERE e2.deptno = e1.deptno)) employees
FROM emp e1
GROUP BY e1.deptno;
DEPTNO EMPLOYEES
10 CLARK,KING,MILLER
20 SMITH,JONES,SCOTT,ADAMS,FORD
30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
CREATE OR REPLACE TYPE t_string_agg AS OBJECT
g_string VARCHAR2(32767),
STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
value IN VARCHAR2 )
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
returnValue OUT VARCHAR2,
flags IN NUMBER)
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
ctx2 IN t_string_agg)
RETURN NUMBER
SHOW ERRORS
CREATE OR REPLACE TYPE BODY t_string_agg IS
STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
RETURN NUMBER IS
BEGIN
sctx := t_string_agg(NULL);
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
value IN VARCHAR2 )
RETURN NUMBER IS
BEGIN
SELF.g_string := self.g_string || ',' || value;
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
returnValue OUT VARCHAR2,
flags IN NUMBER)
RETURN NUMBER IS
BEGIN
returnValue := RTRIM(LTRIM(SELF.g_string, ','), ',');
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
ctx2 IN t_string_agg)
RETURN NUMBER IS
BEGIN
SELF.g_string := SELF.g_string || ',' || ctx2.g_string;
RETURN ODCIConst.Success;
END;
END;
SHOW ERRORS
CREATE OR REPLACE FUNCTION string_agg (p_input VARCHAR2)
RETURN VARCHAR2
PARALLEL_ENABLE AGGREGATE USING t_string_agg;
/ -
How Can I get multi column values from dynamic search help?
Hi Gurus;
I'm using dynamic search help in my program.
I want to get multi column values from search help. But I dont know solution for this issue.
I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
How Can I get multi column values from dynamic search help?
Thanks.Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
There are like 3 steps.
You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined (just to keep it straight, i will be putting here) data: It_return type standard table of ddshretval.
Next step is to call the function module. Make sure you have values in IT_VALTAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FLD2'
value_org = 'S'
tables
value_tab = It_VALTAB
return_tab = It_return
dynpfld_mapping = It_dynpfld
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
perform get_selected_fields tables It_return.
endif.
The code within the perform GET_SELECTED_FIELDS - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
I need a internal table as well as a work area here. like,
data: lt_fields type table of dynpread,
la_fields type dynpread.
field-symbols: <fs_return> type ddshretval.
so fill out LT_FIELDS from the IT_RETURN table
loop at lt_return assigning <fs_return>.
la_fields-fieldname = <fs_return>-retfield.
la_fields-fieldvalue = <fs_return>-fieldval.
append la_fields to lt_fields.
clear: la_fields.
endloop.
Call the FM to update the dynpro
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
good luck -
How can i pass the Input value to the sql file in the korn shell ??
Hi,
How can i pass the Input value to the sql file in the korn shell ??
I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
can any one help me out.
RajaCan you please more elaberate., perhaps you should more elaberate.
sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense.
Maybe you are looking for
-
We have UC520 connected via SIP trunk to a provider. We have been experiencing bad quality when more than one line is connected to a conferencing system outside. So lets say more than one person call this conferencing system through the SIP trunk fro
-
Hi to everybody, I hope you can help me. I was wondering if someone knows about bugs of Forte release F. We had a client server application developed with Forte Express (client Windows NT, server Sun Solaris) that starts at 08.00 a.m. every day. At b
-
Error message updating iOS703 and my iPad restarts each 5 minutes
I tried to update to iOS 7.0.3. but an error message appears and now my iPad restarts it selves each 5 minutes Following is the panic incident: Incident Identifier: 1264E572-5575-44C8-AEAA-53BDB876236C CrashReporter Key: 7663d0f86404d39d1907a3c444d
-
Is JavaScript a part of J2EE?
JavaScript do not have compiler and is not part of j2ee standard. 1> Is it recommended to use JavaScript in J2EE complaint web application? 2> If not what is an efficient alternative to JavaScript. 3> Is there any alternative to DHTML to achieve the
-
Cisco CTC 6.0 gives NTVDM error in Server 2003?
Hi We've got Cisco CTC 6.0 installed on the network and when we try to use this application from a Windows XP or older machine, it loads up just fine. But when trying to use this via a Windows Server 2003 or newer, it fails with an NTVDM Hard Error.