How to decipher value from hexa dump of select-options
Hi
Can someone tell me whether it is possible to interpret the value of select-option as entered in the report selection-screen from ABAP Dump as seen in ST22.
Other variables are decipherable. They are stored as octets.
In my sample program s_mtart is defined as a
select-option
I had put value "BULK" in s_mtart-low and executed.
Dump snapshot.
S_mtart header : IEQBULK
44545442222
95125CB0000
s_mtart[]: ###############################`########
0000000000000000000000000000000600000000
... + 40 ############################# ##À####¡#
00000000000000000000000000000200C0008A9A
000A000A000A000A00000B000002900000006180
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
... + 120 ################################
00000000
0000000
I was expecting octals of IEQBULK somewehere in s_mtart[] dump. But nowhere I could trace 49, 45, 51, 42, 52 etc.
Moreover is there any way I can effect the way SAP write the dump content. I mean is there is some kind of system exit. I tried debugging with system debugging but no luck.
We are in 4.6C
Regards
Saurav Choudhury
Hi
Can someone tell me whether it is possible to interpret the value of select-option as entered in the report selection-screen from ABAP Dump as seen in ST22.
Other variables are decipherable. They are stored as octets.
In my sample program s_mtart is defined as a
select-option
I had put value "BULK" in s_mtart-low and executed.
Dump snapshot.
S_mtart header : IEQBULK
44545442222
95125CB0000
s_mtart[]: ###############################`########
0000000000000000000000000000000600000000
... + 40 ############################# ##À####¡#
00000000000000000000000000000200C0008A9A
000A000A000A000A00000B000002900000006180
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
... + 120 ################################
00000000
0000000
I was expecting octals of IEQBULK somewehere in s_mtart[] dump. But nowhere I could trace 49, 45, 51, 42, 52 etc.
Moreover is there any way I can effect the way SAP write the dump content. I mean is there is some kind of system exit. I tried debugging with system debugging but no luck.
We are in 4.6C
Regards
Saurav Choudhury
Similar Messages
-
How to retrieve value from xml file
hi all,
can somebody pls tell me how to retrieve value from xml file using SAXParser.
I want to retrieve value of only one tag and have to perform some validation with that value.
it's urgent .
pls help me out
thnx in adv.
rituhi shanu,
the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
pls have a look at the following code snippet.
public class XMLValidator {
static ArrayList strXXX = new ArrayList();
public void validate(){
factory.setValidating(true);
parser = factory.newSAXParser();
//all factory code is here only
parser.parse(xmlURI, new XMLErrorHandler());
public void setXXX(String pstrXXX){
strUpn.add(pstrXXX);
public ArrayList getXXX(){
return strXXX;
class XMLErrorHandler extends DefaultHandler {
String tagName = "";
String tagValue = "";
String applicationRefNo = "";
String XXXValue ="";
String XXXNo = "";
XMLValidator objXmlValidator = new XMLValidator();
public void startElement(String uri, String name, String qName, Attributes atts) {
tagName = qName;
public void characters(char ch[], int start, int length) {
if ("Reference".equals(tagName)) {
tagValue = new String(ch, start, length).trim();
if (tagValue.length() > 0) {
RefNo = new String(ch, start, length);
if ("XXX".equals(tagName)) {
XXXValue = new String(ch, start, length).trim();
if (XXXValue.length() > 0) {
XXXNo = new String(ch, start, length);
public void endElement(String uri, String localName, String qName) throws SAXException {
if(qName.equalsIgnoreCase("XXX")) {
objXmlValidator.setXXX(XXXNo);
thnx & Regards,
ritu -
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to move value from one tlist to another tlist in same form?
how to move value from one tlist to another tlist in same form on button press?
Same like in data block wizard when we select value from 1st list it will go to 2nd list and can be move back. Please help i am new to forms .
Regardsjust call the following proc in your add & add all buttons. Reverse the code for REMOVEs
this proc will move one item at a time from list_item1 to list_item2.
PROCEDURE add_an_item
IS
v_list_count NUMBER;
v_item1_label VARCHAR2(60);
BEGIN
IF :list_item1 IS NOT NULL THEN v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
IF v_list_count >= 1 THEN FOR i IN 1..v_list_count
LOOP
IF :list_item1 = Get_List_Element_Value('list_item1', i)
THEN
v_item1_label := Get_List_Element_label('list_item1', i);
Add_List_Element('list_item2',1,v_item_label,:list_item1);
Delete_List_Element('list_item1',i);
Exit;
END IF;
END LOOP;
END IF;
END IF;
END;
*********************************************************************************this proc will move all items from list_item1 to list_item2.
PROCEDURE add_all_items
IS
v_list_count NUMBER;
v_item_label VARCHAR2(60);
v_item_value VARCHAR2(60);
BEGIN
v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
IF v_list_count = 1 AND Get_List_Element_Value('list_item1', 1) IS NULL THEN NULL;
ELSIF v_list_count >= 1 THEN
FOR i IN 1..v_list_count
LOOP
v_item_value := Get_List_Element_Value('list_item1', i);
v_item_label := Get_List_Element_label('list_item1', i);
Add_List_Element('list_item2',i,v_item_label,v_item_value);
END LOOP;
clear_list('list_item1');
END IF;
END;I added [ code ] tags to make this easier to read.
Message was edited by:
Jan Carlin -
How to read values from DMM4040
Hi,
I am using DMM4040, NI PXI 6509 device.
I need to make some port pins high which i have already done and now i have to read value captured by DMM then i have to make my port pins low if my value is within limits.
Can u suggest me how to read values from DMM and then by notification i ll make my port pins low.
'' A professional is someone who can do his best work when he doesn't feel like it''...........What language are you using? If using LabVIEW, you use the NI-DMM API to communicate with the 4040. Just take your reading, do your limit comparison, and set your lines based on the comparison results.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to pass value from jsp to java bean
I have huge problem . How to pass value from jsp value to java bean.Please replay me soon
Use the <jsp:setProperty> tag. There are several ways to use it. The one you probably want is:
<jsp:setProperty name="bean_name" property="property_name" value="the_value_you_want_to_set"/> -
How to upload data from excel to SAP and options to be used
How to upload data from excel to SAP and options to be used
thank you,
Regards,
Jagrut Bharatkumar shuklaHi Jagrut,
You can use gui_upload.
chk the sample program mentioned below.
REPORT ZFTP .
DATA: BEGIN OF I_FILE OCCURS 0,
DATA(2000) TYPE C,
END OF I_FILE.
DATA: BEGIN OF I_FILE2 OCCURS 0,
DATA(2000) TYPE C,
END OF I_FILE2.
DATA: W_COUNT TYPE I.
PARAMETERS: P_FILEN TYPE STRING,
P_FILE2 TYPE STRING,
P_NUM(4) TYPE N..
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILEN.
PERFORM F_FILE_GET USING P_FILEN TEXT-G01.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
PERFORM F_FILE_GET USING P_FILE2 TEXT-G01.
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = P_FILEN
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = I_FILE
IF SY-SUBRC <> 0.
MESSAGE E024(Z1).
ENDIF.
LOOP AT I_FILE.
W_COUNT = W_COUNT + 1.
IF NOT W_COUNT > P_NUM.
MOVE I_FILE TO I_FILE2.
APPEND I_FILE2.
ENDIF.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = P_FILE2
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = I_FILE2
FIELDNAMES =
*& Form F_FILE_GET
text
-->P_P_FILEN text
-->P_TEXT_G01 text
FORM F_FILE_GET USING L_FILENA L_TEXT.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = ' '
MASK = ',.,*.TXT.'
MODE = 'O'
TITLE = L_TEXT
IMPORTING
FILENAME = L_FILENA
rc =
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Reward if helpful.
Regards,
Harini.S -
How many entries can we put in the select options
Hi all,
As per my requirement I am trying to store the data in the select-option( s_kunnt) as below
select kunnr from kna1 into (l_kunnr) where
and spart in p_spart.
move 'I' to s_kunnr-sign.
move 'BT' to s_kunnr-option.
move l_kunnr to s_kunnr-low.
move l_kunnr to s_kunnr-high.
append s_kunnr.
endselect.
Using s_kunnr in the select statement to fetch the data.
When the customer numbers are more than 1800 in the s_kunnr, select statment going to the dump. Is number of entries in the select options are restricted for some count( around 1800)?.
How many entries can we put in the select options?
Thanks
Regards
Raj.Firstly, there is an error in your code. You should do the following instead:
move 'I' to s_kunnr-sign.
move 'EQ' to s_kunnr-option.
move l_kunnr to s_kunnr-low.
append s_kunnr.
To answer your original question, the limit depends on the field width you are using in the ranges. If the field width is small, you can have thousands of entries in the range table.
The limitation is in the length of the SQL statement string generated by the ABAP OPEN SQL engine. With the way I defined it above, the statement would have WHERE KUNNR IN ( 'value1', 'value2', 'value3'). With way you defined it, it would have WHERE KUNNR BETWEEN 'value1' and 'value1' and KUNNR BETWEEN 'value2' and 'value2'.
When the range table is so large that it results in a short dump, you should look into FOR ALL ENTRIES option of SQL. -
How to get calender in f4 help for select options in module pool (URGENT)
Hi All,
how to get calender in f4 help for select options in module pool
Please help .
Thanx in advance,
amrutaHi Amruta,
First of all, you can not create select-options directly in module pool.
For creating <b>select-option is dialog prog</b> follow these steps:
1. create your selection screen model as subscreen by:
SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
PARAMETRS: P_MATNR LIKE MARA-MATNR.
SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
SELECTION-SCREEN END OF SCREEN 2000.
2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
3. write this bit of code in PBO and PAI of the screen 100;
CALL SUBSCREEN SUBSCREEN_2000.
4. include this code in PBO:
INCLUDING SY-REPID '2000'
6. write user_command of PAI, call screen which is going to executable after selection-screen.
5. create a transcation for this dialog module pool with screen 100.
6. execute this transaction and you can see it's behaving like cool with select-options.
After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
Hope it will solve the problem.
Regards
Krishnendu -
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra -
How can i get all values from jtable with out selecting?
i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
thanks in advance.
rajaYou could set the table's data model to be the same:
output2.setModel( output1.getModel() ); -
How to get values from a table(in jsp) for validation using javascript.
hi,
this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
thank you in advance.Yes i did try the same ..
BEGIN
select PROD_tYPE into :P185_OFF_CITY from
magcrm_setup where atype = 'CITY' ;
:p185_OFF_CITY := 'XXX';
insert into mtest values ('inside foolter');
END;
When i checked the mtest table it shos me the row inserted...
inside foolter .. Now this means everything did get execute properly
But still the vallue of off_city is null or emtpy...
i check the filed and still its empty..
while mtest had those records..seems like some process is cleaining the values...but cant see such process...
a bit confused..here..I tried on Load after footer...
tried chaning the squence number of process ..but still it doesnt help
some how the session variables gets changed...and it is changed to empty
Edited by: pauljohny on Jan 3, 2012 2:01 AM
Edited by: pauljohny on Jan 3, 2012 2:03 AM -
How to get values from the page excpet pagecontext.getparameter
i have a requirement wherein i am passing paramteres from the "submit" button.but the problem being that,i have multiple rows in my page.what is happening is that my "submit" button is passing the values of the previous row,instead of the current row.this is i think because "commit" gets called later and params are passed before it.
how do i solve this problem
or if i can get to get paramteres in a advance table layout,i l be able to achieve my requirement.beacuse in advance table layout,i am not able to do pagecontext.getparameter("---" of the itemthanks guys,
i did try working with row refrence but it returns a null only.
my requirement was that i had update functionality as well as "add new rows" on the same advtbl bean.an whenevr i click on "add new row" and submit,i was always gettin the parameters for the previous row.
now,i have got a workaround to that,by having a radio button to select rows to update and whenever i click on "add new rows" ,i disable the radio button,and get the handle based on the value from radio group.
but still row refrence dint work for me.i will appreciate if sum1 can send me the code -
How to return values from a BSP page to Javascript
Hi All,
I want to call a BSP page which reads a single value from a table and returns that value I want the Javascript in the HTML code to get the value from the BSP page.
Can you kindly let me know how I can return the value from the BSP page to JavaScript.
Kindly please provide me a simple code of a BSP page and the Javascript
Thanks
KarenHi,
you need 3 elements to make the javascript code read the value in any field in the table: table´s name, line and column. This is how your code could look like:
script language="javascript>
var row = 0;
function display(){
row = row + 1;
campo = 'tabla1_' + row + '_4'; " <-- table, line, column
valor = document.getElementById(campo).value;
</script>
ROW works as a counter. You have in variable valor the value of the field and can do with it what you want, perhaps display it with ALERT. I am reading the values from field 1 to n in column 4 in table TABLA1. Pay attention to the '_' in the concatenation of field´s name. The table in my BSP is very simple:
<htmlb:tableView id = "tabla1"
table = "<%= mytable %>"
width = "100%"
allRowsEditable = "X"/>
and somewhere I must call function display in my javascript code:
<htmlb:button id="boton" text="Texto aqui" onClientClick="display()" />
So, give it a try. -
How to get values from a query string in URL in a jsf page?
if i have a url, http://my.com/?name=john+smith, how do i get the values from that url in a jsf page and then pass those values to a servlet?
i know how to do that in jsp using "request.getParamter("name")" and save it in a bean and then forward to a servlet. But what about in jsf?Hello,
Try this:
Map requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
String name = (String) requestMap.get("name");If isn't worked one of these methods probably will solve your problem.
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap();hth.
Maybe you are looking for
-
Display custom messages in Writeback Reports OBIEE 11g
Is there any way i can display a custom message when user enter the wrong data(conditions).I am using OBIEE 11.1.1.7.1. Anyone please help me out here. Thanks, prassu
-
I found a workaround for PP 2014 with respect to using dynamic link to the latest versions of AE or Speedgrade. I do all my editing in PP CC 7.2. (The version previous to 2014). When I need to use the dynamic link feature, I select my video tracks in
-
One thing I have noticed:
Is when my computer froze (again) the new Lion feature that you select in your settings to automatically restart if computer freezes? Yeah... well, that didn't work. It did NOT restart. Just a heads up as I was also unable to click on the Apple icon
-
ShutdownHook and connection pooling
I have 10 different java processes running concurrently. Each of them access the DB and do the database operation through common DB java class that implements JDBC. Now i have added a shutdown hook in each of the 10 processes for graceful shutdown. A
-
Hi, I have setup defaulting rule for line type and changed the new plsql api for Return. Now I have error as OE_DEF_MAX_ITERATIONS while placing an order in both istore and OM. what is the solution for this. is this issue caused by my defaulting setu