Address formatting in Cheque printing
I am doing an enhancement on Cheque printig to change the address format.I coded a perform to call a subroutine to which i am giving the address number and retrieving the address as ADDRESS-END ADDRESS is causing some issues .but when the subroutine is called it passes address no. in some different format( like XXXXX) rather than actual value.I debugged script and in the particular window the adress no. is displayed as XXXX.i also used CONVERSION_EXIT_ALPHA_INPUT.Any suggestion is highly appreciated.Below is piece of my code
/: DEFINE &GV_NAME& = ' '
/: PERFORM GETADD IN PROGRAM ZRFI_FI110_CHCK_CA
/: USING &GV_ADR&
/:CHANGING &GV_NAME&
/: ENDPERFORM
REPORT ZRFI_FI110_CHCK_CA.
types : gtt_itcsy type standard table of itcsy .
*& Form GETADD
form getadd tables xt_intab type gtt_itcsy
xt_outab type gtt_itcsy.
data: lv_name1 type NAME1,
lv_adrnr type ADRNR,
lwa_input type itcsy,
lwa_output type itcsy,
zadrc type adrc.
read table xt_intab into lwa_input index 1..
lv_adrnr = lwa_input-value. ( here i am getting value of address no. from script as XXXXXXX)
select single * into zadrc from adrc
where addrnumber = lv_adrnr and
date_to >= sy-datum and
nation = space.
lv_name1 = zadrc-name1.
read table xt_outab into lwa_output index 1.
lwa_output-value = lv_name1.
modify xt_outab from lwa_output index 1.
endform.
hi amar,
this is my subroutine. i fetch requiredvalues like this and not using address---endaddress.
form get_ADDRESS TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
DATA : STREET1 LIKE ADRC-STR_SUPPL1,
STREET2 LIKE ADRC-STR_SUPPL2,
STREET3 LIKE ADRC-STR_SUPPL3.
DATA : ZADNR LIKE REGUH-ZADNR.
DATA : LV_ADRNR TYPE AD_ADDRNUM.
DATA : IT_ADRC TYPE ADRC OCCURS 0 WITH HEADER LINE.
*BREAK MTABAP.
READ TABLE IN_TAB INDEX 1.
CONDENSE IN_TAB-VALUE.
MOVE IN_TAB-VALUE TO ZADNR.
MOVE ZADNR TO LV_ADRNR .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = LV_ADRNR
IMPORTING
OUTPUT = LV_ADRNR .
SELECT * FROM ADRC INTO TABLE IT_ADRC
WHERE ADDRNUMBER = LV_ADRNR .
READ TABLE IT_ADRC WITH KEY ADDRNUMBER = LV_ADRNR.
STREET1 = IT_ADRC-STR_SUPPL1.
STREET2 = IT_ADRC-STR_SUPPL2.
STREET3 = IT_ADRC-STR_SUPPL3.
read table OUT_tab index 1.
MOVE STREET1 TO OUT_TAB-VALUE.
CONDENSE OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX 1.
read table OUT_tab index 2.
MOVE STREET2 TO OUT_TAB-VALUE.
CONDENSE OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX 2.
read table OUT_tab index 3.
MOVE STREET3 TO OUT_TAB-VALUE.
CONDENSE OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX 3.
ENDFORM.
in in sapscript , i added,
/: DEFINE &STREET1&.
/: DEFINE &STREET2&.
/: DEFINE &STREET3&.
/: PERFORM GET_ADDRESS IN PROGRAM ZRFFOUS_FORM
/: USING ®UH-ZADNR&.
/: CHANGING &STREET1&.
/: CHANGING &STREET2&.
/: CHANGING &STREET3&.
/: ENDPERFORM.
A6 &SPACE(6)&®UH-ZNME1&
A6 &SPACE(6)&®UH-ZSTRA&
A6 &SPACE(6)&&STREET1&
A6 &SPACE(6)&&STREET2&&SPACE(1)&&STREET3&
A6 &SPACE(6)&®UH-ZORT1&-®UH-ZPSTL&&ADRC-POST_CODE1&
hope this helps u.
Similar Messages
-
Page format regarding cheque printing in SAP SCRIPTS
How to create a page format of our own....so that it prints the contents of that layout exactly into the cheque size?
hi,
you need to go to <b>SPAD</b> transaction.
click of <b>full administration</b>
and then choose tab <b>device types</b>-> and then click on <b>format types</b>.
Regards
vijay -
Vendor Address not getting printed properly in cheque printing.
Hi
While printing the vendor address for the cheque printing, for certain vendors the street no. is not getting printed & for certain vendors PO Box is not getting printed.
In the program we are fetching vendor address from REGUH table & then passing onto the global variables which are being used in the script & data is there in the database table for both street & PO Box number.
The code in the script is as follows:
/: ADDRESS PARAGRAPH UH TYPE '3'
/: TITLE &W_ANRED&
/: NAME &W_ZNAME1&,&W_ZNAME2&,&W_ZNAME3&,&W_ZNAME4&
/: STREET &W_ZSTRA&
/: POBOX &W_ZPFAC& CODE &W_ZPST2& CITY &W_ZPFOR&
/: POSTCODE &W_ZPSTL&
/: CITY &W_ZORT1(28)&
/: COUNTRY &W_ZLAND&
/: FROMCOUNTRY &W_LAND1&
/: ADDRESSNUMBER &W_ZADNR&
/: ENDADDRESS
Can anyone please let me know, what could be the possible reason for this?you can tyr with TYPE '1' or TYPE '2'
: ADDRESS PARAGRAPH UH TYPE '3' -
Issue in Cheque Printing using Laser Printer
Hi,
There is a requirement wherein cheque needs to be printed from F-58 using Laser Printer.I have created the custom page format for Cheque printing .Attached it to the custom device type that i have created(Copy of Device type HPLJIIID).Aslo i have attached the page format to the tray1 of the 'Tray Info' tab of Output devices in SPAD.
I am getting the print information correctly on the cheque but what happens is that the Printer gives an error message saying'Jam in Fuser Area' and the cheque has to be taken out of the rear door of the printer,it doesn't come out automatically.As a result for
printing the next cheque, printer has to be restarted.
Require your help on this.
Regards
VinodHi All,
Forgot to mention one thing.I am making use of script ZF110_PRENUM_CHC (copy of standard script F110_PRENUM_CHCK)
for cheque printing. -
Cheque printing problems on Epson 1520
Hi there,
I am having problems trying to print cheques on an Epson Stylus 150. I have created a 'Z' version of device type EPESCP2. To this device type I have added format ICI (which is the closest match to our cheque size). When I try print some cheques nothing is output to the printer. I am wondering whether I need to change the actions in the format for the Printer intialisation and Reset after exit. Below is what the current entries are which is what I had taken from the actions held in device type DINA4. Does anyone know what should be entered against the actions?
If anyone has any ideas it would be greatly appreciated.
Printer initialisation
reset
\e\0x40
designate codepage IBM 850 for slot 0
\e\0x28\0x74\0x03\0x00\0x00\0x03\0x00
select codepage from slot 0
\e\0x74\0x00
set line spacing 6 LPI
\e\0x32
set page length to DINA4 (=70 lines at 6 LPI)
\e\0x43\0x46
cancel bottom margin
\e\0x4F
set left margin to 0
\e\0x6C\0x00
select LQ quality
\e\0x78\0x01
select non-proportional spacing
\e\0x70\0x00
Reset after exit
no actionHi B. Richards,
To solve these kinda of problems please consultant a BASIS guy who can only help You out.
Are else create a Customized page format for Cheque printing and then create this page format in Device types thru SPAD T-code and then try to print..
Regards,
sg -
Formatting issue in cheque printing
Hello!
We are using automatic payment for cheque printing using smartforms.
The printer is Epson LQ 300 +II and device type is EPESCP9.Printing was ok with EPESCP2 as well.
The cheque is printing perfect on QAS Server but when we print it in Production server,
one secondary window containig field (Amout figure) formatting is getting corrupted.
In print preview it shows field at right place but printer send it deep down another secondary window when printing.
Both secondary windows are not overlapping.
If I open smartform in PRD,it shows field at right place.
Its very urgent-cheques getting delayed ,so any suggestions would be welcomed.
Best Regards
NoumanHi Nouman,
Check with the printer admin the width and height the printer can print. This is important because the width you have set in smartform is more than the printer capable width.
Next check the page layout which you have used probably you might have used custom page format.
Check the above in SPAD transaction code.
If it is above then just reduce the width and height of the windows you have used in smartforms.
BR
Dep -
Hi
I need a solution to print the cheque directly to the printer(exclusively used for printing Cheque printer name HPLASER) from R12,
As of know once the conc program Format Payment Instructions is completed normal, I click the view button to view the output and print the same by selecting the printer name, the data are printed in the preprinted format as expected.
New requriment : I have configured the printer style and printer name to the conc program Format Payment Instructions, once the conc program is completed with normal the cheque is printed in the specified printer but the alingment is misplaced.
Can you pls provide your suggestion on this.
Regards
YramHi;
I need a solution to print the cheque directly to the printer(exclusively used for printing Cheque printer name HPLASER) from R12, What is your OS?
You should follow those steps:
- Setup the printer at the OS level
- Add a valid entry in the hosts file (Printer Name and the IP Address)
- Login to System Administrator responsibility
- Navigate to Install > Printer > Register
- Define a new printer by entering the Printer Name you have set in the hosts file
- Save
- Bounce the Concurrent Manager
- Submit any standard concurrent request
Also see:
How to Implement Printing for Oracle Applications: Getting Started [ID 269129.1]
Regard
Helios -
Dear All Gurrus
i am facing an Abap Dump when user send cheque Printing .other document printing are Ok .please see this error
Runtime errors LOAD_PROGRAM_NOT_FOUND
Occurred on 04.06.2007 at 16:18:50
Program " " not found.
What happened?
There are several possible reasons for the error:
or
The current ABAP program had to be terminated because the
ABAP processor detected an internal system error.
The current ABAP program "SAPLF028" had to be terminated because the ABAP
processor discovered an invalid system state.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that 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.
Error analysis
On account of a branch in the program
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
or a transaction call, another ABAP/4 program
is to be loaded, namely " ".
However, program " " does not exist in the library.
Possible reasons:
a) Wrong program name specified in an external PERFORM or
SUBMIT or, when defining a new transaction, a new
dialog module or a new function module.
b) Transport error
b) Transport error
How to correct the error
Check the last transports to the R/3 System.
Are changes currently being made to the program "SAPLF028"?
Has the correct program been entered in table TSTC for Transaction "FBZ4 "?
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"LOAD_PROGRAM_NOT_FOUND" C
"SAPLF028" or "LF028U06"
"PAYMENT_FORM_PRINT"
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.
System environment
SAP Release.............. "620"
Application server....... "PKSAPT10"
Network address.......... "184.208.96.235"
Operating system......... "Windows NT"
Release.................. "5.0"
Hardware type............ "4x Intel 801586"
Character length......... 8 Bits
Pointer length........... 32 Bits
Work process number...... 0
Short dump setting....... "full"
Database server.......... "PKSAPT10"
Database type............ "MSSQL"
Database name............ "T10"
Database owner........... "t10"
Character set............ "English_United State"
SAP kernel............... "640"
Created on............... "Oct 29 2006 23:44:46"
Created in............... "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
Database version......... "SQL_Server_8.00 "
Patch level.............. "155"
Patch text............... " "
Supported environment....
Database................. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
SAP database version..... "640"
Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
User, transaction...
Client.............. 210
User................ "AGHAZNAVI"
Language key........ "E"
Transaction......... "FBZ4 "
Program............. "SAPLF028"
Screen.............. "SAPMF05A 0700"
Screen line......... 43
Information on where terminated
The termination occurred in the ABAP program "SAPLF028" in
"PAYMENT_FORM_PRINT".
The main program was "SAPMF05A ".
The termination occurred in line 332 of the source code of the (Include)
program "LF028U06"
of the source code of program "LF028U06" (when calling the editor 3320).
Source code extract
003020 IF sy-subrc NE 0 "bei nicht in PAYR vorhandenen o.
003030 AND payr-vblnr EQ reguh-vblnr. "durch FCH7 (Scheck neu drucken)
003040 opayf-pstap = 0. "in Auftrag gegebene Schecks wird
003050 ELSE. "der Stapel mitgegeben, sonst die
003060 CLEAR payr. "Restart-Schecknummer aus PAYR
003070 ENDIF.
003080
003090 IF t042z-formi IS INITIAL. "alte Zahlungsträger (nur Scheck)
003100 SUBMIT (t042z-progn) WITH zw_laufd = reguh-laufd
003110 WITH zw_laufi = reguh-laufi
003120 WITH zw_zbukr = reguh-zbukr
003130 WITH zw_xvorl = space
003140 WITH sel_zawe = i_opayf-rzawe
003150 WITH par_zdru = 'X'
003160 WITH par_priz = i_opayf-ppriz
003170 WITH par_zfor = i_opayf-pzfor
003180 WITH par_avis = i_opayf-pavis
003190 WITH par_pria = i_opayf-ppria
003200 WITH par_stap = i_opayf-pstap
003210 WITH par_rchk = payr-chect
003220 WITH par_begl = space
003230 WITH sel_hbki = reguh-hbkid
003240 WITH sel_hkti = reguh-hktid
003250 WITH par_anzp = par_anzp
003260 WITH par_fill = i_opayf-pfill
003270 WITH par_espr = i_opayf-pespr
003280 WITH par_isoc = i_opayf-pisoc
003290 WITH par_sofo = i_opayf-psofo
003300 WITH par_novo = i_opayf-xnovo
003310 AND RETURN.
ELSE. "neue Zahlungsträger (z.Zt. nur OFX)
003330 CALL FUNCTION 'PAYMENT_MEDIUM_ONLINE'
003340 EXPORTING
003350 im_formi = t042z-formi
003360 im_reguh = reguh
003370 im_opayf = i_opayf
003380 TABLES
003390 tb_regup = xregup.
003400 ENDIF.
003410
003420 ENDFUNCTION.
Contents of system fields
SY field contents..................... SY field contents.....................
SY-SUBRC 4 SY-INDEX 0
SY-TABIX 1 SY-DBCNT 1
SY-FDPOS 0 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1 SY-PFKEY UAN
SY-UCOMM BU
SY-TITLE Payment with Printout: Display Overview
SY-MSGTY I SY-MSGID F5
SY-MSGNO 312 SY-MSGV1 1500000011
SY-MSGV2 KOPK SY-MSGV3
SY-MSGV4
Active calls / events
No.... Type........ Name..........................
Program
Include Line
Class
4 FUNCTION PAYMENT_FORM_PRINT
SAPLF028
LF028U06 332
3 FORM FCODE_BEARBEITUNG
SAPMF05A
MF05AFF0_FCODE_BEARBEITUNG 2333
2 FORM FUSSZEILE_VERARBEITEN
SAPMF05A
MF05AFF0_FUSSZEILE_VERARBEITEN 148
1 MODULE (PAI) FUSSZEILE_BEARBEITEN
SAPMF05A
MF05AI00_FUSSZEILE_BEARBEITEN 46
Chosen variables
4 FUNCTION PAYMENT_FORM_PRINT
SAPLF028
LF028U06 332
I_CC_CURR PKR
54522
0B200
I_OPAYF KOPKLOCL 0002 XCCIT
4454444422222222222222222222233332254445
BF0BCF3C00000000000000000000000020083394
... + 40 IH X 0001000005
4422522222222222333333333322222222222222
9800800000000000000100000500000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120 00000000000000
2222222222222222222222233333333333333
0000000000000000000000000000000000000
I_REPRI
2
0
I_VBLNR 1500000011
3333333333
1500000011
I_WWERT 20070604
33333333
20070604
REGUH-LAUFI 00001*
333332
00001A
<%_TABLE_LFA1> ???
REGUH-ZBUKR KOPK
4454
BF0B
I_OPAYF-RZAWE C
4
3
I_OPAYF-PPRIZ LOCL
4444
CF3C
I_OPAYF-PZFOR
2222222222222222
0000000000000000
I_OPAYF-PAVIS
2
0
I_OPAYF-PPRIA
2222
0000
I_OPAYF-PSTAP 0002
3333
0002
PAYR-CHECT
2222222222222
0000000000000
REGUH-HBKID CITIH
44544
39498
REGUH-HKTID CTOLH
45444
34FC8
PAR_ANZP 0
3
0
I_OPAYF-PFILL
2
0
I_OPAYF-PESPR
2
0
I_OPAYF-PISOC
2
0
I_OPAYF-PSOFO X
5
8
I_OPAYF-XNOVO
2
0
%_PRINT 000
2222333222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80 0 ########
2222222222320000000022222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160 0 ####
222222222222223222222222222222220000
000000000000000000000000000000000000
KNBK-KOINH
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
22222222222222222222
00000000000000000000
T042Z-FORMI
222222222222222222222222222222
000000000000000000000000000000
<%_TABLE_T012> ???
REGUH 2007060400001* KOPK0001000005
2223333333333333224454333333333322222222
0002007060400001A0BF0B000100000500000000
... + 40 1500000011 PKR LHP1Co
2222222222222222223333333333254522445346
000000000000000000150000001100B200C8013F
... + 80 mpany Supreme Gas Ind. Pvt. Ltd
6766722222222577766624672466225772247622
D01E90000000035025D5071309E4E0064E0C4400
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240 Lahore
222466676222222
000C18F25000000
SYST-REPID SAPLF028
5454433322222222222222222222222222222222
310C602800000000000000000000000000000000
T042I-HBKID CITIH
44544
39498
XREGUP[] Table IT_1065[1x1184]
3 FORM FCODE_BEARBEITUNG
SAPMF05A
MF05AFF0_FCODE_BEARBEITUNG 2333
%_SPACE
2
0
RC 0
0000
0000
SYST-REPID SAPMF05A
5454433422222222222222222222222222222222
310D605100000000000000000000000000000000
SY-REPID SAPMF05A
5454433422222222222222222222222222222222
310D605100000000000000000000000000000000
VORSCHL_GRIRG
222
000
XBKPF-BELNR 1500000011
3333333333
1500000011
%_DUMMY$$
2222
0000
VAKTAB
222222222222222222222222222222
000000000000000000000000000000
XBKPF-BUKRS KOPK
4454
BF0B
VORSCHL_GITYP
22
00
XBKPF-GJAHR 2007
3333
2007
C_INFO_LINK 100
333
100
BKPF 210KOPK15000000112007KZ20070604200706040
3334454333333333333334533333333333333333
210BF0B15000000112007BA20070604200706040
... + 40 620070604161846000000000000000020070604A
3333333333333333333333333333333333333334
6200706041618460000000000000000200706041
... + 80 GHAZNAVI FBZ4
4445445422244532222222222222222222222222
781AE16900062A40000000000000000000000000
... + 120 12345
2222222333332222222222222222222222222222
0000000123450000000000000000000000000000
... + 160 0000 PKR ###
2223333222222222222222222222222254522000
000000000000000000000000000000000B200000
... + 200 ## ##### ####### RFBU
0022222000002200000002544522222222222222
0C000000000C00000000C0262500000000000000
... + 240
222222222222222
000000000000000
BSEG 210KOPK15000000112007002 000000000000000
3334454333333333333333332333333333333333
210BF0B150000001120070020000000000000000
... + 40 0 25K SLHP1 ##########
3222222222233422254453222222220001000000
0000000000025B0003C80100000000000000C000
... + 80 ##################PKR #################
1000000000000010005452200000000000000000
000C000000C000000C0B200000000C000000C000
... + 120 #######################################
0000000000000000000000000000000000000002
000C000000C000000C000000C000000C000000C0
... + 160 000 ###############################
2223332220000000000000000000000000000000
000000000000000C0000C000000C000000C00000
... + 200 ##0000000020070427
0033333333333333332222222222222222222222
0C00000000200704270000000000000000000000
... + 240
222222222222222
000000000000000
SY-SUBRC 4
0000
4000
%_ARCHIVE
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
SAPOS-GITYP
22
00
T001-WAERS PKR
54522
0B200
SAPOS-GRICD
22
00
OPAYF KOPKLOCL 0002 XCCIT
4454444422222222222222222222233332254445
BF0BCF3C00000000000000000000000020083394
... + 40 IH X 0001000005
4422522222222222333333333322222222222222
9800800000000000000100000500000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120 00000000000000
2222222222222222222222233333333333333
0000000000000000000000000000000000000
SAPOS-GRIRG
222
000
RF05A-KOATX
222222222222
000000000000
BKPF-WWERT 20070604
33333333
20070604
SY-XFORM CONVERSION_EXIT
444545544454545222222222222222
3FE65239FEF5894000000000000000
SY-MSGID F5
43222222222222222222
65000000000000000000
ANL_HKONT
2222222222
0000000000
T001W
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240 #
222222222222220
000000000000000
SPACE
2
0
SY-MSGNO 312
333Specification of form is missing in pmnt method C for comp.code KOPK
In the include program RFFORI01 the query "SELECT * FROM t042z WHERE land1 EQ t001-land1 AND zlsch IN sel_zawe AND progn EQ sy-repid" is returning a null value for progn. This null value is passed to "003100 SUBMIT (t042z-progn) WITH zw_laufd = reguh-laufd" (Refer to the short dump).
Refer to IMG for adding specification of form.
Regards,
Khalid Mustafa
Development Consultant Netweaver-ABAP -
Hi All,
Can anybody help me out to do the AP cheque printing report using XML Publisher.
Followings are the steps I did.
1. Create rdf and register in APPS.
Executable is defined in Customization AP application
Concurrent Program is in Payables application.
2. Create Data Definition and Template in XML Publisher administrator in Payables.
3. Attached the Concurrent program in AP Format set up.
4. Make the Payment, The report is calling and showing completed normal but the output is not coming.
5. Then I run the XML report Publisher and pass the request id then the output is coming as PDF.
But the requirement is when we make the payment , The output should come and it will go to the printer for printing..
Please help me where I made the mistake.
or please guide me what approach I should follow.
Thanks in Advance.
PradiptaHere is my code:
function AfterReport return boolean is
vrequest_id number;
v_success BOOLEAN;
v_printer fnd_concurrent_requests.printer%TYPE;
v_print_style fnd_concurrent_requests.print_style%TYPE;
begin
-- Set up printer for the following reports
-- Get the printer and style for this report for use with the following reports select printer, print_style
into v_printer, v_print_style
from fnd_concurrent_requests
where request_id = :P_CONC_REQUEST_ID;
srw.message(999, 'Print options: ' || v_printer || '/' || v_print_style);
v_success := fnd_request.set_print_options (v_printer
,v_print_style
,1
,TRUE
,'N'
,'SKIP'); IF NOT v_success THEN
srw.message(999, 'Failure to set print options'); ELSE
srw.message(999, 'Print options set'); end if;
-- Submit the XML Report Publisher request to complete the printed Dunning Letters
vrequest_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
'XDOREPPB',
NULL,
NULL,
FALSE,
:P_CONC_REQUEST_ID,
222, -- Receivables
'XX_ARDLPPRT_RPT',
'en', 'N', 'RTF', 'PDF', NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- commit to submit request
commit;
IF vrequest_id = 0 THEN -- if request id
srw.message(999, 'Failure to submit Concurrent Request to Print Dunning Letters');
ELSE
srw.message(999, 'request id ' || to_char(vrequest_id) || ' submitted');
end if;
-- Original Afterreport trigger stuff
SRW.DO_SQL('alter session set sql_trace false');
return (TRUE);
end; -
How to create an custom template for cheque printing layout?
Hi, I have a question about cheque printing format set up in SAP Business One.
All the the system standard templates in u201CCheque print lay out designeru201Dare u201Ccheque-stub-stubu201D or u201Cstub-cheque-stubu201D or u201Cstub-stub-chequeu201D (three portions). What I need is u201Ccheque-stubu201D (two portions)only. Anyone knows how to create an custom template?
Thanks.
Edited by: Angela Zhang on Jan 17, 2010 7:18 AM
Edited by: Angela Zhang on Jan 17, 2010 7:18 AMHi Angela,
Check the thread,
Re: Preprint AP check - stub/check repetitive area fram size
CHECK PRINTING
Re: check/cheque for payment printing posting date on stub
PLD Check-Stub-Stub
PLD Check
PLD Multiple Check printing
Regards,
Madhan. -
Cheque print from F110 (Automatic Payment Transaction)
Hello Friends,
I have a requirement to print the cheque from t.code F110 (Automatic Payment Transactions).
Normally when run Auto payment from F110 it will give A4 size print out at top having Address details and then item details, and finally Cheque data will print.
But our requirement is only Cheque print, we dont want to print total page.
For this Script is F110_PRENUM_CHCK and print program is RFFOUS_C.
can any one suggest me how to solve this issue.
Regards,HI,
carry out the following changes with the help of the functinal guy around.
In F110 goto the Printout/data medium tab, there click on the Variant name against pgm - RFFOUS_C, say it is Z_VAR1, now click on the 'Maintain Variants' (pushbutton on tool bar)
This will take you to the Variant screen of this pgm,
Under the 'Print control' block deselect the 'Print payment summary'
Under the 'Output control' block change the value of 'Number of Sample printouts' to 1.
Hope this helps. -
Cheque Print. issue (urgent)
Dear all,
Iam facing an issue related to cheque print.
We are using T-code FBZ5 to print cheque when ever we are issuing check system updates cheque number in reference field of payment Document.
But from the 01.04.2008 system not updating check number on reference field properly for some document it is updating for some documents it is not.
Plz help me to solve this issue because of this our BRS get effected.
I will assign points
Thanks in advance.
SU*Dear Umar,
please check with your ABAP consultant.
this is purly ABAP related thing in the print format you are not
consider the date of the Clearing Document, because of that some times system is up dated last year Doc. with same Doc. no.
this is the field name REGUP
Regards
radha -
Problem with Continous Cheque printing
Requirement:
Continous printing of cheques through FBZ5 on Epson LQ 2180 printer without Tearing.
Cheque lengths:
Width: 240 MM
Height: 93 MM
Actions performed:
Created the Page size , Page Format, Device Types, Formats
Also changed in SAP script for the Page format.
Now from fbz5
If I give the printout for the Cheque,(print privew we can see the exact size as configured for ZCHEQUE) but It prints on that page properly but after print it ejects A4 size.
Because of this situation I can not give continuous printout for the Cheque,
At present we are performing following action.
After printout of each individual check we need to tear off and again load the page .
Printer used is : EPSON LQ 2180.
Please HelpHi Friend,
Please check where u copy action from standard Page format i,e, DIN4 to ur custamize page format.
If not then copy it from copy button and use SAPWIN printer driver.
Step 1 : GOTO 'SPAD' TC.
Step 2: Device type 'SAPWIN'
3 : Assign format 'Z..'
4 : Copy Action from 'DIN4'
5:save and use that driver for printing.
Replay me if any problem -
Preventing empty rows in address formats
Hallo everyone!
I'd like to know if there is a method to prevent SBO2005A from printing empty rows in the address fields when for instance there is missing county in BP addresses like this:
I have defined an address format that goes
Block
County
Street
ZipCode | Freetext(" ") | City
We use Block as "Name2" and County as "Name3" in master data just in case the customer wants to use additional names for his BPs.
If I use the "Block" - field and I leave the "County" - field blank it prints an empty row between "Block" and "Street". This is not the behaviour I would like to see. In case "county" is missing I would rather see something like this in a printout:
Block
Street
ZipCode | Freetext(" ") | City
So, is there a method to force this? or any workaround?Hello Patryk,
PLD does not offer the functionality to control the blank lines in an address field. I would suggest you use a formatted search in your address field on the marketing document and have it formatted in the document itself before you print.
Please see sample code for your requirment for the Ship to address. If you want this to applied to the Bill to address field then you have to slight alter the query by cha
For Shipto address formatting
SELECT CASE WHEN T0.Block IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.Block + CHAR(13) + CHAR(10) ELSE '' END +
CASE WHEN T0.County IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.County + CHAR(13) + CHAR(10) ELSE '' END +
ISNULL(T0.Street, '') + CHAR(13) + CHAR(10) + ISNULL(T0.ZipCode, '') + ' ' + ISNULL(T0.City, '')
FROM [dbo].[CRD1] T0 WHERE T0.AdresType = 'S' AND T0.Address = $[$40.0.0] AND T0.CardCode = $[$4.0.0]
For Billto address formatting
SELECT CASE WHEN T0.Block IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.Block + CHAR(13) + CHAR(10) ELSE '' END +
CASE WHEN T0.County IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.County + CHAR(13) + CHAR(10) ELSE '' END +
ISNULL(T0.Street, '') + CHAR(13) + CHAR(10) + ISNULL(T0.ZipCode, '') + ' ' + ISNULL(T0.City, '')
FROM [dbo].[CRD1] T0 WHERE T0.AdresType = 'B' AND T0.Address = $[$226.0.0] AND T0.CardCode = $[$4.0.0]
Suda -
Hi experts,
I need to split a string into characters which are later assigned into a data structure of an internal table.For example,string 'abcd' split into 'a','b','c','d' which is assigned to component1...component2 of a structure.
What am trying to do is regarding cheque printing,where for an amount in the check I need to write the place values in words.For instance,2561 should be written as :
Hundred Million Ten Million Million Hundred Thousand Ten Thousand Thousand Hundred Tens Units
TWO FIVE SIX ONE
So I'm splitting the figure into characters and writing a CASE ENDCASE to write in words.
Someone help me brainstorm on this.Given the function text you included, I assume that you have customised one of the APXPBF??.rdf files for your cheque format.
From the logic in the standard C_WORD_AMOUNT column (APXPBFOR.rdf), the * you are getting is used for padding the value to the width of the layout field that the column is displayed in. If the layout field is 40 characters wide, then you shouldn't be changing the width to 44 in your code.
Have you checked whether the output file for the request is correct or not? It is possible that it is an issue with printing the file, rather than generating the file.
If the output file doesn't have the right output, I would suggest that you add some srw.message(0, '<debug message>') type calls at various points in your code - these debug messages will appear in the log file and will help you check the actual content of the word amount column, independently of the formatting used to display it on the output.
If the problem was with the prt file (which defines the maximum character width of the output for the printer driver), I would have thought that you would be having the concurrent request failing with error (something like "Body does not fit within enclosing object" from memory) rather than just cutting off the results.
Maybe you are looking for
-
Error while trying to open Postinstall.exe in Windows 7
I am using Cisco Agent Desktop ver 7.6(2) and Windows 7 (32 bit ). While tyring to open Postinstall .exe from bin folder I get the following error message : "The procedure entry point NetApiBufferAllocate could not be located in the dynamic link lib
-
When should I purchase a new Macbook Pro?
I bought my current regular Macbook in March 2008. The current specs on it is follows: 2GHz Intel Core 2 Duo 1 GB 667 MHz DDR2 SDRAM 80GB Storage (32 GB free currently) The only problems I have with it: I have a small crack on the side where the appl
-
Shutdown problems with external monitor
Hello. I'm running Mavericks on my 2012 Macbook Air, running in clamshell mode with an Asus display connected from the Air's Thunderbolt port to the displays DVI port. My Macbook will not shutdown, unless I disconnect the external monitor. This did
-
Finding Gaps in the date field.
Hello, I have a date field in a table which has date values incremented every month for 5 years. I have to find out the any gaps between the months that is the entry for some month is not there. eg. the data is as follows, i have entries for dec mont
-
Diff between Oracle 9i and 10g with date format MON in FRENCH language
Hi, With a session in FRENCH language, when i do: SQL> select to_char(sysdate,'dd-mon-yyyy') from dual; The result in 10g is: TO_CHAR(SYSDA 27-juil.-2005 The result in 9i is: TO_CHAR(SYS 28-jul-2005 Where is the problem and how can i have the same re