How to (in 40B) CREATE DATA dref TYPE??
How can I dynamically define a working storage area to be like a structure in a 40B environment?
The "CREATE DATA dref TYPE" works great in 46C and on.
Ken
[email protected]
Horst,
This is a bit esoteric, but I thought you would be interested. It seems that you must have a "PARAMETERS" statement in the code you are using BEFORE declaring the variables/field-symbols in the following code. In our 46C system, the program aborts without this. Bizarre! Try it. Remove the parameters for P_ZJOB (the parm before the declarations and it will not compile:
report zsimplecasting .
must have a parameters statement before the declaration of variables
parameters :
p_job default 'ZSDORDP040' no-display.
data tab(30) type c.
data dg(1000) type x.
field-symbols <g> type any.
parameters :
p_job1 default 'ZSDORDP040' no-display.
clear dg.
tab = 'KONV'.
if <g> is assigned.
unassign <g>.
endif.
assign dg to <g> casting type (tab).
data:
ct type i.
describe field <g> length ct.
write:/ 'LENGTH OF KONV RECORD:', ct.
Similar Messages
-
Abap Dump in Solman - Create Data Unknown Type - CX_SY_Create_Data_Error
Hi Gurus, I have installed Solution Manager EHP1 with Db2 database and windows operating system with all 64 bit. Solution manager have been successfully installed and configured and it's ready to use. But i'm getting an abap dump in the solution manager system. Approximately 30 abap dump a day which is the same error message. I've tried to find the error message in market place but couldnt find a solution. Can anyone help me to solve this problem. Thanks.
Runtime Errors CREATE_DATA_UNKNOWN_TYPE
Exception CX_SY_CREATE_DATA_ERROR
Date and Time 15.04.2010 00:31:09
Short text
CREATE DATA: The specified type "/BI0/V0SDB_C02M2" is no valid data type.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_SMD_AGGREGATE_MDX==========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.Hello Ram,
Is your issue resolved.Currently i am getting the same issue ,After I have upgraded Solution Manager from EHP1SP20 to SP23.I am getting the Short Dumps.
Runtime Errors CREATE_DATA_UNKNOWN_TYPE
Exception CX_SY_CREATE_DATA_ERROR
Date and Time 08/03/2010 00:30:41
Short text
CREATE DATA: The specified type "/BI0/V0SDB_C02M2" is no valid data type.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_SMD_AGGREGATE_MDX==========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CREATE_DATA_ERROR', was not
caught in
procedure "INITIALIZE" "(METHOD)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The dynamically specified type "/BI0/V0SDB_C02M2" at CREATE DATA is no valid
data type.
The type is either unknown or an object type.
How to correct the error
If the specified type "/BI0/V0SDB_C02M2" is an object type, then new objects of
this
type (instances) are not created with CREATE DATA, but with
CREATE OBJECT.
If the type is unknown, then it must be created in the program or in the
ABAP dictionary.
Probably the only way to eliminate the error is to correct the program.
Thank you,
khanth -
Creating data dictionary type using custom java class
Hi Experts,
I have a situation involving the TableSorter mechanism as described here:
In order to do my sorting correctly, I've created my own Java class implementing the Comparable interface. Based on this class, I need to define my own data dictionary type to be used in a context/table.
However, I cannot se how this could be achieved as standard Data Dictionary elements can only be based on simple built-in types. Any ideas?
Kind regards,
Rasmus Røjkjær ØrtoftHi,
have you tried to use the following steps while creating your attribute
1) Right click on the context
2) New->Attribute
3) Manually-> Provide a name for the attribute
4) Browse->Select java native type and select your class
regards
Ayyapparaj -
How to change the created date for a file?
I searched and found someone had asked this question last month, and an answer given was to try the site:
http://danilo.ariadoss.com/howto-change-date-modified-date-created-mac/
which I had previously found. However, when I follow the instructions I get a message stating "-bash: -t: command not found"
I have gone through this numerous times, always with the same result. Is it possible that the direction given are not valid for Snow Leopard?
Thanks for any help.First, thanks to both of you for helping - I hadn't realized that the 'touch' was part of the command itself. However, when I type in:
touch -t 0904131115/Users/RobertFately/Desktop/suttonallen/suttonallen.jpg
to test the procedure (there is a jpeg file I made today named suttonallen inside a directory of the same name) I get this error message:
touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
This happens if I use the full year (2009) or just the last two digits (09) as seen above. My thinking is that I am attempting to redate the "create date" to April 13th of this year with an arbitrary time of 11:15AM. -
Data Mining : Association Analysis - How to find the Created Data source
Hi friends ,
I had created a model for Association Analysis and I trained the model and I had maintained a Data source for the model and my question is it shows the associate data source name as "Z_RSDME_AX_DS_0002" and the Application Component as "0DM_XSEL" but when I tried to search for Data source it shows that Data source not found, how to see the created Datasource
Thanks & Regards,
Vishall
Edited by: vishall somasundaram on May 5, 2011 4:00 PMHi,
Go to RSA1 and click on Data Sources. Give the Source System as the client name of your BI system. It will show you all the list of the datasources under your BI client. Now under datasources in the topmost node, right-click and select replicate metadate. It will give you options to replicate your Z_RSDME_AX_DS_0002 datasource. Once replicated, just activate the datasource.
Until and unless you replicate metadata you wont be able to see your Z_RSDME_AX_DS_0002 datasource.
Hope it helped.
Thanks,
Appu -
Hi..
I need to get the file deleted date. Based on that i ve to remove those files which dates are less than 2004dec31.
i can use fobj.delete(), for deleting the file. But how can i get the file created date?
Regards
KC.JNI.
-
How to convert XY graph data to type "signal in" for measuremen​t functions
Hi all, i have a driver file that outputs the screen capture in XY graph format. I want to measure period using the measurement functions in the LabVIEW palette. Can someone tell me how to convert into this "signal in" type. The X (time) and Y (power) are all there but it creates an error when i wire together?
Please see my attached code.
Thanks,
Solved!
Go to Solution.
Attachments:
convert XY Graph to Signal In.vi 25 KBIts ok folks, i have found a solution. See attached FYI.
Attachments:
convert XY Graph to Signal In.vi 43 KB -
How can change the created date on a photo?
Hi
I have imported photos that were originally taken in summer 2002 (and where dated as such), now they have been imported to iPhoto, the created and modified dated have changed to the date I imported them (14th Sept 06), therefore they are now sitting in the wrong years folders.
How can I move this pictures back to the correct folder i.e 2002/ I have tried amended the date in 'get info' however the date can't be changed.
thanks
mini mac Mac OS X (10.4.7)I haven't tried moving photos among the 'years' folders, but you can alter a photo's date in the 'info' box that pops up at the lower left when you click on the "i" button down there. You can also change the date of an existing folder by the same means -- that will change the sort-order of the library.
-
How get sap b1 server date to type date
i get b1 server date by Ocomp.ServerDate
but it return ServerDate Type String
how i convert to Type Date? bocoz i not sure string format when Ocomp.ServerDate return value
thank for advanceHi dde,
Use the CDate(STRING) function.
Regards,
Vítor Vieira -
How to publish workflows created under content type to make it available in all my-sites.
Hi,
i followed this procedure to publish workflows in my-sites but even after activating workflow feature am unable to get created workflow templates in my-site.
Create a workflow and associate it with your content type in the hub.
Before publishing this content type, export the reusable workflow and import it in all the subscriber site collections or deploy your workflow to the farm if it is a farm solution
Activate your workflow feature
Now, your workflow is available in the hub as well as all the subscriber site collections.
Publish the content type. The workflow association will be publish.
can anyone help me out of this issue.Hi,
As I understand, you encountered the issue after activating workflow feature.
Per my test, I can get the created workflow templates
after activating workflow feature by workflow 2010.
1. Check if you use SharePoint 2010 workflow because SharePoint 2013 workflow doesn’t work.
2. Reactive the workflow template feature in your site collection.
3. If it still doesn’t work, open the site collection you want to use the workflow in the SharePoint designer and associated the workflow with the content type in the site collection. After these steps, you can use workflow in your all site collection.
There is a similar thread:
https://social.technet.microsoft.com/Forums/office/en-US/714d1e48-a31d-4daa-9572-62d56c3b8c93/create-workflow-for-content-type-which-can-be-accessed-as-a-template-in-all-sites-including-mysite?forum=sharepointadmin
Best regards,
Sara Fan -
Hi
Quick one, can I dynamically create tables in 46B using the 'create data dref type table of ty_table' in 46B. It seems not but I just wanted to check. Otherwise I will resort to using the construct below:
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = gt_fieldcat
IMPORTING ep_table = gp_table.
From what I can see the RTTS has not been fully implemented yet.
Cheers
IanThanks Svetlin but I can already create my table like this. What I wanted was a 'cleaner' version so that I can have for example:
if p_plant = 'X'.
create data dref type table of ty_plant.
elseif p_workcentre = 'X'.
create data dref type table of ty_workcentre.
endif.
assign dref->* to <gt_output>.
However I get a syntax error when I use the above or even when I create a table such such as;
begin of ty_gbp,
plant TYPE qals-werk,
insp_end TYPE qals-paendterm,
workcentre TYPE QAQEE-PRPLATZ,
lwr TYPE qals-zz_lwr,
insp_lot TYPE qals-prueflos,
end of ty_gbp,
ty_gbp_table type table of ty_gbp.
create data dref type ty_gbp_table.
It says the type specification of ty_gbp_table is incomplete.
Ian -
Hi,
The below code is giving error in 4.7 but it works fine in ECC6.
create data dynamic TYPE table OF (s_tabnam-low).
how can i replace this in 4.7
Thanks,
Rakesh.Hi,
I think you can work with
CREATE DATA dref TYPE tabkind OF linetype
(WITH (UNIQUE | NON-UNIQUE ) keydef)
( INITIAL SIZE n ).
Regards,
Anirban Bhattacharjee -
How to create a generic TYPES?
hello!
what i try to do is following
eg:
when i call my function the user has the possibility to check the flag "show_button = 'X', and exports a table
when this flag is checked i want to display an icon in the first row of this table, so i need to extend the table structure which i import and add another attribute.
what i actually tried to achieve is this (but this is not working of course)
function
import:
i_outtab type standard table.
field-symbols:
<itab> type standard table.
assign i_outtab to <itab>.
TYPES: begin of mytyp.
types: i_bt type iconname.
INCLUDE STRUCTURE <itab>
TYPES: end of mytyp.
and then i create a table with the type mytyp (which is not working, but i shows what i try to do)
so is there a way to do this genericly?You can do that using the ABAP Run Time Type Services.
Example:
I have a function module Y_TEST with one Importing Parameter:
*" IMPORTING
*" REFERENCE(IP_IT_DATA) TYPE ANY TABLE
I have no idea about the table-structure and I want to add a field X_SELECTED of type XFELD to the end of the table to display it using CL_SALV_TABLE or something - this is how I do it:
FUNCTION y_test.
*" IMPORTING
*" REFERENCE(IP_IT_DATA) TYPE ANY TABLE
DATA:
gr_tabtype TYPE REF TO cl_abap_tabledescr,
gr_struc TYPE REF TO cl_abap_structdescr,
lr_itab TYPE REF TO data,
it_component TYPE cl_abap_structdescr=>component_table,
wa_component LIKE LINE OF it_component.
FIELD-SYMBOLS:
<wa> TYPE ANY.
* Reading 1st line of itab and getting structure ->
LOOP AT ip_it_data ASSIGNING <wa>.
gr_struc ?= cl_abap_typedescr=>describe_by_data( <wa> ).
EXIT.
ENDLOOP. "ip_it_data
* Getting all components ->
CHECK gr_struc IS BOUND.
it_component = gr_struc->get_components( ).
* Adding new field (X_SELECTED) to Component-Table ->
wa_component-name = 'X_SELECTED'.
wa_component-type ?= cl_abap_typedescr=>describe_by_name( 'XFELD ').
INSERT wa_component INTO TABLE it_component.
* Creating new structure-ref ->
CLEAR gr_struc.
CALL METHOD cl_abap_structdescr=>create
EXPORTING
p_components = it_component
RECEIVING
p_result = gr_struc.
* Creating new table-ref ->
CALL METHOD cl_abap_tabledescr=>create
EXPORTING
p_line_type = gr_struc
RECEIVING
p_result = gr_tabtype.
* Creating itab with our table-ref ->
CREATE DATA lr_itab TYPE HANDLE gr_tabtype.
ENDFUNCTION.
Hope that helped ... -
HI
There is a way to create date type string using the command
Create data type "string"...
I know that I can create data type C but string dont have any restrication so how I can hanlde it ?
Regards
JoyHi,
You can use the create data statement:
DATA: lo_data TYPE REF TO data.
FIELD-SYMBOLS: <str> TYPE ANY.
CREATE DATA lo_data TYPE string.
ASSIGN lo_data->* TO <str>.
Here <str> will be of type string.
Kr,
m. -
How to know created date of table of info ?
for example :
select v.*
from v$session v
how to know the created date of one line info in v$session ?
who can help me ?
thanks!Hello
The program column is the name of the program (OS executable) that owns the session. Take this example on windows (note that I've edited out some lines):
SQL> select sid,serial#,program,username from v$session;
SID SERIAL# PROGRAM USERNAME
420 11 sqlplus.exe TYLERD
427 5 ORACLE.EXE (q001)
429 3 ORACLE.EXE (CJQ0)
431 3 ORACLE.EXE (QMNC)
434 10 ORACLE.EXE (q000)
436 1 ORACLE.EXE (MMNL)
437 1 ORACLE.EXE (MMON)
438 1 ORACLE.EXE (RECO)
439 1 ORACLE.EXE (SMON)
440 1 ORACLE.EXE (CKPT)
441 1 ORACLE.EXE (LGWR)
442 1 ORACLE.EXE (DBW0)
443 1 ORACLE.EXE (MMAN)
444 1 ORACLE.EXE (PSP0)
445 1 ORACLE.EXE (PMON)
You can see that there are the various Oracle sessions for the various background processes/threads and there is my session, which as you can see I created by connecting to the database with SQL*Plus. I'll get rid of the oracle sessions in the next one and create another session with SQL Navigator (spit on the floor as I click the icon) and another one with powerbuilder (throw myself on a spike)
SQL> select sid,serial#,program,username from v$session where username=user;
SID SERIAL# PROGRAM USERNAME
419 12 SQLNav5.exe TYLERD
420 11 sqlplus.exe TYLERD
421 163 pb80.exe TYLERDIf I rename the powerbuilder executable (to something more apt) and re-connect, you can see this shows up in the program column
SQL> select sid,serial#,program,username from v$session where username=user;
SID SERIAL# PROGRAM USERNAME
417 14 Dodgy builder 80.exe TYLERD
419 12 SQLNav5.exe TYLERD
420 11 sqlplus.exe TYLERDHTH
David
p.s.
As guido suggested, you should become familiar with the documentation, here's some links:
V$Session reference
10g documentation home page
Concepts guide
Maybe you are looking for
-
Help! powerbook won't go to sleep...suffering from insomnia
Hey all, recently i noticed my powerbook has not been going to sleep. i've reset pram,nvram,open firmware, repaired disk permissions, ran cron scripts the whole 9 yards. I checked system logs and i get this: Description: System events log Size: 86 by
-
NI PCI-6602: semi-period measurement stops unexpectedly or returns wrong values
Hi, Using an NI PCI-6602 card we try to measure the semi-periods of a digital signal. In "continuous sampling mode", 10 samples are collected in the buffer and then are read out. Up to 6 counters on this card are sampling the same signal in our testi
-
How to import Facebook albums to iPhoto '11
Hi, I have iPhoto '11 installed on my MacBook white (mid 2010) with Lion. I connecyed iPhoto to my facebook account and I used it several times to upload new photos to Fb. This time I've imported 2 albums of photos to Fb from another computer and I'd
-
Measuring the performance of Networking code
Lately I've had renewed interest in Java networking, and been doing some reading on various ways of optimizing networking code. But then it hit me. I dont know any way of benchmarking IO/Networking code. To take a simple example, how exactly am I sup
-
Trying to reinstall PayPal app but showing installing in grey window
Trying to reinstall PayPal app after deleting cos it wouldn't update. Now instead of green "install" window it shows grey "installing" window which you can,t click on. Help!