Unable to display header using REUSE_ALV_FIELDCATALOG_
Hi SDNers,
I was working on REUSE_ALV_FIELDCATALOG_MERGE.
I am able to get the output, but it is not displaying any header on the output list.
Regards,
Ranjith N
Hi,
I am using standard ddic fields.
*& Report ZVIC_INTERACTIVE_TEST1
REPORT ZVIC_INTERACTIVE_TEST1.
type-pools : slis.
tables : t004.
data : begin of t_co occurs 0,
ktopl type ktopl,
end of t_co.
data : w_co like line of t_co.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'T_CO'
* I_STRUCTURE_NAME =
* I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = sy-repid
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = it_fieldcat
* EXCEPTIONS
* INCONSISTENT_INTERFACE = 1
* PROGRAM_ERROR = 2
* OTHERS = 3
SELECT ktopl FROM t004 INTO CORRESPONDING FIELDS OF w_co UP TO 20 ROWS.
append w_co to t_co.
endselect.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
* IS_LAYOUT = layout
IT_FIELDCAT = it_fieldcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = T_CO
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Ranjith N
Similar Messages
-
Unable to display grid using OOALV
Hi,
I'm not able to display the list using Object-Oriented ALV technique. On executing it shows a pop-up error message as 'Program Error'. When I see its details, it shows as 'Output table passed to the ALV is not defined globally but locally. thus the reference to the table is lost'. My code snippet is as follows:
<Garbled code removed by moderator>
Kindly inform me the reason for this error or inform me the resolution for it.
I've created the Screen '200' and Custom container in it. Given the same name (i.e 'cust_cont') as ALV grid's parent. Also created the PF Status 'GRID'
Moderator message : Post only relevant portion of source code, use code tags for better visibility of code.
Edited by: Vinod Kumar on Jan 12, 2012 6:29 PMYou have to define the table in the TOP include of your program, then you should be good to go.
I have not seen your code but you have to do something like this
IF G_CUSTOM_CONTAINER IS INITIAL.
* creating container
CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = G_CONTAINER.
* creating ALV GRID...
CREATE OBJECT GRID1
EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
* SEt layout and fieldcat
PERFORM layout.
PERFORM fieldcat.
* Show list
CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = ge_layout
CHANGING
IT_FIELDCATALOG = gt_fieldcat
IT_OUTTAB = gt_materiales.
ENDIF.
kind regards! -
Using Memory Card - Unable to display file
I have an 8130 with v 4.3.0.97 software. I installeed and formatted a 2GB Sandisk Micro SD. Media Card settings are as follows:
Media Card Support: ON
Encryption Mode: NONE
Mass Storage Mode Support: ON
Auto Enable Mass Storage Mode When Connected: YES
Using both Windows Explorer and TDM I have transferred music, pics and files onto the card. The music plays fine. I can see the pics. But everytime I click on a Word doc to open it I get this message: Unable to display file/media card/Blackberry/filename.doc
What am I doing wrong?
ETA:
Gotta have a third party app to open those docs. I downloaded Mobipocket Reader to my PC, the program recognized an downloaded a reader to the BB. I imported the Word docs and can now read them on the BB. Yayee!
Message Edited by bearlee_there on 10-17-2008 01:39 PM
Solved!
Go to Solution.Nice catch,
Please resolve the post,
Thanks
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
Unable to display a PDF image on the page - Mac 10.6
Hi,
Running an iMac with 10.6.8 and Indesign 5.0.4. Just wanting to export a PDF as per usual via File > Export function. However, I keep getting the error message, "Unable to display a PDF image on the page'. No idea what this is and have never seen this error before. The only info on the internet reveals error code 0x2511(9489).
I've deleted prefs, closed down and re-opened Indesign and even restarted the computer. I've also re-linked the images contained in the document and even created a new document and set it up the same, but still the same problem. Investigating further, other Indesign documents still export properly.
The only ones that don't export are 2 documents, both giving this same error message. Both documents are ones where a client has sent a PDF, I've imported into two of these into an 2-page A4 Indesign document (each PDF is 48MB each) and then just added a text layer (using Times) which is properly installed on the computer. I basically have to 'update' course dates for the client and add PDF to the website, all very basic.
I've tried importing a jpeg and other PDFs into the file (replacing the existing ones) and they export fine.
All my software is legal and I've exported this document before now in exactly the same File > Export without any problems (under 10.5 and 10.6).
OK... I've just imported the offending PDFs into Acrobat, optimized and shrunk the file size, re-imported back to Indesign and the PDF export works fine. So it seems InDesign / PDF Export doesn't like large imported PDFs? I think they were originally exported from Publisher, so maybe that's the problem or a file conflict somehow.
Any ideas on the culprit? I've googled it, searched these forums and Apple discussions and haven't found anything. Although I've found a workaround, I do get large files to import and then export. Thanks for any help
SteveIt does sound like a problem with the original PDF files the client sent you. You can check how they were made in Acrobat Pro from the Additional MetaData button on the Description tab of the document properties dialog. It will be under Advanced at the bottom of the list when the metadata opens.
You might be able to salvage them by running the optimzer and not changing the size, or just doing a Save As in Acrobat. -
Hi folks,
I am using a cascaded mapping in my OM. I have a graphical mapping followed by the Java mapping. It is a flat file to IDOC mapping. Everything works fine in Dev but when I transport the same objects to QA, the Operation mapping though it doesn't fail in ESR testing tool, gives the following message and there is no output generated for the same payload which is successfully tested in DEV. Please advise on what could be the possible reasons.
Unable to display tree view; Error when parsing an XML document (Premature end of file.)kalyan,
There seems to be an invalid xml payload which causes this error in ESR not generating the tree view. Please find the similar error screenshot and rectify the payload.
Mutti -
Problem setting Unicode (utf-8) in http header using tomcat
Hi:
I am trying to set a file name in utf-8 to http header using the following code:
response.setContentType("text/html; charset=utf-8");
response.setHeader("Content-disposition", "attachment; filename=解決.zip");
// I actually has file name in utf-8 here to set to the header, and I know that the name is correctly
// and I also looked into the response object MimeHeaders object and saw the head is correctly there
then write the content of zip file using ServletOutputStream.
The problem I have is that the file name is not displayed correctly when prompted to save or open in the pop up window next. I found out using Fiddler that the request header is wrong:
Content-disposition: attachment; filename=�zn��.zip
I am using Tomcat 5.0.28. Any idea how to get this working?
Thanks in advance!You are setting the charset for the content to be UTF-8. (That is why the method is called setContentType.) But HTTP headers are not part of the content and so that has no effect on the header.
The original specification for HTTP only allowed US-ASCII characters in headers. It is possible that more recent versions have features that allow for non-ASCII header data, but I don't know if that is the case or how you would use those features if they exist. -
JavaMapping in PI 7.1 Error:Unable to display tree view; Error when parsing
hi,
i get by testing in PI 7.1 (operation mapping) this ERROR:
"Unable to display tree view; Error when parsing an XML document (Content is not allowed in prolog.)"
this is my java-programm-code:
import java.io.FileInputStream;
import java.io.FileOutputStream;
import com.sap.aii.mapping.api.StreamTransformation;
import java.io.*;
import java.util.Map;
import javax.xml.parsers.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
/*IMPORT statement imports the specified classes and its methods into the program */
/Every Java mapping program must implement the interface StreamTransformation and its methods execute() and setParameter() and extend the class DefaultHandler./
public class Mapping extends DefaultHandler implements StreamTransformation {
Below is the declaration for all the variables we are going to use in the
subsequent methods.
private Map map;
private OutputStream out;
private boolean input1 = false;
private boolean input2 = false;
private int number1;
private int number2;
private int addvalue;
private int mulvalue;
private int subvalue;
String lineEnd = System.getProperty("line.separator");
setParamater() method is used to store the mapping object in the variable
"map"
public void setParameter(Map param) {
map = param;
public void execute(InputStream in, OutputStream out)
throws com.sap.aii.mapping.api.StreamTransformationException {
DefaultHandler handler = this;
SAXParserFactory factory = SAXParserFactory.newInstance();
try {
SAXParser saxParser = factory.newSAXParser();
this.out = out;
saxParser.parse(in, handler);
} catch (Throwable t) {
t.printStackTrace();
As seen above execute() method has two parameters "in" of type
InputStream and "out" of type OutputStream. First we get a new instance
of SAXParserFactory and from this one we create a new Instance of
SAXParser. To the Parse Method of SaxParser, we pass two parameters,
inputstream "in" and the class variable "handler".
Method "write" is a user defined method, which is used to write the
string "s" to the outpurstream "out".
private void write(String s) throws SAXException {
try {
out.write(s.getBytes());
out.flush();
} catch (IOException e) {
throw new SAXException("I/O error", e);
public void startDocument() throws SAXException {
write("");
write(lineEnd);
write("");
write(lineEnd);
public void endDocument() throws SAXException {
write("");
try {
out.flush();
} catch (IOException e) {
throw new SAXException("I/O error", e);
public void startElement(String namespaceURI, String sName, String qName,
Attributes attrs) throws SAXException {
String eName = sName;
if ("".equals(eName))
eName = qName;
if (eName.equals("NUMBER1"))
input1 = true;
if (eName.equals("NUMBER2"))
input2 = true;
public void endElement(String namespaceURI, String sName, String qName)
throws SAXException {
String eName = sName;
if ("".equals(eName))
eName = qName;
if (eName.equals("NUMBER1"))
input1 = false;
if (eName.equals("NUMBER2"))
input2 = false;
public void characters(char[] chars, int startIndex, int endIndex)
throws SAXException {
String dataString = new String(chars, startIndex, endIndex).trim();
if (input1) {
try {
number1 = Integer.parseInt(dataString);
} catch (NumberFormatException nfe) {
if (input2) {
number2 = Integer.parseInt(dataString);
if (input2 == true) {
addvalue = number1 + number2;
mulvalue = number1 * number2;
subvalue = number1 - number2;
write("" + addvalue + "");
write(lineEnd);
write("" + mulvalue + "");
write(lineEnd);
write("" + subvalue + "");
write(lineEnd);
in developer studio 7.1 i dont get error.
this happens by testing the mapping-programm in ESR.
can somebody help me please?Make sure that the xml created out after the java mapping is a valid xml with only one root node.
Regards,
Prateek -
Displaying Data Using Selection-screen in Module Pool
Hi All,
Currently I'm working on a module pool program.In that i'm having two screens 9000 and 9001.
I want to select a bookrefno using a selection screen and display header & table control data in 9001 screen when the bookrefno is validated.
can anyone help me sending sample code regarding this
Regards
Ravi SHi Ravi
Place "bookrefno." field on screen 9000.
Use validations on that particular field by using chain-endchain.
in PAI of 9000
case sy-ucomm
when 'display'
call screen 9001
write select statment to display data i.e header & table control in 9001 .
hope this would solve your problem.
reward points, if its helpful.
Thanks
RK Nimma -
MS Notepad unable to display the Chinese characters I type and display them as squares
MS Notepad is unable to display the Chinese characters I type and display them as squares. But when I copy those squares on notepad to Wordpad or MS Word, they display the Chinese characters just fine. I've no idea why those Chinese characters I type can't display properly on notepad. I check the font of the notepad and it's the default. I've another Windows Vista desktop computer which has notepad of the similar setting and display Chinese characters just fine. Both are using Chinese (Simplified) - Microsoft Pinyin New Experience Input Style to input those characters. But I don't understand why my Windows 7 is facing this problem.
Hi,
Notepad is a very simple text editor BUT it will work if you use the SAME language in Windows. Please try:
1. go to control panel, click "Clock, Language, and Region"
2. click "Change location" under the "Region" section
3. go to the "administrative" tab, then click "change system locale...", then select "Chinese".
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Displaying table using call function 'REUSE_ALV_GRID_DISPLAY'
I have created a table which has product code, product description, and product level. I am trying to display it using REUSE_ALV_GRID_DISPLAY. When I Check it, I get the following error message: "PVS2" is not an internal table - the "Occurs n" specification is missing.
Is it possible to copy PVS2 into another table, and then display that table using REUSE_ALV_GRID_DISPLAY?
I have patched together code from sdn, a client program, and my own code and I am starting to get confused. So, please help me.
Regards,
Al Lal
REPORT YABHINAV16.
* program to display products at chosen level *
Tables: T179, T179t.
types: begin of hierarchy,
prodh type t179-prodh,
vtext type t179t-vtext,
stufe type t179-stufe,
end of hierarchy.
types: begin of text,
prodh type t179t-prodh,
vtext type t179t-vtext,
end of text.
data: pvs type standard table of hierarchy initial size 0.
data: pvs2 type hierarchy.
data: it_text type standard table of text,
wa_text type text.
TYPE-POOLS:SLIS.
*For ALV
DATA: GT_FLD TYPE SLIS_T_FIELDCAT_ALV,
GT_EV TYPE SLIS_T_EVENT,
GT_HDR TYPE SLIS_T_LISTHEADER,
GT_SORT TYPE SLIS_T_SORTINFO_ALV.
DATA: WA_FLD TYPE SLIS_FIELDCAT_ALV,
WA_EV TYPE SLIS_ALV_EVENT,
WA_HDR TYPE SLIS_LISTHEADER,
WA_SORT TYPE SLIS_SORTINFO_ALV,
WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
DEFINE FLD.
WA_FLD-FIELDNAME = &1.
WA_FLD-TABNAME = &2.
WA_FLD-OUTPUTLEN = &3.
WA_FLD-SELTEXT_L = &4.
WA_FLD-SELTEXT_M = &5.
WA_FLD-SELTEXT_S = &6.
WA_FLD-COL_POS = &7.
WA_FLD-FIX_COLUMN = &8.
WA_FLD-DO_SUM = &9.
APPEND WA_FLD TO GT_FLD.
CLEAR WA_FLD.
END-OF-DEFINITION.
CONSTANTS: C_TOP TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
C_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.
DATA: MTRL LIKE SY-REPID,
TITLE LIKE SY-TITLE.
select-options level for t179-stufe no intervals.
start-of-selection.
Select prodh stufe from T179 into corresponding fields of table pvs where stufe in level.
select prodh vtext from t179t into corresponding fields of table it_text for all entries in pvs where prodh = pvs-prodh.
end-of-selection.
sort pvs by prodh.
sort it_text by prodh.
loop at pvs into pvs2.
read table it_text into wa_text with key prodh = pvs2-prodh.
if sy-subrc eq 0.
pvs2-vtext = wa_text-vtext.
write: / pvs2-prodh, pvs2-vtext, pvs2-stufe.
endif.
* modify pvs2.
endloop.
perform BUILD_FIELDCAT.
perform GRID_DISPLAY.
form BUILD_FIELDCAT .
FLD 'PRODH' 'PVS2' '20' 'Product Hierarchy' ' ' ' ' '1' '' '' .
FLD 'VTEXT' 'PVS2' '40' 'Description ' ' ' ' ' '3' '' '' .
FLD 'STUFE' 'PVS2' '5' 'Level' ' ' ' ' '2' '' '' .
endform. " BUILD_FIELDCAT
form GRID_DISPLAY .
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = MTRL
I_CALLBACK_USER_COMMAND = 'C_USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = C_TOP
I_STRUCTURE_NAME = 'PVS2'
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = GT_FLD
IT_SORT = GT_SORT
I_DEFAULT = 'X'
I_SAVE = 'U'
IT_EVENTS = GT_EV
TABLES
T_OUTTAB = PVS2[]
EXCEPTIONS
PROGRAM_ERROR = 1
others = 2.
if SY-SUBRC <> 0.
message id SY-MSGID type SY-MSGTY number SY-MSGNO
with SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " GRID_DISPLAYTYPE-POOLS : SLIS.
DATA : BEGIN OF WA_T001,
BUKRS LIKE T001-BUKRS,
BUTXT LIKE T001-BUTXT,
ORT01 LIKE T001-ORT01,
END OF WA_T001,
IT_T001 LIKE TABLE OF WA_T001.
DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FCAT LIKE LINE OF IT_FCAT.
DATA : V_NAME LIKE SY-REPID.
SELECT BUKRS BUTXT ORT01 FROM T001 INTO TABLE IT_T001 UP TO 15 ROWS. V_NAME = SY-REPID.
CALL FUCTION MODULE 'REUSE_ALV_FIELDCATLOG_MERGE. EXPORTING I_CALBACK_PROGRAM =
V_NAME I_INTERAL_TABNAME = 'WA_T001' I_INCLNAME = V_NAME CHANGING CT_FIELDCAT =
IT_FCAT.
CALL FUNCTION MODULE "REUSE_ALV_GRID_DISPLAY"
EXPORTING
I_CALLBACK_PROGRAM = V_NAME
IT_FCAT = IT_FCAT.
TABLES
T_OUTTAB = IT_T001
SY-REPID IS THE SYSTEM VARIABLE WHICH IS HAVING THE ABAP PROGRAM
OR CURRENT MAIN PROGRAM.
----- Sample Progam -
***INCLUDE YRVR058_DEST_WISE_SUMMARY_DF01 .
*& Form DISPLAY_DATA
text *-- Rajesh Vasudeva
--> p1 text
<-- p2 text
FORM DISPLAY_DATA .
IF ITAB[] IS NOT INITIAL.
PERFORM F_APPEND_BLOCK.
ELSE.
MESSAGE 'Data not found for the selection
criteria' TYPE 'S'.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. " display_data
*& Form f_append_block
text
--> p1 text
<-- p2 text
FORM F_APPEND_BLOCK .
DATA : L_WA_SORT TYPE SLIS_SORTINFO_ALV, "For
sort
L_WA_EVENTS TYPE SLIS_ALV_EVENT. "For
events
Event (Top of List)
CLEAR L_WA_EVENTS.
L_WA_EVENTS-NAME = SLIS_EV_TOP_OF_LIST.
L_WA_EVENTS-FORM = C_TOPOFPAGE.
APPEND L_WA_EVENTS TO I_EVENTS_PART.
Event (Top of Page)
CLEAR L_WA_EVENTS.
L_WA_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
L_WA_EVENTS-FORM = 'F_DISPLAY_HEADER_PARTA'(031).
"f_display_header_part
APPEND L_WA_EVENTS TO I_EVENTS_PART.
Event (End of List)
CLEAR L_WA_EVENTS.
L_WA_EVENTS-NAME = SLIS_EV_END_OF_LIST.
L_WA_EVENTS-FORM = C_END_OF_LIST.
APPEND L_WA_EVENTS TO I_EVENTS_PART.
Set Layout Zebra
STRUCT_LAYOUT-ZEBRA = 'X'.
STRUCT_LAYOUT-NUMC_SUM = 'X'.
STRUCT_LAYOUT-TOTALS_TEXT = 'TOTAL:'(032).
set field catalog
PERFORM F_FIELD_CATALOG_PART.
ASSIGN ITAB[] TO <F_OUTTAB>.
V_PART = 'A'. "initiating list is A
PERFORM F_DISPLAY_BLOCK USING STRUCT_LAYOUT
I_FIELD_CAT_PART[]
C_TAB
I_EVENTS_PART[]
I_SORT_PART[].
ENDFORM. " f_append_block
*& Form f_field_catalog_part
text
--> p1 text
<-- p2 text
FORM F_FIELD_CATALOG_PART .
REFRESH I_FIELD_CAT_PART.
CLEAR I_FIELD_CAT_PART.
PERFORM F_CREATE_CATALOG USING :
*Month
C_TAB 'MONTH' 'MONTH' SPACE 'L' 7
I_FIELD_CAT_PART[],
*OBD
*C_TAB 'VBELN' 'Delivery' SPACE 'L' 12
I_FIELD_CAT_PART[],
*DATE
C_TAB 'WADAT_IST' 'Date' SPACE 'L' 10
I_FIELD_CAT_PART[],
*Destination
C_TAB 'CITY1' 'Destination' SPACE 'L' 25
I_FIELD_CAT_PART[],
*Qty By Road
C_TAB 'NTGEW_ROAD' 'Road Quantity' SPACE 'R' 16
I_FIELD_CAT_PART[],
*Rail Qty
C_TAB 'NTGEW_RAIL' 'Rail Quantity' SPACE 'R' 16 I_FIELD_CAT_PART[],
*Total Qty C_TAB 'TOT' 'Total Quantity' SPACE 'R' 16 I_FIELD_CAT_PART[], *RR/Trk No.
C_TAB 'EXTI2' 'Truck/RR No.' SPACE 'L' 17 I_FIELD_CAT_PART[].
ENDFORM. " f_field_catalog_part
*& Form f_DISPLAY_block
text
-->P_STRUCT_LAYOUT text
-->P_I_FIELD_CAT_PART[] text
-->P_C_TAB text
-->P_I_EVENTS_PART[] text
-->P_I_SORT_PART[] text
FORM F_DISPLAY_BLOCK USING FP_LAYOUT TYPE
SLIS_LAYOUT_ALV
FP_I_FCAT TYPE
SLIS_T_FIELDCAT_ALV
VALUE(FP_TABNAME) TYPE
ANY
FP_I_EVENTS TYPE
SLIS_T_EVENT
FP_I_SORT TYPE
SLIS_T_SORTINFO_ALV.
DATA: V_REPID TYPE SYREPID,
"current Program id
C_SAVE TYPE CHAR1 VALUE 'A'.
"variant save
V_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
*CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
IS_LAYOUT = FP_LAYOUT
IT_FIELDCAT = FP_I_FCAT[]
IT_SORT = FP_I_SORT[]
I_SAVE = C_SAVE "variant
save
IT_EVENTS = FP_I_EVENTS[]
TABLES
T_OUTTAB = <F_OUTTAB>
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " f_DISPLAY_block
*& Form f_create_catalog
text
-->P_C_TAB text
-->P_0085 text
-->P_0086 text
-->P_SPACE text
-->P_0088 text
-->P_5 text
-->P_I_FIELD_CAT_PART[] text
FORM F_CREATE_CATALOG USING FP_I_TABNAME TYPE
SLIS_TABNAME
FP_I_FIELDNAME TYPE SLIS_FIELDNAME
FP_I_SELTEXT TYPE
SCRTEXT_L
FP_I_DOSUM TYPE
CHAR1
FP_I_JUST TYPE C
FP_I_OUTPUTLEN TYPE
OUTPUTLEN
FP_I_FCAT TYPE
SLIS_T_FIELDCAT_ALV.
Record for field catalog
DATA: L_REC_FCAT TYPE SLIS_FIELDCAT_ALV.
L_REC_FCAT-TABNAME = FP_I_TABNAME.
L_REC_FCAT-FIELDNAME = FP_I_FIELDNAME.
L_REC_FCAT-SELTEXT_L = FP_I_SELTEXT.
L_REC_FCAT-DO_SUM = 'X'.
*l_rec_fcat-do_sum = ' '.
L_REC_FCAT-JUST = FP_I_JUST.
L_REC_FCAT-OUTPUTLEN = FP_I_OUTPUTLEN.
L_REC_FCAT-DECIMALS_OUT = '2'.
L_REC_FCAT-KEY = '1'.
APPEND L_REC_FCAT TO FP_I_FCAT.
ENDFORM. " f_create_catalog
Subroutines for Headings
*& Form f_display_header_partA
Display header for report for Part A
*& Form top_of_page
text
--> p1 text
<-- p2 text
FORM TOP_OF_PAGE .
SKIP 1.
WRITE:/25 ' Name of Company ',80 'RUN DATE' ,
SY-DATUM.
SKIP 1.
WRITE:/60 'RUN DATE' , SY-DATUM.
SKIP 1.
DATA: YR(4) TYPE N,
FIN_PRD(10) TYPE C.
IF S_DTABF-LOW+4(2) LT '04'.
YR = S_DTABF-LOW+0(4) - 1.
CONCATENATE YR '-' S_DTABF-LOW+2(2) INTO FIN_PRD.
ELSE.
YR = S_DTABF-LOW+0(4) + 1.
CONCATENATE S_DTABF-LOW0(4) '-' YR2(2) INTO
FIN_PRD.
ENDIF.
WRITE:/5 'DETAILS OF THE MONTH/DATE WISE DESPATCHES
MADE BY ROAD/RAIL DURING THE YEAR ' , FIN_PRD .
SKIP 1.
WRITE :/ 'SALES OFFICE : ' , P_SALES,' ' , RNAME.
SKIP 1.
ENDFORM. " DISPLAY_DATA
Award Points If Useful... -
Could not execute auto check for display colors using command /usr/
I am trying to Install Oracle 10g R2 on Solaris X86 32 bit
I am connecting to system from my windows vista laptop through putty... I get the following error...
$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be 5.10. Actual 5.10
Passed
Checking Temp space: must be greater than 250 MB. Actual 1214 MB Passed
Checking swap space: must be greater than 500 MB. Actual 1799 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/openw
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,at which time they will be rechecked.
Continue? (y/n) [n] n
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/Or
I have done the following:-
# DISPLAY=192.168.1.133:0.0; export DISPLAY
# echo $DISPLAY
192.168.1.133:0.0
# xhost+
xhost+: not found
# xclock
xclock: not found
I know that I have to do the following:-
1. Install SUNWxwplt package ========> Is already Installed
2. Set DISPLAY variable
3. Execute xhost + on target (set in DISPLAY) computer
# pkginfo -i SUNWxwplt
system SUNWxwplt X Window System platform software
Some sites claim xming and some xwindows etc.... Plz give me a step by step instruction as how to overcome this..
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display:
bash-3.00# DISPLAY=192.168.1.133:0.0; export DISPLAY; echo DISPLAY
DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# pwd
bash-3.00# find . -name xhost
./usr/openwin/bin/xhost
^C
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00#
# echo $PATH
/usr/sbin:/usr/bin
I have also gone through the below ... but was not of much help
Unable to execute runInstaller: Check if the DISPLAY variable is set
Plz help
Edited by: [email protected] on Feb 11, 2009 5:16 AMbash-3.00# echo $SHELL
/sbin/sh
bash-3.00# echo $DISPLAY
bash-3.00# DISPLAY=192.168.1.133:0.0;export DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# man xclock
No manual entry for xclock.
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00# -
Hi All,
While i excute the RIDC code to retrieve the information using the COLLECTION_INFO service. i got the following error.
Error:
Event generated by user 'weblogic' at host 'CIS'. Unable to display virtual folder information. Unable to open folder. [ Details ]
An error has occurred. The stack trace below shows more information.
!csUserEventMessage,weblogic,CIS!$!csCollectionUnableToInfoCollection!csCollectionUnableToOpenCollection
intradoc.common.ServiceException: !csCollectionUnableToInfoCollection!csCollectionUnableToOpenCollection
*ScriptStack COLLECTION_INFO
3:canReadInCollection,**no captured values**
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
at intradoc.server.Service.buildServiceException(Service.java:2260)
at intradoc.server.Service.createServiceExceptionEx(Service.java:2254)
at collections.CollectionUserHandler.getSpecifiedCollection(CollectionUserHandler.java:3764)
at collections.CollectionUserHandler.getSpecifiedCollection(CollectionUserHandler.java:3774)
at collections.CollectionUserHandler.getSpecifiedCollection(CollectionUserHandler.java:3780)
at collections.CollectionUserHandler.getSpecifiedCollection(CollectionUserHandler.java:3785)
at collections.CollectionUserHandler.canReadInCollection(CollectionUserHandler.java:2885)
at sun.reflect.GeneratedMethodAccessor12205.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
at intradoc.server.Service.doCodeEx(Service.java:533)
at intradoc.server.Service.doCode(Service.java:505)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:477)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:472)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
at intradoc.server.Service.executeActions(Service.java:458)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
at intradoc.server.Service.doRequest(Service.java:1890)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Thanks,
HariHi
Can you post the code snippet ?
Thanks
Srinath -
Xhost +: unable to display
Dear Linux and SAP Expert:
I am facing a problem, I want to install Oracle 9i on SUSE Linux, I need to use ora<sid> to install it, but when I use xhost +, i am prompted "xhost +: unable to display"
I have already set the followings:
setenv DISPLAY <my hostname>:0.0
xclock is also unable to display.
What can I do???How can I solve this problem?
Really really thanks for your all reply
Hisashi GlayHi Hisashi Glay,
You can try the following senario also if you are taking VNC over windows machine.
Install the vnc server package i.e vnc-server-x.x.x. and download the vnc client for windows i.e. UltraVNC Win32 Viewer 1.0.1.
After the above activity do the following configuration at server end.
run the command as a root or ora<SID>. Whose graphical login you required.
In our senarion we use ora<SID>.
run the command
vncserver
vncpasswd #This is to set the password for that vnc login
after run the vncserver change the following setting in xstartup file
cat ~/.vnc/xstartup
#!/bin/sh
Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x241010 -ls -title "$VNCDESKTOP Desktop" &
twm &
chage the below line as follows.
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
Afte this changes kill the vncserver once
vncserver -kill :1
than start the vnc server again.
vncserver
Everything is done now use the gui of that server from windows client machine
hostname:1 or IP Address:1
Hopefully this will resolve your problem
Thanks and Regards,
Kamal Kishore -
Display header text and item text in smartform
Hi all,
I have to display header text and item text of PO in smartform BBP_SUSPO.
So how to do that.. I have to use 'read_text' Fm or directly i can get values from any table ???
Thanks in advance.
Regards,
Anagha DeshmukhHi Amit,
I have used inculde text that is avalable in smartforms to display header & Item text in this way
For header :
Text Name Header guid
Text Object BBP_PD
Text ID HTXT
Language EN
For Item:
Text Name Item Guid
Text Object BBP_PD
Text ID ITXT
Language SY-LANGU
U can used this attributes in read_text function mdule also.
Thanks & Regards,
Anagha Deshmukh -
Hi All,
How can i display header data in a simple report(its not an ALV report).
i am planning to use event TOP-OF-PAGE for this.is this correct?
Can anyone explain me through a piece of code.
Thanks,
RupeshHi,
Top-of-page is an event which will produce a static header that is even you scroll the list the header will be displayed. But when you not use the top-of-page event You will notget the static header.
say for example,
data : itab like mara occurs 0 with header line.
select * from mara into table itab upto 100 rows.
loop at itab.
write : /1 itab-matnr.
endloop.
top-of-page.
write : /1 'header'.
also use the code,
data : itab like mara occurs 0 with header line.
select * from mara into table itab upto 100 rows.
write : /1 'header'.
loop at itab.
write : /1 itab-matnr.
endloop.
see the difference in the header.
Regards,
Sanki.
Maybe you are looking for
-
Crystal report windows forms viewer - error in file
I am using visual basic - visual studio 2005 with crystal reports version 11.5 and am getting the following error when deploying to a windows 7 32 bit machine Error in file c:\users\username\appdata\local\temp\tempmanynumbersandcharacters.rpt The req
-
How do I move a movie I have synced from iTunes into the "Movies" tab of the Video App? I need to access a slideshow I made in IMovies and may not have WiFi. I did it once, but can't figure out how to do it again! The file is an m4v. Thank you!
-
Is Oracle Text the right solution for this need of a specific search!
Hi , We are on Oracle 11.2.0.2 on Solaris 10. We have the need to be able to do search on data that are having diacritical marks and we should be able to do the serach ignoring this diacritical marks. That is the requirement. Now I got to hear that O
-
I can't get itunes to pull up on my computer. From what I can tell it downloaded fine...but when I click on the icon it pulls up this: "itunes has encountered a problem and needs to close". What can I do to fix this????????? I've had a brand new ipod
-
Permission to access Xcode project in two Mac's?
I have started to develop some programs as educational purpose for my son. I have two mac's in which Xcode 4.0.1 is installed. Project files are stored in outside HDD. But the project seems not to be accessed in the second Mac with the following mess