on 09-22-2009 2:11 PM
Hello Gurus,
Using the forum posts, I have implemented sending dunning letters per email.
I want that if the debitor email address is empty then the dunning letter is printed by paper.
I tried modifiyng user exit EXIT_SAPF150D_001 so that if the email address is empty, the output device is set to '1', that is printer: FINAA-NACHA = '1'
So I create a dunning run (F150) as usual, selects the ouput device 'EMAIL' (created for email output)
For customers without email address, there is a spool request created but it does not come out of the printer, it still contains the original output device 'EMAIL'. I don't know if I need more coding in the user exit or...
Thank you for your help.
Alex-
have you checked the value of LDEST during this procedure? this has to filled with printer name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I solved my problem the following way:
- not use a specific EMAIL output device
- use the usual paper printer device but in the user exit, add such code:
IF T047E-LISTN = 'NET'. "Internet für die Mahnstufe gewünscht
IF SAVE_INTAD NE SPACE. "Internetadresse gepflegt
FINAA-NACHA = 'I'. "Ausgabe über Internet
FINAA-INTAD = SAVE_INTAD.
FINAA-TEXTF = 'PDF'.
ELSE.
FINAA-NACHA = '1'. "Ausgabe auf Drucker
ENDIF.
ELSE.
IF T047E-LISTN = 'FAX' "Fax für die Mahnstufe gewünscht
....
The first test (T047E-LISTN = 'NET') is an attribure of the dunning form: T.code FBMA --> dunning texts.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.