10-20-2015 6:17 PM
Hi Experts,
I am bit new to FI Module, here the requiremeent is when ever excute(run) tcode F.27 the periodic acct stament to sending the statement to customer and notification send to accounting clerk .
how to develop BTE enhancement. Can you please give some idea, thanks in advance
10-20-2015 6:45 PM
Hi,
Implement BTE 00002310
1) Go to FIBF
2) Setting >> product>>of a Customer:
Create an entry with Product/Text and Activate
3) Settings> Process Module>> of a Customer:
Select Process 00002310 ..enter your Function Module
(here is your logic to pick up email address and change output to email (finaa-nacha = 'I'.),
and enter Product created in step 2).
thanks!!
10-20-2015 6:45 PM
Hi,
Implement BTE 00002310
1) Go to FIBF
2) Setting >> product>>of a Customer:
Create an entry with Product/Text and Activate
3) Settings> Process Module>> of a Customer:
Select Process 00002310 ..enter your Function Module
(here is your logic to pick up email address and change output to email (finaa-nacha = 'I'.),
and enter Product created in step 2).
thanks!!
10-20-2015 6:59 PM
thank you aditya,
can you explain clearly how do write code and sending mail to customer of open items using bsid table etc
finaa-nacha = 'I' from where we are getting (,table) this data
10-20-2015 7:07 PM
follow the steps...
Copy and change this module and register your module in Transaction FIBF via 'Settings -> Process function modules of a customer' for Event 00002310 with the application indicator (as a rule FI-FI, in table MHNK-APPLIK).
The related 'Product of a customer' must be set up and activated.
The exit is accessed for every dunning notice, and the transferred data in the exit can be used to decide how the dunning notice will be sent.
The exit has to set field C_FINAA-NACHA as follows:
C_FINAA-NACHA = '1'. " Print
C_FINAA-NACHA = '2'. " FAX
C_FINAA-NACHA = 'I'. " Internet
You can make this assignment accordingly directly at the beginning of the function module.
Fill fields C_FINAA-TDTELENUM and C_FINAA-TDTELELAND with the number of the fax recipient
or fill field C_FINAA-INTAD with the Internet address.
It can be transferred from fields KNA1-LAND1 and KNA1-TELFX, or also from KNB1-TLFXS.
thanks!!
10-20-2015 7:09 PM
open Fm SAMPLE_ PROCESS_00002310 in SE37 i.e function builder..
go through the interface and documentation.
10-22-2015 6:55 AM
Hi Aditya,
i have gone thru Fm SAMPLE_ PROCESS_00002310 in SE37 i.e function builder.. I understood the interface of FM.
when f.27 tcode is run it has created on spool request . in sp01 tode i can see that pdf data by spoor request number.
here requirement is need to send the PDF format through email maintained in customer master when i run f.27 mails should be send automatically.
can you tell explain how design code please .
10-22-2015 8:26 AM
10-27-2015 12:36 PM
hi aditya ,
i have written code like this . it is workign but my doubt here i passed LS_ADR6-SMTP_ADDR Instead of wa_knbb1-intad. is it ok or need to pass knb1 table.
DATA : V_ADR6 TYPE ADR6.
SELECT SINGLE * FROM ADR6 INTO V_ADR6 ."UP TO 1 ROWS.
C_FINAA-INTAD = LS_ADR6-SMTP_ADDR.
C_FINAA-NACHA = 'I'.
10-28-2015 3:46 AM
hi,
what is LS_ADR6 here.. ??
I believe you are fetching the single record in V_ADR6 and on what condition you are fetching the record from ADR6 to meet the expected mail address.
C_FINAA-INTAD >> this field holds email address.. so you can pass the email address in any way that will not create any issue.
refer the following code :
read complete address
call function 'ADDR_GET_COMPLETE'
exporting
addrnumber = <address number>
importing
addr1_complete = l_addr1_complete " deep structure
exceptions
others = 4.
if sy-subrc eq 0.
* check that internet address is available
read table l_addr1_complete-adsmtp_tab into l_adsmtp_line index 1.
if sy-subrc eq 0 and not l_adsmtp_line-adsmtp-smtp_addr is initial.
* choose message type 'I'nternet and fill email address
c_finaa-nacha = 'I'.
c_finaa-intad = l_adsmtp_line-adsmtp-smtp_addr.
*for multiple mail ids.
concatenate l_adsmtp_line-adsmtp-smtp_addr 'test@abcde.com'
into lv_email separated by space.
c_finaa-intad = lv_email.
thanks!!
10-28-2015 5:47 AM
Hi aditya ,
my code is working fine but spool is not created, can you help in this
10-28-2015 7:26 AM
hi,
you are sending an e-mail not printing any document then how come spool request will generate..
where you have mentioned the transmission medium
NACHA = 1. for printout
C_FINAA-NACHA = '1'. " Print
C_FINAA-NACHA = '2'. " FAX
C_FINAA-NACHA = 'I'. " Internet
post your code or screen shot of SAMPLE FM where you have written the code.
thank you!!
10-28-2015 7:39 AM
Hi Aditya,
i followed you what u suggested. it is working in debugging mode but mail is not going. but functional mailed me he want spool number also...
TYPE-POOLS szadr.
DATA: l_addr1_complete TYPE szadr_addr1_complete,
l_adsmtp_line TYPE szadr_adsmtp_line.
* l_smtp_addr type adr6-smtp_addr,
* i_adr6 type adr6.
* clear l_smtp_addr.
CALL FUNCTION 'ADDR_GET_COMPLETE'
EXPORTING
ADDRNUMBER = I_KNA1-ADRNR
IMPORTING
ADDR1_COMPLETE = l_addr1_complete
EXCEPTIONS
OTHERS = 5
.
IF sy-subrc = 0.
read table l_addr1_complete-adsmtp_tab into l_adsmtp_line index 1.
if sy-subrc eq 0 and not l_adsmtp_line-adsmtp-smtp_addr is initial.
* choose message type 'I'nternet and fill email address
c_finaa-nacha = 'I'.
c_finaa-intad = l_adsmtp_line-adsmtp-smtp_addr.
endif.
ENDIF.
ENDFUNCTION.
10-28-2015 8:01 AM
hi,
I am afraid you can't achieve both spool request and triggering the mail at same time..
but you can modify your code something like the code mentioned below.. if E-mail address is missing.. then print it..
something based on conditions..
please consult your functional first and do tell him the limitations, I believe he must me aware of the BTE 2310.
if sy-subrc = 0.
if v_email_id <> space.
c_finaa-intad = v_email_id.
c_finaa-nacha = 'I'. " Internet
else.
c_finaa-intad = space.
c_finaa-nacha = '1'. " print
endif.
thanks!!
10-28-2015 9:48 AM
hi adi,
The below code working fine in debugging but mail has not triggering ,can you pl suggest me
DATA : L_ADR6 TYPE ADR6.
SELECT SINGLE * FROM ADR6 INTO L_ADR6
where ADDRNUMBER = i_kna1-adrnr .
C_FINAA-NACHA = 'I'.
C_FINAA-INTAD = L_ADR6-SMTP_ADDR.
this fm raise error (internal error) sy-subrc = 20.
fm:SO_OBJECT_SEND
10-30-2015 4:37 AM
hi,
if your issue has been resolved then please mark helpful/correct answers and close this thread
so others can also refer it.
thank you!!
regards
Aditya
10-30-2015 6:30 AM
Hi Expert,
hi abapers,
i have developed BTE ZSAMPLE_PROCESS_00002310 for triggering mail with attachement to customer now requirement has changed like if customer has 2 or more than mail id's when ever f.27 tcode execute mail will trigger to all mail id's( 2 or more).pl suggest me its bit urgent.