How to print database table records in graphical format?
In ABAP Editor,I put select query on one database table and fetch few records .Now I want to show these records in BAR Graph / pie chart.Kindly let me know is it possible and how?
Thanks in advance.
Edited by: rushah on May 21, 2009 5:30 AM
Hi Hadiman,
Can you please elaborate more on it.
Like my code is......
SELECT * FROM trfcqout
INTO CORRESPONDING FIELDS OF itab
WHERE ( qstate = 'SYSFAIL' OR qstate = 'CPICERR' OR errmess <> '' )
and ( QRFCDATUM >= date-low and QRFCDATUM <= date-high ).
count = 0.
if itab is not initial.
SELECT * FROM trfcqout
INTO CORRESPONDING FIELDS OF itab1
WHERE qname = itab-qname AND errmess = ''.
count = count + 1.
ENDSELECT.
itab-retrydate = sysdate.
itab-retrytime = systime.
itab-qtype = 'OUTBOUND'.
itab-nentries = count - 1.
append itab.
MODIFY zqueue FROM itab.
endif.
ENDSELECT.
Print details on Report
write: / sy-vline no-gap,(7) 'QTYPE' COLOR 1, sy-vline no-gap,(23)
'QNAME' COLOR 1,sy-vline no-gap,(14) 'QSTATE' COLOR 1, sy-vline no-gap,
(54) 'Error' COLOR 1,sy-vline no-gap,(10) 'Number' COLOR 1.
uline.
LOOP AT itab.
write: / sy-vline no-gap, (8) itab-qtype no-gap,
sy-vline no-gap, (24) itab-qname no-gap,
sy-vline no-gap, (15) itab-qstate no-gap,
sy-vline no-gap, (55) itab-errmess no-gap,
sy-vline no-gap, (10) itab-nentries no-gap.
ENDLOOP.
uline.
refresh itab.
endform. "queuedata
Now I want to print data in graphical form. how to do that?
Similar Messages
-
ADOBE: How to print a table only on uneven pages and a text on the back?
Hi, I am looking for a clear document on how to use pagination and the Odd and Even pages.
We need to print a table over several pages, but the table should only appear on Odd pages. The even pages should be skipped. On the even (back) pages we need to print "Terms and Conditions". Is that possible? Can it be done without scripting?
We are using ADOBE version 8.1
In the file properties, double sided is switched on, and version set to 8.1 and higher.
I created two Master pages, a FrontPage with ContentArea1and a BackPage with ContentArea2.
FrontPage is used for uneven pages, BackPage is used for the even pages. The masterpages are printed correctly (alternating properly).
One page was created for the table, totals etc.:
ITEMS: contains item data (table with header and footer). Place is "On Odd Page". After "Goto page BackPage", so there is always one page with the text. And if the table needs to be paginated it goes to BackPage with overflow leader "Conditions".
What should happen is that on the front pages the item table is printed. If there are too many lines then it should continue on page number 3 then 5 etc. All the even pages should display text only.
What actually happens is that the item table also gets printed in the content area for the Condition text...
The best I could achieve is to decrease the contenta area of the back page. To force pagination. But still it prints one table record in the (very small) content area of the back page before paginating to the next page (front page again). If it only would not do that, it would be fine.
Cheers,
Edwin.Fixed it... After a lot of creating, deleting, playing around with pagination and the inevitable cursing...
I have created 5 pages:
1. FirstPage
- Odd/Even: Odd (Front) Pages
- Placement: First page (In page set)
2. FrontPage (For Odd pages)
- Odd/Even: Odd/Front Pages
- Placement: Rest of Pages
3. BackPage (For Even pages)
- Odd/Even: Even (Back) Pages
- Placement: Rest of Pages
4. LastPage
- Odd/Even: No Odd/Even Restrictions
- Placement: Last page (In page set)
5. DummyPage
- Odd/Even: Blank pages
The 'Terms and conditions' are located on the BackPage and LastPage (as a text).
The table that is printed is (of course) located on a normal page (flowed subform).
Pagination tab: Placement = Following previous, and After = "Continue filling parent". No overflow... Basically, it's all default.
The table lines will now start on the first page and if there are more lines than can be printed on this page, it will continue in the next content area. That will be on the FrontPage.
The trick is that each master page must have a content area (mandatory). Except for Blank pages, but these cannot be used... Blank pages would only be used once, after the first page.
What I discovered is that you can drag a content area away from the Master page and attach it to a different master page.
Logically, if there is no content area on a page, then data cannot be printed there. So, I created a Dummypage. On this page I dumped the content areas from the LastPage and the BackPage. As a result, content cannot be printed anymore on the back of pages. Only the standard text (a text field) is printed there. When the data from the table is overflowing, it will automatically overflow from the FirstPage to the next content area. Which is located on the FrontPages only.
The DummyPage is NOT used anywhere.
The result is that the records can only be printed on the content areas that exist on the First and Front pages. The back pages are now skipped.
Duplex printing is now working correctly, and the text is printed on the back of all the pages.
Cheers,
Edwin. -
How to view database table in OAF run page.
Hi,
how to view database table in OAF run page,any manual setting .please help me.
thanks
saran.Hi;
1. This site side related EBS for your issue there is sqldeveloer dedicated forum side
Forum Home » Application Development in PL/SQL » SQL Developer (Not for general SQL/PLSQL questions)
2. Please see:
http://docs.oracle.com/cd/B10501_01/java.920/a96655.pdf
Regard
Helios -
How to view database table in oracle9i Jdeveloper
Hi,
how to view database table in oracle9i jdeveloper,any manual setting .please help me.
thanks
saran.In Jdeveloper go to View-->Connection Nevigator. there you will see all kind of connctions. Expand Database and check if your DB connection is present there. If not, you need to create using right clicking on Database and choose New Database Connecton. Here few screens will be there where you need to put the TNS entries of your database.
Once DB connection is created, you can expand the connection by clicking on + icon and you can see different available schema objects. Again you need to expand Tables and you can look for specific table in there.
Hope this clears your doubts.
Thanks,
Mukesh Uchaniya -
How to view database table in oracle9i developer
Hi,
how to view database table in oracle9i developer,any manual setting .please help me.
thanks
saran.Hi;
1. This site side related EBS for your issue there is sqldeveloer dedicated forum side
Forum Home » Application Development in PL/SQL » SQL Developer (Not for general SQL/PLSQL questions)
2. Please see:
http://docs.oracle.com/cd/B10501_01/java.920/a96655.pdf
Regard
Helios -
How to update database table !!!
hi all,
Please advice how to update database table with certain cndition needs to be checked.
Please consider below scenario.
have used enqueu and dequeue function to lock entries and also i have used BAPI so considering that return parameter . i want to update table
/tdk/st0027.
1. I want to update database table
2. there are certain condition needs to be checked like ,
loop at it_final into wa_final.
th_return-type = 'S'.
if th_final-vbeln = /tdk/st0027-vbeln and
th_final-posnr = /tdk/st0027-posnr and
th_final-etenr = /tdk/st0027-sdslno.
above condition which i need to check .and need to append below system fields need to be appended in table.
th_final-prstsind = '20'.
th_final-chgdate = g_date.
th_final-chgtime = g_uzeit.
th_final-chgprog = g_cprog.
th_final-chguser = g_uname.
append th_final to td_final.
update /tdk/st0027 FROM th_final.
endif.
endloop.
but i am getting error saying that "The type od database table and work area (TH_FINAL) are not unicode convertible"?
I am not able to understandwhat would be the solution for this ?
Thanks and regards,
Prasad K. NAralkarThe error occurs in the UPDATE statement included in the code. In this statement it is seen that there is a mismatch of structure defined for the DDIC table /tdk/st0027 and that of your work area th_final.
try to create a structure w.r.t the DDIC table.
Eg: DATA: wa_temp TYPE /tdk/st0027.
MOVE-CORRESPONDING th_final TO wa_temp.
Then try to UPDATE using the temporary work area i.e wa_temp which has structure similar to that of the database table. -
How to convert database table into xml file
Hi.
How to convert database table into XML file in Oracle HTML DB.
Please let me know.
Thanks.This not really a specific APEX question... but I search the database forum and found this thread which I think will help
Exporting Oracle table to XML
If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
Hope this helps
Chris -
how to send database table one sever to another server in the form of tms request.
i want send a particular database table one server to another as a request.
give solution plz
Message was edited by:
maheshHi Mahesh,
Technically it is possible to transport entries of every table in SAP even if changes dont prompt for a transport request. Do the following. Create a customising/workbench request. It depends of the table whose entires you wish to transport. .If you wish you can just use workbench transport for all tables.
After you have created the transport click on the request and in menu bar choose Request/Task and then Display object list. Goto change mode.
Click on Inset line icon in application tool bar. A new line for input will come up.
In PGMID give the value R3TR
In Obj give value TABU
In Object Name give the name of the table.
After that double click on table name entry. You will come to the screen: Transport organizer:Change Key List.
Here again choose insert line. A new line with table name and key as the column headers will come up.
Double click on the empty input field for the key. In the next screen you will get options to fill in the key.
You can insert key as per your choice. However one thing needs to be remembered. If you put * in any field SAP wont allow you fill in value in later fields as only a final asterisk can be used as a generic entry.
Please try out this option. I use this option to transport RFC destinations as well profile parameters across systems.
Please award points if the answer was of help to you.
Regards.
Ruchit. -
how to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method. thanks
INSERT targetdb.dbo.tbl (col1, col2, col3, ...)
SELECT col1, col2, col3, ...
FROM sourcedb.dbo.tbl
Or what is your question really about? Since you talke about foreign keys etc, I suspect that you want to transfer the entire table definition, but you cannot do that with an INSERT statement.
Erland Sommarskog, SQL Server MVP, [email protected] -
How to convert internal table data to PDF format
HI,
I have an internal table data having one field with 255 chars. length.I want to send that intenal table data as attachemnt with external mail. i am thinking of converting that data into PDF format and use the FM to send the mail. How to convert internal table data to PDF format.
KishoreIn which format is your data in the internal table currently. Is it returned by a smartform/script or its just data fetched from some database table into an internal table. Since its obvious that the data should appear in the PDF with some Layout, you should be using smartform to format the data properly. See the Link
Smartform to PDF to EMAIL
This shows convertion of smartform to pdf and send it through email
Regards,
Abhishek -
How to clean database tables after testing?
Hello, All !
I'm beginer in eCATT. I have a simple question.
My test run some transaction. It put record into database table. I need check some fields of this record.
I want run this test avery day.
How I can remove record automaticly? It's important because records can't have a douplication.
Best regards.Hello,
You can delete your entries in the table by logging into the transaction SE16N and entring the table name and selecting your entries to be deleted.
Thanks & Best regards,
Ajay -
How to print the error records and success records in bdc
how to print the number of error records and success records in bdc
hai,
plz refer this program,
Z_130399130271_A
REPORT Z_130399130271_A
NO STANDARD PAGE HEADING LINE-SIZE 325.
*INCLUDE YVALIDATE.
*include bdcrecx1.
INCLUDE YINCLUDE399.
DATA ITAB LIKE TABLE OF FILE_TABLE WITH HEADER LINE.
PARAMETERS: DATASET(132) LOWER CASE.
DATA : RC TYPE I,
ERR(40) TYPE C,
SUCCESSCNT TYPE I VALUE 0,
FAILCOUNT TYPE I VALUE 0.
DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
If it is nessesary to change the data section use the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
Generated data section with specific formatting - DO NOT CHANGE ***
DATA: BEGIN OF RECORD OCCURS 0,
data element: LIF16
LIFNR_001(016),
data element: KTOKK
KTOKK_002(004),
data element: ANRED
ANRED_003(015),
data element: NAME1_GP
NAME1_004(035),
data element: SORTL
SORTL_005(010),
data element: STRAS_GP
STRAS_006(035),
data element: PFACH
PFACH_007(010),
data element: ORT01_GP
ORT01_008(035),
data element: ORT02_GP
ORT02_009(035),
data element: LAND1_GP
LAND1_010(003),
data element: REGIO
REGIO_011(003),
data element: SPRAS
SPRAS_012(002),
data element: TELF1
TELF1_013(016),
data element: TELF2
TELF2_014(016),
data element: BANKS
BANKS_01_015(003),
data element: BANKK
BANKL_01_016(015),
data element: BANKN
BANKN_01_017(018),
END OF RECORD.
DATA: BEGIN OF ERRORITAB OCCURS 0,
LIFNR_001 LIKE LFA1-LIFNR,
KTOKK_002 LIKE LFA1-KTOKK,
ANRED_003 LIKE LFA1-ANRED,
NAME1_004 LIKE LFA1-NAME1,
SORTL_005 LIKE LFA1-SORTL,
STRAS_006 LIKE LFA1-STRAS,
PFACH_007 LIKE LFA1-PFACH,
ORT01_008 LIKE LFA1-ORT01,
ORT02_009 LIKE LFA1-ORT02,
LAND1_010 LIKE LFA1-LAND1,
REGIO_011 LIKE LFA1-REGIO,
SPRAS_012 LIKE LFA1-SPRAS,
TELF1_013 LIKE LFA1-TELF1,
TELF2_014 LIKE LFA1-TELF2,
BANKS_01_015 LIKE LFBK-BANKS,
BANKL_01_016 LIKE LFBK-BANKL,
BANKN_01_017 LIKE LFBK-BANKN,
ERRORMSG(60) TYPE C,
SERIAL TYPE I VALUE '1',
END OF ERRORITAB.
End generated data section ***
AT SELECTION-SCREEN ON VALUE-REQUEST FOR DATASET.
CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
EXPORTING
WINDOW_TITLE = 'select a file '
DEFAULT_EXTENSION = 'TXT'
DEFAULT_FILENAME = 'ASSIGN5.TXT'
FILE_FILTER =
INIT_DIRECTORY =
MULTISELECTION =
IMPORTING
RC =
TABLES
FILE_TABLE = ITAB
EXCEPTIONS
CNTL_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.
READ TABLE ITAB INDEX 1.
DATASET = ITAB-FILENAME.
WRITE DATASET.
START-OF-SELECTION.
*perform open_dataset using dataset.
*perform open_group.
DATA T TYPE STRING.
T = DATASET.
IF T EQ ' '.
MESSAGE E110(ZX).
ENDIF.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = T
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = RECORD
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT RECORD.
CLEAR RC.
CLEAR ERR.
*read dataset dataset into record.
IF SY-SUBRC <> 0. EXIT. ENDIF.
RECORD-KTOKK_002 = '0001'.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RF02K-LIFNR'
RECORD-LIFNR_001.
PERFORM BDC_FIELD USING 'RF02K-KTOKK'
RECORD-KTOKK_002.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0110'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-TELX1'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'LFA1-ANRED'
RECORD-ANRED_003.
PERFORM BDC_FIELD USING 'LFA1-NAME1'
RECORD-NAME1_004.
PERFORM BDC_FIELD USING 'LFA1-SORTL'
RECORD-SORTL_005.
PERFORM BDC_FIELD USING 'LFA1-STRAS'
RECORD-STRAS_006.
PERFORM BDC_FIELD USING 'LFA1-PFACH'
RECORD-PFACH_007.
PERFORM BDC_FIELD USING 'LFA1-ORT01'
RECORD-ORT01_008.
PERFORM BDC_FIELD USING 'LFA1-ORT02'
RECORD-ORT02_009.
PERFORM BDC_FIELD USING 'LFA1-LAND1'
RECORD-LAND1_010.
PERFORM BDC_FIELD USING 'LFA1-REGIO'
RECORD-REGIO_011.
PERFORM BDC_FIELD USING 'LFA1-SPRAS'
RECORD-SPRAS_012.
PERFORM BDC_FIELD USING 'LFA1-TELF1'
RECORD-TELF1_013.
PERFORM BDC_FIELD USING 'LFA1-TELF2'
RECORD-TELF2_014.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0120'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=VW'.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0130'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFBK-BANKN(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENTR'.
PERFORM BDC_FIELD USING 'LFBK-BANKS(01)'
RECORD-BANKS_01_015.
PERFORM BDC_FIELD USING 'LFBK-BANKL(01)'
RECORD-BANKL_01_016.
PERFORM BDC_FIELD USING 'LFBK-BANKN(01)'
RECORD-BANKN_01_017.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0130'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=UPDA'.
PERFORM BDC_TRANSACTION USING 'XK01' CHANGING ERR RC.
DATA: SERIAL TYPE I VALUE 1.
IF RC <> 0.
FAILCOUNT = FAILCOUNT + 1.
CLEAR ERRORITAB.
ERRORITAB-SERIAL = SERIAL.
ERRORITAB-LIFNR_001 = RECORD-LIFNR_001.
ERRORITAB-KTOKK_002 = RECORD-KTOKK_002.
ERRORITAB-ANRED_003 = RECORD-ANRED_003.
ERRORITAB-NAME1_004 = RECORD-NAME1_004.
ERRORITAB-SORTL_005 = RECORD-SORTL_005.
ERRORITAB-STRAS_006 = RECORD-STRAS_006.
ERRORITAB-PFACH_007 = RECORD-PFACH_007.
ERRORITAB-ORT01_008 = RECORD-ORT01_008.
ERRORITAB-ORT02_009 = RECORD-ORT02_009.
ERRORITAB-LAND1_010 = RECORD-LAND1_010.
ERRORITAB-REGIO_011 = RECORD-REGIO_011.
ERRORITAB-SPRAS_012 = RECORD-SPRAS_012.
ERRORITAB-TELF1_013 = RECORD-TELF1_013.
ERRORITAB-TELF2_014 = RECORD-TELF2_014.
ERRORITAB-BANKS_01_015 = RECORD-BANKS_01_015.
ERRORITAB-BANKL_01_016 = RECORD-BANKL_01_016.
ERRORITAB-BANKN_01_017 = RECORD-BANKN_01_017.
ERRORITAB-ERRORMSG = ERR.
SERIAL = SERIAL + 1.
APPEND ERRORITAB.
MODIFY RECORD TRANSPORTING KTOKK_002.
DELETE RECORD WHERE KTOKK_002 = '0001'.
ELSE.
SUCCESSCNT = SUCCESSCNT + 1.
ENDIF.
ENDLOOP.
display output********************************************************
SKIP.
FORMAT COLOR 5 INTENSIFIED OFF.
WRITE:/ 'No. of records successfully uploaded: '.
FORMAT COLOR 4 INTENSIFIED OFF.
WRITE: SUCCESSCNT.
Displaying the success table******************************************
IF SUCCESSCNT <> 0.
SKIP.
FORMAT COLOR 4 INTENSIFIED OFF.
WRITE:/ 'Successful Records'.
FORMAT COLOR 7 INTENSIFIED ON.
WRITE:/(261) SY-ULINE,
/ SY-VLINE,
'S.NO', 007 SY-VLINE,
'VENDOR ACC.NUM', 023 SY-VLINE,
'VENDOR ACC GROUP', 041 SY-VLINE,
'TITLE', 048 SY-VLINE,
'VENDOR NAME', 064 SY-VLINE,
'SORT FIELD', 076 SY-VLINE,
'HOUSE NO.& STREET', 101 SY-VLINE,
'PO.BOX NO', 116 SY-VLINE,
'CITY', 129 SY-VLINE,
'DISTRICT', 141 SY-VLINE,
'COUNTRY KEY', 156 SY-VLINE,
'REGION', 166 SY-VLINE,
'LANGUAGE KEY', 180 SY-VLINE,
'TELEPHONE NO 1', 196 SY-VLINE,
'TELEPHONE NO 2', 213 SY-VLINE,
'BANK COUNTRY KEY', 231 SY-VLINE,
'BANK KEY', 241 SY-VLINE,
'BANK ACC.NO', 261 SY-VLINE,
/1(261) SY-ULINE.
FORMAT COLOR 4 INTENSIFIED ON.
SERIAL = 1.
SORT RECORD BY LIFNR_001.
LOOP AT RECORD.
WRITE:/ SY-VLINE,
SERIAL LEFT-JUSTIFIED, 007 SY-VLINE,
RECORD-LIFNR_001(016), 023 SY-VLINE,
RECORD-KTOKK_002(004), 041 SY-VLINE,
RECORD-ANRED_003(015), 048 SY-VLINE,
RECORD-NAME1_004(035), 064 SY-VLINE,
RECORD-SORTL_005(010), 076 SY-VLINE,
RECORD-STRAS_006(035), 101 SY-VLINE,
RECORD-PFACH_007(010), 116 SY-VLINE,
RECORD-ORT01_008(035), 129 SY-VLINE,
RECORD-ORT02_009(035), 141 SY-VLINE,
RECORD-LAND1_010(003), 156 SY-VLINE,
RECORD-REGIO_011(003), 166 SY-VLINE,
RECORD-SPRAS_012(002), 180 SY-VLINE,
RECORD-TELF1_013(016), 196 SY-VLINE,
RECORD-TELF2_014(016), 213 SY-VLINE,
RECORD-BANKS_01_015(003), 231 SY-VLINE,
RECORD-BANKL_01_016(015), 241 SY-VLINE,
RECORD-BANKN_01_017(018), 261 SY-VLINE.
WRITE:/(261) SY-ULINE.
SERIAL = SERIAL + 1.
ENDLOOP.
WRITE:/1(261) SY-ULINE.
ENDIF.
SKIP.
FORMAT COLOR 5 INTENSIFIED OFF.
WRITE:/ 'No. of records not uploaded: '.
FORMAT COLOR 4 INTENSIFIED OFF.
WRITE: FAILCOUNT.
*Displaying the error table
IF FAILCOUNT <> 0.
SKIP.
FORMAT COLOR 4 INTENSIFIED OFF.
WRITE:/(320) SY-ULINE,
'Error Records'.
FORMAT COLOR 7 INTENSIFIED ON.
WRITE:/ SY-ULINE, SY-VLINE,
'S.NO', 007 SY-VLINE,
'VENDOR ACC.NUM', 023 SY-VLINE,
'VENDOR ACC GROUP', 041 SY-VLINE,
'TITLE', 048 SY-VLINE,
'VENDOR NAME', 064 SY-VLINE,
'SORT FIELD', 076 SY-VLINE,
'HOUSE NO.& STREET', 101 SY-VLINE,
'PO.BOX NO', 116 SY-VLINE,
'CITY', 129 SY-VLINE,
'DISTRICT', 141 SY-VLINE,
'COUNTRY KEY', 156 SY-VLINE,
'REGION', 166 SY-VLINE,
'LANGUAGE KEY', 180 SY-VLINE,
'TELEPHONE NO 1', 196 SY-VLINE,
'TELEPHONE NO 2', 213 SY-VLINE,
'BANK COUNTRY KEY', 231 SY-VLINE,
'BANK KEY', 241 SY-VLINE,
'BANK ACC.NO', 261 SY-VLINE,
'ERROR MESSAGE', 320 SY-VLINE.
WRITE:/(320) SY-ULINE.
FORMAT COLOR 4 INTENSIFIED ON.
SORT ERRORITAB BY LIFNR_001.
LOOP AT ERRORITAB.
WRITE:/ SY-VLINE,
ERRORITAB-SERIAL LEFT-JUSTIFIED, 007 SY-VLINE,
ERRORITAB-LIFNR_001 , 023 SY-VLINE,
ERRORITAB-KTOKK_002, 041 SY-VLINE,
ERRORITAB-ANRED_003, 048 SY-VLINE,
ERRORITAB-NAME1_004, 064 SY-VLINE,
ERRORITAB-SORTL_005, 076 SY-VLINE,
ERRORITAB-STRAS_006, 101 SY-VLINE,
ERRORITAB-PFACH_007, 116 SY-VLINE,
ERRORITAB-ORT01_008, 129 SY-VLINE,
ERRORITAB-ORT02_009, 141 SY-VLINE,
ERRORITAB-LAND1_010, 156 SY-VLINE,
ERRORITAB-REGIO_011, 166 SY-VLINE,
ERRORITAB-SPRAS_012, 180 SY-VLINE,
ERRORITAB-TELF1_013, 196 SY-VLINE,
ERRORITAB-TELF2_014, 213 SY-VLINE,
ERRORITAB-BANKS_01_015, 231 SY-VLINE,
ERRORITAB-BANKL_01_016, 241 SY-VLINE,
ERRORITAB-BANKN_01_017, 261 SY-VLINE,
ERRORITAB-ERRORMSG, 320 SY-VLINE.
WRITE:/(320) SY-ULINE.
ENDLOOP.
WRITE:/ SY-ULINE.
ENDIF.
hope this ll help you..
regards,
prema.A -
How to print two tables adjacent to each other?
Hi,
Scenario
I have a form with a body page and two tables. The property of the body page is set to 'Flowed', 'top to bottom' as flow direction and the check box for page break is set.
Requirement
The two tables need to be printed adjacent to each other.
Approach followed until now
1. Since the body page is 'Flowed' type, the two tables are placed one below the other (Tab1 & Tab2). So I tried to set the Flow direction of the Body page to 'Western text'. But this did not solve the issue as since it is set to 'western text', only after Tab1 is rendered, table Tab2 starts printing itself, which is not desired. Both the tables should be printed at the same time.
2. I wrapped both the tables in one sub form with 'Type' set to 'Positioned' and set the check box for page break. Now I arranged the tables adjacent to each other. But the check box for page break for both the tables were disabled and because of this if there is not enough space to print the total records of both the tables, the complete tables is shifted to another page leaving the previous page blank.
Kindly suggest how to resolve this issue.
Regards
s@kDear Andres,
I tried as per you suggestion and it works fine. Thanks a lot.
Now adding to this, I am trying to print the 'formatted text'. The tables have two columns. the first column is a normal field and the second column is table having the 'formatted text'.
As per your suggestion, I concatenated the two tables in one table. So the final table has 2 normal fields and 2 tables.
Final table structure:
Column1 Column2(Table) Blank Column3 Column4(Table)
Settings maintained:
I have set the 'Body' row of the table to 'Flowed' with direction as 'Western text' (Top to bottom does not help ).
The settings for Column 2 & 4 (tables) are maintained as:
1. The Table is set to 'Flowed' with direction 'Top to Bottom'.
2. The body row is 'Flowed' with direction 'Western Text'
(The Border 'Edges' for the tables, columns is maintained as 'None')
Issue:
The sample data has around 10 entries in the (final) table. When I try to print the form, if column2(table) is initial, the data in Column3 and 4 are shifted towards Left hand side.
Kindly suggest how to resolve this issue.
Regards
s@k -
How to update database table with this new internal table
hi
i have a internal table having 8 records and it contains one record which was modified by user
not i want this new record to be updated to the database table which was modified by the user
how to do it pls suggest?
i want to use index for comarision as using index will not have any problems like promary key etc
like i want to capture the index for this table which was modified thr recoed index and use thi record indext to modify the database table
or any other suggestion
regards
nishantHi Nishant,
Have an additional field in a table to indicate a change with which you avoid in updating the record modified by user.
Regards,
Madhu. -
How to print a Proe .drw ( Vector Graphic ) file to a printer.
I am having a drawing model (proe .drw file). I want to print this file to a .tif file using java.The print driver is "Informatik Image Driver 3.20".
.Can some one help me out with the steps involved in this.
I understand .drw file are of type Vector Graphic. How to print it.
I also have a corresponding postscript file generated from the .drw file. Is there a way to print this post scritp file to the printer mentioned above to create .tif.
Any quick help will be deeply appreciated.
The postscript file content as below
%!PS-Adobe-2.0
%%BoundingBox: 0 0 1190 841
%%Creator: Pro/ENGINEER
%%Title: c:/temp/xx.plt
%%CreateDate: 18-Mar-10 17:29:28
%%DocumentFonts: Times-Roman
%%EndComments
%%EndProlog
%%Page: ? 1
%%BeginPageSetup
systemdict /setpagedevice known
<</PageSize[1190 841]>> setpagedevice
} if
%%EndPageSetup
newpath
%90 rotate 0 -11.6929 72 mul translate
/m {moveto} def
/l {lineto} def
/rm {rmoveto} def
/rl {rlineto} def
/slw {setlinewidth} def
/srgb {setrgbcolor} def
/sd {setdash} def
/gs {gsave} def
/f {fill} def
/gr {grestore} def
/s {stroke} def
/np {newpath} def
0 setlinecap
2 setlinejoin
0 0 0 srgb
72 72 scale
s
[] 0 sd
s
[] 0 sd
s
0.02 slw
1.21121 0.393701 m
1.21121 11.2992 l
1.21121 0.393701 m
15.3242 0.393701 l
15.3242 11.2992 l
1.21121 11.2992 m
15.3242 11.2992 l
8.01388 7.69355 m
5.49708 7.69355 2.5168 0 360 arc
14.2189 7.69355 m
10.8812 7.69355 3.33771 0 360 arc
8.03498 5.85547 m
7.69023 5.85547 0.344747 0 360 arc
11.1515 5.53362 m
7.81378 5.53362 3.33771 0 360 arc
3.33558 4.07796 m
7.52551 5.0152 4.29347 192.609 398.596 arc
7.44242 10.0908 m
4.1278 2.50717 8.2764 66.3911 106.456 arc
s
0 0 0 srgb
0 rotate
showpage
---------------------------------------------I did try google. But could not get a solution. Any idea what is the doc flavor for .drw file.?
Edited by: ekuriakose on Mar 22, 2010 11:47 PM
Maybe you are looking for
-
i have a requirement to retrieve only selected fields from db table. i have to use this code with jco, so i can't go with ALV. my requirement is as follows, list of fields from mara and marc table will be shown as checkbox and user will be allowed to
-
I'm trying to figure out a way to put some children's songs on the Curve but not in the same folder of MUSIC on my 2 gig media card. I'd rather not have Madagascar play when listening to my favorite tunes! I currently hid them in my RINGTONE folder b
-
Sound Blaster FAQ - READ ALL OF ME BEFORE POSTING - Updated 07/15/05
Sound Blaster FAQ - READ ALL OF ME BEFORE POSTING - Updated 07/15/05 [ Edited ]Options01-24-2005 07:51 AM - last edited on 08-05-2010 07:14 PM by * KokChoy-CL Before Posting: Is your sound card not working? Do you need advice on what to try to fix it
-
In the viewer of FCE, if the time of a clip is say, 18 seconds 15 frames and you mark an in point there, then type +204 (to go forward EXACTLY 2 seconds & 4 frames) it should say 19:19 right--but it says 19:20, it adds one frame every time. I've not
-
Data coming from Three Applications and needs to post into SAP
Hi all, i have scenario like XI needs to take data from 3 Applications and do some validations like data comparision of comman records and post the comman data among the three to SAP. Application1 will send text file and Application2 will send CSV fi