Receiver Type Function Module in SWE2 use of export parameter.
i am trying to understand the underlying concept in following things:(neednot to say i have searched alot and read sap documentation already).
In event type linkage table say i have an entry for BOR -> AFVC_PM.
As per sap Documentation says all these FM will trigger in following way.
1 Check Function Module (to place any validations/checks)
2 Receiver Type Function Module ()
3 Receiver Function Module.
Thats fine.
This is what documentation says about Receiver Type FM(2nd FM) not Receiver FM(3rd FM).
This FM has 1 export paramter
Export parameters
RECTYPE type SWETYPECOU-RECTYPE Receiver type( Result of the evaluation by the receiver type function module.)
if i am understanding this right, in this FM receiver type will be decided .
i have placed BREAK-POINT in this FM and passing value WS90000024 (Workflow with simple mail step) in export parameter RECTYPE.
after everything executed successfully why i can't see that mail in my inbox.
Please correct me if i had misunderstood the concept .
ok,indeed i was missing this thing.
i got the mails in inbox.
but why i can't see this value WS90000024 of this workflow ()which is going to be triggered ) in parameter RECTYPE.(its empty).
it is empty after the receiver type function module execution is complete.
below is workflow template,
Similar Messages
-
Call Remote Function Module with SAEURI dataelement as Export parameter
Hi Experts, Am creating a program in a Gateway system, where i need to call a FM from HR system.
My Code is like this,
Data: lname(20) type c,
lv_url type SEAURI.
Call 'Z_EMP_GET' Destination 'HR_DEST'
Exporting
Pernr = '12345678'
Importing
lname = lv_lname
Url = lv_url.
At HR Destination system, I have a FM 'Z_EMP_GET ' with signature as
Importing : Pernr Type NUMC
Exporting : lname Type Char20
Url Type SAEURI(Char 4096).
When i debugged it, I see the Remote FM is getting Perner value and returning only lname, but URL paramter is empty.
I believe i have problem in receiving Long Text (URL - Char 4096).
How can i handle this and let me know if need to specify String length parameter for RFC call somewhere.
Also let me know if need more details
Thanks in advance.
Thanks in advance.Hi naveenraj,
I don't know which type of URL you want in output but you can check entries in table HTTPURLLOC and or if you want URL of employee photo then you have to use this FM HRWPC_RFC_EP_READ_PHOTO_URI.
Regards,
Shahezad -
Hi workflow experts,
i want to select one workflow out of three , based on the user who triggers the event using receiver type function module. can any one suggest me the steps to be followed to design the receiver function module.Hi James,
to get back to what you've asked for in the first place: You'd like to start one workflow (out of three) to choose among those you basically have two choices, as Saujanya gave you the second one, i.e.
Create an event linkage for each of the three workflow and suppress two of them by check function modules where the third one lets the event pass through. This is basically the same, as having one event linkage with a receiver type function.
For a solution, having multiple event linkages here, it could turn out to be tricky to program these check functions in the way that they guarantee that only one workflow starts at the same time. This is going to be more difficult the more complex the expression is.
For using a receiver type with one event linkage active, it is build-in that only one workflow may start with the event.
Any check-function modules work in addition to what the receiver type returns.
If using receiver types, do <i>not</i> enable event linkages for all three workflows, just customize the event-container binding in the event linkage section within the general workflow properties and do not activate it here. Instead create an event linkage manually within the transaction SWETYPV.
If you need additionally an check, I'd propose to have a separate check function module there.
Best regards,
Florin -
Use of exporting parameter VIA_T777D in function module RH_READ_INFTY
Hi,
Can any one explain me the use of exporting parameter VIA_T777D in the function module RH_READ_INFTY.
Regards,
AravindClosing.
-
Which function module could be used to create ACTIONs in transaction
HI,
when we open a transaction use TCODE CRMD_ORDER, there is always a tab named 'Action'. And Which function module could be used to create a new action?
THS!Hi Gang,
I am not sure about the Function Module but ya if you access through this link i belive you will be able to create ACTION for your Transaction.
Link:[Action|http://help.sap.com/saphelp_crm70/helpdata/en/54/238e39e1ba3541e10000000a11402f/frameset.htm].
Let me know in case you need any more help.
Vijayata -
Function module names to delete the Export Datasource
Hi Experts,
Can anyone please let me know what function modules are while deleting the export datasource. So far in my research i have found only
RSB1_DELETE_EXPORT_DATASOURCE. -- This fm does not deletes the export datasource, I want to know which fm is used exactly to delete the datasources.
To delete the virtual infocubes, the fm used is RSDG_CUBE_DELETE. Similarly there must be a fm to delete the export datasource.
Please help.
Thanks,
Prashant.Hi Reddy,
I hope there is no specific function module to delete the entries ( as of version 4.0). So you need to code a delete statement to perform the task.
Thanks,
Siva. -
RE: Idoc types , Function modules
HI All
What are the generic <b>Idoc types</b> and <b>function modules</b> used for the following objects for SAP R/3 4.7
Invoice Release (inbound)
Payments (outbound)
Purchase Orders (outbound)
Goods Receipts (outbound)
Cost Centers (outbound)
GL Codes (outbound)
Internal Orders (outbound)
WBS (outbound)
Materials (outbound)
Invoices (inbound)
Invoices Blocked (outbbound)
Any help will be very much appreciated
And How do i judge which IDOC types and function module fit my requirement( I mean what are the things i have to keep in mind while choosing idoc types and function modules)
Thnk you
SteveI have an idea.
Build an idoc from scratch with all the fileds or use the idoc invoic01 and extend it. Comming to function module write a function module that will extract the data from the idoc and will pass the data to bapi BAPI_INCOMINGINVOICE_CREATE( MIRO SCREEN). Please comment on this!!! -
How to find Function Module & Program Name Used by IDOC
hii Experts,
i want to find program name & function modules used in IDOC. I have Idoc type, Message type & extension type.
Help meHi Vinod,
Go to transaction WE64, click on the <b>search for message type</b> or press <b>shift+F6</b>. A popup will be displayed and here enter the message type for example 'QUOTES', u will be taken to the process codes available for the message type u have entered. click on the process code and data related to that process code will be displayed in the right hand side. Now double click on the process code, a pop up with function module name will be displayed. copy that and search for where used list in SE37.
Hope it helps.
Regards,
Phani. -
Calling r/3 function module from crm using rfc
Dear SDN Members,
I'm given a task to write a method on CRM side which sets the equipment status to "lost" in ABAON transaction on R/3 side. There is a function module on r/3 side which is RFC enabled and it will set the stuatus to LOST when we call that from CRM. This RFC fm is not available on CRM side, so I cannot used Pattern. I'm very new to abap and when i've gone through abap help I got the syntax which i've write with destination parameter. But I'm really not understanding how to pass Lost status to that fm.
Here-with I put the coding so far i've done on crm side and also the rfc fm coding aswell on r/3 side.
Should any one need for more info please do let me know to my yahoo ID:
[email protected]. I would be pleased to provide you the same.
The coding on crm side to call the r/3 fm through rfc follows here..
method IF_EX_EXEC_METHODCALL_PPF~EXECUTE.
21st November 2006
Created by Venkata Sunder
Method for
Loss Disposal - ERP Equipment Status Update
Damage Notifications
Called by actions
DATA: lv_guid_ref TYPE crmt_object_guid,
lv_kind_ref TYPE crmt_object_kind. "#EC NEEDED
DATA: lv_preview TYPE char1. "#EC NEEDED
DATA:
lt_header_guid TYPE crmt_object_guid_tab,
lt_orderadm_i_buffer TYPE crmt_orderadm_i_wrkt,
gs_orderadm_i_buffer TYPE crmt_orderadm_i_wrk,
lt_orderadm_i_db TYPE crmt_orderadm_i_wrkt,
gs_orderadm_i_db TYPE crmt_orderadm_i_wrk,
lt_customer_i_buffer TYPE crmt_customer_i_wrkt,
gs_customer_i_buffer TYPE crmt_customer_i_wrk,
lt_log_handle TYPE balloghndl,
return TYPE bapiret2_t,
gs_return TYPE bapiret2,
ev_rfcdest TYPE rfcdest.
get guid for referenced object
CALL METHOD cl_hf_helper=>action_helper->get_ref_object
EXPORTING
io_appl_object = io_appl_object
ip_action = ip_action
ii_container = ii_container
IMPORTING
ev_guid_ref = lv_guid_ref
ev_kind_ref = lv_kind_ref
ev_preview = lv_preview.
current crm transaction is identified
IF lv_guid_ref IS INITIAL.
RAISE EXCEPTION TYPE cx_socm_condition_violated.
ENDIF.
Header GUID
APPEND lv_guid_ref TO lt_header_guid.
Read order details from buffer
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lt_header_guid
IMPORTING
et_orderadm_i = lt_orderadm_i_buffer
et_customer_i = lt_customer_i_buffer
CHANGING
cv_log_handle = lt_log_handle
EXCEPTIONS
document_not_found = 1
error_occurred = 2
document_locked = 3
no_change_authority = 4
no_display_authority = 5
no_change_allowed = 6
OTHERS = 7.
IF sy-subrc <> 0.
ENDIF.
call function destination 'DERCLNT200'.
(I'm not understanding how and wt to pass to this fm.)
The fm 'Z_SET_EQUIPMENT_STATUS_RFC' on r/3 side has the following coding..
DATA:
lv_objnr LIKE equi-objnr,
lv_estat LIKE tj30-estat,
wa_return LIKE bapiret2.
LOOP AT equipment_status.
SELECT SINGLE objnr
FROM equi
INTO lv_objnr
WHERE equnr EQ equipment_status-equnr.
SELECT estat
FROM tj30t
INTO lv_estat
WHERE stsma = equipment_status-stat_profile
AND txt04 = equipment_status-status
AND spras = sy-langu.
ENDSELECT.
CALL FUNCTION 'STATUS_CHANGE_EXTERN'
EXPORTING
CHECK_ONLY = ' '
client = sy-mandt
objnr = lv_objnr
user_status = lv_estat
SET_INACT = ' '
SET_CHGKZ =
NO_CHECK = ' '
IMPORTING
STONR =
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
IF sy-subrc NE 0.
MOVE:
equipment_status-equnr TO wa_return-message_v1,
'E' TO wa_return-type,
' Equipment Update failed' TO wa_return-message.
APPEND wa_return TO return.
ELSE.
COMMIT WORK.
ENDIF.
CLEAR wa_return.
ENDLOOP.
ENDFUNCTION.
Thanks in advance.
Best Regards!
Sam.Hi,
You can write similar to the below.
CALL FUNCTION 'CRM_ORDER_READ'
<b>DESTINATION 'DERCLNT200'</b>
EXPORTING
it_header_guid = lt_header_guid
IMPORTING
et_orderadm_i = lt_orderadm_i_buffer
et_customer_i = lt_customer_i_buffer
CHANGING
cv_log_handle = lt_log_handle
EXCEPTIONS
document_not_found = 1
error_occurred = 2
document_locked = 3
no_change_authority = 4
no_display_authority = 5
no_change_allowed = 6
OTHERS = 7.
Thanks
Ramakrishna -
Function module to download using file browser
FUNCTION MODULE TO download the data to a file by choosing the path using file browser.
In your selection screen use this below logic. Then on the screen a pop up file browser wud appear where you can select the path to download the file.
PS: If this solves your problem please reward points and mark this question answered.
Regards.
SELECT-OPTIONS AND PARAMETERS *
Local File path
SELECTION-SCREEN BEGIN OF BLOCK file_info WITH FRAME TITLE text-001.
PARAMETER : p_file TYPE ibipparms-path .
SELECTION-SCREEN END OF BLOCK file_info.
AT SELECTION-SCREEN EVENTS - validate user input *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
*Pop up screen to select the local file from PC
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file. -
Which functional modules we can use to update the costs in WBS?
Hello friends,
I need to update the costs assigned to WBS elements at cost element level using TCode CJR2. Which function modules are available to do this?
Can you show me sample implementation for the same?
Thanks in advance,
Amol C.You can't.
A UIImage object is a high-level way to display image data. You can create images from files, from Quartz image objects, or from raw image data you receive. The UIImage class also offers several options for drawing images to the current graphics context using different blend modes and opacity values.
Image objects are immutable, so you cannot change their properties after creation. -
What is the function module which is used to trigger email
Hi ALL,
can u send me the function module which has to trigger email when sales order was saved.
kindly send me the inputs
thanks & regards
naveen
Moderator Message: Basic Question. Thread locked.
Edited by: kishan P on Nov 11, 2010 10:56 AMHi,
This needs to coded in the Save User Exit of the Sales Order Include MV45AFZZ (USEREXIT_SAVE_DOCUMENT) and use the Function Module "SO_DOCUMENT_SEND_API1" to trigger a mail.
Please try this and let me know if any.
Regards,
Srinivas
Moderator Message: Do not answer Basic Question.
Edited by: kishan P on Nov 11, 2010 10:58 AM -
Outbound IDOC for sales order: message type, function module ?
Hi all,
is there a possibility to send out sales order data with an outbound IDOC (like sending an purchase order out with ORDERS.ORDERS05)
I've looked in WE20, for application V1 there are process codes like SD01, SD04, ... but the function modules behind are no existing on our system (release 500)
can anybody give me an little hint?
Thank you very much
best regards HansHi George,
for every process code there is a function module attached you can see in WE41(t-code)..
double click on the Process code you will able to see the Function Module attached to Process code..
and also you can check it out in WE57 (t-code) link between the Function module and Message type and Idoc type..
Process code SD01
Description ORDRSP: Order acknowledgment, ORD_ID01 (SD_ORDRSP)
Function module SD_EDI_ORDRSP_ORD_ID01
Process code SD04
Description DESADV: Shipping notif. with DES_ID01 (SD_DESADV)
Function module SD_EDI_DESADV_DES_ID01
regards,
Prabhudas -
RFC Function module's where used list
Dear Experts,
I have a situation where in I need to change certain parameters/ the logic of an RFC function module. but before making the changes to the function module I need to know where this function module is used in various systems. So can some one tell me a way to find the where used list of an RFC function module in the calling system.
Thanks
-AmitIt could be called from anywhere, theoretically, SAP or non-SAP environments.
I hope you can rely on good documentation in your organization to find the potential callers, as each call must have been consciously implemented at some point.
Also check with system administrators who might have a means to study trace logs for information on calling systems.
Thomas
P.S. the hard way would be to just do the change and see who complains later on -
Function Module: how to setting table import parameter
hi, i'm developing a function module. i create a TABLES where it will allow multiple variables IMPORT from user input to this function module. the tables i set as OPTIONAL and decribed as below.
PSPID PS_PSPID CHAR 24
POSID PS_POSID CHAR 24
AUFNR AUFNR CHAR 12
PSY J_STATUS CHAR 5
PUS J_STATUS CHAR 5
in my source code, i done a select statement to process the IMPORT input . the problems i face,for the PSY and PUS input, if the one or both input is BLANK, NO RESULT will display. What i'm try to do , if input one or both is BLANK, it wil neglect the input and return as ALL RESULT (return result oir all status for input pspis / posid / aufnr) . attached the select statement. thank you
itparm[] = objparm[].
select
a~pspnr a~stspr a~objnr a~pspid
b~psphi b~objnr as wobjnr b~posid
c~aufnr c~objnr as nobjnr c~pspel
d~objnr as jeobjnr d~inact d~stat
e~objnr as jcobjnr e~udate e~usnam e~utime e~stat as jcstat e~inact as jcinact
f~istat as syistat
f~txt04 as sytxt04
f~spras
g~estat as usestat
g~txt04 as ustxt04
into corresponding fields of table itobj
from proj as a
inner join prps as b on a~pspnr = b~psphi
inner join aufk as c on b~pspnr = c~pspel
inner join jest as d on c~objnr = d~objnr
inner join jcds as e on d~objnr = e~objnr
and d~stat = e~stat
inner join tj02t as f on e~stat = f~istat
inner join tj30t as g on a~stspr = g~stsma
for all entries in itparm
where ( a~pspid = itparm-pspid
or b~posid = itparm-posid
or c~aufnr = itparm-aufnr )
and ( f~istat = itparm-PSY and g~estat = itparm-PUS ).Thanks for your quick reply. actually the data will be somehing like this. since i developed a function module, i keep the import parameter in a table.
PSPID PS_PSPID CHAR 24
POSID PS_POSID CHAR 24
AUFNR AUFNR CHAR 12
PSY J_STATUS CHAR 5
PUS J_STATUS CHAR 5
the example data will be in OTPARM internal table
PSPID POSID AUFNR PSY PUS
aa-aa-aa a1 I001
bb-bb-bb b1 E009
cc-cc-cc
i'll store this into an internal table. from the data. it can be seen there a BLANK input. so the blank input should not be included into WHERE connditions. that why in the previous solution, i use SELECT inside LOOP because every line of the IMPORT tables will be generated with different WHERE conditions. i tried to do something like this:
PSPID POSID AUFNR PSY PUS cond_syx
aa-aa-aa a1 I001 if proj~pspid = itparm-pspid and prps~posid = itparm~posid and ....
bb-bb-bb b1 E009 if proj~pspid = itparm-pspid and aufk~aufnr = itparm~paufnr and ....
cc-cc-cc if proj~pspid = itparm-pspid
and implement with FOR ALL ENTERIES, but at the WHERE conditions i failed to put the CONF_SYX. please comment and give opinions. Thanks you very much.
Maybe you are looking for
-
External exe launched in a rectangular region drawn
Hello, Please find an attachment. Kindly have a look on .uir file in the example. If i want to launch any external exe say e.g cmd.exe in the rectangular region drawn, what will be way of doing this as i am unable to launch .exe in the rectangular re
-
What are external requirements in re-order planning?
Hi, I read in SAP help that "sales orders, dependent requirements, reservations and so on..." are external requirements. Is the demand from a production order considered external requirement? Also what are dependent requirements here? & what kind of
-
Importing of MTS files in PSE8 causes program crash
I am in Organizer trying to download a video file (MTS) from a memory card. The file shows up for me to select when I do the File > Get Photos & Videos > From Camera or Card Reader. I select it and click done. Then I get the message "Files Successful
-
Hello! we have WLC 5508 (6.0.188.0) and some converted APs AIR-AP1141N-E-K9. Everything works fine except one moment: 1 of this converted APs is located beyond the office building, but it is still connected to our local network as if it was located
-
I am a Logic user since version 4.x. I am a recent newbie to ProTools, only out of necessity. ProTools has ONE command that I'd pay $100 for a Logic update just to get that command. Basically a one-click "consolidate session" command where every audi