Function Module "SO_OBJECT_SEND" not working in ECC6
Hi experts,
We have upgraded our SAP version from 4.6c to EEC6, in 4.6C one of our
Z program has used function module u201CSO_OBJECT_SENDu201D for sending mails
to external user. But the same prog throws error in SOST "Message cannot be processed as it cannot be
converted ".
If I try with another FM u201CSO_NEW_DOCUMENT_ATT_SEND_AP1u201D is not fulfill our requirement. ie. we can send the mail to external user but we cannot send output List as attachement.
Our requirement is first we have to convert the list into a object and
send that object to external user. We are using following FM for
sending mails.
SAVE_LIST - Save the list as Object.
TABLE_COMPRESS u2013 Compress the object to compressed attachment.
SO_OBJECT_SENT u2013 Finally send the attachment to external user.
Pl. suggest me, how to sort it out.
Thanks,
Regards
M.Veerabadran
Hi
Answer is pure assumption
Pls check the OSS Note 170175 - SAPconnect: Message not convertable
Pls take opinion from SAP / BASIS before implementing the note
Regards
Madhan D
Similar Messages
-
Function module is not working properly in background
Hi all,
i have used one Function module 'PRICING' in user exit SAPMV45A to calculate pricing for sales order.
i am using BAPI_SALESORDER_CHANGE to change the sales order pricing.
when i run the program in foreground, all condition records for pricing is updated correctly. but it is not updating
correctly when i run the program in background.
Please tell me wheather 'PRICING' or 'BAPI_SALESORDER_CHANGE' function module is not working properly in background ?
or any other reason?
Thanks
babuHi Pabitra,
Can you provide some more information as to the type of error you are getting? Or can you check the log entries and give some more information so that it would be possible to provide a solution.
And, try to put questions in proper Forum for quick and prompt reply.
Hope this helps.
Thanks,
Samantak. -
Hi All,
When i execute the function module SAPWL_GET_SUMMARY_STATISTIC in CRM ABAP 6.0 passing the values below,
PERIODTYPE
HOSTID
STARTDATE
it's not showing any values in the summary.
it's showing the exporting parameters as,
RFC_ERROR_TYPE L
SUMMARY_AVAILABLE N
HITLISTS_N_PROFILES_AVAILABLE A
if this function module will not work means kindly provide me the solution for calculating
Average Response Time as in tcode st03 - Instance - total - Workload Overview.
Average CPU Time and some more fileds.
Regards,
SureshHi
I used the FM mentioned and found the details as below:
VKORG
TABNAME TVKO
FIELDNAME VKORG
LANGU EN
POSITION 0001
OFFSET 000006
DOMNAME VKORG
ROLLNAME VKORG
CHECKTABLE
VTEXT
TABNAME TVKOT
FIELDNAME VTEXT
LANGU EN
POSITION 0002
OFFSET 000014
DOMNAME TEXT20
ROLLNAME VTXTK
CHECKTABLE
LENG 000020
Shiva -
Check Function Module is not working
Hi All Expert,
I'm new in workflow and develop custom workflow for Transaction FB65 ( Vendor Credit Memo) and using business object FIPP , event CREATED.
Actually requirement is that when user click on park button in FB65 then should be trigger workflow only for particular vendor code .
Now my workflow is working fine for all vendor code.
For particular vendor code, I have created an new entries in SWE2 and assigning a check function module to that
Refer Link : http://www.****************/Tutorials/Workflow/checkfunctionmodule/demo.htm
and also same entries create in SWETYPV But Check Function Module is not working before workflow trigger.
Appreciate your help and support.
Regards
SaurabhHi
: Check FM : ZWF_DR_CR_MEMO
SourceCode :
FUNCTION ZWF_DR_CR_MEMO.
*"*"Local Interface:
*" IMPORTING
*" VALUE(OBJTYPE) LIKE SWETYPECOU-OBJTYPE
*" VALUE(OBJKEY) LIKE SWEINSTCOU-OBJKEY
*" VALUE(EVENT) LIKE SWETYPECOU-EVENT
*" VALUE(RECTYPE) LIKE SWETYPECOU-RECTYPE
*" EXPORTING
*" REFERENCE(RESULT) TYPE C
*" TABLES
*" EVENT_CONTAINER STRUCTURE SWCONT
*" EXCEPTIONS
*" NOT_TRIGGERED
BREAK-POINT.
TABLES : VBSEGK.
DATA : LV_VEND TYPE VBSEG-LIFNR.
CLEAR : LV_VEND.
SELECT SINGLE LIFNR FROM VBSEGK INTO LV_VEND WHERE BELNR EQ OBJKEY.
if sy-subrc eq 0
IF LV_VEND = '0000120510'.
RAISE NOT_TRIGGERED.
ENDIF
endif.
ENDFUNCTION. -
Function Module (ENQUEUE_ES_PROG) not working in Background
I scheduled a job which runs every 15 mins in the the background to fetch data from an external system,depending on the data volume ,the program can sometimes run for over 15 minutes.To avoid data conflict I used a function module ENQUEUE_ES_PROG on the program to first check if the job started is still running before another job gets kicked.The problem I have is the fact that this function module does not seem to work in the background but in the looks perfect in foreground. Does anyone have a clue on how to use this FM for background job?
Hello Mochabo,
Consider the following scenario:
Your job is running for more than 15 minutes. Since it is running in the background, it will be executed by a work-process of type BACKGROUND. If there's only one BACKGROUND work process configured for your application server, then the second job will have to be waiting till the first one finishes and releases the background work process.
But when you are executing this in the foreground, the DIALOG work-process does the processing. So you are not finding any problem.
So, to my knowledge, there will be a problem when there's only one BACKGROUND work process. Please go to transaction SM50 and see how many of them are configured for the current application server.
Also, in case there's only one BACKGROUND work-process, you will not have toworry that the second job will start before the first has finished. It simply can't. It has got to wait.
Hope this explanation helps.
Regards,
Anand Mandalika. -
Function module is not working
Hi Experts,
There is one function module "RH_READ_INFTY_1001" is working fine with developement server but not working with Quality server.
In development server the value of sy-subrc is 0. But in quality server it is not working.
Error comes NO MSGTYPE " " FOUND.
Thanks....Hi,
I guess the message type is not getting populated.
Use your own message
Message 'Error' TYPE 'E'. "--> Message type must be in CAPS
Regards -
Gui_download Function module is not working in Background Scheduling
Hi Experts,
Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
Please provide me solution for this challenging task.
you could be rated well for this question.
Thanks,
Rama Krishna.Hello,
work with open dataset and close dataset...
just loop over itab and transfer itab field for field into a string field separated by ;
Here is an extract of coding:
OPEN DATASET p_dath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT itab_pos.
CLEAR satz.
MOVE itab_pos-vbeln TO satz-vbeln.
MOVE ';' TO satz-fill1.
MOVE itab_pos-kunnr TO satz-kunnr.
MOVE ';' TO satz-fill2.
MOVE itab_pos-ktgrd TO satz-ktgrd.
MOVE ';' TO satz-fill3.
MOVE itab_pos-fkdat TO satz-fkdat.
MOVE ';' TO satz-fill4.
MOVE itab_pos-budat TO satz-budat.
MOVE ';' TO satz-fill5.
MOVE itab_pos-cpudt TO satz-cpudt.
MOVE ';' TO satz-fill6.
MOVE itab_pos-fkimg TO satz-fkimg.
MOVE ';' TO satz-fill7.
MOVE itab_pos-netwr TO satz-netwr.
MOVE ';' TO satz-fill8.
MOVE itab_pos-vrkme TO satz-vrkme.
MOVE ';' TO satz-fill9.
MOVE itab_pos-ktgrm TO satz-ktgrm.
MOVE ';' TO satz-fill10.
MOVE itab_pos-matnr TO satz-matnr.
MOVE ';' TO satz-fill11.
MOVE itab_pos-mattxt TO satz-mattxt.
MOVE ';' TO satz-fill12.
MOVE itab_pos-gewei TO satz-gewei.
MOVE ';' TO satz-fill13.
MOVE itab_pos-brgew TO satz-brgew.
TRANSFER satz TO p_dath.
ENDLOOP.
CLOSE DATASET p_dath.
It is not so comfortable as it is with GUI_DOWNLOAD but it works in background! -
Hi All,
I have used a function module PTRA_WEB_EXPENSE_REPORT_GET_2 in a custom fumction module which i am developing fetch the travel expense data . The function module PTRA_WEB_EXPENSE_REPORT_GET_2 returns the travel expense data based on the employee and the trip number. I want to fetch the travel expense data for a given set of employees and trip number and hence i have used this function module inside a loop statement.
The function module returns the travel expense data for the employee and trip in the first loop pass. From the second loop passs it doesn't return the value. I have also checked this in se37 and the same thing happens. Value is returned for the fist employee but for the next employee we have to go to initial screen of se37 and execute the Func. module again.
I debugged this function module and found that the value of the employee and the trip number is stored in the global variable. The value passed for the employee and trip is compared with the correspomding value in the global variable and if they are not same an error message is returned. Since we are using in a loop , each time a different value is passed for the employee and trip and the check fails .
Is there any way to clear the value in the global parameters or is there any other function module which can be used to clear the values of the global variables?
Thanks!
Regards
Manipal ParkalaHello Archana,
May be we can try several ways...
1) can you try calling function module BUFFER_REFRESH_ALL ??
after each call...
2) May be u can call Function module "PTRA_WEB_EXPENSE_REPORT_GET_2 " in background task or seperate task , it will load the function group everytime when u call it in loop.
***DO let us know if it does not work.
thanks
~Raj -
User Exit for Variable which calls to a Function Module is NOT working ???
Hi all,
I have a created a variable 'ZNBUSDAY' with Processing Type 'Customer Exit' on 0SCL_DELDAT (Date). The query is on 0PUR_C04 and passing 0SCL_DELDAT to Function Module Z_WORKDAY to get the Next Business Day by using the company Calendar(30). The following code is NOT working and what is WRONG with it, PLEASE? The FM is working FINE.
DATA: wa_calendar(2) TYPE c value '30',
wa_znbusday like sy-datum,
0scl_deldat like sy-datum,
p_days TYPE i value 1.
case i_vnam.
when 'ZNBUSDAY'.
CLEAR wa_znbusday.
CALL FUNCTION 'Z_WORKDAY'
EXPORTING
CURR_DATE = 0scl_deldat
NUMBER_DAYS = p_days
CALENDAR = wa_calendar
IMPORTING
WORK_DAY = wa_znbusday
l_s_range-low = wa_znbusday.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
append l_s_range to e_t_range.
endcase.
Thanks,
Venkat.Hi Venkat,
Looks like you're only assigning type sy-datum to 0scl_deldat but not the actual value. Try the following:
DATA: wa_calendar(2) TYPE c value '30',
wa_znbusday like sy-datum,
0scl_deldat like sy-datum,
p_days TYPE i value 1.
case i_vnam.
when 'ZNBUSDAY'.
CLEAR wa_znbusday.
0scl_deldat = sy-datum.
CALL FUNCTION 'Z_WORKDAY'
EXPORTING
CURR_DATE = 0scl_deldat
NUMBER_DAYS = p_days
CALENDAR = wa_calendar
IMPORTING
WORK_DAY = wa_znbusday
l_s_range-low = wa_znbusday.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
append l_s_range to e_t_range.
endcase.
Kind regards,
Alex -
RFC Function module is not working in program while Background
Hi All,
we have a one program in BI system which is calling RFC function module. it is executing the program in foreground very well. Same program we have executed in background , it is not working at all. Thiis RFC function module exists in R/3 4.6c system.Hello Raju,
Transactional call of a remote-capable function module specified in func using the RFC interface. You can use the addition DESTINATION to specify an individual destination in dest. If the destination has not been specified, the destination NONE is used implicitly. Character-type data objects are expected for func and dest.
When the transactional call is made, the name of the called function, together with the destination and the actual parameters given in parameter list, are registered for the current SAP LUW in the database tables ARFCSSTATE and ARFCSDATA of the current SAP system under a unique transaction ID (abbreviated as TID, stored in a structure of type ARFCTID from the ABAP Dictionary, view using transaction SM58). Following this registration, the program making the call is continued by way of the statement CALL FUNCTION.
When executing the COMMIT WORK statement, the function modules registered for the current SAP LUW are started in the sequence in which they were registered. The statement ROLLBACK WORKdeletes all previous registrations of the current SAP LUW.
If the specified destination is not available for COMMIT WORK, an executable called RSARFCSE is started in the background. This attempts to start the functional modules registered for an SAP LUW in their destination, every 15 minutes up to a total of 30 times. You can make changes to these parameters using transaction SM59. If the destination does not become available within the given time, this is noted in the database table ARFCSDATA as a CPICERR entry. By default, this entry in database table ARFCSSTATE is deleted after 8 days.
Thanks and Regards,
SAP Shori -
Function module MAM25_011_getdetail not working
hi,
I m using Function Module Mam25_011_getdetail which is already designed in SAP.
I want to execute it but when I m executing it, it is asking me for user and notification number.... I have notification Number but i didn't have any idea about user. which user i fill there. I m using ECC 6.0 IDES Demo version and online version of SAP for this. but it is not working... pleas help me
Edited by: Thomas Zloch on Apr 25, 2011 10:47 PM exclamation marks removedNo still I m not getting any Value A return value in this
this Function Module is already created in SAP system You can also chk it there
with name MAM25_011_getlist (in IDES DEMO)
Or MAM30_011_getlist (real Time System)
Please Chk It and reply
I need it very much -
Function module END_TIME_DETERMINE not working correctly
Hi,
I have a task within a workflow which is used to determine the deadline date and time. Within the method there is a call to function module 'END_TIME_DETERMINE'. Sometimes this is not calculating the correct date and time in the production system. This is not happening always. When I am debugging the method or the function module its giving the correct date and time. An example for this is as below.
The function module is taking sy-datum and sy-uzeit as input parameters and exporting new dates and times based on the no. of hours in l_deadlinehours
l_startdate = sy-datum.
l_starttime = sy-uzeit.
CALL FUNCTION 'END_TIME_DETERMINE'
EXPORTING
DURATION = l_deadlinehours
UNIT = 'H'
FACTORY_CALENDAR =
IMPORTING
END_DATE = l_enddate
END_TIME = l_endtime
CHANGING
START_DATE = l_startdate
START_TIME = l_starttime
EXCEPTIONS
FACTORY_CALENDAR_NOT_FOUND = 1
DATE_OUT_OF_CALENDAR_RANGE = 2
DATE_NOT_VALID = 3
UNIT_CONVERSION_ERROR = 4
SI_UNIT_MISSING = 5
PARAMETERS_NO_VALID = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
An example where it has gone wrong is :
Current date: 28.01.2008 Current time: 04:27:11
l_deadlinehours = 12
New date: 20.10.0427 New time: 20:01:28.
Can anyone pls suggest why this could be happening?
regards,
AbhishekDoes it happen for certain users? Maybe there is something from how you handle the dates in your workflow. Maybe the date settings are different for certain users - check their user master.
Regards,
Karri -
Function module "GM_DOCUMENT_REVERSE" not found. after Patch Update
Hi Abapers/Basis
After patch update i am not able to do FBCJ reversal entry getting below error message.
Runtime Errors CALL_FUNCTION_NOT_FOUND
Exception CX_SY_DYN_CALL_ILLEGAL_FUNC
Date and Time 25.05.2011 14:43:26
Short text
Function module "GM_DOCUMENT_REVERSE" not found.
What happened?
The function module "GM_DOCUMENT_REVERSE" is called,
but cannot be found in the library.
Error in the ABAP Application Program
The current ABAP program "SAPLRWCL" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FUNC', was
not caught in
procedure "CALL_DISPATCHER_STORNO_R" "(FORM)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The program "SAPLRWCL" contains the CALL FUNCTION statement.
The name of the function module to be called is "GM_DOCUMENT_REVERSE".
No function module exists with the name "GM_DOCUMENT_REVERSE".
All function modules are listed in the Function Library (SE37).
Possible reasons:
a) Wrong name specified. Pay particular attention to
upper/lower case and underscores ("_").
or
b) Transport error
c) In the case of an enqueue/dequeue module,
the lock object may not have been activated
(ABAP/4 Dictionary).
How to correct the error
Check the last transports to the SAP System.
Is the program "SAPLRWCL" currently being changed?
If an enqueue/dequeue module is involved, is the activation
of the lock object missing in the ABAP/4 Dictionary?
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"CALL_FUNCTION_NOT_FOUND" "CX_SY_DYN_CALL_ILLEGAL_FUNC"
"SAPLRWCL" or "LRWCLF10"
"CALL_DISPATCHER_STORNO_R"
Function modules with names similar to "GM_DOCUMENT_REVERSE":
GM_DOCUMENT_CLOSE
GM_DOCUMENT_RECORD
GM_DOCUMENT_DELETE
GM_DOCUMENT_POST
GM_DOCUMENT_CHECK
G_DOCUMENT_RECORD
GJ_DOCUMENT_RECORD
GM_DOCUMENT_PROJECT
GET_DOCUMENTS
GM_DOCUMENT_DISPLAY
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
Moderator message: please don't just dump your dumps, search for SAP notes or open a call with SAP instead.
Edited by: Thomas Zloch on May 25, 2011 2:16 PMHi Karthik,
Thank you for ur reply.
I did not implement any user exit/ badi. Dump is saying that my smarform function module does not exist in the se37 library.
I have excuted my form through se38, that time is working fine. When i tried through output type it is going to dump.
Regards,
Kusuma. -
Function Module SO_OBJECT_SEND
Hi Gurus,
Can we send the attachments using Function Module 'SO_OBJECT_SEND'. ?
If so please do let me know the code for filling the attachment and using this FM.
Promise to reward points.
Thanks & Regards
MacHai ,
SAP supplies a function module 'SO_OBJECT_SEND' to allow you send SAPOffice mails from within your ABAP programs.
Just try this.
Author: Kevin Wilson
FUNCTION z_send_email_itab_uname.
""Local interface:
*" IMPORTING
*" VALUE(APPLICATION) LIKE SOOD1-OBJNAM
*" VALUE(EMAILTITLE) LIKE SOOD1-OBJDES
*" VALUE(RECEXTNAM) LIKE SOOS1-RECEXTNAM OPTIONAL
*" VALUE(SENDER) LIKE SOUD-USRNAM DEFAULT SY-UNAME
*" VALUE(UNAME) LIKE SOOS1-RECEXTNAM OPTIONAL
*" EXPORTING
*" VALUE(RETURN_CODE) LIKE SY-SUBRC
*" TABLES
*" TEXTTAB STRUCTURE SOLI
tables
TABLES: pa0105, "Employee detail for username and email address
usr21, "Login addition address data
adr6. "Address table for email addresses
*- local data declaration
DATA: ohd LIKE sood1,
oid LIKE soodk,
to_all LIKE sonv-flag,
t_uname LIKE sy-uname,
okey LIKE swotobjid-objkey.
DATA: BEGIN OF receivers OCCURS 0.
INCLUDE STRUCTURE soos1.
DATA: END OF receivers.
*- fill odh
CLEAR ohd.
ohd-objla = sy-langu.
ohd-objnam = application.
ohd-objdes = emailtitle.
ohd-objpri = 3.
ohd-objsns = 'F'.
ohd-ownnam = sy-uname.
IF NOT uname IS INITIAL.
Find personnel number of username
CONDENSE uname NO-GAPS.
WHILE uname CS ','.
t_uname = uname+0(sy-fdpos).
ADD 1 TO sy-fdpos.
SHIFT uname LEFT BY sy-fdpos PLACES.
PERFORM find_email_address USING t_uname
CHANGING recextnam.
ENDWHILE.
*Do the last record
IF uname <> space.
t_uname = uname.
PERFORM find_email_address USING t_uname
CHANGING recextnam.
ENDIF.
ENDIF.
*- send Email
IF NOT recextnam IS INITIAL.
CONDENSE recextnam NO-GAPS.
CHECK recextnam CS '@'.
ENDIF.
*- for every individual recipient send an Email
(see OSS message 0120050409/0000362105/1999)
WHILE recextnam CS ','.
PERFORM init_rec TABLES receivers.
READ TABLE receivers INDEX 1.
receivers-recextnam = recextnam+0(sy-fdpos).
ADD 1 TO sy-fdpos.
SHIFT recextnam LEFT BY sy-fdpos PLACES.
MODIFY receivers INDEX 1.
PERFORM so_object_send_rec
TABLES texttab receivers
USING ohd
sender.
ENDWHILE.
*- check last recipient in recipient list
IF recextnam <> space.
PERFORM init_rec TABLES receivers.
READ TABLE receivers INDEX 1.
receivers-recextnam = recextnam.
MODIFY receivers INDEX 1.
PERFORM so_object_send_rec
TABLES texttab receivers
USING ohd
sender.
ENDIF.
ENDFUNCTION.
FORM SO_OBJECT_SEND_REC *
FORM so_object_send_rec
TABLES objcont STRUCTURE soli
receivers STRUCTURE soos1
USING object_hd STRUCTURE sood1
sender LIKE soud-usrnam.
DATA: oid LIKE soodk,
to_all LIKE sonv-flag,
okey LIKE swotobjid-objkey.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
extern_address = 'X'
object_hd_change = object_hd
object_type = 'RAW'
outbox_flag = 'X'
sender = sender
IMPORTING
object_id_new = oid
sent_to_all = to_all
office_object_key = okey
TABLES
objcont = objcont
receivers = receivers
EXCEPTIONS
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
folder_not_exist = 4
folder_no_authorization = 5
forwarder_not_exist = 6
note_not_exist = 7
object_not_exist = 8
object_not_sent = 9
object_no_authorization = 10
object_type_not_exist = 11
operation_no_authorization = 12
owner_not_exist = 13
parameter_error = 14
substitute_not_active = 15
substitute_not_defined = 16
system_failure = 17
too_much_receivers = 18
user_not_exist = 19
x_error = 20
OTHERS = 21.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
MESSAGE i999(b1) WITH 'Activer user does not exist.'
'Send Mail failed!'.
WHEN 2.
MESSAGE i999(b1) WITH 'Communication Failure.'
'Send Mail failed!'.
WHEN 3.
MESSAGE i999(b1) WITH 'Component not available.'
'Send Mail failed!'.
WHEN 4.
MESSAGE i999(b1) WITH 'Folder does not exist..'
'Send Mail failed!'.
WHEN 5.
MESSAGE i999(b1) WITH 'No authorization for folder.'
'Send Mail failed!'.
WHEN 6.
MESSAGE i999(b1) WITH 'Forwarder does not exist.'
'Send Mail failed!'.
WHEN 7.
MESSAGE i999(b1) WITH 'Note does not exist.'
'Send Mail failed!'.
WHEN 8.
MESSAGE i999(b1) WITH 'Object does not exist.'
'Send Mail failed!'.
WHEN 9.
MESSAGE i999(b1) WITH 'Object not sent.'
'Send Mail failed!'.
WHEN 10.
MESSAGE i999(b1) WITH 'No authorization for object.'
'Send Mail failed!'.
WHEN 11.
MESSAGE i999(b1) WITH 'Object type does not exist.'
'Send Mail failed!'.
WHEN 12.
MESSAGE i999(b1) WITH 'No authorization for operation.'
'Send Mail failed!'.
WHEN 13.
MESSAGE i999(b1) WITH 'Owner does not exist.'
'Send Mail failed!'.
WHEN 14.
MESSAGE i999(b1) WITH 'Parameter Error.'
'Send Mail failed!'.
WHEN 15.
MESSAGE i999(b1) WITH 'Substitute not active.'
'Send Mail failed!'.
WHEN 16.
MESSAGE i999(b1) WITH 'Substitute not defined.'
'Send Mail failed!'.
WHEN 17.
MESSAGE i999(b1) WITH 'System failure.'
'Send Mail failed!'.
WHEN 18.
MESSAGE i999(b1) WITH 'Too many receivers.'
'Send Mail failed!'.
WHEN 19.
MESSAGE i999(b1) WITH 'User does not exist.'
'Send Mail failed!'.
WHEN 20.
MESSAGE i999(b1) WITH 'Unknown error ocurred.'
'Send Mail failed!'.
WHEN 21.
MESSAGE i999(b1) WITH 'Unknown error ocurred.'
'Send Mail failed!'.
ENDCASE.
ENDIF.
ENDFORM.
FORM INIT_REC *
FORM init_rec TABLES receivers STRUCTURE soos1.
CLEAR receivers.
REFRESH receivers.
MOVE sy-datum TO receivers-rcdat .
MOVE sy-uzeit TO receivers-rctim.
MOVE '1' TO receivers-sndpri.
MOVE 'X' TO receivers-sndex.
MOVE 'U-' TO receivers-recnam.
MOVE 'U' TO receivers-recesc.
MOVE 'INT' TO receivers-sndart.
MOVE '5' TO receivers-sortclass.
APPEND receivers.
ENDFORM.
*& Form find_email_address
Returns the email address for a USERID whether they are an
employee or just a user.
<--P_RECEXTNAM Email address
-->P_UNAME USERID
FORM find_email_address USING p_uname
CHANGING p_recextnam LIKE soos1-recextnam.
DATA: t_pernr LIKE pa0105-pernr,
t_email LIKE pa0105-usrid_long.
STEP 1 - Find personnel number for UNAME
SELECT SINGLE pernr INTO t_pernr
FROM pa0105
WHERE subty = '0001' AND
endda >= sy-datum AND
begda <= sy-datum AND
usrid = p_uname.
Employee record found
IF sy-subrc = 0.
STEP 2 - Find email address for personnel number
SELECT SINGLE usrid_long INTO t_email
FROM pa0105
WHERE pernr = t_pernr AND
subty = '0022' AND
endda >= sy-datum AND
begda <= sy-datum.
IF sy-subrc = 0.
IF NOT p_recextnam IS INITIAL.
CONCATENATE p_recextnam t_email
INTO p_recextnam SEPARATED BY ','.
ELSE.
p_recextnam = t_email.
ENDIF.
ELSE. "Never found an email address for employee
WHO SHOULD WE SEND TO HERE??? ***
ENDIF.
Employee number not found. Search in ADR6 table
ELSE.
See if user name is in the username table.
i.e. The user is not an employee
SELECT SINGLE addrnumber persnumber
INTO (usr21-addrnumber, usr21-persnumber)
FROM usr21
WHERE bname = p_uname.
IF sy-subrc = 0.
Found user name now let's get the email address
SELECT SINGLE smtp_addr INTO t_email
FROM adr6
WHERE addrnumber = usr21-addrnumber AND
persnumber = usr21-persnumber.
IF sy-subrc <> 0 OR t_email IS INITIAL.
WHO SHOULD WE SEND TO HERE??? ***
ELSE. "Found email
IF NOT p_recextnam IS INITIAL.
CONCATENATE p_recextnam t_email
INTO p_recextnam SEPARATED BY ','.
ELSE.
p_recextnam = t_email.
ENDIF.
ENDIF.
ELSE. "UNAME just does not have an email address addigned at all
WHO SHOULD WE SEND TO HERE??? ***
ENDIF.
ENDIF.
ENDFORM. " find_email_address
Regards.
Sowjanya.B. -
Function module "OCS_ALV_UI_QTRACE_AVAILABILITY" not found.
Hi,Guy ,
When we use the spam ,the system raise an Abap dump ,the message is :
Function module "OCS_ALV_UI_QTRACE_AVAILABILITY" not found.
My System is ECC6.0
can anybody tell me how to solve it ?thanks in advance .
Jialiang.QiuHi all, I've same problem,
do you know the solution?
Maybe you are looking for
-
Soda can design in Photoshop CS6 Extended problem
Hello, I just did my design for a fake soda can in Photoshop CS6 Extended, which I was hoping to use as a 3D image later in my artwork. I measured a real soda can carefully, so I'm sure the size and the orientation of the image is right. But when I
-
My ipad 2 pictures are all grainy, my wifes i pad 2 pis are great
when i hold the 2 ipads side by side and take a picture , mine is all grainy, hers is great , what is going on . as i look through the history of my photos , they seem to have gone downhill after i upgraded to i0s 6.whatever
-
I have a question on Handling unit management, we are using this application for product traceability. Creating internal labels for semi finished products & customer labels/internal labels for finished products. Following information required on the
-
Garbled FileName of email attachment
I am trying to send one email with attachment whose filename is in Japanese. Every character in subject, body of the mail is in Japanese and it is coming in mail very correctly. But the filename which also in Japanese is coming as garbled characters.
-
How to deleted warning this accessory is not optimized for this iPhone
How to deleted warning "this accessory is not optimized for this phone"