Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

NACE

Former Member
0 Likes
1,267

I have created a sapscript and driver program to convert it into pdf and mail it.I have to use it with transaction vt02n, so that when goto->output--external send is selected and saved the sapscript is mailed to the intended user.I selected the output type using NACE and have maintained partner function and mail text and title but still the mail is not being sent.Please if someone can help.Thanks

6 REPLIES 6
Read only

Former Member
0 Likes
1,034

Hello,

Check the Tcode SOST. If u mail is avaliable in the list and in ur driver report do the following.

U need to submit the report

  • Start the send process

SUBMIT rsconn01

WITH mode = 'INT'

WITH output = ' '

AND RETURN.

If useful reward.

Vasanth

Read only

Former Member
0 Likes
1,034

No Mail is not available in SOST

Read only

Former Member
0 Likes
1,034

1)In the print program of that script, Maintain Trannport medium as 5 and write the code as given below

FORM OPEN_FORM.

CASE NAST-NACHA.

WHEN '2'.

XDEVICE = 'TELEFAX'.

IF NAST-TELFX EQ SPACE.

XDIALOG = 'X'.

ELSE.

ITCPO-TDTELENUM = NAST-TELFX.

IF NAST-TLAND IS INITIAL.

ITCPO-TDTELELAND = LFA1-LAND1.

ELSE.

ITCPO-TDTELELAND = NAST-TLAND.

ENDIF.

ENDIF.

WHEN '3'.

XDEVICE = 'TELETEX'.

IF NAST-TELTX EQ SPACE.

XDIALOG = 'X'.

ELSE.

ITCPO-TDTELENUM = NAST-TELTX.

ITCPO-TDTELELAND = LFA1-LAND1.

ENDIF.

WHEN '4'.

XDEVICE = 'TELEX'.

IF NAST-TELX1 EQ SPACE.

XDIALOG = 'X'.

ELSE.

ITCPO-TDTELENUM = NAST-TELX1.

ITCPO-TDTELELAND = LFA1-LAND1.

ENDIF.

WHEN '5'.

*Start of Badari-1a

DATA: lvs_comm_type TYPE ad_comm,

lvs_comm_values TYPE szadr_comm_values,

xprogramm type sy-repid.

  • ... use stratagy to get communication type

CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE'

EXPORTING

strategy = nast-tcode

address_number = lfa1-adrnr

IMPORTING

comm_type = lvs_comm_type

comm_values = lvs_comm_values

EXCEPTIONS

address_not_exist = 1

person_not_exist = 2

no_comm_type_found = 3

internal_error = 4

parameter_error = 5

OTHERS = 6.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

  • convert communication data

MOVE-CORRESPONDING nast TO intnast.

MOVE sy-repid TO xprogramm.

CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'

EXPORTING

pi_comm_type = lvs_comm_type

pi_comm_values = lvs_comm_values

pi_country = lfa1-land1

pi_repid = xprogramm

pi_snast = intnast

IMPORTING

pe_itcpo = itcpo

pe_device = xdevice

pe_mail_recipient = lvs_recipient

pe_mail_sender = lvs_sender

EXCEPTIONS

comm_type_not_supported = 1

recipient_creation_failed = 2

sender_creation_failed = 3

OTHERS = 4.

IF sy-subrc <> 0.

  • Avoids cancellation with message TD421

p_retco = '1'. "831984

PERFORM protocol_update USING '740' space space space space.

  • dummy message to make the message appear in the where-used list

IF 1 = 2.

MESSAGE S740(me).

ENDIF.

EXIT.

ENDIF.

IF xdevice = 'MAIL'. "885787

  • Check validity of email address to avoid cancellation with TD463

CALL FUNCTION 'SX_ADDRESS_TO_DEVTYPE' "831984

EXPORTING

recipient_id = lvs_recipient

sender_id = lvs_sender

EXCEPTIONS

err_invalid_route = 1

err_system = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

p_retco = '1'.

PERFORM protocol_update USING '740' space space space space.

  • dummy message to make the message appear in the where-used list

IF 1 = 2.

MESSAGE S740(me).

ENDIF.

EXIT.

ENDIF.

ENDIF.

WHEN OTHERS.

XDEVICE = 'PRINTER'.

IF NAST-LDEST EQ SPACE.

XDIALOG = 'X'.

ELSE.

ITCPO-TDDEST = NAST-LDEST.

ENDIF.

ENDCASE.

2) After doing the work with transaction code . Execute the program RSCONN01 with INT as input in the first field.

3) Before all the steps , functional consultant has to configure in the following way.

1) Spro – Materials management – Purchasing – Messages – Output control – Message types – Define message types for RFQ/ PO

• Creat new output types for Purchase order

• The above New output types Included with existing Print Forms and Programs but modified with External send(5) medium, and added company’s letter head thru ABAP developments (details provided below)

• The above new output types also maintained for Fine- tuned control (thru same navigation) for New(1) and Change(2) operations

2) Spro – Materials management – Purchasing – Messages – Output control – Message determination schemas – Define message schema for RFQ/ PO

• Maintained the new output types in the control data

3) Maintain Condition records for the New out put types (copied same document types from the existing old output types)

Easy access – Logistics – Materials management – Purchasing – Master data – Messages – MN01 (for RFQs)/ MN04 (for Pos)

4) Maintain Email id of Vendor in Vendor master.

<b>The above code is usefull for sending the purchase order to vendor in PDF format</b>

<b>With this you can solve the problem</b>

Please reward if it is usefull.

Regards

Badari

Read only

Former Member
0 Likes
1,034

hi

can u please tell what is the transmitting medium ,,

by going through this navigation

nace :click on the output types --->selecting the processing types .

output type

application

transitting medium as :

i think the output type has to be configured for this ..

regards,

vijay

Read only

0 Likes
1,034

transmitting type is 5 i.e. external send

Read only

Former Member
0 Likes
1,034

Hi

Check the Tcode SCOT and i think you have top release the mail here.

Thanks