FM to update value into texts
Hi All!
In VLO2N transaction under header --> Texts in which text elements are configured by the functional teams to enter texts corresponding to the delivery details.The info into these texts are generally updated manually.Is there any FM/BAPI to update these text elements through programs.
Please advise...
Regards
Praneeth
Hi for Long texts
use the following function Module
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = wa_head
TABLES
lines = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
Similar Messages
-
How to pupup the calendar value into text box ?
Hi
I want to use the calendar for my text field .
The calendar will popup when I click a button /image. This image will appear next to text box . when click the calendar. The values should come to into text box.
Please give me any idea how to write a code in jsp for handling the value from calendar.
Thanks
Merlin RoshinaI am assuming u have popupcalendar.js and stylesheets.
Include the javascript in your jsp.
<script type="text/javascript" src="scripts/popcalendar.js"/>
and call the method popUpCalendar on some event like onclick as shown below.
<img border="1" src="images/calendaricon.jpg" title="Open calendar" onClick="popUpCalendar(this,<object to be populated>,'mm/dd/yyyy')" alt="Calendar"/>
<object to be populated> u can give it like this for your text box. U can define an id attribute for your text box and call document.getElementById("<id name>")
and rest the javascript will take care. -
Dynamically update values in Text Lists for typed measures
Hi,
We have an alpha-numeric data column in our fact table. This is a data coulmn and we want to store its content as data value in one of the measures. The value in this column is highly dynamic and it is not restricted to a fixed set of values. To store the values we need to use typed measures, but is there way in which I can define the text list itself dynamically? Meaning, we will build the text list dynamically as and when the data comes in the fact table. Is this possible. We are using 11.1.2.1.
Regards,
KrishnaI don't think we have a MaxL (I can be worng) to update Text Lists. You can try creating .slt file dynamically and then manually import them before data load.
.slt will have entries like
#MISSING NoData
#OUTOFRANGE OutOfRange
3 Bad
2 Average
1 Good
Edited by: Celvin Kattookaran on Mar 21, 2013 12:33 PM -
How to find the select statement has written all selected values into text
Hi,
I am using form6i. i am selecting a set of values from database tables based upon some user parameters and writing into the text file using Text_io.put_line . In this case how we can make sure that the text fille contains all the data what we are selected from selected statement. somebody told that there might be chances of aborting of data while writing into the text file. is there any way to fild out the selected statements has written all the selected fields and corresponding output into the .txt file.
Please suggest me.somebody told that there might be chances of aborting of data while writing into the text fileWhat kind of "chance" does that somebody refer to?
If you want to verify if the number of records (lines) in the file matches the number of records from the cursor, you could re-open the written file in read-mode and count the number of lines by reading one by one, then compare the number of lines with the number of records from the cursor. -
Hi,
I have a Company table which contains an Account amount value. I need to add to this amount a new amount from an input text.
All is ok, I searched the Company then filled the new amount.
My question is: when click on Submit and launch the onSubmit event how to add the new amount to the old one and where.
Do I need to override processUpdateModel() method to put into the binding field the new amount?
If yes how?
Thank youHi for Long texts
use the following function Module
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = wa_head
TABLES
lines = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5. -
How to get peoplepicker multiple value in text box?
Hi All,
How to get multiple selection people-picker value into text box while using InfoPath?
Thanks in advance!Hi,
According to your post, my understanding is that you wanted to get peoplepicker multiple value in text box.
You can set the default value of the text box to:
eval(eval(Person, 'concat(pc:DisplayName, "; ")'), "..")
Or change XPath (advanced) to
xdMath:Eval(xdMath:Eval(../my:group/pc:Person, 'concat(pc:DisplayName, "; ")'), "..")
More information:
Use Person/Group Picker in Infopath form to send multiple contacts to a SharePoint Workflow
InfoPath Forms – Show Person/Group Picker Values in Text Box
InfoPath Reference to Undeclared Namespace Prefix: ‘PC’
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to insert or update multiple values into a records of diff fields
Hai All
I have to insert or update or multiple values into a single records of diff fields from one to another table.
Table1 has 3 fields
Barcode bardate bartime
0011 01-02-10 0815
0022 01-02-10 0820
0011 01-02-10 1130
0022 01-02-10 1145
0011 01-02-10 1230
0022 01-02-10 1235
0011 01-02-10 1645
0022 01-02-10 1650
these are the times that comes in at 0815 and goes break at 1130 and comes in at 1230 and goes home at 1645
from these table i have to insert into another table called table2
and the fields are barcode, date,timein intrin,introut,tiomout
And the output want to like this
barcode timein intrin introut timeout date
0011 0815 1130 1230 1645 01-02-10
0022 0820 1145 1235 1650 01-02-10
If any give some good answer it will be help full..
Thanks & Regards
Srikkanth.MSQL> with table1 as (
2 select '0011' Barcode,'01-02-10' bardate,'0815' bartime from dual union
3 select '0022','01-02-10','0820' from dual union
4 select '0011','01-02-10','1130' from dual union
5 select '0022','01-02-10','1145' from dual union
6 select '0011','01-02-10','1230' from dual union
7 select '0022','01-02-10','1235' from dual union
8 select '0011','01-02-10','1645' from dual union
9 select '0022','01-02-10','1650' from dual
10 )
11 select barcode, bardate,
12 max(decode(rn,1,bartime,null)) timein,
13 max(decode(rn,2,bartime,null)) intrin,
14 max(decode(rn,3,bartime,null)) introut,
15 max(decode(rn,4,bartime,null)) timeout from (
16 select barcode, bardate, bartime,
17 row_number() over (partition by barcode, bardate
18 order by bartime) rn
19 from table1)
20 group by barcode, bardate;
BARC BARDATE TIME INTR INTR TIME
0011 01-02-10 0815 1130 1230 1645
0022 01-02-10 0820 1145 1235 1650Max
http://oracleitalia.wordpress.com -
Problem in Showing multiple values into one text box.
Hi all,
How can show i multiple row values into one text box. here text box is multi line type.
i have one table it has content column, it has number of rows. i need to show those data into one text box in form. how can i solve it?
my sample code here,
egin
--:block3.txt_to := :parameter.p_current_user||''||':'||:block3.txt_From;
-- go_item('txt_from');
insert into chat(fromid,toid,content)values(:block3.fromid,:block3.toid,:block3.txt_From);
:block3.txt_From:= null;
commit;
:block3.txt_to := :parameter.p_current_user||''||':'||:block3.txt_From;
go_item('txt_from');
declare
cursor c4 is select content from chat where toid = :block3.fromid;
rec1 c4%rowtype;
begin
open c4;
loop
fetch c4 into rec1;
exit when c4%notfound;
null;
end loop;
end;
--select content into :block3.txt_to from chat where toid= :block3.fromid;
end;
please give me some tips to solve it.
thanks
gurusHi,
Try giving CHR(10) for line feed.
DECLARE
CURSOR C4 IS SELECT CONTENT FROM CHAT WHERE TOID = :BLOCK3.FROMID;
Str_Temp VARCHAR2(20);
BEGIN
:BLOCK3.TXT_TO := '';
OPEN C4;
LOOP
FETCH C4 INTO Str_Temp;
EXIT WHEN C4%NOTFOUND;
:BLOCK3.TXT_TO := :BLOCK3.TXT_TO || CHR(10) || Str_Temp;
END LOOP;
CLOSE C4;
END;Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
I have a pdf file which contains text if i copy all text and paste them into notpad and save file as .txt Is it change the ascii value of text ?
How to know character's encoding is ASCII?
-
Update/Insert into two fields based on value of one.
How would I do the following in ADDT.
Example:
I have a database about dogs. When user completes form they make a selection from a recordset feed drop down box of breeds. Lets say they select "PUG" based on the selection two fields are populated from the same recordset size="small" and color="brown".
I hope I've explained this well enough
Thanks!
Rich>>
I think I understand. I'm using two forms One to select the item from a list. I'm passing that items value to the next page where I'm placing that value into a query which will give me the options available based on the query results?
>>
what I meant, is first have the user insert the new record and let him specify the desired "breed" already there -- the following page(s) will need to make sure that he´s going to update the newly inserted record with additional values, that´s why you should use the "SELECT dog_id FROM dog_table ORDER BY id DESC LIMIT 1" - query on page 2. However, once this new record had been clearly identified "by id", you can add whatever options available in the secondary table which are related to the "dog_id" (breed) that has been stored when inserting the new record. Maybe *I* don´t get it, lol ;-)
>>
I currently do this the dropdown value to a case statement that takes the value of the dropdown and determines the correct values for the database update
>>
OK, but when each dog just has one option
(thought it were two ones: "color" and "size"), isn´t your existing dependant dropdown enough for specifying that "based on breed" option without having to use a hidden field at all ? Ah well, have you ever used ADDT´s / Kollections "dependant drop-down" wizard -- that should do it for one option
>>
hidden field that I need to update value based on what the value is above
>>
humm -- updating the value of a hidden field in the very same page then ? Never heard of this being possible apart from using some hand-made javascript.
Guess I gotta ask my dog what it thinks about all that :-)
Günter Schenk
Adobe Community Expert, Dreamweaver -
Writing the hashtable content (both keys and values) into a text file
Hello,
I have a hashtable which have some keys and respective values in it. Now I want to write all thoses content into a text or log file. Can anyone please tell me how to write it.
thanks,
chaitanyaProperties is a subclass of Hashtable. It'll probably work just fine as a drop-in replacement.
Otherwise...if all keys and values are text, then loop through the Entry objects in the Map in question (Hashtable is a Map, and you probably shouldn't be using Hashtable anyway), or loop through the keys and grab the corresponding value for the keys. Read the API docs for java.util.Map. It's pretty straightforward. -
Spaces removed when inserting a value into a text item
Dear members,
(Forms 6i c/s)
I have a databased function returning a string of characters (varchar2). This value can have spaces at its end.
When I put this value into a text item in Forms, the spaces at the end are removed.
How can I avoid that ?
Thanks for your help.Hi,
There is no elegant solution for this. Metalink has a discussion of the topic in note nr 247715.1
/Michael -
Import text values into Attribute ( Edit---- Text)
Dear MDM Gurus,
Kindly let me know how to import Text values into the Text Value of a ttribute.
If we get into Data Manager ---> Taxonomy Mode ---> attribute -
> Text Value -
> right click to get the "Edit Text".
Believe the TEXT can old more info than the TEXT Value itself.
Appreciate any inputs.
Thanks.
Hari
Message was edited by:
Guest 001Guys,
Any inputs appreciated.
Pls treat this as urgent.
Thanks.
Hari -
Update: Purchase order text
Hi
We would like to use the current long text of a material and update the purchase order text programatically with the same data.
How can i create the P.O. text without using BDC updates?What text do you want to load ( I mean header text or item text )
see the example to save text
report ZMPPC016
no standard page heading
line-size 120.
Constants
constants : c_r type c value 'R', " PLNTY Value
C_X TYPE C VALUE 'X', " Value for dynbegin.
c_tcode like tstc-tcode value 'CA22', " Transaction code
c_mode(1) type c value 'A', " BDC Mode
c_tdformat type tline-tdformat value '*',"Tag column
c_tdid type thead-tdid value 'PLPO', " Text ID
c_tdform type thead-tdform value 'SYSTEM'." Form name
Variables
data : v_date like sy-datum, " date
v_date1(4) type c,
v_date2(2) type c,
v_date3(2) type c,
TNAME LIKE THEAD-TDNAME,
v_mandt(3) type c,
v_matnr(18) type c,
flag type c.
Internal table for file
data : begin of t_file occurs 0,
matnr(18) type c, " Material Number
werks(4) type c, " Plant
vornr(4) type c, " Operation Number
tseq(3) type n, " Line number in the long text
text1(70) type c, " Long text
plnal(2) type n, " Group counter
end of t_file.
data : begin of t_text occurs 0,
matnr(18) type c, " Material Number
werks(4) type c, " Plant
plnal(2) type n, " Group counter
vornr(4) type c, " Operation Number
tseq(3) type n, " Line number in the long text
text1(70) type c, " Long text
end of t_text.
Internal table for MAPl
data : begin of t_mapl occurs 0,
plnnr like mapl-plnnr,
end of t_mapl.
Internal Table for PLAS and PLPO Table
data : begin of t_plpo occurs 0,
mandt like plpo-mandt,
plnty like plpo-plnty,
plnnr like plpo-plnnr,
plnkn like plpo-plnkn,
zaehl like plpo-zaehl,
end of t_plpo.
data t_long like tline occurs 0 with header line.
Work area for t_text Internal table
data : wa_text like t_text.
data: t_header like thead. " long text
Internal table for BDCDATA Structure
data : begin of itab_bdc_tab occurs 0.
include structure bdcdata.
data : end of itab_bdc_tab.
Selection-screen
selection-screen : begin of block blk with frame .
parameter : P_file like rlgrap-filename obligatory.
selection-screen : end of block blk.
initialization.
p_file = 'C:\My Documents\InputFile.txt'.
at selection-screen on value-request for p_file.
F4 value for file
perform file_get.
start-of-selection.
Get file data into Internal Table.
perform get_data.
sort t_text by matnr werks vornr plnal tseq.
Save the long text into CA22 Transaction
perform load_data.
top-of-page.
CALL FUNCTION 'Z_HEADER'
EXPORTING
FLEX_TEXT1 =
FLEX_TEXT2 =
FLEX_TEXT3 =
skip 1.
*& Form file_get
F4 Value for file
FORM file_get.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = 'C:\Temp\'
MASK = ',.,..'
MODE = 'O'
TITLE = 'Select File'(007)
IMPORTING
FILENAME = P_file
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
ENDFORM. " file_get
*& Form get_data
Get file data into Internal Table.
FORM get_data.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = p_file
FILETYPE = 'DAT'
TABLES
DATA_TAB = t_file
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
if sy-subrc eq 0.
sort t_file by matnr werks plnal vornr tseq.
delete t_file where matnr = ''.
loop at t_file.
Get the material number from tables ZMSMI_FERR_RAW,
ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
perform get_matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = t_file-vornr
IMPORTING
OUTPUT = t_file-vornr.
move : t_file-matnr to t_text-matnr,
t_file-werks to t_text-werks,
t_file-vornr to t_text-vornr,
t_file-tseq to t_text-tseq,
t_file-text1 to t_text-text1,
t_file-plnal to t_text-plnal.
append t_text.
clear t_text.
endloop.
else.
WRITE: / 'Error reading input file'.
stop.
endif.
ENDFORM. " get_data
*& Form call_bdc
BDC Script for CA22 Transaction
FORM call_bdc.
Screen 1010
perform bdc_screen using 'SAPLCPDI' '1010'.
perform bdc_field using 'BDC_OKCODE' '=VOUE'.
perform bdc_field using 'RC27M-MATNR' SPACE.
perform bdc_field using 'RC27M-WERKS' SPACE.
perform bdc_field using 'RC271-VBELN' SPACE.
perform bdc_field using 'RC271-POSNR' SPACE.
perform bdc_field using 'RC271-PLNNR' T_PLPO-PLNNR.
perform bdc_field using 'RC271-AENNR' SPACE.
clear : v_date,
v_date1,
v_date2,
v_date3.
v_date1 = sy-datum+0(4).
v_date2 = sy-datum+4(2).
v_date3 = sy-datum+6(2).
concatenate v_date2 v_date3 v_date1 into v_date.
perform bdc_field using 'RC271-STTAG' v_date .
perform bdc_field using 'RC271-REVLV' SPACE.
perform bdc_field using 'RC271-WERKS' SPACE.
perform bdc_field using 'RC271-PLNAL' WA_TEXT-PLNAL.
perform bdc_field using 'RC271-STATU' SPACE.
perform bdc_field using 'RC271-VAGRP' SPACE.
perform bdc_field using 'RC271-PROFIDNETZ' SPACE.
Screen 5400
perform bdc_screen using 'SAPLCPDI' '5400'.
perform bdc_field using 'BDC_OKCODE' '=OSEA'.
Screen 1010
perform bdc_screen using 'SAPLCP02' '1010'.
perform bdc_field using 'BDC_OKCODE' '=ENT1'.
perform bdc_field using 'RC27H-VORNR' WA_TEXT-VORNR.
Screen 5400
perform bdc_screen using 'SAPLCPDI' '5400'.
perform bdc_field using 'BDC_OKCODE' '=LTXT'.
perform bdc_field using 'RC27X-FLG_SEL(01)' C_X.
Screen 1100
perform bdc_screen using 'SAPLSTXX' '1100'.
perform bdc_field using 'BDC_OKCODE' '=XEIN'.
Screen 0999
perform bdc_screen using 'SAPLWB_CUSTOMIZING' '0999'.
perform bdc_field using 'BDC_OKCODE' '=CONT'.
PERFORM BDC_FIELD USING 'RSEUMOD-GRA_EDITOR' SPACE.
Screen 1100
perform bdc_screen using 'SAPLSTXX' '1100'.
perform bdc_field using 'BDC_CURSOR' 'RSTXT-TXPARGRAPH'.
perform bdc_field using 'BDC_OKCODE' '=TXBA'.
perform bdc_field using 'RSTXT-TXPARGRAPH(03)' '*'.
perform bdc_field using 'RSTXT-TXLINE(03)'
Screen 5400
perform bdc_screen using 'SAPLCPDI' '5400'.
perform bdc_field using 'BDC_OKCODE' '=BU'.
call transaction c_tcode
using itab_bdc_tab mode 'N'
update 'S'.
refresh itab_bdc_tab.
if sy-subrc eq 0 and sy-msgty ne 'E'.
v_mandt = t_plpo-mandt.
CONCATENATE v_mandt
t_plpo-plnty
t_plpo-plnnr
t_plpo-plnkn
t_plpo-zaehl into tname.
commit work.
CALL FUNCTION 'DELETE_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = c_tdid
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'ROUTING'
SAVEMODE_DIRECT = 'X'
TEXTMEMORY_ONLY = ' '
LOCAL_CAT = ' '
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
if sy-subrc ne 0.
write:/3 wa_text-matnr,24 wa_text-werks,
30 t_mapl-plnnr,44 wa_text-plnal,48 wa_text-vornr,
60 ' -',
67 'Error Deleting Existing Long Text'.
endif.
else.
write:/3 wa_text-matnr,24 wa_text-werks,
30 t_mapl-plnnr,44 wa_text-plnal,48 wa_text-vornr,
60 ' -',
67 'Error Executing BDC'.
endif.
ENDFORM. " call_bdc
*& Form bdc_screen
BDC Script for Screen fields
-->P_PROG Program name
-->P_SCRN Screen Number
FORM bdc_screen USING p_prog
p_scrn.
clear itab_bdc_tab.
itab_bdc_tab-program = p_prog.
itab_bdc_tab-dynpro = p_scrn.
itab_bdc_tab-dynbegin = c_x.
append itab_bdc_tab.
ENDFORM. " bdc_screen
*& Form bdc_field
BDC Script for Screen fileds
-->P_NAM Field name
-->P_VAL Field value
FORM bdc_field USING p_nam
p_val.
clear itab_bdc_tab.
itab_bdc_tab-fnam = p_nam.
itab_bdc_tab-fval = p_val.
append itab_bdc_tab.
ENDFORM. " bdc_screen
*& Form load_data
Save the long text into CA22 Transaction
FORM load_data.
loop at t_text.
move t_text to wa_text.
at new vornr.
Read the data in MAPL Table
select single plnnr from mapl into t_mapl-plnnr
where matnr = wa_text-matnr
and werks = wa_text-werks
and plnty = c_r
and loekz = space.
if sy-subrc eq 0.
Read the data from PLAS and PLPO Table
select SINGLE a~mandt
a~plnty
a~plnnr
a~plnkn
a~zaehl into t_plpo
from plpo as a inner join plas as b on aplnty = bplnty
and aplnnr = bplnnr
and aplnkn = bplnkn
where b~plnty = c_r
and b~plnnr = t_mapl-plnnr
and b~plnal = wa_text-plnal
and b~loekz = space
and a~vornr = wa_text-vornr
and a~loekz = space.
if sy-subrc eq 0.
perform call_bdc.
else.
flag = 'X'.
write:/3 wa_text-matnr,24 wa_text-werks,
30 t_mapl-plnnr,44 wa_text-plnal,48 wa_text-vornr,
60 ' -',
67 'Matching routing group\Operation not found'.
continue.
endif.
else.
flag = 'X'.
write:/3 wa_text-matnr,24 wa_text-werks,
40 ' -',
45 'Material Does not Exists or Material',
82 'not Available in MAPL Table'.
continue.
endif.
endat.
if flag ne 'X'.
t_long-tdline = wa_text-text1.
t_long-tdformat = c_tdformat.
append t_long.
endif.
at end of vornr.
if flag ne 'X'.
v_mandt = t_plpo-mandt.
CONCATENATE v_mandt
t_plpo-plnty
t_plpo-plnnr
t_plpo-plnkn
t_plpo-zaehl into tname.
T_HEADer-TDOBJECT = 'ROUTING'.
t_HEADer-TDNAME = tname.
T_HEADer-TDID = c_tdid.
t_header-tdform = c_tdform.
T_HEADer-TDSPRAS = 'E'.
Save the text
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = t_header
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
LINES = t_long
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
if sy-subrc eq 0.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = t_header-TDOBJECT
NAME = t_header-TDNAME
ID = t_header-TDID
LANGUAGE = t_header-TDSPRAS.
write:/3 wa_text-matnr,24 wa_text-werks,
30 t_mapl-plnnr,44 wa_text-plnal,48 wa_text-vornr,
60 ' -',
67 'Long Text Loaded Successfully'.
else.
write:/3 wa_text-matnr,24 wa_text-werks,
30 t_mapl-plnnr,44 wa_text-plnal,48 wa_text-vornr,
60 ' -',
67 'Error Uploading Long Text'.
endif.
refresh t_long.
else.
write:/3 wa_text-matnr, 24 wa_text-werks,
45 'Long text not uploaded'.
clear flag.
endif.
endat.
endloop.
ENDFORM. " load_data
*& Form get_matnr
Get the material number from tables ZMSMI_FERR_RAW,
FORM get_matnr.
clear v_matnr.
case t_file-werks.
when '0101'.
select single cmatnr from zmsmi_simp_raw
into v_matnr where matnr = t_file-matnr.
if sy-subrc eq 0.
if not v_matnr is initial.
clear t_file-matnr.
t_file-matnr = v_matnr.
endif.
when '0103'.
select single cmatnr from zmsmi_ferr_raw
into v_matnr where matnr = t_file-matnr.
if sy-subrc eq 0.
if not v_matnr is initial.
clear t_file-matnr.
t_file-matnr = v_matnr.
endif.
when '0102' or '0110' or '0111' or '0112' or '0113'
or '0114' or '0115' or '0116' or '0117'.
select single cmatnr from zmsmi_snap_raw
into v_matnr where matnr = t_file-matnr.
if sy-subrc eq 0.
if not v_matnr is initial.
clear t_file-matnr.
t_file-matnr = v_matnr.
endif.
endcase.
ENDFORM. " get_matnr
Reward Points if it is helpful
Thanks
Seshu -
Combo box in JavaScript and store the combo box values into database
i am a developer, i have a task ie.. i have combo box in JavaScript and i have to store the combo box values into database through JavaServerPage..
i please every one to have a look on this and please reply soon....dear sir,
your suggestions are really greater the god.............
i have applied as you said , now i am the page as updated and also i nform you that its multi select ....
i will show the codings , then u will get a clear identification
<script language= "JavaScript">
<!--
function one2two() {
m1len = m1.length ;
for ( i=0; i<m1len ; i++){
if (m1.options.selected == true ) {
m2len = m2.length;
m2.options[m2len]= new Option(m1.options[i].text);
for ( i = (m1len -1); i>=0; i--){
if (m1.options[i].selected == true ) {
m1.options[i] = null;
function two2one() {
m2len = m2.length ;
for ( i=0; i<m2len ; i++){
if (m2.options[i].selected == true ) {
m1len = m1.length;
m1.options[m1len]= new Option(m2.options[i].text);
for ( i=(m2len-1); i>=0; i--) {
if (m2.options[i].selected == true ) {
m2.options[i] = null;
//-->
</script>
<form method="POST" name="theForm" action="update.jsp">
<table bgcolor="white" border="1" cellpadding="5" cellspacing="2" align="center">
<tr><td align="center">
<select id=menu1 size=10 multiple>
<option>javascript</option>
<option>php</option>
<option>Zeo</option>
<option>asp</option>
<option>jsp</option>
<option>ajax</option>
<option>struts</option>
</select>
<p align="center"><input type="button" onClick="one2two()" value=" >> "></p>
</td><td align="center">
Languages you know:<BR>
<SELECT NAME="language" multiple>
<OPTION VALUE="c">C
<OPTION VALUE="c++">C++
</SELECT>
<p align="center"><input type="button" onClick="two2one()" value=" << " ></p>
</td></tr></table>
<center><input type="submit" value="update"></center>
</form>
<h4><u>Back<h4>
<script language= "JavaScript">
var m1 = document.theForm.menu1;
var m2 = document.theForm.language;
</script>
</body>
</html>
Maybe you are looking for
-
Tomcat won't compile jsps if they are in any directory other than root
I'm running a new instance of Tomcat, and can't get a simple jsp file to compile, if it's in any directory other than the root. The jsp is: <%@ page import="test.Simple" %> <%@ page contentType="text/html" language="java" %> <html> <body><%=Simple.ma
-
Why does my computer restart when trying to print? OSX 10.8.3 epson 2200
I seem to have a problem on my macpro 3,1 3ghz, osx10.8.3 computer when i try to print. When clicking print in any program, it will automatically restart my computer. I've tried resetting the printer settings in system preferences, and when clicking
-
Oracle stored procedure in a package
Hello, I'm working on a Web service -> XI -> Oracle scenario. In the receiver side I'm using JDBC Adapter to call to stored procedure. I have stored procedure in a package. For example: package "price_list_pk" and stored procedure "is_pl". When I try
-
I have created an array of multiple objects, and want to be able to search in the array as I loop over rows in a datagrid to determine whether to add an entry to the array (if not present). At first I tried using indexOf, but that doesn't work if the
-
Query field, Auth object (characteristic variable)
Please bare with me as I am a little new to this and dont really know what im asking. I have been asked to populate an Auth object for a BW query field via a user exit. Basically when you add a field to the row section of the query designer, say i ad