ABAP Coding:The included type has no structure
Hi All,
When i tried to write following code, i 'm getting error like "*The included type has no structure *"
TYPES:
BEGIN OF it_datapak1.
INCLUDE STRUCTURE RESULT_PACKAGE.
TYPES:
alpha(18) TYPE c,
END OF it_datapak1.
Any guesses?
Hi
Check in SE11 wether you have any structure with name RESULT_PACKAGE.
Regards
Srilaxmi
Similar Messages
-
How to trigging a object event which the object type has two key fields
Hi,kind guys
I use the object type QMSM about qualification notification task,it has two key fiedls,qualification notification number and task number (can display by t-code -QM03), I want to trigging the event 'create' in BOR 'QMSM ' by function SWE_EVENT_CREATE(or SAP_WAPI_event_create), but it only has one object key ,
example:
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
OBJTYPE = OBJTYPE
OBJKEY = OBJKEY " only one key
EVENT = EVENT
but the BOR object 'QMSM' has two keys,so it cann't be trigged rightly.
thanks for any help.You have to Concatenate the Business object keys and pass it in one variable OBJKEY.
Thanks
Arghadip -
What is the best type of data structure for this type of data?
Animal --> (List of types like Mammal, Reptile, etc)
Mammal --> (List of families)
Etc.
So basically there is a key then a list of other keys with more items.
At first I thought a Map<String, Map<String, Map<String,...etc but the number is unknown so I'm not sure how to structure it.I'd just use a flat Map<String,String> and stick all categories in that
-
Why the data type has changed to number from integer?
SQL> create table t3(id integer);
Table created.
SQL> desc t3;
Name Null? Type
ID NUMBER(38)Yes you are right, but obviousely Oracle represents INTEGER as NUMBER(38) internally, which meens that you do not have decimal digits.
see my demo:
1 create table test_i
2* (col1 integer)
SYS @10gR2 SQL > /
Table created.
SYS @10gR2 SQL > desc test_i
Name Null? Type
----------------------------------------- -------- ---------------------------- COL1 NUMBER(38)
SYS @10gR2 SQL > insert into test_i values(10.2);
1 row created.
SYS @10gR2 SQL > select * from test_i;
COL1
10
SYS @10gR2 SQL > insert into test_i values(10.6);
1 row created.
SYS @10gR2 SQL > select * from test_i;
COL1
10
11
=;-)
Lutz -
How to use the variables of Function exit in the include program
i have a problem of using the variables of a function exit in the include program..
If i use those variables there will be an error indicating 'Field FEBVW_IN is unknown. It is neither in one of the specified tables nor defined by a DATA statement'. Please help... Below is the code of the function exit:
FUNCTION EXIT_SAPLIEDP_202.
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(IDOC_CONTROL_INDEX)
*" VALUE(IDOC_DATA_INDEX)
*" VALUE(FEBVW_IN) LIKE FEBVW STRUCTURE FEBVW
*" VALUE(FEBKO_IN) LIKE FEBKO STRUCTURE FEBKO
*" VALUE(FEBEP_IN) LIKE FEBEP STRUCTURE FEBEP
*" VALUE(FEBRE_IN) LIKE FEBRE STRUCTURE FEBRE
*" VALUE(FEBPI_IN) LIKE FEBPI STRUCTURE FEBPI
*" EXPORTING
*" VALUE(I_FIMSG) LIKE FIMSG STRUCTURE FIMSG
*" VALUE(FEBVW_OUT) LIKE FEBVW STRUCTURE FEBVW
*" VALUE(FEBKO_OUT) LIKE FEBKO STRUCTURE FEBKO
*" VALUE(FEBEP_OUT) LIKE FEBEP STRUCTURE FEBEP
*" VALUE(FEBRE_OUT) LIKE FEBRE STRUCTURE FEBRE
*" VALUE(FEBPI_OUT) LIKE FEBPI STRUCTURE FEBPI
*" TABLES
*" IDOC_CONTROL STRUCTURE EDIDC
*" IDOC_DATA STRUCTURE EDIDD
*" IDOC_AVIP STRUCTURE AVIP OPTIONAL
*" IDOC_AVIR STRUCTURE AVIR OPTIONAL
*" IDOC_AVIT STRUCTURE AVIT OPTIONAL
*" CHANGING
*" REFERENCE(IDOC_AVIK) TYPE AVIK OPTIONAL
*" EXCEPTIONS
*" PROC_ERROR
INCLUDE ZXF08U10.
Here is the code for the include program.
INCLUDE ZXF08U10
MOVE febvw_in TO febvw_out.Sometimes you will get this error message when checking include code in exits even though there is really no error - it happens because the include does not realise it is in the function due to the navigation index being out of date.
Try activating the code - it may work even though the check said there were errors.
You can also get this issue when trying to drill down on the field in the include to view its structure.
Andrew -
Pass parameter to included page and read it in the included packing bean
Hello
i have a page include in adf page (main.jspx include body.jspx) and i send a parameter to the included page ,and the included page has a request scope backing bean ,and in the constructor for this backing bean i tried to read the parameter , how can i get the included parameter "userId" in the backingbean which is realted to body page i.e(i want to pass the userid parameter to the body backing bean),the following is my code.
main.jspx :
<f:subview id="Body">
<jsp:include page="/body.jspx";>
<jsp:param name="userId" value="123456"/>
</jsp:include>
</f:subview>
Regards
Mohd.Weshahi tried your soluation
<managed-bean>
<managed-bean-name>testBacking</managed-bean-name>
<managed-bean-class>checklist.TestBacking</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>testValue</property-name>
<property-class>java.lang.String</property-class>
<value>${param.myParam}</value>
</managed-property>
</managed-bean>
it return to me in the getter method for the testValue the experssion as string ${param.myParam} but if i put ${param.myParam} it return value.
please advice.
Regards
Mohd.Weshah -
TYPES statement in abap class to include structure
hi ,
i have declared following in a abap class...
TYPES:
zts_alv_line TYPE zmat_pr_costest_alv.
TYPES:BEGIN OF ts_alv_line,
include type zts_alv_line,
matkl type mara-matkl,
t023t type t023t-wgbez,
lvorm type mara-lvorm,
end of ts_alv_line.
TYPES: tt_alv_data TYPE STANDARD TABLE OF ts_alv_line WITH DEFAULT KEY.
DATA:
alv_data TYPE tt_alv_data.
now while refering to alv_data-matnr the sap is giving error that this component does not have matnr.
please help.
Edited by: Suhas Saha on Feb 3, 2012 1:11 PMTYPES: zts_alv_line TYPE zmat_pr_costest_alv.
TYPES:BEGIN OF ts_alv_line,
include type zts_alv_line,
matkl type mara-matkl,
t023t type t023t-wgbez,
lvorm type mara-lvorm,
end of ts_alv_line.
Actually by defining this you've defined include as field of ts_alv_line. Actually ts_alv_line is a nested structure.
I think you need to re-define the structure definition as:
TYPES:BEGIN OF ts_alv_line.
INCLUDE TYPE zts_alv_line.
TYPES: matkl TYPE mara-matkl,
t023t TYPE t023t-wgbez,
lvorm TYPE mara-lvorm.
TYPES: END OF ts_alv_line.
BR,
Suhas -
Deep DDIC-Structure - Method to get the Comp.Type of a sub-structure
Dear colleagues,
thought the subsequent piece of coding might be helpful for the following problem:
In DDIC you have created a deep/nested Structure e.g. a complete Business Document representation like
s_doc_header type struct_doc_header
(incl.) item type tab_item
(incl) party type tab_party etc.
Now for some purpose you need to access somewhere a sub-part of this structure, e.g. the party-part. You only know (dynamically) the component name "party", but need for dynamic access also the Component Type ("tab_party") (in order to make use of a "CREATE DATA lr_reftodata TYPE (determined_comp_type)." )
The following piece of coding should help to query any start component type (here "struct_doc_header") for its embedded components.
Its a recursive use of features provided by the very nice class(set) of cl_abap_structdescr.
I implemented it as a static method.
When doing so, you need to ensure, that the TYPE-GROUP "ABAP" is linked to the class (class properties --> forward declarations),
Let me know if you find it useful.
And apologies in advance, if the same problem was already posted in the forum. I did only a rough search before due to a lag of ideas for appropriate search-strings ...
Best regards,
Rudy
Signature:
Importing:
IV_COMPNAME TYPE ABAP_COMPNAME
IV_START_STRUCTR TYPE KOMP_TYPE
Exporting/returning
EV_DDIC_STRUCT TYPE KOMP_TYPE
METHOD search_deep_ddic_by_comp.
* Description -------------------------------------------
* Methods looks into a deep DDIC-Structure and returns the
* corresponding TYPE
* Prerequsite for usage: Structures component names are unique.
* Local Data Defintions --------------------------------------
* Locals -----------------------------------------------------
* TYPES:
DATA: lv_compname TYPE abap_compname.
DATA: lt_componenttable TYPE abap_component_tab.
DATA: lv_relative_name TYPE string.
DATA: lv_ddic_header TYPE x030l.
DATA: lv_ddic_struct TYPE komp_type.
DATA: lv_start_struct TYPE komp_type.
* supporting
DATA: lv_lines TYPE i.
DATA: lv_message TYPE string.
DATA: lt_selopt TYPE sesf_selection_parameters_tab.
DATA: ls_selopt TYPE sesf_selection_parameter.
* References -------------------------------------------------
DATA: lo_struct_descr TYPE REF TO cl_abap_structdescr.
DATA: lo_type_descr TYPE REF TO cl_abap_typedescr.
* Field-Symbols ----------------------------------------------
FIELD-SYMBOLS:
<fs_struct_descr_component> TYPE abap_componentdescr.
lo_struct_descr ?= cl_abap_structdescr=>describe_by_name( p_name = iv_start_structr ).
IF lo_struct_descr IS BOUND.
* get all sub-structures/components of iv_start_structr
CALL METHOD lo_struct_descr->get_components
RECEIVING
p_result = lt_componenttable.
lv_compname = iv_compname.
READ TABLE lt_componenttable ASSIGNING <fs_struct_descr_component>
WITH KEY name = lv_compname.
IF sy-subrc = 0.
* matching component found - search for DDIC structure
CALL METHOD <fs_struct_descr_component>-type->get_relative_name
RECEIVING
p_relative_name = lv_relative_name.
ASSERT lv_relative_name IS NOT INITIAL.
CASE <fs_struct_descr_component>-type->type_kind.
WHEN 'u' OR 'v'. "structure
ev_ddic_struct = lv_relative_name.
RETURN.
WHEN 'h'. "table type - derive the line type
lo_type_descr ?= cl_abap_datadescr=>describe_by_name( p_name = lv_relative_name ).
CALL METHOD lo_type_descr->get_ddic_header
RECEIVING
p_header = lv_ddic_header.
IF sy-subrc = 0.
ev_ddic_struct = lv_ddic_header-refname.
RETURN.
ELSE.
"error
ENDIF.
WHEN OTHERS.
"error
ENDCASE.
ELSE.
* go deeper into structure and look into each sub-structure via recursion
LOOP AT lt_componenttable ASSIGNING <fs_struct_descr_component>.
CALL METHOD <fs_struct_descr_component>-type->get_relative_name
RECEIVING
p_relative_name = lv_relative_name.
ASSERT lv_relative_name IS NOT INITIAL.
CASE <fs_struct_descr_component>-type->type_kind.
WHEN 'u' OR 'v'. "structure
WHEN 'h'. "table type - derive the line type
lo_type_descr ?= cl_abap_datadescr=>describe_by_name( p_name = lv_relative_name ).
CALL METHOD lo_type_descr->get_ddic_header
RECEIVING
p_header = lv_ddic_header.
IF sy-subrc = 0.
lv_relative_name = lv_ddic_header-refname.
ELSE.
"error
ENDIF.
WHEN OTHERS.
EXIT. "next loop, investigate only struct and table
ENDCASE.
* lv_compname = <fs_struct_descr_component>-name.
lv_start_struct = lv_relative_name.
CALL METHOD /scmtms/cl_ddic_utility=>search_deep_ddic_by_comp
EXPORTING
iv_compname = iv_compname
iv_start_structr = lv_start_struct
IMPORTING
ev_ddic_struct = lv_ddic_struct.
IF lv_ddic_struct IS NOT INITIAL.
ev_ddic_struct = lv_ddic_struct.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDMETHOD.Using command:
ASSIGN COMPONENT idx OF STRUCTURE struc TO <fs>.
For example:
DESCRIBE FIELD pi_output TYPE pi_output COMPONENTS lv_columns. "For number of columns
DO lv_columns TIMES.
ASSIGN COMPONENT SY-INDEX OF
STRUCTURE (name of structure) TO <l_fs_output>. "<l_fs_output> - field of structure
DESCRIBE FIELD <l_fs_output>... "with other options.
ENDDO. -
How to create the sub type field in hr abap infotype
hi ,
how to create the sub type field in hr abap infotype.
regards,
venkat.Try like this also
creating of infotype please follow these steps ...
Step 1: Create Infotypes
i. Goto Transaction PM01 To create Infotypes:
ii. Enter the Infotype Number and say create all.
iii. The following message would display:
i. PSnnnn Does not exist. How do you want to proceed?
iv. Click
v. A maintain Structure screen appears.
Fill in the short text description and the PS structure of the Infotype.
Since the fields Personnel No, Employee Begin Date, End Date, Sequential Number,Date of Last Change, Name of user who changed the object are available in the PAKEY and PSHD1 structure, define the PSnnnn structure with only the fields you required.
vi. Once the PS Structure is created, save and activate the structure.
vii. In the initial screen of PM01, now click on .
Create a new entry for the infotype.
Fill in the values as mentioned below and save.
Infotype Characteristics:
Infotype Name of the infotype_ Short Text: __Short Description________
*General Attributes :
Time constraint = 1
Check Subtype Obligatory
Display and Selection:
Select w/ start = 3 Valid record for entered data
Select w/ end = 5 Records with valid dates within the period entered
Select w/o date = 6 Read all records
Screen header = 02 Header ID
Create w/o end = 1 Default value is 31.12.9999
Technical Data:
Single screen = 2000
List screen = 3000; List Entry Checked.
viii. In the initial screen of PM01, now click on .
Choose the infotype entry in the list.
Fill in the values as mentioned below and save.
Technical Attributes:
In tab section,
The following attribute values are given:
Applicant DB Tab = PAnnnn Infotype Name
Subtype field = SUBTY
Subtype table = T591A
Subty.text tab. = T591S
Time cnstr.tab. = T591A
Prim. /Sec. = I Infotype
Period/key date = I Interval
and .
ix. Infotype Screen Modification:
Edit Screen 2000 from PM01 for the Infotype.
ABAP Editor for the Infotype Program MPnnnn00 will be displayed.
Click . Flow Logic will be displayed. There string coding of your own logic.
Regards
Pavan -
Coded UI -Unit Test Adapter threw exception: Unable to load one or more of the requested types
I am working on silver light bases share point application using visual studio 2012 with C#
While debugging coded ui tests with ui maps i am getting this error.
I have taken the solution developed by team member containing test methods and trying to debug/run the test methods which contain ui maps I am getting
Unit Test Adapter threw exception: Unable to load one or more of the requested types.Retrieve the loader exceptions property for more information.
When i exclude the tests that depend on ui maps and debug/run remaining test methods I am not getting this error and able to run/debug test methods successfully
But when I include the test methods related to ui maps and tried to debug i am getting this error.
Please help me in this.Thanks for Fouad's help.
Hi usha.talasila,
>>Unit Test Adapter threw exception: Unable to load one or more of the requested types.Retrieve the loader exceptions property for more information.
Generally this error would be related to the references. Like Fouad's suggestion, you would check whether there are specific references in your test project, and then right click the reference->property, and then set the Copy Local =true.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Error: The data objet "p_t_ods" has no structure
Hi guys!!
I have a problem with a table:
*program1*
DATA: BEGIN OF t_ods OCCURS 0.
INCLUDE STRUCTURE zdeu0.
DATA: END OF t_ods.
***Zdeu0 is a structure that it has field1 type c and field2 type c.
perform change_table (program2) tables t_ods.
**end program1*
*program 2**
types: begin of s_ods.
include structure zdeu0.
end of s_ods.
data: ODS type s_ods.
form change_table tables p_t_ods structure ods.
aux = p_t_ods-field1 .
"here my program fail because p_t_ods has no structure and therefore
"no component called field1.
endform.
*end program2*
*end program2**
Anybody can tell me how can I change it??
Thanks a lot in advance.
AnaHI Ana,
Try In program 2 as below options
form change_table tables p_t_ods type standard table of s_ods with header line.
OR
In program 2 change
form change_table tables p_t_ods .
Do revert -
For what is the field SVER with type RSRSVER in structure RSDRI_S_SELNODE ?
Does anyone know what does the field SVER with type RSRSVER in structure RSDRI_S_SELNODE mean ??
Thx....If this indicator is set, the material is costed using costing with a quantity structure (BOM and routing).
The system searches for any existing cost estimates with quantity structure for the individual materials; it ignores existing cost estimates without quantity structure. If the system does not find any valid costing data for the materials, it costs the material or accesses the price in the material master.
If this indicator is not set, the planned costs for the material are calculated using the cost estimate without quantity structure. In this case, you use unit costing to create the quantity structure manually by entering costing items for materials and activity types, for example.
The system now searches for any existing cost estimates without quantity structure. If a cost estimate without quantity structure exists for a material, the results of this cost estimate are included in a cost estimate with quantity structure. If there is no cost estimate without quantity structure, the cost estimate with quantity structure accesses the price in the material master record. The planned costs for this material then go into the cost estimate with quantity structure as raw material costs.
This does not apply if the indicator Ignore prod cost est w/o qty structure is set in the costing variant. -
Setting the content type inside the ABAP mapping.
Hello All,
Can any one help me by telling me how to set the content-type inside ABAP mapping. I have searched a large no of blogs and help.sap.com for the same.
My requirement is I want to change the MIME type of the Main Document in side SXMB_MONI so that can change the content type of Main document which is application\xml by default.
I would appreciate an early response regarding the same.
AbinashHello Raj,
The output of my ABAP mapping is a flat file. So when I try to open the file with content type application/xml in the message monitor it shows the file has some error which is natural. The way to get around this problem is change the content type to application\txt from application\xml.
I am not finding an option to set the content type inside the ABAP mapping for the same.
Abinash -
How to access the table type field in the structure
Hi All,
I have a BADI CRM_MKT_ADR_SEARCH and a method CHANGE_SEARCH_RESULTS in this method I have a parameter CT_BP_CP_CHANNEL .This parameter has type CRMT_BP_CP_CHANNEL_TAB(this is table type) this has the line type CRMT_BP_CP_CHANNEL(this is structure) in this line type we have one field addrnumber.How to access this field in my method?Please help me in this regard.data lw_tab type CRMT_BP_CP_CHANNEL.
loop at CRMT_BP_CP_CHANNEL_TAB into lw_tab.
lv_field = lw_tab-addrnumber.
<further processing>
endloop. -
Want to create a user field with type alphanmumeric and structure text through coding
i want to create a user field with type alphanumeric and structure text through coding.am using vb
plz help meHi.
Please take a look at samples in SAP B1 SDK.
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
' Adding "Name" field
'// Setting the Field's properties
oUserFieldsMD.TableName = #YOUR_TABLE_NAME#
oUserFieldsMD.Name = "Name"
oUserFieldsMD.Description = "Name"
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldsMD.EditSize = #LENGTH_OF_FIELD#
'// Adding the Field to the Table
lRetCode = oUserFieldsMD.Add
GC.Collect() 'Release the handle to the User Fields
Hope it helps.
Regards,
Pawel
Maybe you are looking for
-
Flash Player 10.3 video playback protected content Error #3343?
I have been streaming videos and movies I have purchased without problems until yesterday when Amazon wouldn't load the video and suggest upgrading Flash Player. I have an iMac G5 with Intel Core Duo 2 processor and OS X 10.5, so Flash Player 10.3.18
-
When creating a new iCal event, after its title, the TAB key takes to the field "location" (logical, OK). The next TAB key goes to the "minutes" in the starting date field (illogical, not OK). From that field, hitting the TAB key takes, again to the
-
Synchronizing Safari bookmarks across multiple browsers/computers/platforms
I've recently switched back to Safari but now remember why I left: no plugins (that I can find). That being said, I'm tired of storing bookmarks locally and would like to transition to some solution that allows me to either sync or access them from m
-
How to run two applications from same application server
hi, i am working on oracle application server 10g , is it possible to run 2 applications from one application server by using different url ? but same report server name . if i can do so plz tell me how ? regards
-
FTP between iSeries Servers from ABAP stops after 500 rows
Hello together, we wrote an abap program which should transfer a iseries DB Table from SAP to an other iseres DB2. The program writes approx. 500 rows. The table has approx. 600 rows. If we use a smaller table to transfer, the transfer will be ok. We