How to display the Internal table records in table format?
Hi Gurus,
I want to display my print prg internal table records in d appropriate form in a table format, give some solution
with regards
Thambe
There are lot many options to do that
one way is create template in the maikn window and define the line types according to your data cretae text and put your data in the text and go to output options and give the line type to be used . You can also select details option to have lines in your output.
similarly YOU CAN CREATE TABLE IN THE MAIN WINDOW FOR THIS YOU DONT NEED TO DEFINE THE LINE TYPES .
WHEN YOU ARE IN MAIN WINDOW RIGHT CLICK ON TABLE AND GO TO PATH
CREATE -> TABLE
-> TEMPLATE
REWARD IF USEFUL
Regards,
Nageswar
Similar Messages
-
How to display the vertical coloumns(records) in a single row?
Hi all,
I need a requirement in SAP where in the internal table records are in vertical placement as follows:
1 2 3 4 5 | a1 b1 c1 d1 e1
1 2 3 4 5 | a2 b2 c2 d2 e2
1 2 3 4 5 | a3 b3 c3 d3 e3
and so on..........
now as per the requirement I need all the records to be displayed in a single row in the output as follows:
1 2 3 4 5 | a1 b1 c1 d1 e1 | a2 b2 c2 d2 e2 | a3 b3 c3 d3 e3 |.....so on
Any pointers on this would be of great help.
thanks in advance,
Vamsee.Loop at itab.
at new f1.
write : itab-f1. <--- here don't give '/' .. which will write in new line ...
endif.
write : itab-f2, <--- here don't give '/' .. which will write in new line ...
itab-f3,
itab-f4,
itab-f5,
itab-f6.
at end of f1.
write :/ ''.
endat.
endloop. -
How to display the column names of a table in the output
Hi,
I want to display the name of the columns of the table without using literals in a abap report.
EX: Consider the table KNA1
KUNNR NAME ADDRESS
I want to display the column names in the above fashion without using hardcoded write statements.
Thanking in anticipationYou can use this FM <b>DDIF_FIELDINFO_GET</b> It gives you all the names related to fields in a table -:)
Greetings,
Blag. -
How to display the ALV output in a Group format
Hello Experts,
I have my current ALV report output like this:
GROUP DESCRIPTION
group1 adsfadsfadsfa
group1 lkjadsfjlajdsfla
group1 adsfadsfadsf
group1 adsfadsfadfa
group2 adsfadsfafaa
group2 oiueworuowe
group2 zxvzcxvzvcsd
group2 oiuqoewruqw
And I need to display the output of my ALV report in a group format like this:
GROUP DESCRIPTION
group1 adsfadsfadsfa
lkjadsfjlajdsfla
adsfadsfadsf
adsfadsfadfa
group2 adsfadsfafaa
oiueworuowe
zxvzcxvzvcsd
oiuqoewruqw
Can anybody please let me know if there is any sample program/thread/help etc.
I grealty appreciate your help.
Thanks.Hi Rainer,
Thanks for the reply. I am using container for the ALV Display.
So I wrote my code lie this:
sort t_data by zgroup zdesc ( t_data is my output internal table) .
I have my ALV layout delcared like this:
data: alv_layout type lvc_s_layo.
So I have modified my code like this:
alv_layout-NO_MERGING = 'X'.
But it did'nt work. Please let me know if I need make any other changes.
Thanks again. -
How-To Display the Number of Records Returned from a List to the User?
We currently are using lists to identify accounts that meet various criteria. Because the territories vary from 4k to 60k customers the users have stated that they don't know the size of the list and therefore don't know if they need to refine the list. Currently they are exporting to Excel to look at the row count to see if they need to further refine their searches. This takes quite a while and while shuffling through many lists is a bit painful. Isn't there a way to just show the total records returned from the list down at the bottom of the screen where it allows you to see 25/50/75/100 records at a time?
There is probably a simple way to do this but it is a large user dissatisfier at the time because we simply don't know how to make this show up. Again we are using lists and not analytics for simple lists at this time.
- john
Edited by: user11286597 on Jun 19, 2009 11:02 AMThanks Bobb. I can't believe that one wasn't in R1 :)
Is there a link to the items being worked in the next release by any chance?
- john -
How to display the last row in a table
I have a table that is constantly updating, and I always want to see the last row. How can I get my table to auto scroll?
Hi žabić,
there is a property called "top left visible row". You can use it to scroll your table.
edit:
Maybe this is not the exact name, but you can see an example here
Mike
Message Edited by MikeS81 on 05-27-2010 03:57 PM -
Displaying the selected multiple records from node using onleadselect event
Hi all,
How to display the selected multiple records from node to node using onleadselect event.
i came to know tht to fulfill this requirement i need to use the method get_selected_elements,
how to use this method in my event??
sreeHi Sree,
Try below code..
DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node, // This is first node
lo_el_it_lips TYPE REF TO if_wd_context_element,
ls_it_lips TYPE wd_this->Element_it_lips,
lt_it_lips TYPE wd_this->Elements_it_lips.
DATA: wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set.
* navigate from <CONTEXT> to <IT_LIPS> via lead selection
lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
CALL METHOD lo_nd_it_lips->get_selected_elements
EXPORTING
INCLUDING_LEAD_SELECTION = ABAP_true
RECEIVING
set = lt_temp.
DATA lo_nd_pack_mat TYPE REF TO if_wd_context_node. //Second Node
DATA lo_el_pack_mat TYPE REF TO if_wd_context_element.
DATA ls_pack_mat TYPE wd_this->Element_pack_mat.
DATA lt_pack_mat TYPE wd_this->Elements_pack_mat.
* navigate from <CONTEXT> to <PACK_MAT> via lead selection
lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
lo_nd_pack_mat->get_static_attributes_table( importing table = lt_pack_mat ).
LOOP AT lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_it_lips.
ls_pack_mat-vbeln = ls_it_lips-vbeln.
ls_pack_mat-material = ls_it_lips-matnr.
ls_pack_mat-vgbel = ls_it_lips-vgbel.
append ls_it_lips to lt_unpack.
CLEAR ls_pack_mat.
ENDLOOP.
Cheers,
Kris. -
How to set the number of records displayed at run time
Is it possible to set the number of records displayed block property at run time? The built-in 'GET_BLOCK_PROPERTY' can retrieve the number of RECORDS_DISPLAYED. But I can't find SET_BLOCK_PROPERTY to set this property. Is there anyway I can set this property programmatically? Thanks for any suggestions!
Bookmark Go to End
goal: How to vary the number of records displayed in a block
programmatically
fact: Oracle Forms Developer
fix:
Block property 'Number of Records Displayed' can not be changed during runtime
using SET_BLOCK_PROPERTY. However, it is still possible programmatically change
the visual appearance of the form so that it creates effect of changing this
property. To achieve such an effect follow these steps:
1. in Forms Builder, in the multirecord block define the new set of items.
The simplest way is to copy/paste the original item and rename created item.
2. set properties of these new items so that they are the same as the properties
of the original items. If these new items were copied from original items
then properties are already the same. Modify following properties
'Database item' on new items to value 'No'
'Synchronize with item' to the value of the original item
'Number of Items Displayed' to desired value.
'Visible' to 'No'
In other words, these new items are mirrors of original items.
3. code event, which is meant to trigger the change in block appearance.
This code should use SET_ITEM_PROPERTY built-in to set properties
like 'VISIBLE', 'ENABLED', 'NAVIGABLE', 'UPDATE_ALLOWED' and others
to desired value for items which are about to be displayed, then
move cursor to one of these just displayed items with GO_ITEM built-in
and then hide the previously displayed items.
Example:
Assume that the block is built on SCOTT.DEPT schema. Following will
change the set of displayed items
set_item_property('dept.mdeptno',visible,property_true);
set_item_property('dept.mdname',visible,property_true);
set_item_property('dept.mloc',visible,property_true);
set_item_property('dept.mdeptno',enabled,property_true);
set_item_property('dept.mdname',enabled,property_true);
set_item_property('dept.mloc',enabled,property_true);
set_item_property('dept.mdeptno',update_allowed,property_true);
set_item_property('dept.mdname',update_allowed,property_true);
set_item_property('dept.mloc',update_allowed,property_true);
set_item_property('dept.mdeptno',navigable,property_true);
set_item_property('dept.mdname',navigable,property_true);
set_item_property('dept.mloc',navigable,property_true);
go_item('dept.mdeptno');
set_item_property('dept.deptno',visible,property_false);
set_item_property('dept.dname',visible,property_false);
set_item_property('dept.loc',visible,property_false);
Regards,
Monica -
How to import the internal table into subroutine as parameter
how to import the internal table into subroutine as parameter, and its structure can be recognized inside the subroutine
Hi Yong,
try this:
parameters: p_tabnm like dd03l-tabname.
field-symbols: <fs_tabname> type standard table.
data: itab_ref type ref to data.
create data itab_ref type standard table of (p_tabnm)
with default key.
assign itab_ref->* to <fs_tabname>.
select * from (p_tabnm) into table <fs_tabname>.
perform subroutine tables <fs_tabname>
using p_tabnm.
*& Form subroutine
text
-->P_<FS_TABNAME> text
-->P_P_TABNM text
form subroutine tables p_tabname type standard table
using p_tabnm.
Here p_tabname already has the structure of the table you gave as input
parameter
endform. " subroutine -
How to display the icon as folder in tree table representation
Hi,
I am displaying the hierarchical structure for one table in which the expanding comes like normal ">". But i want to make it like folder icon.How is it possible plz suggest me.
Thanks,
HarshThe folder icons are added in the node stamp of the tree table.
<f:facet name="nodeStamp">
<af:column headerText="Directory Name" width="200" sortable="true" rowHeader="unstyled"
sortProperty="name" id="c2">
<af:panelGroupLayout id="pgl2">
<af:image source="#{directory.icon}" id="nodeIcon"
inlineStyle="margin-right:3px; vertical-align:middle; height:16px; width:16px;"
shortDesc="directory"/>
<af:outputText id="directoryStamp" inlineStyle="vertical-align:middle" value="#{directory.name}"/>
</af:panelGroupLayout>
</af:column>
</f:facet>
You can see the full source if you click the 'view source' link in the menu bar of the demo.
Timo -
Urg: How to compare the no. of records of 2 fields in 2 different tables?
Hi,
I have two internal tables namely itab_lqua and itab_z9snt. in itab_lqua I have a filed called lgpla. in itab_z9snt I have a field called srlnr. Now I want to compare the no. of records in itab_lqua-lgpla and itab_z9snt-srlnr.
Please provide me with the code for this. Using "describe" keyword can I do it?Hi,
you can count the records in the first internal table
for that you haveto remove the records where the field is initial from the
internal table
for both the tables do like that
and now count the no of records
describle table itab1 lines g_count.
describle table itab2 lines g_count1.
now compare g_count and g_count1.
reward points if helpful.
regards,
venkatesh -
How to Read the internal table for the data download from the spool
HI all,
I have one issue regarding the spool ,we are getting the correct output as per requirement of user but when we send the same to the user in pdf format they did notget the same.
they are telling that the due date is missing from the pdf.
Please advice me how to track the internal table for the spool data converted intopdf in a readable format.
the FM used for the above task is :
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
Please reply if any one worked on the same.
Thanks in advance.
Gaurav,Hi Wang,
Please let me know how you solved your question.
Points will be rewarded.
Thanks,
Arun. -
How to display the header data on different position in alv report
hi all,
how to display the header data on different position in alv report.
for example ,
customer name
xxxx xxxx
vendor name street
xxxx xxxx xxxxx
pls help me .hi
as per my understanding you need to trnasfer header internal table data to pdf..
please check the following links for internal table to pdf..
Convertion of Internal table data to PDF
This link is related to ur issue
Re: how to insert the calling of the FM: OTF to PDF
Thanks -
How to display the results in order by based on search value
Hi All,
how to display the results in the below order.
CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200))
INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0
output:
SONGID TITLE
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
11 CICCONE, MADONNA (CA)
12 DALLIN, MADONNA LOUISE/STOCK
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
16 MIRWAIS AHMADZAI, MADONNA
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
18 MADONNA (CA),CICCONE
Expected output :
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
Please let me know is it possible to display the results in that order.
Regards,
RajasekharThis may be a bit more accurate:
SQL> SELECT *
2 FROM TEST
3 WHERE INSTR (TITLE, 'MADONNA') > 0
4 ORDER BY INSTR (TITLE, 'MADONNA')
5 ,TITLE
6 ;
SONGID TITLE
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
12 DALLIN, MADONNA LOUISE/STOCK
11 CICCONE, MADONNA (CA)
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
16 MIRWAIS AHMADZAI, MADONNA
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) -
How to Maintain the Pricing Condition Records in CRM
Hi
I am new to the CRM
How to maintain the pricing condition records in crm for the particular condition type?
as we do in SD(VK11)
ThanksHi Binu,
First of all, you could maintain pricing conditions in the following places:
1. In General Condition Maintenance (GCM)
2. At the product maintenance level
3. At the 'Price agreement' tab of Contracts
4. As manual conditions during order processing at item level
Now, if you want to maintain conditions using GCM, you first have to maintain a condition maintenance group in the customizing where in you can assign condition table and condition type for different counter values. I am assuming that you have done this activity successfully.
When you run the transaction '/SAPCND/GCM', for application 'CRM', your condition maintenance group name and context 'GCM', you will be initially taken to a screen where in you'll have an item area which would be blank and then condition fields would be displayed in a tree on the left.
Here, select the field 'Condition type' and click on icon 'Select records'. You would get a dialog prompting you to enter condition type. Here you can specifiy the condition type for which you want to maintain/view condition records.
If no condition records are available, item area would be left blank. Here, you can choose a condition type using the standard F4 help. Depending on condition types that are assigned to condition maintenance group, different condition types would be displayed in the F4-help using which you can maintain condition records.
Hope this helps.
Regards,
Pavithra
**PS: Please reward points if this helps.
Maybe you are looking for
-
Creation of batch job Schedule
How to create new batch job Schedule ? Regards, Sridhar
-
Adobe updater quit unexpectedly
I am using CS3 and each time I open a program I get the message that abobe updated quit unexpectedly. Nothing will print from my files either. I am using a MAC updated with 10.9.2 Mavericks. All was working well until I upgraded to the new operating
-
Bluetooth Problem G400 Intel i3
I am having problem with my laptop bluetooth, I brought Lenovo s720 and Laptop G400 i3 last week but unable to connect each other using bluetooth. I already installed the drivers but nothing happened, Device not found. Please help.
-
in radio button at the end we used user command usr.. why we are using this.eg, SELECTION-SCREEN BEGIN OF BLOCK RB WITH FRAME TITLE text. PARAMETERS : Import RADIOBUTTON GROUP RB user-command usr, Expor
-
I migrated from PSE 9 to PSE 13. I had text which described each tag. How do I access and edit this text using PSE 13? Using PSE 9, I right-clicked the tag and selected Edit. All text appeared. Using PSE 13, only the name appears for editing.