How to create a field with unlimited size (length)
Hello guys
I have to create a field in a table that holds a very long string of data (no maximum length known). Is there a way to handle this type of situation. If so what kind of field type should i be using.
Thanks
Ram
Hi Prashanth
I am an XI certified consultant with some self learning of abap and basis also. Because our company is small I am the only person incharge of our SAP work. So that is the reason I am using SDN's help in getting many of my questions answered and people have been very helpful here.
One of the members had suggested to use VARC type, but when I try to use it, it said that this is not supported anymore.
Hope to hear some feed back regarding this.
Tks
Ram
Similar Messages
-
How to create a field with 1200 chars length
Hi,
Will anybody let me know how to create a field with length 1200 in a table.
Regards,
MadhaviHi Madhvi,
Other thing what you can do is
1. First create a Table type.
Goto SE11-> Dataelements ->Table type
There on the next screen select Predefine radio button & there provide data type & size.
2. Create a structure having a field typa of Table type created before. say that field is quant.
Now in your program refer that structure to create an internal table & work area.
Now if u append ur text to the field quant.
try creating line type of size more that 255 if it works then fine other wise reduce it.
Note:: This will be a deep structure.
so first append value to the field quant, the at the end of first record append valu to ur internal table.
thanks
Satyam -
How to create a field with combo or check box group in a form
1 - i created a database table messages (sender_name , date , message_type , message_body)
message type accept only COMPLAINT , SUGESSTION OR OPENION
2 - I created a form which has a field called message_type
3 - i want the message type appear in the runtime as a checkbox group or as combo box (with values COMPLAINT , SUGESSTION OR OPENION)
PLEASE GUIDE ME STEP BY STEP TO DEVELOP IT
Regards
Mohamed HammedHi,
You can create another table to hold the unique values COMPLAINT, SUGESSTION and OPINION. You can then dynamically query this table in a Dynamic Page & construct the HTML code within a function like this :-
CREATE OR REPLACE FUNCTION FN_GET_RADIO_OPTIONS
RETURN VARCHAR2
AS
ln_return_html VARCHAR2(32767);
BEGIN
FOR rec IN ( SELECT ROWNUM,MESSAGE_TYPE FROM SCOTT.MESSAGES_TYPES )
LOOP
ln_return_html := ln_return_html || '<INPUT TYPE=RADIO NAME=rd'||rec.ROWNUM||' VALUE='||rec.MESSAGE_TYPE||' />';
END LOOP;
RETURN ln_return_html;
END;
/You can then get something out of Dynamic Page like this :-
<ORACLE>
DECLARE
ln_SQL VARCHAR2(32767);
BEGIN
ln_SQL:= FN_GET_RADIO_OPTIONS;
HTP.P(ln_SQL);
END;
</ORACLE>Of course, you do the same in a million other ways - using Java, etc - this is just an example to give you an idea.
Regards,
Sandeep -
How to create a field with underscore
I want to create something like this:
___n___ # scrubbed
___x___ of __n____ did scrub correctly
The user will fill in n and x fields to compare if x = n.
I don't want to use text field. Is there some way to achieve this?
Thanks.
Message was edited by:
user575351Hi Madhvi,
Other thing what you can do is
1. First create a Table type.
Goto SE11-> Dataelements ->Table type
There on the next screen select Predefine radio button & there provide data type & size.
2. Create a structure having a field typa of Table type created before. say that field is quant.
Now in your program refer that structure to create an internal table & work area.
Now if u append ur text to the field quant.
try creating line type of size more that 255 if it works then fine other wise reduce it.
Note:: This will be a deep structure.
so first append value to the field quant, the at the end of first record append valu to ur internal table.
thanks
Satyam -
Hi how to create jbutton, jcombobox with same size
hi i m just new in gui
and i added some of buttons and comboboxes
but i want their width to be equally sized
regardless of their character length..
but..
how to dousing null layout and set the component size
setLayout(null);
add(b1); \\Button
add(c1); \\Combo bax
b1.setBounds(0,10,30,20); \\(Left,top,width,height)
c1.setBounds(0,35,30,20); \\(Left,top,width,height)
this will create a button size of 30*20 at 0,10 position
and create a Combobox size of 30*20 at 0,35 position
try it........... -
How to create a String with a specific size?
how to create a String with a specific size?
For example I want to create different Strings with the size of 100 , 1000 or 63k byte?String are immutable so just initialize it with the number of characters you want.
You might want to look at java.lang.StringBuffer and see if that's what you want. -
How to create pdf files with text field data
how to create pdf files with text field data
That looks like it should work, but it doesn't.
I opened the PDF I had created from Word in Acrobat (X Pro). Went to File > Properties. Selected "Change Settings". I then enabled "Restrict editing...", set a password, set "Printing Allowed" to "none", "Changes Allowed" to "none", and ensured that "Enable copying of text..." was disabled.
I saved the PDF file, closed Acrobat, opened the PDF in Reader, and I was still able to select text and graphical objects.
I reopened the PDF in Acrobat, and the document summart still shows everything as allowed. When I click on "show details" (from File > Properties) it shows the correct settings.
Any ideas? -
How to create a node with attributes at runtime in webdynpro for ABAP?
Hi Experts,
How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
Please help!
Thanks
GopalHi
I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
Note
The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
My code is like the following:
TYPES: BEGIN OF t_type,
CARRID TYPE sflight-carrid,
CONNID TYPE sflight-connid,
END OF t_type.
Data: i_struc type table of t_type,
dyn_node type ref to if_wd_context_node,
rootnode_info type ref to if_wd_context_node_info,
i_node_att type wdr_context_attr_info_map,
wa_node_att type line of wdr_context_attr_info_map.
wa_node_att-name = 'CARRID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
insert wa_node_att into table i_node_att.
wa_node_att-name = 'CONNID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
insert wa_node_att into table i_node_att.
clear i_struc. refresh i_struc.
select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
rootnode_info = wd_context->get_node_info( ).
rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
attributes = i_node_att
is_multiple = abap_true ).
dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
dyn_node->bind_table( i_struc ).
l_ref_interfacecontroller->set_data( dyn_node ).
I am trying to create a new node. That is
CONTEXT
- DYNFLIGHT
CARRID
CONNID
As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
Also I cannot define the structure in the ABAP dictionary because it changes based on condition
Message was edited by: gopalkrishna baliga -
How to create a table with events in smartforms?
How to create a table with events view in smartforms?
It doesn't like general table with header, main area and footer.
for example:
in smartforms: LE_SHP_DELNOTE
table name is TABLEITEM(Delivery items table)Vel wrote:
I am creating XML file using DBMS_XMLGEN package. This XML file will contain data from two different database tables. So I am creating temporary table in the PL/SQL procedure to have the data from these different tables in a single temporary table.
Please find the below Dynamic SQL statements that i'm using for create the temp table and inserting the data into it.
Before insert the V_NAME filed, i will be appending a VARCHAR field to the original data.
EXECUTE IMMEDIATE 'CREATE TABLE TEMP_TABLE (UNIQUE_KEY NUMBER , FILE_NAME VARCHAR2(1000), LAST_DATE DATE)';
EXECUTE IMMEDIATE 'INSERT INTO TEMP_TABLE values (SEQUENCE.nextval,:1,:2)' USING V_NAME,vLastDate;What exactly i need is to eliminate the INSERT portion of it,Since i have to insert more 90,000 rows into it. Is there way to have the temp table created with data in it along with the sequence value as well.
I'm using Oracle 10.2.0.4 version.
Edited by: 903948 on Dec 22, 2011 10:58 PMWhat you need to do to eliminate the INSERT statement is to -- as already suggested by others - eliminate the temporary table. You don't need it. It is just necessary overhead. Please explain why you (apparently) believe that the suggestion of a view will not meet your requirements. -
I need your expert opinion on how to create a map with multiple conditions.
Hello.
I need your expert opinion on how to create a map with multiple conditions.
I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
How can i create a cursors within the map?
My function creates table and cursor.
Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
I would appreciate any help / advise on this.
Thank you very muchthanks a lot for your reply - i will look into this option :-)
it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
Anyway, thank you very much for your suggestion. -
How to create a GregorianCalendar with timezone information
Hello All,
Can any one tell me how to create a GregorianCalendar with time zone information i.e
I have following information with me
year
month
day
hour
minutes
seconds
deci-seconds
direction from UTC "+" / "-" (in ascii notation)
hours from UTC minutes from UTC
How can i construct a calender out of it?How to construct a calendar:
Calendar.getInstance()
Did you consider looking at the API docs with the set() method for calendar and the field constants for the values you can set?
Although I wonder whether it's simpler to just concatenate the data to a String and parse it to a Date instance using SimpleDateFormat. -
How to map Idoc fields with external file
Hi All,
How to map Idoc fields with external file.
I want to check the settings where Idoc fields are mapped with external file.
Thanks in advance.
Regards,
Govind.If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment
-
How to create ios environment with adobe id?
Hi , i am trying to create ios environment in windows platform.
can any one please tell me, how to create IOS environment with adobe id.
I a created adobe id and inserted code into it. But its running (Since one hour), and no response.
Any one have idea on it, please let me know.
Thanks in advance....
Message was edited by: pathi rskumarHi,
If you have already set the number range as an external range.
Then just passing the transaction type to field 'process_type' and external id to field 'object_id' of table ct_orderadm_h. Sales order will created with the assigned external id.
Hope this help.
cheers, -
How to create table view with reference table
Hi experts,
How to create table view with reference table in SE11, plz gve me stp by stp procedure.
pints grnded for hlp.Hi
Go to Tcode se11 choose view and enter the name and create a popup opens up choose database view option
enter the description
On the left hand side choose the table name.
Click on view fields tab and choose your table fields.Here you can choose which fields you want in your view.
Save and then activate.
Hope this helps.
Regards,
Harish -
How to create "Fisheye Effect" with Photoshop 10, on a Mac computer
How to create "Fisheye effect" with Photoshop 10 on a Mac computer?
One way : use the filter : correct camera distortion. Move the remove distortion slider towards left (barrel distortion)
Or, first increase the canvas size to a square format bigger than the larger dimension of the image and play with the filter : distort, spherize.
Maybe you are looking for
-
Support for the creation of a new BEA WebLogic Application Server v10.3
To All, After downloading and installing the Enterprise Pack for Eclipse (Ganymede: http://download.oracle.com/otn_software/oepe/ganymede) I attempted to create a new BEA WebLogic 10.3 server - since that is the version of the application server that
-
SOAP Receiver Adapter Target system down
Hi All, My scenario is SOAP Receiver adapter --- > Portal system (Target system.). Now team is taking restart of target system. It will take around 1 hr. So my question what will happen to the messages which is received by SOAP Receiver adapter in th
-
Magic Trackpad help, please
this is kinda driving me buggy, so I thought I'd turn to here for help. I have a Magic trackpad and although it generally works fine, it loses the connection pretty easily. I move it 3 inches to the left or right and ...."connection lost". It seemed
-
TS1492 Error 11333 when connecting to iTunes Store
I am using a Mac Mini, not Windows. The Apple dropdown would not let me choose the correct community. I didn't know what to do. Meanwhile, unfortunately, I get the error in question (11333) when I choose iTunes > Check for Updates. That's the error t
-
Have not recevied software registration key
I registered by personal 9i database and 9i developer software and have not received my registration key. Please send both registration key for 9i database and 9i developer, so I can install the software.