Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL
Hi all,
I have to send the same message to five different mail ID's using the Function module MESSAGE_SEND_AS_MAIL
How to pass this five mail ID's in the Parameter Reciever of the Function module
Regards
Ajay
see if this helps
REPORT Z_MESSAGE.
data receiv type standard table of SOMLRECI1 initial size 0.
data wa type SOMLRECI1.
wa-receiver = 'email address in caps'.
wa-REC_TYPE = 'U'.
append wa to receiv.
wa-receiver = 'email address in caps'.
wa-REC_TYPE = 'U'.
append wa to receiv.
do so more more three
CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'
EXPORTING
msgid = 'Z_ZZZ_CA_MESSAGES'
msgno = '000'
MSGV1 = 'material'
MSGV2 = 'MAT'
MSGV3 = 'MM'
MSGV4 = 'MMM'
tables
receivers = receiv[]
COMMIT WORK AND WAIT.
then u can go to SOST transaction and see that the mail has been or is yet to be sent. It worked for me. The message comes in an PDF form to the mail box.
Edited by: Biswadeep Ghosh on Jun 25, 2008 2:28 PM
Edited by: Biswadeep Ghosh on Jun 25, 2008 2:30 PM
Similar Messages
-
Is it necessary to pass RETURN parameter in bapi function module
Hai All,
Is it necessary to pass structure to RETURN parameter in bapi_transaction_rollback function module. If it is not necessary then how can it gives return value. Please give me the answer for this one. some sample code below...
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
RETURN = i_return.
LOOP AT i_return into wa_return WHERE type EQ c_error.
wa1_out-postdoc = wa_return-message.
ENDLOOP.
Thanks & Regards.
Laxman.Phi
bapi should never throw an error as it might be called for mass data proceessing
and it is prefferred not to hault the proceess bcoz of one or two errors.
that's why the error or success messages are caught and returned in return table.
in bapi_transaction_rollback the return parameter is not necessary as it will work without that as well.
the purpose of rollback bapi is just to undo whatever done before that.
regards
vijay
<b>reward points if helpful</b>
Message was edited by:
vijay sharma -
Passing Message number as an parameter in a Function module
Hi all,
I have to pass the Message number(sy-msgno) as an parameter into an function module
and that Message should be like "PO NUMBER ####### is deleted"
This Funtion module is an loop and PO number changes for every loop
How to define this Message in the Message class.
Regards
AjayHi,
Message definition SE91 should be like below.
PO NUMBER & is deleted.
Here & is the place holder where u can pass one value dynamically. If u want to pass 2 dynamic values then u have to use 2 place holder and so on.
eg: PO NUMBER & is deleted by user &.
When u call this message it will display like
PO NUMBER 12345 is deleted by user user1.
Thanks,
vinod. -
How to change the status of the system programmatically with Function Module
I Was trying to change the status of the notification through STATUS_CHANGE_INTERN function module . But It is not changing the status of the notification.
Can any one help to understand what is going wrong ... or any other function module to change status of Customer complaint notification ..Hi KK,
Please can you take clues form the below discussion thread -
http://scn.sap.com/thread/775169
Thanks to all original contributors of this thread!!
NOTE: Please note that the main point explain here is that, if you are willing to change to a status Ex, NOPR, NOCO, etc then you will need to pass on the value 'I0070', 'I0072', etc. I will also go ahead and like to add one more point here to make the language check as well like "EN", 'DE', etc as these statuses are language dependent too.
Thanks,
Arijit -
What are the input parameters for Function Module
Dear Experts,
I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
For that i want to write a Generic Datasource with Function Module.
audat
bukrs
vkorg
vtweg
spart
aurat
auart
netwr
mwsbp
kschl zedp(consition type)
kschl zvat(condition type)
ksch zcst(condition type)
matkl material group
Here what are the Input parameters for Function Module.
Thanks in Advance.
Srinivasan.Srinivasan-
For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
Let me know how it goes.
-Bhushan. -
Crystal Reports 2008 - passing a parameter in the Command Object
Hi,
I am using Crystal Reports 2008. I have 4 Command Objects where I have the following queries.
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntFSw from emmain where emtype='SWOR' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntMCiv from emmain where emtype='CIV' and emsex = 'M' and emdateterm is null group by emrace
select emrace,count(empl_id) cntMSw from emmain where emtype='SWOR' and emsex = 'M' and emdateterm is null group by emrace
I want to pass a parameter to all these command objects. I want the user to select a parameter from a list of values. So, I created a parameter object, Bureau. (I get the values for the parameter with this command object: select code_agcy, descriptn from systab1 where code_key = 'UNIT'). I want the user to be able to get the counts for each bureau.
How do I pass the parameter that the user picked to those command objects. I tried doing this:
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null
and emunit = '{?Bureau}' group by emrace
But it did not work. Any help will be greatly appreciated.
Thanks.Hi,
I am using Crystal Reports 2008. I have 4 Command Objects where I have the following queries.
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntFSw from emmain where emtype='SWOR' and emsex ='F' and emdateterm is null group by emrace
select emrace, count(empl_id) cntMCiv from emmain where emtype='CIV' and emsex = 'M' and emdateterm is null group by emrace
select emrace,count(empl_id) cntMSw from emmain where emtype='SWOR' and emsex = 'M' and emdateterm is null group by emrace
I want to pass a parameter to all these command objects. I want the user to select a parameter from a list of values. So, I created a parameter object, Bureau. (I get the values for the parameter with this command object: select code_agcy, descriptn from systab1 where code_key = 'UNIT'). I want the user to be able to get the counts for each bureau.
How do I pass the parameter that the user picked to those command objects. I tried doing this:
select emrace, count(empl_id) cntFCiv from emmain where emtype='CIV' and emsex ='F' and emdateterm is null
and emunit = '{?Bureau}' group by emrace
But it did not work. Any help will be greatly appreciated.
Thanks. -
How can i pass a parameter to the query to filter the result of this lookup
Hello,
i'm developping a web application with JDeveloper 10.1.2 and JHeadStart.
i realy need to know how can i filter the lookup (LOV) query result.
in other word, when i click on the lookup, it show all the row that exist in may data base table.
what i want is how can i pass a parameter to the query to filter the result of this lookup ?
Thank youHi,
have a look if this helps
http://oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
Frank -
How to pass select-option filed to Function Module Exporting Parameter
Hi,
How to pass select-option filed to Function Module Exporting Parameter.
ThanksHi,
DATA: BEGIN OF ITAB5_WRK OCCURS 0,
KUNNR TYPE KNKK-KUNNR, "CUSTOMER #
SBGRP TYPE KNKK-SBGRP, "CREDIT REP
KLIMK TYPE KNKK-KLIMK, "CREDIT LIMIT
NAME1 TYPE KNA1-NAME1, "CUSTOMER NAME
SKFOR TYPE KNKK-SKFOR, "TOTAL A/R
AMT1 TYPE KNKK-SKFOR, "CURRENT
AMT2 TYPE KNKK-SKFOR, "01-30
AMT3 TYPE KNKK-SKFOR, "31-60
AMT4 TYPE KNKK-SKFOR, "61-90
AMT5 TYPE KNKK-SKFOR, "91-120
AMT6 TYPE KNKK-SKFOR, "OVR 120
BZIRK TYPE KNVV-BZIRK,
END OF ITAB5_WRK.
SELECT-OPTIONS P_COMP FOR T001-BUKRS
SELECT KUNNR SBGRP FROM KNKK
INTO TABLE ITAB5_WRK
WHERE SBGRP IN P_REP
AND KUNNR GE '0001000000'
AND SKFOR NE 0.
LOOP AT ITAB5_WRK.
DELETE ADJACENT DUPLICATES FROM ITAB5_WRK COMPARING KUNNR.
ENDLOOP.
PERFORM GET_CREDIT_LIMITS.
*=======================================================================
IF P_DIST NE SPACE.
LOOP AT ITAB5_WRK.
SELECT SINGLE * FROM KNVV WHERE KUNNR EQ ITAB5_WRK-KUNNR
AND VKORG EQ P_COMP
AND VTWEG EQ '20'
AND SPART EQ '10'
AND BZIRK IN P_DIST.
IF SY-SUBRC EQ 0.
MOVE KNVV-BZIRK TO ITAB5_WRK-BZIRK.
MODIFY ITAB5_WRK.
ELSE.
DELETE ITAB5_WRK.
ENDIF.
ENDLOOP.
ENDIF.
*==============================================================
LOOP AT ITAB5_WRK.
MOVE: 'F/S' TO WRK-KKBER,
ITAB5_WRK-KUNNR TO WRK-KUNNR.
PERFORM AGING.
ADD: W_SNFAE TO ITAB5_WRK-AMT1,
W_SFAE1 TO ITAB5_WRK-AMT2,
W_SFAE2 TO ITAB5_WRK-AMT3,
W_SFAE3 TO ITAB5_WRK-AMT4,
W_SFAE4 TO ITAB5_WRK-AMT5,
W_SFAE5 TO ITAB5_WRK-AMT6,
W_SFAEL TO ITAB5_WRK-SKFOR,
W_SNFAE TO ITAB5_WRK-SKFOR.
MOVE: 'SPEC' TO WRK-KKBER,
ITAB5_WRK-KUNNR TO WRK-KUNNR.
*PERFORM AGING.*
ADD: W_SNFAE TO ITAB5_WRK-AMT1,
W_SFAE1 TO ITAB5_WRK-AMT2,
W_SFAE2 TO ITAB5_WRK-AMT3,
W_SFAE3 TO ITAB5_WRK-AMT4,
W_SFAE4 TO ITAB5_WRK-AMT5,
W_SFAE5 TO ITAB5_WRK-AMT6,
W_SFAEL TO ITAB5_WRK-SKFOR,
W_SNFAE TO ITAB5_WRK-SKFOR.
MODIFY ITAB5_WRK.
ENDLOOP.
FORM AGING.
*CALL FUNCTION 'CUSTOMER_DUE_DATE_ANALYSIS'*
EXPORTING
BUKRS = P_COMP
KKBER = WRK-KKBER
KUNNR = WRK-KUNNR
RASID = 'FEND'
KLIMP = 'X'
IMPORTING
SFAE1 = W_SFAE1
SFAE2 = W_SFAE2
SFAE3 = W_SFAE3
SFAE4 = W_SFAE4
SFAE5 = W_SFAE5
SFAE6 = W_SFAE6
SFAEL = W_SFAEL
SNFA1 = W_SNFA1
SNFA2 = W_SNFA2
SNFA3 = W_SNFA3
SNFA4 = W_SNFA4
SNFA5 = W_SNFA5
SNFA6 = W_SNFA6
SNFAE = W_SNFAE
EXCEPTIONS
NO-AGING_SCHEDULE = 1
NO_TABLE_INPUT = 2.
CASE SY-SUBRC.
WHEN 1.
MESSAGE E999 WITH 'PLEASE ENTER AGING SCHEDULE'.
WHEN 2.
MESSAGE E999 WITH 'DO NOTHING ??'.
ENDCASE.
ENDFORM. "AGING
Thanks -
How to pass wild card '%' value from the parameter to the query
Hello everyone,
I have following 2 problems
1) I was trying to do some thing like below
select * from emp
where ename like 'J%'
for this i have used the following code
select * from emp
where ename like :P_ENAME
and before running the query in the parameter box i entered J%. But my report returns an error which says INVALID PARAMETERS REQUESTED.
2) I have a req of passing both comma separated and wild card for the same parameter. If we take the same example as above,
user should be able to enter
a) JASON, SMITH, JOHN OR b) J%
I have used comma separated value option of the parameter for the csv values and its working fine, but i need to add the wild card feature also to the same parameter.
Can anyone please help me with these things?????
Thanks in advance!!
RaghuHi Raghu,
I guess you are in older version, You have to get into latest version to use %, it should work well
you should use where ( ename like :P_ENAME ) or ( ename in (:P_ENAME)) for both the condition to satisfy. -
Howt 2 delta with the extractor created on Function Module..
hi there,
can anybody tell me how to update delta with the extractor created on Function Module..
rgds,
amolrefer to the document at the below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
Generic Extractor using FM with Delta Logic
hope it helps,
rgs,
Parth.
Edited by: Partho Mukherjee on Jan 12, 2009 6:00 PM -
Passing a Parameter to the Procedure and changing it in the Procedure
Hi all,
I am trying to pass a parameter to a procedure like this.
PROCEDURE FLASH_PHY
(date_begin IN DATE, date_end IN DATE)
IS
I am trying to do SELECT and INSERT based on the date range passed in the procedure as mentioned above. And I am trying to do something like this.
SELECT NVL(sum(charges),0),count(summary_balances_id)
INTO lnu_charges_6months,c_summary
FROM SUMMARY_BALANCES
WHERE period_begin BETWEEN ADD_MONTHS((date_begin), -6) -- AND ADD_MONTHS((date_end), -1);
UPDATE summary_balances
SET cummulative_charges_6mo = lnu_charges_6months;
how should I do this parameter change. Right now if I use this select statement than it does not return anything as the parameter is passed on the procedure level. I am under the impression that when you pass a parameter to the procedure like this you can't change it into the procedure.
PLEASE GUIDE. Thanks a bunch. I really appreciate it.From what I understand your variables that are passed into the
procedure can be manipulated as local variable to the procedure.
Here is my interpretation of what your attempting to do:
create or replace procedure A (x in number) IS
yes varchar2(3) := 'No';
begin
dbms_output.put_line('Start value for yes:'||yes);
select 'yes' into yes from dual where x+1 = 2;
dbms_output.put_line('End value for yes:'||yes);
end;
Call the procedure called "A" passing in a "1".
EG:
BEGIN
A(1);
END;
Does this answer your question?
,Russ -
Storing the output of a function module into a custom table
Hi Gurus,
Is it possible to store the output of a function module into a custom table.How can this be done?Is it complex?hi,
After u execute the FM and get values in the internal table ITAB_RESULT. Create a custom table having structure same as ITAB_RESULT call it ZRESULT.
data :wa type ITAB_RESULT.
call FM and get result it ITAB_RESULT
loop at itab_result.
move-corresponding itab_result to wa.
insert wa to ZRESULT.
endloop.
Regards,
Mansi. -
Delta Problem while extracting the data by using function module
Hi Experts,
I have extracted the data by using Function module, for delta loads I have given Calday and additive delta in Generic delta settings, in BW side I have initialized the data after that I have given delta update option in infopackage and I made process chain also, every day process chain is running successfully but it is showing zero records, but there is a data in Data source (RSA3), means delta is not working.
What is the problem,
Is there any another settings for delta loads,
Please help me to do this,
Helpful answer will be appreciated with points,
Regards,
VenkatHi,
Try this delta type :NEW STATUS FOR CHANGED RECORDS.
More information from Nagesh, this information may help
1. New status for changed Records.
2. Additive delta.
New status for changed records means
New Order
order no quantity
1000 10
order changed to quntity 8. then 2 records will posted 2 BW in first case.
1000 -10
1000 8
if you come to Additve delta.
for the same case it will send the same record as
1000 10
changed records
1000 -2
this is the difference. New status with changed records should be used only in association with ODS not cube becoz we don't have overwrite option.
Additive delta we can use for ODS and Cubes with update mode Addition.
Regards,
Satya -
Function Module 'MESSAGE_SEND_AS_MAIL'
Hi all,
I am using the function module MESSAGE_SEND_AS_MAIL for sending the mails
The message in the Parameter msgno is "Your PO is going to expire"
The Message in the Parameter msgv1 is "Your PO Number is 12345"
Please tell me In which format this mail reaches the user means
What will be the content of the mail and what will be the Subject of the mail
Also please tell me will this function module works for sending the mails
beacuse in DEV server i am not able to Test it
Thanks & Regards
Ajay
Edited by: ajay babu on Jun 26, 2008 8:07 AMsee if this helps
REPORT Z_MESSAGE.
data receiv type standard table of SOMLRECI1 initial size 0.
data wa type SOMLRECI1.
wa-receiver = 'email address in caps'.
wa-REC_TYPE = 'U'.
append wa to receiv.
wa-receiver = 'email address in caps'.
wa-REC_TYPE = 'U'.
append wa to receiv.
do so more more three
CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'
EXPORTING
msgid = 'Z_ZZZ_CA_MESSAGES'
msgno = '000'
MSGV1 = 'material'
MSGV2 = 'MAT'
MSGV3 = 'MM'
MSGV4 = 'MMM'
tables
receivers = receiv[]
COMMIT WORK AND WAIT.
then u can go to SOST transaction and see that the mail has been or is yet to be sent. It worked for me. The message comes in an PDF form to the mail box.
Edited by: Biswadeep Ghosh on Jun 25, 2008 2:28 PM
Edited by: Biswadeep Ghosh on Jun 25, 2008 2:30 PM -
Passing Internal Table to a Function Module.
I am new to Web Dynpro Abap. Using the Function Builder, I am trying to pass an Internal Table (IT) as an import parameter into my Function Module (FM), fill it within the FM and be able to recieve the filled IT back as an Export parameter from the FM to my program. My problem here is that I do not know how to specify the Internal Table as an import OR export parameter for a Function Module, I tried using the Table Tab, but it says that is obsoleted.
Anyone! Thanks.Hi,
You want to pass the internal table to FM inside WD component and that table contains fields from diff table, right?
Open the FM through SE37. Goto 'Tables' tab of FM. Create table of type mentioned in the 'Associated Type' column of the FM. Fill the internal table with data and pass the internal table to FM.
You can create Table type with different fields through SE11.
I hope I interpreted your question correctly.
Regards,
Saket.
Maybe you are looking for
-
No Texting Ability with BES/Multiple e-mail addresses - BB 8900
Hello all, 1. I recently dumped my iPhone and switched to the BB 8900, all is well except I use my BB for work and my company disabled my text message feature and IM feature. I am able to receive text messages but I can no longer respond. Any id
-
Cost Component mismatch in CK11N
Hi, When I display Material Cost estimate with Qty Struc (CK11N), the cost component split that is displayed is not the one tha's been defined in the costing variant. Note: there is only 1 C.Comp - say X1. Struc defined in OKTZ. Yet the behaviour is
-
Using my iMac CRT as a display
Can I use my old iMac CRT 600 mHz computer as a display for my MacBook?
-
Problem call Web Service SAML on PI 7.0
Hi experts, I have a problem very estrange on one scenario and maybe somebody could help me: Our PI version is 7.0. The BPM has got the following steps: - Call WebService for get the SAML. Message Synchronous with request and response Authentificatio
-
Hey everyone. I'm at wit ends here so I hope someone may be able to help me. I am essentially using getRuntime() to get freeMemory totalMemory and maxMemory for VM. I get the numbers back but they really don't make sense to me. Assuming that freeMemo