Sapscript - email form - vendor address
Hello all,
we are emailing our purchase orders out of SAP to one of our email addresses, it is always the same address. As configuration, we have setup a new vendor X and use this vendor to enter the recipient email address.
We then enter this vendor number as partner into the output message in the purchase order. Partner type is VN for vendor, medium external send and we created a new output type. Once the output is triggered, email is sent to our email address.
The vendor address is also on the sapscript form:
/: ADDRESS PARAGRAPH AS
/: TITLE &LFA1-ANRED&
/: NAME &LFA1-NAME1&, &LFA1-NAME2&,
/: STREET &LFA1-STRAS&
/: POBOX &LFA1-PFACH& CODE &LFA1-PSTL
/: CITY &LFA1-ORT01&, &LFA1-ORT02&
/: POSTCODE &LFA1-PSTLZ&
/ :REGION &LFA1-REGIO&
Now the LFA1 table seems to contain the address of our vendor X that has been setup for email only. Meaning it prints the physical address of our email vendor on the form. But it should show the address of the actual vendor of the purchase order, which is in &EKKO-LIFNR&.
How can we show the correct address on the form?
Thanks
Anne
Hi,
ok, I think I got it now. Please see below code. The sapscript and the subroutine pool are activated. I have set a break point into the subroutine pool, but whenever I start the output of the PO, it doesn't stop at the break point. So I guess it never reaches the subroutine.
Any suggestions why?
THANKS
Anne
:/ DEFINE &WA_ADRNR& = ' '
:/ PERFORM GET_ADDRESSNUMBER IN PROGRAM Z_PO_VENDOR_ADDRESS
:/ USING &EKKO-LIFNR&
:/ CHANGING &WA_ADRNR&
:/ ENDPERFORM
*& Subroutine pool Z_PO_VENDOR_ADDRESS *
PROGRAM Z_PO_VENDOR_ADDRESS.
TABLES: LFA1.
*& Form GET_ADDRESSNUMBER
* get the addressnumber value for EKKO-LIFNR from LFA1
FORM GET_ADDRESSNUMBER TABLES fp_it_intab STRUCTURE itcsy
fp_it_outtab STRUCTURE itcsy.
LOOP AT fp_it_intab. <-- BREAKPOINT
SELECT * FROM LFA1
WHERE LIFNR = fp_it_intab-value.
endselect.
IF SY-SUBRC = 0.
MOVE LFA1-ADRNR TO fp_it_outtab.
ENDIF.
ENDLOOP.
ENDFORM. "GET_ADDRESSNUMBER
Edited by: Anne on Aug 4, 2010 3:56 PM
Similar Messages
-
Hello,
When I create a campaign with communication channel as "email", how can I automatically add business partner address data ( Those BP's which are in the target group) when sending emails?
Is there a standard functionality available?
thanks in advance.Hi,
You can use the Personalized mail functionality of the CRM for adding BP address in the email form. This is the standard functionality of the CRM 5.0.
In t code CRMD_EMAIL while creating the text of the mail form drag and drop address attributes from the left hand side Object / Attribute Business partner.
In Business partner Object you will get all the fields of the Business Partner including Street1 street2 City, POBox etc. Drag and drop these attributes wherever you want on the mail form text.
Hope this will help.....
Rgds
Mallikrjun -
How can I attach a form to an email with TO address default in?
I have a form with a hyperlink to an email address. I want to have it when the user clicks the hyperlink the form attaches to an email with the address filled out. I have figured out how to open an email with the email filled out; and how to open an email with the form attached - but not both. I am not very familiar with JavaScript - but I have to believe there is a way to "Execute a menu item -- File>Attach to email..." AND "open a web link -- Mailto:[email protected]".
You can use either the doc.mailDoc (best) or doc.submitForm JavaScript methods. For more information, see:
mailDoc: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
submitForm: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.537.html -
Email address on Portal page incorrectly copied into email form
I have a 'staff directory' on a Portal page that contains email addresses. Upon clicking on an email address an email form pops up. However, the email address in the TO: line sometimes reflects the email address correctly, and sometimes it repeats characters from the email address - that is, my email address might be correctly copied in as Caryn@mail or incorrectly copied in as Caryncaryn@mail.
Any help or ideas would be greatly appreciated!!So called e-mail obfuscation scripts may work up to a point, but client side scripts are easily defeated by turning off JavaScript. Also, e-mail links don't work for everyone. With so many people using web mail (yahoo, hotmail, g-mail, etc...) instead of e-mail software, they may not have an e-mail client on their device.
For many reasons, a contact form with a form to email processing script that has built-in spam protection is the way to go.
If your server supports PHP, this script from DBMasters is good.
http://dbmasters.net/index.php?id=4
Tectite
http://www.tectite.com/formmailpage.php
Forms to Go from Bebosoft (script generating software)
http://www.bebosoft.com/products/formstogo/overview/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
I cant get a photo project to email the moblile me address to someone else. I know how, but it has stopped working for some reason. Instead of pulling up the web address on the email form, it puts an error message? Any ideas?
Michael,
The link for the word 'HERE' directs to a Evergreen School District page, which outside of Mobile Me and/or Aperture. Your school district network might be intercepting the request from Aperture and displaying the 'network authentication page' that you see, instead of the email. I would get with the IT department to see if they can help you get around this.
Have you also tried using the 'Tell a Friend' feature from another network location, like starbucks or your home?
Cheers,
Owen. -
Error send a smartform PDF by Email to Vendor
Hi Expert,
Please help me.........................
I want to send a PO (Smartform) as Email to Vendor.
In SAPScript the PO send by Email is working fine, but in Smartforms it is not working.
Normally, I will use via Smartforms the Program = YBAA_FM06P, FORM routine = ENTRY_NEU, PDF/Smartform Form = ZYBAA_MMPO1.
A communication strategy has communication type as INT has been defined.
This communication strategy has been set as default in the output type ZNEU. The transmission medium has been set to 5 (External Send) and the partner function as VN (Vendor).
The e-mail address of the vendor has also been maintained.
In transaction MN04, i have also made an entry for output type ZNEU and set the document type as NB.
But message output do not create.
How to send a smartform PDF by Email to vendor?
Thanks,Hi,
I can convert the PO output in to PDF from SOST I can sent it to external vendor using the Mail triggering configuration settings but meassage output do not create.
Please tell me how can I do.
Thank, -
Function module for getting Vendor Address details
Hi,
Im new to this group,and new to ABAP
plz hep me out by solving ABAP Query...
i want to generate a report for getting Vendor Details
like Vendor address,Ph num and Email
input fields are Company code,country key and Account Group.
im Using Smart Forms for this..
but im not getting the Exact Function module to get All Required Details..
regards
Smithathanks for ur quick reply...
SELECT SINGLE LIFNR
FROM LFB1
INTO V_LIFNR
WHERE BUKRS EQ V_BUKRS.
CALL FUNCTION 'VENDOR_READ'
EXPORTING
i_bukrs = V_BUKRS
i_lifnr = V_LIFNR
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
this is the code i have written...
but my problem is there no table in the Function module....
for Example...
CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
EXPORTING
i_plnty = 'Q'
i_plnnr = V_PLNNR
I_PLNAL = V_PLNAL
i_sttag = V_DATUV
TABLES
T_PLMKB_TAB = IT_TAB
i want the function modules with tables and proper input... -
Hi All,
I have done the following settings to send Po as email to vendor:
PO as an email to Vendor:
When using external mail, the following basic settings are required:
1. You must maintain an e-mail address in the address in the vendor master.
2. The same applies to your own user master. You also have to specify an e-mail address there in order to identify the sender.
Note that it is not possible to change the e-mail address of the vendor via the SAP purchase order transaction (ME21N, ME22N, and so on).
The system only uses the e-mail address of the vendor that is maintained in the vendor master!
3. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy). As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
4. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
5. In the condition records for the output type NEU (for example, Transaction MN04), use medium '5' (External send). Then in Transaction M/34 for the output type NEU add the medium '5' (External send) in Partner functions & Processing routines.
6.Then Create a PO Go to Messages>select the output type & medium '5' (External send). Then communication method > Comm Strategy CS01. Remoce Print immediately if it is ticked.
7. Then go back ,Select message>Further data>Dispatch time>Select 'Send immediately (when saving application)'
Back and save PO.
But still am not able to see it in SCOT.
and when I am displaying that PO and then into messages it gives error,
when i select that and go into Furthur Data then there its showing Incorrectly processed.
Please tell me wether there is any more setting required for this.
Is there any setting related to mail server configuration ???
Regards,
Bharat.Hi Bharat,
Please check this link where you will find the configuration for mail sever.
http://help.sap.com/SAPHELP_NWPI71/helpdata/EN/af/73563c1e734f0fe10000000a114084/content.htm
I don't know whether this site is allowed in SCN but please do check the site.
http://www.saptechies.com/configuration-of-email-fax-paging-or-sms-using-smtp/ -
Trigerring email to vendor in remittance advice script
hi,
I have finished remittance advice using script, nw i have to send mail to the vendor and e-mail has to be picked from the Vendor e-mail Id field.please let me know how to do this action.
thanks in advanaceHi,
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
or
*& Report ZSPOOLTOPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '@sapdev.co.uk',
p_sender LIKE somlreci1-receiver
DEFAULT '@sapdev.co.uk',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
Regards,
Kumar -
External send PO email to vendor
Hi experts,
I have one requirement to add additional text in the email content for external send email to vendor, can anyone show me how to do this?
Also, is there anyway to get acknowledgement from vendor when they receive the auto PO email?
Thanks and regards,
JTHI,
In order to send PO, your Basis team must configure the system first so that external email can be sending out from SAP. If it is not configured, no settings you do on MM will work.
1. You must maintain email address in vendor master data.
2. The same applies to your user master data. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path:
(SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy).
As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
3. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
4. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).
5. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.
6. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.
try this link
Re: Email PO's
Hope Help U !
Regards,
Pardeep Malik -
Change of vendor address in PO
Hello,
Problem: End user can change the Vendor address at the time of creation of PO.
According to me the system fetch all vendor details in PO form vendor master.
In reference of above issue i want to put a check in the system so that end user cannot able to change any information which comes in the PO through Vendor master.
Thanks & regards
Varun Bisaria.> Problem: End user can change the Vendor address at the time of creation of PO.
>
> According to me the system fetch all vendor details in PO form vendor master.
>
> In reference of above issue i want to put a check in the system so that end user cannot able to change any information which comes in the PO through Vendor master.
Hi,
If you are referring to vendor address at the header, you can restrict this by suppressin gthe address field in IMG> Mat Mgt> Purchasing> PO> Define Screen Layout @ doc level > and double click ME21N and double click on Reference data header set the field Address as Display which will solve your problem
Regards
Shiva -
Form of address key is not defined - Message AM117-VL02N
I have defined a COA for the customer when there is a PGI for that customer.
When I do the PGI i am getting update termination error - Form of address key is not defined.
As per the message it says that TSAD3T - TITLE is not maintained. But I see the customer master it is maintained as 'Company'.
Also when I remove the Title using XD02 also i am getting the same message.
Please let me know what settings and changes i need to do for PGI to happen.Hi,
check in customizing what form has been assigned and check the form. It sound like somebody created a form (SAPscript, Smartforms, Adobe Forms) for the billing document and there´s no window on it for the address or it has another name. -
Little help with making an email form.
can any of you lovely, lovely people point me in the
direction of a good Dreamweaver CS3 tutorial on how to make an
email form. Preferably one with a "conform email address" text
field.
Thanks all!
P.S. I have tried looking.There is god general training available at www.lynda.com .
Its $25 a month for online video viewing. The title is called
Dreamweaver CS3 - Beyond the Basics.
I also would recommend a free form mail solution like
www.tectite.com which I have used before. It is more powerful that
the spry widget in dreamweaver, but is on the server side and not
the user application side. -
File as attachment in email form
hi all,
It would be a great help for me if any one can help me, how
to send a file( minimum of 300k ) as attachment through a email
form created in flex....
please help me ...
thankshi all i have got a php code which sends attachments via
mail..... Please help me how to send the file parameters to the php
via http service send method.... i am placing the php and flex
codes here please help Sad
PHP code
<?php
$to = '[email protected]';
$from = $_POST[email];
$name = $_POST["name"];
$subject = $_POST["title"];
$emailMessage = $_POST["message"];
$message = "\nFrom: $name\nEmail Address:
$frommail\nContact Number: $phone\n\n $emailMessage";
$message = StripSlashes($message);
$fileatt = $_FILES['fileatt']['tmp_name'];
$fileatt_type = $_FILES['fileatt']['type'];
$fileatt_name = $_FILES['fileatt']['name'];
$headers = "From: $frommail";
if (is_uploaded_file($fileatt)) {
$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);
$semi_rand = md5(time());
$mime_boundary =
"==Multipart_Boundary_x{$semi_rand}x";
$headers .= "MIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
"
boundary=\"{$mime_boundary}\"";
$message = "This is a multi-part message in MIME
format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type: text/html;
charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$message . "\n\n";
$data = chunk_split(base64_encode($data));
$message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
"
name=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n" .
"--{$mime_boundary}--\n";
}else echo "File error! ";
mail($to, $subject, $message,$headers);
?>
Flex code...
<?xml version="1.0"
encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
viewSourceURL="srcview/index.html"
creationComplete="init();">
<mx:HTTPService id="httpService"
url="
http://jibysubhash.x10hosting.com/jibysk/sendmail.php"
method="POST">
<mx:request >
<name>{txtname.text}</name>
<email>{txtemail.text}</email>
<phone>{txtphmo.text}</phone>
<title>{txtpost.text}</title>
<message>{txtcover.text}</message>
</mx:request>
</mx:HTTPService>
<mx:Script>
<![CDATA[
private var file:FileReference = new FileReference();
private function init():void
file.addEventListener(Event.SELECT, selectHandler);
private function selectHandler(event:Event):void
private function browse(event:MouseEvent):void
var filefilter:FileFilter = new FileFilter("Resume
Files",
"*.zip;*.doc;*.pdf;*.txt;*.rar;*.docx");
file.browse([filefilter]);
]]>
</mx:Script>
<mx:Panel id="panel1"
width="691" height="665"
layout="absolute" title="Apply for the
job" >
<mx:Form x="0"
y="0">
<mx:FormItem fontWeight="bold"
color="#000000" id="nam"
label="Name : ">
<mx:TextInput width="354"
height="20" id="txtname"
/>
</mx:FormItem>
<mx:FormItem fontWeight="bold"
color="#000000" id="mail"
label="Email : ">
<mx:TextInput width="354"
height="20" id="txtemail"
/>
</mx:FormItem>
<mx:FormItem fontWeight="bold"
color="#000000" id="phone"
label="Phone/mobile : ">
<mx:TextInput width="354"
height="20"
id="txtphmo"/>
</mx:FormItem>
<mx:FormItem fontWeight="bold"
color="#000000" id="post"
label="Post applied : ">
<mx:TextInput width="477"
height="20" enabled="false"
editable="false" id="txtpost"
text="test mail"/>
</mx:FormItem>
<mx:FormItem fontWeight="bold"
color="#000000" id="upload"
label="Upload resume : ">
<mx:Button label="Browse"
id="bro"
click="browse(event);"/>
</mx:FormItem>
<mx:FormItem fontWeight="bold"
color="#000000" id="cover"
label="Cover Letter : ">
<mx:TextArea width="507"
height="350"
id="txtcover"/>
</mx:FormItem>
<mx:FormItem label=" " >
<mx:Button label="Send"
id="applynow"
click="httpService.send();" />
</mx:FormItem>
</mx:Form>
<mx:Label x="210"
y="125" text=" "
maxWidth="300"
id="statuss"/>
</mx:Panel>
</mx:Application> -
I'm sending a php form to an email address. The form does
send to my email and a message sent page is working for the user
filling in the form. However, I need to put the name, address, and
phone number included with the message that is sent to the e-mail.
This is the code that I am using:
<?php
$to = "[email protected]";
$subject = $_POST['subject'];
$body = $_POST['body'];
$headers = "From: [email protected]" .
$_POST['[email protected]'] . "\n";
mail($to,$subject,$body,$headers);
?>
I've tried putting $name = $_POST['name']; in the code, put
it doesn't seem to work. Is something like this possible. If so,
where do I add the code so I can include more information on the
form (name, address and phone number)?
Thanks for any help you can give me.A simpler way would be to just use successive concatenation
rather than
heredoc, at least I think. Use this -
> $reply_message_subject = $_POST['subject'];//Subject of
new message from
> form
> $reply_message_body = $_POST['body'];//Body of new
message from form add
> all
> the text you want and links
Then use this -
$reply_message_body .= "\n\rName = ".$_POST['name'];
$reply_message_body .= "\n\rnickname = ".$_POST['nickname'];
$reply_message_body .= "\n\rdog-name = ".$_POST['dog-name'];
etc., etc., etc.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"MikeL7" <[email protected]> wrote in
message
news:f8elib$p93$[email protected]..
> The heredoc MAIL function is what you want here is one i
made from your
> info:
> i am not sure about your mailheaders line, sending an
email from yourself
> to
> yourself, i guess with the info on the form, but try
this:
>
> $to = "[email protected]";
> $reply_message_subject = $_POST['subject'];//Subject of
new message from
> form
> $reply_message_body = $_POST['body'];//Body of new
message from form add
> all
> the text you want and links
> $config_mailheaders = "From: [email protected]";
>
> //this is the actual email sent
> $reply_body=<<<_MAIL_
>
http://adobe.com/
> so you can see this is where you put more info
>
http://google.com/
> $reply_message_body
> thanks for filling out the form
>
>
> _MAIL_;
> //end actual email
>
>
> mail($to, $reply_subject, $reply_body,
$config_mailheaders);//Send email
>
>
Maybe you are looking for
-
I have many of my songs duplicated in my library. How can i eliminate all the duplicate songs
I have most of my music library showing duplicate entries. How can I get this cleaned up automatically. I have over 4000 songs, and many are repeats
-
How do I get Adobe for Ubuntu 11.04 64bit?
I have tried copying the beta flash 11's .so file to the plug-in folder, but it says that I cannot edit something that I do not own. I have tried downloading the 32bit version for flash player 10, but it does not work. DON'T TELL ME TO GET THE PLUG-I
-
No internet access when Parental Controls are enabled.
I have a MacBook Pro running Leopard(OSX 10/5.8). Until recently Parental Controls worked flawlessly for my kids accounts. Within the last few weeks something happened and now the kids can't get to any websites with Parental Controls enabled. Every
-
Unable to parse the ZenWorks software dictionary files
I'm getting this error message when I try to access the Software Dictionary in ConsoleOne > Inventory Service_ADMNT > Properties > Software Inventory Configuration > Software Configuration Error Loading Software Dictionary Unable to parse the ZENwork
-
HT201250 The back ups are not displaying when i enter the time machine
I'm trying to restore my files to my new MacBook I just purchased. I have the external hard drive connected and entered the Time Machine. But, the back-ups are not displayed "in pink on the right side" as indicated in the directions. I do see the bac