Help in Dump For Select
Hi,
i do select for maybe 3,971,953 records in Prod
and i have dump in Qa And Dev i have less records so i dont have any dump,
this is my select:
SELECT *
FROM catsdb
INTO CORRESPONDING FIELDS OF TABLE c_tab
WHERE workdate GE re_date.
i reward
this is the erorr :
What happened?
The current program had to be terminated because of an
error when installing the R/3 System.
The program had already requested 271435216 bytes from the operating
system with 'malloc' when the operating system reported after a
further memory request that there was no more memory space
available.
Make a note of the actions and input which caused the error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Set the system profile parameters
- abap/heap_area_dia
- abap/heap_area_nondia
to a maximum of 271435216. Then reduce the value by 10.000.000 to be on the
safe side.
Then restart the SAP System.
abap/heap_area_nondia and abap/heap_area_dia:
Set smaller than the memory achieved for each process
with 'malloc' and smaller than abap/heap_area_total
You should also check whether the available memory (file system
swap and main memory) is sufficient for the started program
and its data.
Error analysis
When the program was running, it was established that more
memory was needed than the operating system is able to provide savely.
To avoid a system crash, you must prevent this
situation.
Regards
Hi,
Try to use open cursor to select the data from db table.
Below is an example for this.
What ever the logic you do this in between DO and ENDDO.
DATA: packsize TYPE i VALUE 1000,
OPEN CURSOR WITH HOLD db_cursor FOR "Defect 12319
SELECT (tab_fields) FROM glpca
CLIENT SPECIFIED
BYPASSING BUFFER
WHERE rldnr IN rldnr.
DO.
To Fetch data in chunks of 2gb
FETCH NEXT CURSOR db_cursor
INTO CORRESPONDING FIELDS OF TABLE i_glpca
PACKAGE SIZE packsize.
*Begin of defect 12319
IF sy-subrc NE 0.
CLOSE CURSOR db_cursor.
EXIT.
ENDIF.
ENDDO.
Or you can also use packaging size option in select statement.
Regards,
Shravan G.
Similar Messages
-
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra -
Help with timeout for select inside loop
Hi everyone, im a little confused with this code. Can you help me to optimize it? Its giving Timeout dump.
Thanks so much, I´m new in abap and I tried hard, but its getting worse.
Any idea is welcomed.
LOOP AT it_lips.
SELECT SINGLE *
FROM vbak
WHERE vbeln = it_lips-vgbel.
IF sy-subrc <> 0 OR vbak-vbtyp <> 'C'.
CONTINUE.
ENDIF.
SELECT SINGLE *
FROM vbup
WHERE vbeln = it_lips-vgbel
AND posnr = it_lips-vgpos.
IF sy-subrc = 0 AND vbup-lfgsa = 'C'.
READ TABLE it_likp WITH KEY vbeln = it_lips-vbeln.
IF it_likp-wadat < it_likp-wadat_ist.
it_data-statu = 'N'.
v_countn = v_countn + 1.
ELSE.
it_data-statu = 'S'.
v_counts = v_counts + 1.
ENDIF.
ELSE.
CONTINUE.
ENDIF.
it_data-vbeln = it_lips-vgbel.
it_data-posnr = it_lips-vgpos.
SELECT SINGLE matnr arktx kwmeng vrkme
INTO (it_data-matnr, it_data-arktx, it_data-mengs, it_data-vrkme)
FROM vbap
WHERE vbeln = it_lips-vgbel
AND posnr = it_lips-vgpos.
it_data-menge = it_data-mengs.
it_data-kunnr = vbak-kunnr.
SELECT SINGLE name1
INTO it_data-name1
FROM kna1
WHERE kunnr = it_data-kunnr.
it_data-edatu = it_likp-wadat.
it_data-wadat = it_likp-wadat_ist.
it_data-vkorg = it_likp-vkorg.
APPEND it_data.
CLEAR: it_data, vbak, it_vbep, vbap, kna1, it_lips, it_likp.
ENDLOOP.The issue of SELECTing within a LOOP is much overblown. All of the SELECTs are SELECT SINGLE using the fully qualified primary key. Using a JOIN or FOR ALL ENTRIES might speed this up a bit, but dollars to doughnuts, the problem is here:
READ TABLE it_likp WITH KEY vbeln = it_lips-vbeln.
If it_likp is a standard table, you will be reading half of all of the entries, on average, every time you do the read. If you don't want to change it to a sorted or hashed table, SORT it_likp by vbeln before going into the loop and use the addition BINARY SEARCH on the READ statement.
Rob
Edited by: Rob Burbank on Apr 18, 2010 9:34 PM
Edited by: Rob Burbank on Apr 19, 2010 10:15 AM -
Help needed badly for selection sort
I posted this on the other forum but haven't gotten a reply. I have a class that compares the zip codes of a file that is read into the code and store as objects. Now I have to sort the information by the zip codes this is what I have so far and I do not know what I am doing wrong with the selection sort. This is the first time I am doing selection sort.
Here is my .txt
10
Dillin Jake York PA 17409
Valdir John Chicago IL 98098
Morphy Bob Harrisburg PA 73829
Spears Johnathan Chicago IL 09182
Simpson Bloo Los Angeles CA 94840
Griffin Taylor York IL 49283
Cartmen Eric Philadelphia PA 28192
Connaly Teds Springfield IL 12930
Marsh Stan Miami FL 48392
William Thomas Reno NV 39029
and this is the code:
import java.util.*;
import java.io.*;
import java.util.Scanner.*;
public class TestCustomer6 {
public static void main (String[] args) throws FileNotFoundException {
Scanner scan = new Scanner (new File ("customerData.txt"));
int numLines = scan.nextInt();
Customer2[] customer;
customer = new Customer2[40];
for (int i = 0; i < numLines; i++) {
String fName = scan.next();
String lName = scan.next();
String city = scan.next();
String state = scan.next();
int zip= scan.nextInt();
Customer2 newObj = new Customer2(fName,lName,city,state,zip);
customer=newObj;
public static void selectionSort(int[] array)
{int count;
for (count = 0; count < array.length; count++)
int indexOfMin = findMinimum (array, count);
swap (array, count, indexOfMin );
public static int findMinimum (int[] array, int startIndex)
{int mycount;
int indexOfMin = startIndex;
for(mycount = startIndex + 1; mycount < array.length; mycount++)
if (array[mycount] < array[indexOfMin]
indexOfMin = mycount;
return indexOfMin;
public static void swap (int[] array, int preIndex, int nexIndex)
double temp = array[preIndex];
array[nexIndex] = array[preIndex];
array[nexIndex] = temp;
the class:
import javax.swing.*;
class Customer2{
public static final int FNAME = 0;
public static final int ZIP = 1;
private static final int LESS = -1;
private static final int EQUAL = 0;
private static final int MORE = 1;
private static int compareAttribute;
private String firstName;
private String lastName;
private String city;
private String state;
private int zip;
static {
compareAttribute = FNAME;
public Customer2(){
firstName = " ";
lastName = " ";
city = " ";
state = " ";
zip = 0;
public Customer2(String f, String l, String c, String s, int z){
this.firstName = f;
this.lastName = l;
this.city = c;
this.state = s;
this.zip = z;
System.out.println(this.toString());
public static void setCompareAttribute( int attribute ) {
compareAttribute = attribute;
public int compareTo( Customer customer, int attribute ) {
int comparisonResult;
if ( attribute == ZIP ) {
int p2zip = customer.getZip( );
if (this.zip < p2zip) {
comparisonResult = LESS;
} else if (this.zip == p2zip) {
comparisonResult = EQUAL;
} else {
assert this.zip > p2zip;
comparisonResult = MORE;
} else { //compare the name using the String class�s
//compareTo method
String p2fname = customer.getFirst( );
comparisonResult = this.firstName.compareTo(p2fname);
return comparisonResult;
public int compareTo( Customer customer ) {
return compareTo(customer, compareAttribute);
public String getFirst(){
return firstName;
public String getLast(){
return lastName;
public String getCity(){
return city;
public String getState(){
return state;
public int getZip(){
return zip;
public String toString(){
return getFirst() + ", " + getLast() + " " + getCity() + " "
+ getState() + " " + getZip();1) Your code doesn't compile;
2) You don't call your selection sort method anywhere;
3) Your selection sort attempts to sort an int array which doesn't make sense;
4) You don't use the comparison methods defined in your Customer2 class;
5) I think that you've just copied/pasted several code fragments;
6) Your indentation style is highly inconsistent (also see 5).
kind regards,
Jos -
Need help with SQL for selecting ID where the sequence does not match..
I have the following dilemma:
Database contains IDs as follows:
Incident#, Case#, & Part Sequence#
example
Record 1
Incident_Number = 123456
Case_Number = 1
Part_sequence = 1
Record 2
Incident_Number = 123456
Case_Number = 1
Part_sequence = 2
Sometimes the user will delete (let's say) Record 2 after creating a new Record 3
So now the sequencing goes as follows:
Record 1
Incident_Number = 123456
Case_Number = 1
Part_sequence = 1
Record 2
Incident_Number = 123456
Case_Number = 1
Part_sequence = 3
Now there will no longer be a Part_Sequence 2
Need a SQL to select all records where the maximum part sequence > than the count of Incident_number||'-'||Case_number
I tried the following:
select a.incident_number||'-'||a.case_number||'-'||a.part_sequence
from chsuser.a_compl_summary a
where a.entry_date >= '01-may-2011'
and max(a.part_sequence) > count(distinct a.incident_number||'-'||a.case_number)I end up getting a ORA-00934: group function is not allowed here (highlighting on the Max(a.part_sequence) portion.
Any suggestions/hints
Thanksselect incident_number || '-' || case_number || '-' || part_sequence
from (
select incident_number,
case_number,
part_sequence,
max(part_sequence) over(partition by incident_number,case_number) max_seq,
count(*) over(partition by incident_number,case_number) cnt
from chsuser.a_compl_summary
where entry_date >= DATE '2011-05-01'
where cnt != max_seq
/SY. -
Help with code for Selection Box
Hi All,
I have written the below code in the Data Section of the infoset
BEGIN OF IT_TYP-SALE OCCURS 0,
LTEXT TYPE TVKOT-VTEXT,
END OF IT_TYP-SALE.
DATA: IT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.
The code works fine, but when the user presses F4 in the box which opens the header displayed is 'Name' which is the header for TVKOT-VTEXT. I would like to know how i can define a custom header Eg: 'Company Name'.
Hope my problem is clear, await assitance.
VivekHi,
Thanks for the inputs, what i really need is how i can define a custom text. As the header i want to display is not a standard field header. So in that case how should i declare?
Note: The Company Name was only a example.
Any suggestion on how i can have a custom name appearing as the header instead of the table field header?
Edited by: Vivek on Jan 8, 2008 9:35 PM -
need help in validaiton for select-options.
Hi..,
could u paste ur selection screen declarations here !!!
check this..
*"Selection screen elements............................................
select-options :
s_vbeln for vbak-vbeln, " Sales document number
s_vkorg for vbak-vkorg, " Sales organization
s_erdat for vbak-erdat . " Run date
AT SELECTION-SCREEN ON EVENT *
*Validation on Sales document number range...
at selection-screen on s_vbeln.
Perform to validate Sales document number range...
perform f0000_validate_vbeln.
AT SELECTION-SCREEN ON EVENT *
*Validation on Sales Organization range...
at selection-screen on s_vkorg.
*Perform to validate the Organization number user input...
perform f0100_validate_vkorg.
AT SELECTION-SCREEN ON EVENT *
*Validation on Creation date range...
at selection-screen on s_erdat.
*Perform to validate the Creation date of the sales documents...
perform f0100_validate_erdat.
*& Form f0000_validate_vbeln
This subroutine validates the user input - Sales document *
number range *
There are no interface parameters *
form f0000_validate_vbeln.
select vbeln " Sales Document number
from vbuk
up to 1 rows
into vbak-vbeln
where vbeln in s_vbeln.
endselect.
check sy-subrc ne 0.
message e001(zsls640) with s_vbeln-low s_vbeln-high.
endform. " Form f0000_validate_vbeln
*& Form f0100_validate_vkorg
This subroutine validates the user input - Sales Organization *
range *
There are no interface parameters *
form f0100_validate_vkorg.
select vkorg " Sales Organization
from vbak
up to 1 rows
into vbak-vkorg
where vkorg in s_vkorg.
endselect.
check sy-subrc ne 0.
message e002(zsls640) with s_vkorg-low s_vkorg-high.
endform. " Form f0100_validate_vkorg
*& Form f0100_validate_erdat
This subroutine validates the user input - Creation date of the*
Sales documents *
There are no interface parameters *
form f0100_validate_erdat.
select erdat " Creation date
from vbak
up to 1 rows
into vbak-erdat
where vkorg in s_erdat.
endselect.
check sy-subrc ne 0.
message e003(zsls640) with s_erdat-low s_erdat-high.
endform. " Form f0100_validate_erdat
<b>regards,
sai ramesh</b> -
Hi,
Need help solving a Task that returns a Task<IEnumerable<Writing>> so I can fill ObservableCollection<ViewModels.IWritingItemViewModel> Writings for my
Design Time Data Page:
<d:Page.DataContext>
<designTimeData:MainPageViewModel />
</d:Page.DataContext>
My constructor does this:
public MainPageViewModel()
var writings = this.GetGroupsAsync();
this.Writings = new ObservableCollection<ViewModels.IWritingItemViewModel>();
var viewmodels = writings.Select((x, i) => new WritingItemViewModel
Writing = x,
VariableItemSize = (i == 0) ? Common.VariableItemSizes.Writings : Common.VariableItemSizes.Normal,
My var writings = this.GetGroupsAsync(); is:
public async Task<IEnumerable<Writing>> GetGroupsAsync()
await this.GetMenuDataAsync();
return this.Groups;
which in turn gets data from:
private async Task GetMenuDataAsync()
Uri dataUri = new Uri("ms-appx:///DesignTimeData/MenuData.json");
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
string jsonText = await FileIO.ReadTextAsync(file);
JsonObject jsonObject = JsonObject.Parse(jsonText);
JsonArray jsonArray = jsonObject["Groups"].GetArray();
foreach (JsonValue groupValue in jsonArray)
JsonObject groupObject = groupValue.GetObject();
Writing group = new Writing(
groupObject["UniqueId"].GetString(),
groupObject["IsHeaderInteractive"].GetBoolean(),
groupObject["ViewType"].GetString(),
groupObject["ModelType"].GetString(),
groupObject["Page"].GetString(),
groupObject["Title"].GetString(),
groupObject["Subtitle"].GetString(),
groupObject["ImagePath"].GetString(),
groupObject["Description"].GetString(),
groupObject["GroupId"].GetString()
foreach (JsonValue itemValue in groupObject["WritingMenus"].GetArray())
JsonObject itemObject = itemValue.GetObject();
group.WritingMenus.Add(new WritingMenu(
itemObject["UniqueId"].GetString(),
itemObject["Page"].GetString(),
itemObject["Title"].GetString(),
itemObject["Subtitle"].GetString(),
itemObject["ImagePath"].GetString(),
itemObject["Description"].GetString(),
itemObject["Content"].GetString(),
itemObject["WritingsId"].GetString(),
itemObject["GroupId"].GetString(),
Convert.ToInt32(itemObject["Item"].ValueType)
this.Groups.Add(group);
and I get this Error:
Error 5 'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type
'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
could be found (are you missing a using directive or an assembly reference?)
I'm creating collections of:
public interface IWritingItemViewModel : Common.IVariableSizedItem
Models.Writing Writing { get; set; }
and my class for creating data is:
public class Writing
public Writing(
string uniqueId,
bool isHeaderInteractive,
string templateType,
string viewModelType,
string page,
string title,
string subtitle,
string imagePath,
string description,
string groupId
this.UniqueId = uniqueId;
this.IsHeaderInteractive = isHeaderInteractive;
this.TemplateType = templateType;
this.ViewModelType = viewModelType;
this.Page = page;
this.Title = title;
this.Subtitle = subtitle;
this.ImagePath = imagePath;
this.Description = description;
this.GroupId = groupId;
this.WritingMenus = new ObservableCollection<WritingMenu>();
public string UniqueId { get; private set; }
public bool IsHeaderInteractive { get; private set; }
public string TemplateType { get; private set; }
public string ViewModelType { get; private set; }
public string Page { get; private set; }
public string Title { get; private set; }
public string Subtitle { get; private set; }
public string ImagePath { get; private set; }
public string Description { get; private set; }
public string GroupId { get; private set; }
public virtual ObservableCollection<WritingMenu> WritingMenus { get; private set; }
How can I solve or successfully complete this code?
Thanks!...
Code is like a box of chocolates!...I looked into your error message again, I found something interesting:
Error 5
'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
does not contain a definition
for 'Select'
and no extension method
'Select' accepting a first argument of type
'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
could be found (are you missing a
using directive or an assembly reference?)
That means: Task does not contain the definition for Select. This was reasonable, Task does not inherit IEnumerable interface.
var viewmodels = writings.Select((x, i) => new WritingItemViewModel
Writing = x,
VariableItemSize = (i == 0) ? Common.VariableItemSizes.Writings : Common.VariableItemSizes.Normal,
public async Task<IEnumerable<Writing>> GetGroupsAsync()
You need get the IEnumerable<Writing> for Select use. See this for more information:
How to: Return a Value from a Task
--James
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. -
Can i assign a collective srch help for select option in list display
can i assign a collective srch help for select option in list display
Hi,
Yes ,u can assign a collective search help for select-option in list display.
Eg:
Define your select option like this
SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
Regards,
Shiva. -
How to restrict the values for selection in the search help..
hi,
i have a requirement regarding screen programming. i have added a i/o field in a screen and i linked a search help for that field.
i used the standard search help it holds some 15 values for selection...
when i click on the search help i m getting some 15 values for selection. but i dont need all the 15 values. i need only 4 values for selection..can any one help me regarding this...
waiting for ur reply...
Uday.
Edited by: uday13 on May 31, 2010 9:17 AMHello,
Refer the below code and you can provide your own search help to a parameter depending on the value in another parameter:-
PARAMETERS : p_belnr TYPE belnr,
p_bukrs TYPE bukrs.
DATA : BEGIN OF itab OCCURS 0,
bukrs TYPE bukrs,
END OF itab.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
PERFORM f4_bukrs_help USING p_bukrs.
*& Form f4_bukrs_help
FORM f4_bukrs_help USING p_bukrs.
DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
v_belnr TYPE belnr.
CLEAR: tb_dynpfields.
REFRESH: tb_dynpfields.
MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
APPEND tb_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'Z_F4' "program name
dynumb = '1000' "screen number
TABLES
dynpfields = tb_dynpfields
IF sy-subrc NE 0.
ENDIF.
READ TABLE tb_dynpfields INDEX 1.
IF sy-subrc EQ 0.
v_belnr = tb_dynpfields-fieldvalue.
ENDIF.
SELECT bukrs from <db_table> INTO TABLE itab WHERE belnr = v_belnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BURKS' "internal table field
dynpprog = 'Z_F4' "program name
dynpnr = '1000' "screen number
dynprofield = 'P_BUKRS' "screen field name
value_org = 'S'
TABLES
value_tab = itab "internal table
IF sy-subrc NE 0.
ENDIF.
ENDFORM. " f4_bukrs_help
Hope this helps you.
Regards,
Tarun -
How to get calender in f4 help for select options in module pool (URGENT)
Hi All,
how to get calender in f4 help for select options in module pool
Please help .
Thanx in advance,
amrutaHi Amruta,
First of all, you can not create select-options directly in module pool.
For creating <b>select-option is dialog prog</b> follow these steps:
1. create your selection screen model as subscreen by:
SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
PARAMETRS: P_MATNR LIKE MARA-MATNR.
SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
SELECTION-SCREEN END OF SCREEN 2000.
2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
3. write this bit of code in PBO and PAI of the screen 100;
CALL SUBSCREEN SUBSCREEN_2000.
4. include this code in PBO:
INCLUDING SY-REPID '2000'
6. write user_command of PAI, call screen which is going to executable after selection-screen.
5. create a transcation for this dialog module pool with screen 100.
6. execute this transaction and you can see it's behaving like cool with select-options.
After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
Hope it will solve the problem.
Regards
Krishnendu -
Short Dump for Dynamic Select Query
Hello all,
I get a short dump for my dynamic select query at the end of the code. The error is "The types of operands "dbtab" and "itab" cannot be converted into one another."
My code looks like below.
FORM get_ccnum_2 USING p_tabname TYPE dd03l-tabname.
DATA: p_table(30) TYPE c.
FIELD-SYMBOLS: <dyn_wa>,
<t> TYPE table.
DATA: it_fldcat TYPE lvc_t_fcat.
TYPE-POOLS : abap.
DATA: it_details TYPE abap_compdescr_tab,
wa_details TYPE abap_compdescr.
DATA: ref_descr TYPE REF TO cl_abap_structdescr.
DATA: new_table TYPE REF TO data,
new_line TYPE REF TO data,
wa_it_fldcat TYPE lvc_s_fcat.
p_table = p_tabname.
ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
it_details[] = ref_descr->components[].
LOOP AT it_details INTO wa_details.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = wa_details-name .
wa_it_fldcat-datatype = wa_details-type_kind.
wa_it_fldcat-intlen = wa_details-length.
wa_it_fldcat-decimals = wa_details-decimals.
APPEND wa_it_fldcat TO it_fldcat .
ENDLOOP.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fldcat
IMPORTING
ep_table = new_table.
ASSIGN new_table->* TO <t>.
CREATE DATA new_line LIKE LINE OF <t>.
ASSIGN new_line->* TO <dyn_wa>.
wa_cond = 'CCNUM <> '' '' '.
APPEND wa_cond TO tab_cond.
SELECT * INTO TABLE <t>
FROM (p_table)
WHERE (tab_cond)
ORDER BY (tab_ord).
ENDFORM. " GET_CCNUM_2Hi,
I tried to execute the code using table BSEGC and it gave a short dump..
the actual exception that shows in ST22 IS ..UNICODE_TYPES_NOT_CONVERTIBLE..
I think there is something wrong in the internal table creation..
Instead of using the method cl_alv_table_create=>create_dynamic_table to create the dynamic table I used the following and it worked..
CREATE DATA new_table TYPE TABLE OF (p_table).
* Comment begin " Naren
* ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
* it_details[] = ref_descr->components[].
* LOOP AT it_details INTO wa_details.
* CLEAR wa_it_fldcat.
* wa_it_fldcat-fieldname = wa_details-name .
* wa_it_fldcat-datatype = wa_details-type_kind.
* wa_it_fldcat-intlen = wa_details-length.
* wa_it_fldcat-decimals = wa_details-decimals.
* APPEND wa_it_fldcat TO it_fldcat .
* ENDLOOP.
* CALL METHOD cl_alv_table_create=>create_dynamic_table
* EXPORTING
* it_fieldcatalog = it_fldcat
* IMPORTING
* ep_table = new_table.
* Comment End. " Naren
CREATE DATA new_table TYPE TABLE OF (p_table). " New code by naren
Please Try this..
Thanks
Naren -
F4 help for select options based on parameter value
hi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PMhi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PM -
Search help for selection screen
Hi experts,
I have a selection screen - and the user want that the asearch help will be :
For example: Equi-eqtyp with search help: eqtyp_sh_wd or
equi-matnr with search help mat1.
how can i do this?
thanks,
Michal.Hi, Michal
Are you talking about some thing like bellow ?
PARAMETERS: eqtyp TYPE equi-eqtyp MATCHCODE OBJECT eqtyp_sh_wd,
matnr TYPE equi-matnr MATCHCODE OBJECT mat1.
Please Reply if else.
Faisal -
Value help for select-option not filling selection field
I'm having some problems with a value help on a select-option. I've managed to get the value help displaying the correct values but for some reason can't get it to populate the selection field after I've selected a record.
I have the following call:
wd_this->m_handler->add_selection_field(
i_id = 'SHORT_D'
i_description = 'Program'
it_result = lt_range_table
i_read_only = read_only
i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
i_value_help_id = 'ZPROGSTUDY' ).
where ZPROGSTUDY is a new search help I've set up with an exit to retrieve the values.
Any ideas ? Thanks.Hi Malcolm,
The code you have is OK. I copied your code into a test program and it worked as expected.
I used a search help where the possible values are populated in the search help exit, exactly as in your case. The only time it did not work was when read_only = X, but that is obvious also from a visual point of view since the input field is greyed out in that case. The popup also tells you is in RO mode...
Does your SHLP work when you test it from SE11? Returns values?
SAP provides a lot of WD4A sample code, see for example component WDR_TEST_SELECT_OPTIONS look for
select-option fields > special cases > input helps > Non field-specific input help using search help
Regards,
George
Maybe you are looking for
-
Replacing Apple TV with Xbox 360, Video Questions
I have had an ATV for a little over a year and thanks to Handbrake I now have an incredible Movie Library over 600 flicks ripped for ATV with the .m4v extension. This month I am getting an Xbox 360 and would like to use it in place of my ATV and move
-
How to search for where a font is used?
I'm using FrameMaker 12 and receiving prompts that a font is not available and being replaced by another font. How can I find the instances of where this is occuring so that I can correct the problem?
-
Data Guard configuration-Archivelogs not being transferred
Hi Gurus, I have configured data guard in Linux with 10g oracle, although I am new to this concept. My tnsping is working well both sides. I have issued alter database recover managed standby using current logfile disconnect command in standby site.
-
Class names not sticking when output as book?
Indesign CC, outputting to ePUB from a book file with 4 chapters, does not output the correct, named class in the CSS and source code, the class takes the name of the style instead. As a check, I output a single chapter using File > export and my nam
-
can I reinstall just fcp without installing motion, stp, etc...