How to create internal type
Hi all,
I created a normal table 'ZNLMEVENTS' with 4 fields. I entered data. Now i created a function module with below code. Problem i have is i get only one record inspite of having more rows. How to get all rows shown.. i came to know its possible thru making the table as internal. I dont know how to do that. kinldy help me.
FUNCTION ZNLM_ALARAMEVENTS.
""Local Interface:
*" EXPORTING
*" VALUE(ALARMEVENTS) TYPE ZNLMEVENTS
select * from znlmevents into table alarmevents.
ENDFUNCTION.
I am very new to ABAP language.
Thanks,
Raghavendra
Hi Rob,
I changed it as you told but still i get only one record. Please see the code below. kindly let me know where i am doing wrong.
FUNCTION ZNLM_ALARAMEVENTS.
*"*"Local Interface:
*" TABLES
*" VALUE(ALARMEVENTS) TYPE ZNLMEVENTS
select * from znlmevents into alarmevents.
endselect.
ENDFUNCTION.
Thanks,
Raghavendra
Similar Messages
-
How to create internal table for a structure in BSP
hi ,
I have created a Structure in BSP.I want to create an internal table for that Structure. But in my coding ie.
<% data: begin of itab_1 .
include type zuvendstr.
data:end of itab_1.
data wa_str like line of itab_1.
loop at itab_1 into wa_str. %>
<tr>
<td><%=wa_str-name%> </td>
<%endloop.%>
In this zuvendstr is Structure ,wa_str is workarea and itab_1 is an Internal table.But it is showinng an error that itab_1 is unknown.But we cannot define internal tables for an Structure in Page Attributes.So,please resolve how to create internal table for Structure in BSPSHi,
You can define itab_1 like this (assuming zuvendstr is a structure type):
DATA: itab_1 TYPE TABLE OF zuvendstr.
Regards,
Tanguy -
How to create internal table storing instances of ABAP class
Hi experts, any one knows how to create internal table storing instances of ABAP class or alternative to implement such function?
Hi
Please see below example from ABAPDOCU, this might help you.
Internal Table cnt_tab is used to store class objects.
Regards,
Vishal
REPORT demo_objects_references.
CLASS counter DEFINITION.
PUBLIC SECTION.
METHODS: set IMPORTING value(set_value) TYPE i,
increment,
get EXPORTING value(get_value) TYPE i.
PRIVATE SECTION.
DATA count TYPE i.
ENDCLASS.
CLASS counter IMPLEMENTATION.
METHOD set.
count = set_value.
ENDMETHOD.
METHOD increment.
ADD 1 TO count.
ENDMETHOD.
METHOD get.
get_value = count.
ENDMETHOD.
ENDCLASS.
DATA: cnt_1 TYPE REF TO counter,
cnt_2 TYPE REF TO counter,
cnt_3 TYPE REF TO counter,
cnt_tab TYPE TABLE OF REF TO counter.
DATA number TYPE i.
START-OF-SELECTION.
CREATE OBJECT: cnt_1,
cnt_2.
MOVE cnt_2 TO cnt_3.
CLEAR cnt_2.
cnt_3 = cnt_1.
CLEAR cnt_3.
APPEND cnt_1 TO cnt_tab.
CREATE OBJECT: cnt_2,
cnt_3.
APPEND: cnt_2 TO cnt_tab,
cnt_3 TO cnt_tab.
CALL METHOD cnt_1->set EXPORTING set_value = 1.
CALL METHOD cnt_2->set EXPORTING set_value = 10.
CALL METHOD cnt_3->set EXPORTING set_value = 100.
DO 3 TIMES.
CALL METHOD: cnt_1->increment,
cnt_2->increment,
cnt_3->increment.
ENDDO.
LOOP AT cnt_tab INTO cnt_1.
CALL METHOD cnt_1->get IMPORTING get_value = number.
WRITE / number.
ENDLOOP. -
hi,
can anybody tell me how to create a type where in we can execute a procedure, every time we call it.Hello,
What is your exact product version ?
Are you sure there is any relation woith the Oracle Forms product ?
Francois -
How to create SCD2 type manually in informatica?
Please Can you describe with example how to create SCD2 type manually in infromatica?
Hi Manoj,
You should not delete the auto generated orchestration even do not modify it, as it is stated in msdn.
The BizTalk WCF Service Consuming Wizard creates in your BizTalk project the BizTalk schemas and types necessary to consume WCF services. The BizTalk types such as port types and multipart message types are created in an orchestration. We recommend
that you do not modify the orchestration that the wizard creates. Instead, you can add new orchestrations in the BizTalk project for your purposes.
--------- MSDN
For Refernce
In your solution, if you are seperating your schemas project from orchestration project, in that case i personally advise to generate wcf endpoint in your schema project and after adding schema reference in orchestration
project you manually create the multipart message and a request response port as it will not display in existing port.
Regards -
How to create Activity type
below are the details
x sales MnF Expenses
y FMS MnF Expensesdear sudhir
KA01 - Create Primary Cost Element for the new activities type.
KL01 - Create Activity Type tied to the primary cost element.
regards
rohit -
How to create output type for GR,GI?
Can any one explain,How to create output type for Goods Receipt,Goods Issue.?
and How to take print out for both?Hi, jayant in standard u have output type for picking list, delivery doc complete, theres no output type seperately for PGI or PGR
I am sure u need the help of tech guy to create the new output type for ur requirement
regards
giri -
How to create internal table dynamically based on a table entry
hi Experts,
I have table yprod_cat. It has product categories.
In my ABAP program I need to create internal table dynamically based on the number of entries in the table.
For example:
If the table has 3 entries for product category
1. Board
2. Micro
3. Syst
Then create three (3) internal tables.
i_board
i_micro
i_syst
How can we do this? Any sample code will be very usefull
Thanks & Regards
Gopal
Moderator Message: No sample codes can be given. Please search for them or work it!
Edited by: kishan P on Jan 19, 2011 4:22 PMOur APEX version is 4.2We are using below SQL query to display radio groups dynamically..
SELECT APEX_ITEM.RADIOGROUP (1,deptno,'20',dname) dt
FROM dept
ORDER BY 1;
Created a form using SQL type and given abouve SQL query as source.. But when we run the page, there were no radio groups displayed in the page..
Below is the output of the query..
<input type="radio" name="f01" value="10" />ACCOUNTING
<input type="radio" name="f01" value="20" checked="checked" />RESEARCH
<input type="radio" name="f01" value="30" />SALES
<input type="radio" name="f01" value="40" />OPERATIONS
>
If Tabular Form:
Edit Region > Report Attributes > Edit Column > Change the Column type to "Standard Report Column"
If normal Page Item:
Edit Page Item > Security > Escape special characters=No.
Pl read the help on that page item to understand the security risk associated with =NO.
Cheers,
Edited by: Prabodh on Dec 3, 2012 5:59 PM -
How to create internal fields dynamically
Hi,
I am getting the data from MARA table to an internal table. Now I have to show the data according to month wise, like if same material is created in may and just, i have to show that material in may and june like below.
material | may | june |
m1 | 10 | 5 |
m2 | 20 | 15 |
I have to show this report in ALV.
so how can i get the month columns dynamically for each month?
i.e., when month is changed it has to create a new month.
Plz suggest me.
Regards,
DhanunjayREPORT ztest.
*** Tables
DATA: LT_DATA type ref to DATA.
DATA: LT_FIELDCATALOG type LVC_T_FCAT.
*** Structure
DATA: LS_FIELDCATALOG type LVC_S_FCAT.
*** Data References
DATA: NEW_LINE type ref to data.
*** Field Symbols
FIELD-SYMBOLS: <FS_DATA> type ref to DATA,
<FS_1> type any table,
<FS_2>,
<FS_3>.
LS_FIELDCATALOG-FIELDNAME = 'MANDT'.
append LS_FIELDCATALOG to LT_FIELDCATALOG.
LS_FIELDCATALOG-FIELDNAME = 'CARRID'. "Fieldname
LS_FIELDCATALOG-INTTYPE = 'C'. "Internal Type C-> Character
append LS_FIELDCATALOG to LT_FIELDCATALOG.
LS_FIELDCATALOG-FIELDNAME = 'CONNID'.
LS_FIELDCATALOG-INTTYPE = 'N'.
append LS_FIELDCATALOG to LT_FIELDCATALOG.
LS_FIELDCATALOG-FIELDNAME = 'FLDATE'.
LS_FIELDCATALOG-INTTYPE = 'D'.
append LS_FIELDCATALOG to LT_FIELDCATALOG.
LS_FIELDCATALOG-FIELDNAME = 'PRICE'.
LS_FIELDCATALOG-INTTYPE = 'P'.
append LS_FIELDCATALOG to LT_FIELDCATALOG.
LS_FIELDCATALOG-FIELDNAME = 'CURRENCY'.
LS_FIELDCATALOG-INTTYPE = 'C'.
append LS_FIELDCATALOG to LT_FIELDCATALOG.
assign LT_DATA to <FS_DATA>.
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = LT_FIELDCATALOG
importing
ep_table = <FS_DATA>
exceptions
generate_subpool_dir_full = 1
others = 2
if sy-subrc <> 0.
endif.
*** So <FS_1> now points to our dynamic internal table.
assign <FS_DATA>->* to <FS_1>.
*** Next step is to create a work area for our dynamic internal table.
create data NEW_LINE like line of <FS_1>.
*** A field-symbol to access that work area
assign NEW_LINE->* to <FS_2>.
*** And to put the data in the internal table
select MANDT CARRID CONNID FLDATE PRICE CURRENCY
from SFLIGHT
into corresponding fields of table <FS_1>.
*** Access contents of internal table
loop at <FS_1> assigning <FS_2>.
assign component 1 of structure <FS_2> to <FS_3>.
write: / <FS_3>.
endloop. -
How to create document type ?
Hi experts
We need assign document type to mateiral in material master. So we need create new document type background. How to create it ? Does it just copy one doc type from spro-> cross application componets-> document management-> define document type? It seems it will also copy the following screen setup .... but dont' know anything else need be setup ?
Thanks
AliceHi Alice,
You have create document type from
spro-> cross application componets-> document management-> define document type
There are already standard document types available. You ca use that or copy and create new types and assign it on the material master.
Thanks and regards
Murugesan -
How to create calendar type sheet?
Hi,
Does anybody knows how to create a calendar like sheet?
I think there is a function that automatically put the dates into the header but I cannot find it.
I really don't want to write down each day from now to next year...
Thanks to anybody that can help me.I found it,
Just type the first 2 date and select both of them, Click on the little white button that appears at the bottom right and drag it down... All the following dates come. -
hai sap gurus,
can u clarify my problem,
how to create a movement type and where we assign that movement type to gl account
clarify pleaseHi Ram,
You can create Movement type in OMJJ transaction by Copying the existing mvt types. Once you copy the mvt type all the details from the existing mvt type will be copied to new mvt type.
Based on the Account grouping the system will identify the G/L accounts. You can check this OMJJ transaction you will get better idea.
One more thing why you need the new mvt type, if it is really required then go for new mvt type otherwise use the SAP standard Mvt type which will serve all the purposes.
rgds
Chidanand -
How to create PDF type of ivews in portal using the standard SAP template
Hi,
I have to create PDF type of ivew in the portal, I am trying with URL type of ivew but it is not taking " %" in URL type of ivew.
Is there any other template availabe to create pdf type of ivews or how to create these pdf type of ivews in portal.
Please help me out .
Thanks,
Manasa.Hi Manasa,
You can do that by simply removing the special character "%" (in ur case) and providing " "(blank space) in its place.
Please refer to this link: [http://help.sap.com/saphelp_nw70/helpdata/en/2f/84e378f6244113b0816b5d00cd3747/frameset.htm]
Hope this helps !
Regards,
Nishant Singh -
How to create table type in SAP3.1i ?
Hi Friends,
Is it posible to create table type in SAP 3.1i server ?Hi amit,
I think there were no table types in 3.1i. Still you can define a structured table, i.e.
DATA: BEGIN OF SORT_SPFLI OCCURS 100,
CARRID LIKE SPFLI-CARRID,
CONNID LIKE SPFLI-CONNID,
CITYFROM LIKE SPFLI-CITYFROM,
CITYTO LIKE SPFLI-CITYTO,
SFLIGHT LIKE SORT_SFLIGHT OCCURS 100,
END OF SORT_SPFLI.
You can use field-symbols, but no loop assigning.
What is it you want to do?
Anyway: Have fun with good old 3.1 - I put my old docu CD in the trash recently.
Regards
Clemens -
How to create a type table in designer 9i
Hi
In our company we use designer 9i. I want to create a type table using designer. Is it possible? I have a requirement where i need to create a type table and use in creating a view through designer.
Create or replace type varchar2_ntt as table of varchar2(4000);
[\pre]
Please suggest.Hi
Here I am giving the step by step process.
1. select the container in which container you are going to create the type.
2.Go to tools then design editor and expand the container. There you will find oracle collection types. there we have to create a new one by clicking the + button on the left side.
3. Give the name of the new collection type.
4. And in the collection of tab, let it be scalar, give the scalar data type,and the size and click finish.
5. then right click on that object and give generate. there you select theDDL files only and the give the path where the scripts have to go.
This the process.
Thanks,
raju
Maybe you are looking for
-
Problem when editting a row in report
Hello, I have a problem when I want to edit a row in a report. I have created a form with report, and now whe I click on the edit icon on the report page, it navigates me to the form page but wothout the row data, so it let me create a new row.. What
-
Get Current Time in Eastern Time Zone
Hi, I would like to fetch the current time but in ET timezone (and also i want to handle daylight thing automatically). So can anyone tell me on this . Requirement is to fetch value in ET timezone even your db resides in India or Canada or Germany. R
-
when i plug in my ipad to my computer the apple ipad photos comes up and says there isn't any files and that is it ,i hit the x and pring up itunes and it don't show in the right corner my ipad at all .even in the files for devices the snyc is not li
-
5800 XM WPA-PSK and network profiles problem
Hi, I've just purchased a 5800XM phone, with the idea of setting up my personal email account on the device, using my office's network access point. The access point / router is a Comtrend 5361. The SSID is set to hidden (no broadcast), and the secur
-
Delivery Form with batch numbers and Print Preview
When I open Sales->Delivery form and select one that has items with batches, and then press Print Preview, TWO previews are automatically opened. One regular which I created using Layout designer and set as Standard, and the other called "Batches Lis