cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform for F.27 (Send customer statements)

Former Member
0 Kudos

Hai All,

I have a requirement where in i have to use TCODE F.27 to create the spool req.It should be able to send to external email ; Also be able to fax;.

Can any body help me in this.I need to have a smartform to support this.

1.Do we have any standard customer statements?

2.Do we have any standard forms?

Plz mark this is urgent,send in any comments.

Regards,

Arun.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

good

go through this link , which ll give you detail idea about the F.27.

http://web.mit.edu/CAO/www/SB2002/AR/F-27.htm

thanks

mrutyun^

Former Member
0 Kudos

Yaa i understand ,but what i am asking is dont we have a standard form like that of medruck

1.do i have to create new form according to client requirement or is there a standard form like medruck for customer statements.

2.Can you explain me right from the scrap how i could go to solve these.

Regards,

arun

Former Member
0 Kudos

hi

good

go through this link , which ll give you detail idea about the F.27.

thanks

mrutyun^

Former Member
0 Kudos

for this req.

u should configure the nace output types values 1,2,5

1 - printout

2 - FAX

3 - eMAIL.

option is already coming for rest

use following code

&----


*& Form nacha_5

&----


  • Send the Form as an Email

----


  • -->P_FOUND Flag 'X' if sub routine is found

----


FORM nacha_5 USING write_out TYPE xfeld

CHANGING p_found TYPE xfeld.

DATA : lv_mail_id TYPE so_name,

lv_mail_tp TYPE so_escape VALUE 'U',

l_subrc TYPE sy-subrc.

p_found = 'X'.

  • Get the Mail ID from the Control Table

lv_mail_id = t_ctrl_app-recipient.

  • Create The Recipient Object

CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'

EXPORTING

ip_mailaddr = lv_mail_id

ip_type_id = lv_mail_tp

IMPORTING

ep_recipient_id = w_recipient

EXCEPTIONS

invalid_recipient = 1

OTHERS = 2.

IF sy-subrc NE 0.

IF write_out = 'X'.

FORMAT COLOR 6.

WRITE AT /5 text-001.

ENDIF.

RAISE other.

ENDIF.

  • Create The Sender Object

CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'

EXPORTING

ip_sender = sy-uname

IMPORTING

ep_sender_id = w_sender

EXCEPTIONS

invalid_sender = 1

OTHERS = 2.

IF sy-subrc NE 0.

IF write_out = 'X'.

FORMAT COLOR 6.

WRITE AT /5 text-002.

ENDIF.

RAISE other.

ENDIF.

  • Populate the Control Data & Title

w_sf_control-device = 'MAIL'.

w_sf_control-no_dialog = 'X'.

w_sf_control-langu = t_ctrl_app-spras.

***************************************************

Nacha = 2

  • Populate the Fax Number and the country.

Data : lv_fax_tp TYPE so_escape VALUE 'F',

lv_fax = t_ctrl_app-recipient.

lv_land1 = t_ctrl_app-country.

  • Create the Recipient Object

CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'

EXPORTING

ip_country = lv_land1

ip_faxno = lv_fax

ip_type_id = lv_fax_tp

IMPORTING

ep_recipient_id = w_recipient

EXCEPTIONS

invalid_recipient = 1

OTHERS = 2.

IF sy-subrc NE 0.

IF write_out = 'X'.

FORMAT COLOR 6.

WRITE AT /5 text-004.

ENDIF.

RAISE other.

ENDIF.

  • Create The Sender Object

CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'

EXPORTING

ip_sender = sy-uname

IMPORTING

ep_sender_id = w_sender

EXCEPTIONS

invalid_sender = 1

OTHERS = 2.

IF sy-subrc NE 0.

IF write_out = 'X'.

FORMAT COLOR 6.

WRITE AT /5 text-003.

ENDIF.

RAISE other.

ENDIF.

  • Populate the Control Data

w_sf_control-device = 'TELEFAX'.

w_sf_control-no_dialog = 'X'.

w_sf_control-langu = t_ctrl_app-spras.

  • Populate the Output Options.

w_output_options-tdteleland = lv_land1.

w_output_options-tdtelenum = lv_fax.

w_output_options-faxformat = 'PS'.

Former Member
0 Kudos

But i am supposed to show my client a standard layout first and then ask them if this solves our requirement and then go ahead.This is my actual requirement first and then the coding starts.I need to have the following things

1.The layout if there is any standard layout.

2.The form name,if there is any for send customer statements.

3.If you have done this object ,can u send in the copy of the form layout.

Former Member
0 Kudos

this type f req are there in all req. so check print program of RLE_DELNOTE.

or else u can see the code in medruck form also.in sapfm06p in the include fp06 in the first include u can see that depending in nacah field value u get this.