Issue when sending PO through external send
Hi
I did the configuration for sending the PO through external send. When I am assigning message type to PO and selecting option as "send immediately' , messge type is not getting assiged.
Thanks
Anand
Hi,
Check t.code: NACE for application "EF"----> click Output types
In next screen,Click your message type and now check did you have Dispatch time 4 (Send immediately) in "Default values" TAB. If not select Dispatch time 4 (Send immediately) & save.
Now you can maintain condition record in MN04 with PO message type with all other details like PO document type with Dispatch time 4 (Send immediately) ..etc..& save.
Regards,
Biju K
Similar Messages
-
Display issues when disconnecting from an external display
While I have found 3 bugs since my upgrade to 10.6 the biggest and most frequent issue is the MBP display when using and external monitor. When I connect a monitor all is well (mirroring mode). When I disconnect the MBP screen gets the major jitters and I can't stop it by doing anything in the Display Properties. The only way to resolve it to close the lid forcing the system into suspend mode. When I reopen all is well again. This is not an intermittent issue. Has anyone found this issue and is there a better work around?
The only other issues have been Mail crashing the whole system and Gotomeeting crashing the whole system when attempting to take Keynote into full screen mode.I am have experienced both problems as well as if I have an external display connected to my MBP and move itunes video play back to the second screen then disconnect it from the MBP the video stays on the second display and will not gather back to the MBP display. The video is playing but off screen. Gather and detect screen do not work to get the video play back to the MBP screen.
When I reconnect the external display there is the video. I know this does not answer the original question, but from looking around the net it seems to be a growing issue.
Message was edited by: Black Spruce -
ABAP Proxy authorization issue when sending message.
Hi
We have an interface which uses ABAP proxies. This is used to send a message with attachment, but when i send the message I am getting a 401 error message which says unauthorized.
I checked all the configs on the sending side and i cant fine anythin wrong. I tried SLDCHECK and all looks fine there as well. I have done the configuration in the Integration engine on the sending side as mentioned in the BLOG - Activating ABAP Proxies.
We have 3 XI systems Dev, QA and Prod sharing the same SLD. The configs that we have on the sending system (App Sys.) is given below.
SM59
HTTP connection : SAPISU_XID
Host : XI Dev hostname Service Number 8080 (80 <sys number>)
Path Prefix : /sap/xi/engine?type=entry
USER : XIAPPLUSER
The TCP/IP connections LCRSAPRFC and SAPSLDAPI are also setup on the system which connects to our SLD.
The TCP/IP connections works fine and i am able to test it succesfully, but the HTTP connection fails with an authorization error (401) when i test it. Now the wierd thing is if I use XIAFUSER instead of appuser it works fine, but if i make a copy of XIAFUSER and try that... It fails again.. I know it sounds strange. So i was wondering if there is any setting on XI which restricts HTTP connections to a particular user??
I would really aprpeaciate if you could please give me your thought on this issue...
Cheers
PravHi Manish
Thanks for the input again.
I checked SICF on the XI system and its not set to any user.
The HTTP connection on out prod environment is working fine without any issues and its uses a user which is a copy of XIAPPLUSER. SICF in prod also does not have any user configured for service SAP\XI\Engine.
Thanks for the link, had a look at it, but It looks like these users mentioned are only available with XI7. Our server was upgraded from 3 to 7 and I am not able to find these users on the system.
I tried testing the HTTP connection in prod using a diffrent user and found its the same story there. If i use any use other than the cutom one.. it fails.. could there be any setting in the exchage profile that can affect this??
Thanks for your time and help.
Prav -
Date formatting issue when sending excel file via mail
hello People ,
I am facing date issue .
I have inetrnal format of date as yyyymmdd.
I am converting it into YYYY-MM-DD.
CONCATENATE gs_output-end_date(4)
gs_output-end_date+4(2)
gs_output-end_date+6(2)
INTO lv_date_to SEPARATED BY gc_seperator. " gc_separator = '-'.
gs_output-end_date = lv_date_to.
I am writing this date and sending an excel file via MAIL . I get date result as MM/DD/YYYY always.
Now if i pass in YYYY.MM.DD and used the same code where gc_separtor = '.'.
I get output as YYYY.MM.DD.
Can any one give me an idea why in format YYYY-MM-DD it is getting overwritten but for yyyy.mm.dd it gives me as yyyy.mm.dd?
Regards,
Abhi..
Edited by: Thomas Zloch on Jul 11, 2011 2:30 PM - subject enhancedThanks , Rohit ,
I have change my date format in SU01 settings .
It is now made to [ YYYY-MM-DD] but still '-' is replaced by MM/DD/YYYY.
Also note that when i format in the following way
CONCATENATE gs_output-rdadate(4)
gs_output-rdadate+4(2)
gs_output-rdadate+6(2)
INTO lv_rda_date.
instead of
CONCATENATE gs_output-rdadate(4)
gs_output-rdadate+4(2)
gs_output-rdadate+6(2)
INTO lv_rda_date sepearted by '-'.
I get output as YYYYMMDD.
Regards,
Abhishek. -
Issues when sending mail from sap to outlook in .csv FORMAT
hI all,
Im using 'SO_NEW_DOCUMENT_ATT_SEND_API1'
FM TO send a mail from SAP to user with attachment in .csv format but the data isnot getting displayed correctly ...
I thnk it is competely displayed in ASCII format ..
Can anybody give me suggestionson the same
thanksHi.
How is the user opening the .csv attachment?
I'm guessing that it should be opened with Excel.
Are you using an attachment document type of 'XLS'?
If not, then the attachment won't be opened with Excel unless the user right-clicks on it and does 'Open with'.
Even then, the user will have to use the Excel import wizard.
Is a .csv file what you want?
You can use the ABAP OLE stuff to write a native Excel file that can be attached to an email.
Or you can (at the cost of more work) write the Excel file (still type XLS) using XML, which gives you more control, and still works when your program is run in the background.
John -
Get-childItem issue when sending mail
I'm having a problem where the below command works but not the way it should. For example, if i have two files it will display both files in the email instead of just one.
$fname=Get-ChildItem \\Main\Drop| Where-Object {!$_.PSIsContainer}
and here is the body of the email
$Body = "Check Drop Folder for new file: `n $fname `n`nOR `nclick here: \\Main\Drop\$fname"
If i have 2 files in that drop directory say: file1.txt, file2.txt the email will say:
Check Drop Folder for new file:
file1.txt file2.txt
OR
click here: \\main\Drop\file1.txt file2.txt
I know its a simple fix but im missing it..The idea here is to get only ONE email PER FILE, i do not want to combine the files in one email. So for two files, i will have two emails.
Okay, here's a start:
Get-ChildItem \\Main\Drop | ForEach {
$body = "Check the drop folder for $($_.Name)"
Send-MailMessage -To [email protected] -From [email protected] -Subject $body -Body $body -SmtpServer smtp.domain.com
Don't retire TechNet! -
(Don't give up yet - 12,575+ strong and growing) -
Unit of measure issue when PGI done through IDOC
Dear Experts
In my system PGI against outbound delivery is being done through inbound idocs in SAP. In my outbound delivery the sales unit is maintained as CS (Case) and BT (Bottle). The quantity in my delivery is 10 CS and 10 CS for both the line items. When IDOC is getting posted in SAP it has quantity as 10 in field LFIMG of segment E1EDL24 of IDOC type DELVRY07 for both the line items. We are not passing any unit in the field VRKME of segment E1EDL24 of the IDOC. The IDOC gets successfully posted but when I check the PGI document the it shows quantity as 0,417 CS and 0,0833 CS.
1 CS = 24 BT for material 10002616
1 CS = 12 BT for material 10002617
Base UoM for both the materials in the delivery is BT. What SAP is doing is converting the CS quantity in terms of base UoM. I have attached the PGI document and outbound delivery screenshot for reference.
After PGI the outbound delivery line item quantity changes as shown in the attachment.
Please let me know how to resolve this conversion issue so that I pass the same quantity as in my outbound delivery in IDOC and PGI should get posted with any change in quantity in my outbound delivery in terms of base UoM.
Thanks and Regards
Satish KumarHello Sathish,
I have some information for you instead of solution.
First, Let me repeat my Understanding first,
Material Base UOM is BT.
But, Delivery Unit is CS. that I could see in Delivery Screen shot.
This Conversion will be carried to Delivery. We can see in Delivery item level that information.
Here the point that we need to remember is, Once the Delivery is created, the UOM will be carries down to Delivery tables ( LIKP, LIPS ). That means, For further Transactions, System uses the UOM which is carried down to the delivery.
So, During PGI, Delivery already with UOM CS, So, System posted the PGI in same UOM. But, When it comes to display, in your above screen shot, you can see both UOMs. i.e., UOM and Base UOM.
We have two lines here.
0.417 Qty and UOM as CS - First line - Because, your delivery is already in CS UOM.
10 Qty of Base UOM as BT - Second line - This is the conversion happened for PGI.
As of now, I do not see any issues with your delivery. It created UOM as CS. And, Posted UOM as CS.
I really do not understand the conversion issue that you have mentioned above. Now, Can you tell about your issue again.
For resolution, you need to run the fresh scenario again.
Regards,
Sathish -
Exchange Converts embedded link to http when Sending to External Recipients
Hello:
We use a product called ProjectWise internally. One of the features is to embed the link to a ProjectWise document in the body of an e-mail and send it to other users. When ProjectWise embeds the link, it is in the format:
pw://path_to_file
Obviously, this is very similar to the http format. The pw:// link allows the file to be opened natively in the ProjectWise software.
Here's the issue:
When sending to other INTERNAL users, the link flows through correctly. However, when it is sent to an EXTERNAL user, the link is converted from pw:// to http:// and is useless.
We can even send the same email to both Internal and External users, the Internal users receive correctly, the External users receive the converted link.
I am thinking that Exchange is somehow modifying the link when sending to external, but I can't find anything on it.
Thanks,
TimHi Tim,
Base on my knowledge, by default, exchange system does not modify the content of the email, except you create some transport rule.
Do external user use exchange ? or any other email system?
In addition, the format of "pw://" is only useful for internal, when you open the "pw://" link from internet, Browse may automatically converted the link to "http://".
Best regards,
Niko Cheng
TechNet Community Support -
Can't find session when sending HTTPS to self
This is only an issue for Weblogic 12c, our J2EE application does not have this issue for JBoss or Websphere. It's also only an issue when sending requests through HTTPS.
Here's the scenario:
1) HTTPS request made from web browser to J2EE application to initialize application, preauthentication.
2) J2EE application performs authentication HTTPS request to itself as a restful request using camel
3) J2EE application request returns JSESSIONID
4) J2EE application performs an HTTPS request to itself with this JESSIONID in header
5) Weblogic does not find the session associated with the JESSIONID and fails to authenticate
The weird thing is, if I send the same type of messages all through a web browser, everything works fine.Hi,
Please have a look on these articles -> Securing Cookies on Weblogic Server | Middleware wonders!!
-> https://blogs.oracle.com/wlscoherence/entry/how_to_set_up_secure
So Weblogic (when using SSL) sends two cookies in case of authentication, JSESSIONID and WL_AUTHCOOKIE_JSESSIONID. So maybe you need to update your application configuration, so that it becomes aware of both cookies..
Regards,
Mohab -
Speed change messing up clip when sending to Motion from FCP
Im trying to send a clip to Motion from Final Cut Pro. In final Cut Pro I had part of the clip at regular speed and the other part of the clip I had at 75% speed. When it gets sent to Motion, the clip the is supposed to be the 75% speed one is a different clip. How do I get the clip to get sent to Motion and also have the 75% speed effect on it when it gets sent to Motion? Or, can I slow it down in Motion? Thanks!
You can just send your clip to Motion then make the speed change in Motion, that is the common workflow.
FCS 3 now fixes this issue when sending a speed clip from FCP to Motion, so with FCP 7 / Motion 4, sending your 75% clip to Motion will retain that speed change in Motion. -
Mail is not giving from information when sending emails
Having issues when sending email to recipients, it does notgive my info. in the from section.
Nope, i can send individual emails ; however, my information(from:) is not being shown. So individuals recieve email from me without my information, and could be considered as spam.
-
Issue with voting buttons when send externally
Hi everybody,
I have an issue when I want to send voting buttons externally, they disappear. Internally everythink is OK.
I have only one exchange 2013 in my company. The recipients have also exchange 2013 or someone has office 365.
Into remote domain info : there is nothing in TNEFEnabled for default (*) but if I try to create another remote domain with this value at $true. It doesn't work too.
Someone has an idea to resolve that?
Thanks,
Liégeois QuentinYou're in the Unified Messaging forum, you might want to try another Exchange server forum, such as the clients forum:
https://social.technet.microsoft.com/Forums/lync/en-US/home?forum=exchangesvrclients
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
SWC Unified Communications
This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Sending of GR & GI slips through external mail
Hi All,
Kindly suggest me, to achieve following client requirement.
The requirement is to send the GR and GI slips through external mail to "Goods Recipient" for MIGO transaction.
Many thanks,
VenkatYou might want to use the message type MLGR (mail at goods receipt), but
this message type will only work with the Message transmission medium 7
(SAPoffice) and the processing routines:
Program : RSNASTSO
FORM routine: SAPOFFICE_AUFRUF
this is, unfortunately, you will be unable to send out an external
mail (transmission medium 5) to your vendor using the message type MLGR.
For a message type MLGR to be outputed, it is necessary to flag in the
Purchase Order Header the 'Goods receipt message' indicator (EKKO-WEAKT)
and, as you can read in the F1-on-line help for this indicator:
"Indicator: Goods receipt message
Indicator specifying that the system is to issue an appropriate message
to the buyer following each goods receipt in respect of this purchase
order".
Therefore, the system has been designed to send an internal e-mail to
the User ID who created the purchase order (buyer). This is made via
SAPoffice and medium 7. However, the system has not been designed to
send an external e-mail to the vendor.
You can also check the IMG Activity Documentation for the activity
'Output Determination' under the path:
SPRO
-> Materials Management
-> Inventory Management and Physical Inventory
-> Output Determination
"Output Determination
In Inventory Management, output is text that is created at the time of
goods movements. There are output documents such as:
.- goods receipt/issue slips ( example, GR/GI slips, pallet slips)
.- labels
.- kanban cards
.- MAIL messages which Inventory Management uses to communicate with
other departments (purchasing or materials planning, for example).
Note:
In the case of a goods receipt for a purchase order, MAIL messages are
sent to purchasing in two cases:
.- if Purchasing has set the indicator "GR output" in the purchase
order,
.- if an order price quantity has been entered at the time of a goods
receipt which lies outside the tolerances (for a warning message).
In the case of a goods receipt of missing parts, a mail message is sent
to the MRP controller if the missing parts check is active for the
plant.
The standard system contains all settings for this output. You only
have to maintain the mail texts for the following output types:
MLGR (GR message)
MLMD (GR quantity variance)
MLFH (goods receipt of missing part)".
Therefore:
1.- MAIL messages within Inventory Management are used to communicate
with other departments (purchasing or materials planning, for
example), but not to send out information to vendors.
2.- MLGR (GR message) are sent out to the Purchasing department only
when the indicator "GR Message" has been set in the purchase order. -
When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address. This sometimes leads me to send the email from the wrong outgoing email account. It is frustrating and poor design, especially since I had already checked the From: address.
iPad 4 running iOS 8.1.33rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
LJ
http://www.facebook.com/The.Cowboy.Party -
Reg : Issue for Sending of external email using SO_OBJECT_SEND
There is one issue while sending external email using SO_OBJECT_SEND functional module.
1. The body of the mail is also included as attachment.
I want to avoid the same.
Please anyone can give the solution.hi check this example ,
Sending mail with attachment report in Background
Content Author: Fernando Faian
I have read the hint about "Sending mail with attachment report".
It's great, but how can I make this function work in background??
I had that needed last year too. See attachment a function group with two functions. The second one has that functionality to send email or fax (SAP office) with attachment objects in background job using SO_ATTACHMENT_INSERT function.
Pay attention because its working with output list from spool converted to pdf.
=================================================================================
z_send_email_fax_global
FUNCTION-POOL z_gfaian_mail_fax. "MESSAGE-ID ..
WORK TABLE AREAS
TABLES: tsp01.
INTERNAL TABLES
DATA: lt_rec_tab LIKE STANDARD TABLE OF soos1 WITH HEADER LINE,
lt_note_text LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE.
DATA: lt_objcont LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_objhead LIKE STANDARD TABLE OF soli WITH HEADER LINE.
DATA: pdf_format LIKE STANDARD TABLE OF tline WITH HEADER LINE.
TYPES: BEGIN OF y_files,
file(60) TYPE c,
END OF y_files.
DATA: lt_files TYPE STANDARD TABLE OF y_files WITH HEADER LINE.
DATA: l_objcont LIKE soli OCCURS 0 WITH HEADER LINE.
DATA: l_objhead LIKE soli OCCURS 0 WITH HEADER LINE.
STRUCTURES
DATA: folder_id LIKE soodk,
object_id LIKE soodk,
link_folder_id LIKE soodk,
g_document LIKE sood4,
g_header_data LIKE sood2,
g_folmem_data LIKE sofm2,
g_header_data LIKE sood2,
g_receive_data LIKE soos6,
g_ref_document LIKE sood4,
g_new_parent LIKE soodk,
l_folder_id LIKE sofdk,
v_email(50).
DATA: hd_dat like sood1.
VARIABLES
DATA: client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type.
DATA: numbytes TYPE i,
arc_idx LIKE toa_dara,
pdfspoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
is_otf.
DATA: outbox_flag LIKE sonv-flag VALUE 'X',
store_flag LIKE sonv-flag,
delete_flag LIKE sonv-flag,
owner LIKE soud-usrnam,
on LIKE sonv-flag VALUE 'X',
sent_to_all LIKE sonv-flag,
g_authority LIKE sofa-usracc,
w_objdes LIKE sood4-objdes.
DATA: c_file LIKE rlgrap-filename,
n_spool(6) TYPE n.
DATA: cancel.
DATA: desired_type LIKE sood-objtp,
real_type LIKE sood-objtp,
attach_type LIKE sood-objtp,
otf LIKE sood-objtp VALUE 'OTF', " SAPscript Ausgabeformat
ali LIKE sood-objtp VALUE 'ALI'. " ABAP lists
CONSTANTS
CONSTANTS: ou_fol LIKE sofh-folrg VALUE 'O',
c_objtp LIKE g_document-objtp VALUE 'RAW',
c_file_ext LIKE g_document-file_ext VALUE 'TXT'.
=================================================================================
z_send_email_fax2
FUNCTION z_faian_mail_fax2.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(FAX_MAIL_NUMBER) TYPE SO_NAME
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" REFERENCE(OBJECT_TYPE) TYPE SO_ESCAPE
*" TABLES
*" LT_BODY_EMAIL STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
Fist part: Verify if the spool really exists
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc NE 0.
RAISE err_no_abap_spooljob. "doesn't exist
ELSE.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
objcont = lt_body_email
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
CLEAR lt_rec_tab.
lt_rec_tab-sel = 'X'.
lt_rec_tab-recesc = object_type. "This field for FAX/MAIL
lt_rec_tab-recnam = 'U-'.
lt_rec_tab-deliver = 'X'.
lt_rec_tab-not_deli = 'X'.
lt_rec_tab-read = 'X'.
lt_rec_tab-mailstatus = 'E'.
lt_rec_tab-adr_name = fax_mail_number.
lt_rec_tab-sortfield = fax_mail_number.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-sortclass = '5'.
APPEND lt_rec_tab.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-recesc = object_type.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
lt_files-file = c_file.
APPEND lt_files.
begin of insertion by faianf01
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
end of insertion by faianf01
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
check_send_authority = 'X'
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDIF.
ENDFUNCTION.
=================================================================================
z_send_email_fax
FUNCTION ZCBFS_SEND_MAIL.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" TABLES
*" LIST_FAX_MAIL_NUMBER STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
DATA: vg_achou(1) TYPE n.
Fist part: Verify if the spool really exists
vg_achou = 1.
DO 60 TIMES.
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc IS INITIAL.
CLEAR vg_achou.
EXIT.
ELSE.
WAIT UP TO 1 SECONDS.
ENDIF.
ENDDO.
IF vg_achou = 1.
RAISE err_no_abap_spooljob. "doesn't exist
ENDIF.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
LOOP AT LIST_FAX_MAIL_NUMBER.
lt_rec_tab-recextnam = LIST_FAX_MAIL_NUMBER-LINE.
lt_rec_tab-recesc = 'U'.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
ENDLOOP.
lt_files-file = c_file.
APPEND lt_files.
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDFUNCTION.
=================================================================================
regards,
venkat.
Maybe you are looking for
-
How to make IOS 7 readable? Or how to go back to IOS 6?
I know there are tons of improvements in IOS 7, but the user interface isn't one of them. I can't read light blue against a lime green background, and I can't read white, spindly letters against a white background either. I've been tested: my color v
-
Removing 2 years from date in where clause
I have a table that has a date and I want to select all the rows where the date is between the current date and 2 years back. What is the cleanest way to do it? I have the this so far select TO_DATE(CURRENT_DATE, 'DD-MON-YYYY') from dual Thank you
-
L850 Black screen but ok on external ?
Hi everyone,Got an issue that if in the biosBios-Advanced-System Configuration-Boot Mode = CSM the LCD screen remains black on boot.How ever if you plug in an external monitor you get full display on external only.If you change it Bios-Advanced-Syst
-
REGARDING DOUBT IN NOKIA ASHA 310
SIR I PURCHASED A NOKIA ASHA 310 MODEL , I WANT TO USE ONE SIM FOR ALL PURPOSE I.E FOR OUTGOING , INCOMING ,MMS , SMS AND GPRS, EDGE AND ANOTHER SIM ONLY FOR INCOMING SMS . I WANT TO PERFORM THIS ACTIONS BY USING SETTINGS IN PHONE. IS IT POSSIBLE OR
-
i installed a trail copy of photoshop elements. i uninstalled it. i have now bought a retail copyof the program. the program will not let me install it apparntly due to the uninstall not removing all the files.