Execute a function module when user exits.
Dear All,
Do tell me like there is a FM wherein I can pass a username and TCode for the user at the start up,
NAVIGATION_SET_START_TCODE
is there any for EXITS/LOGOFF. We have an requirement wherein we need to update some details when user logoff from system so login validations can be flagged accordingly.
Regards,
Dantham Conpolwedson
Hello Dantham
Probably you are looking for user-exit SUSR0001 ( User exit after logon to SAP System ) consisting of the following components:
EXIT_SAPLSUSF_001 " Customer-Specific Check After Every User Logon
Regards
Uwe
Similar Messages
-
CS07 - Functional Module ? User Exit ?
Hi ,
Is anybody can give me some instruction ?
We would like trigger another program which we developed by ourself when use T-Code:CS07 to assign BOM to Plant .
Is any functional module or user exit we can use ?
Thanks !Hi Denny,
The following are the User Exits available for CS07 transaction,
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0013 Customer-specific processing of an explosion for BOM browser
Please select the appropriate exit which meets ur requirement.
Reward Points if useful.
Thanks & regards
Mahesh -
Import parameter in Function Module for user exit
Hi Experts,
I need to send IDOC when PO release, for that i found an Exit M06E0004. It is having
FUNCTION EXIT_SAPLEBND_002.
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_CEKKO) LIKE CEKKO STRUCTURE CEKKO " EKKO table
*" VALUE(IT_BEKPO) TYPE MMPUR_BEKPO OPTIONAL " EKPO table
*" VALUE(IT_BEKET) TYPE MMPUR_BEKET OPTIONAL " EKEt table
*" VALUE(IT_EKKNU) TYPE MMPUR_EKKNU OPTIONAL
*" EXPORTING
*" VALUE(E_CEKKO) LIKE CEKKO STRUCTURE CEKKO
INCLUDE ZXM06U22.
ENDFUNCTION.
All of the fields i have to take in IDOC segment r from EKKO and EKPO table, but 1 field is from MDSB table (MDSB-MATNR), how can i take it in the code i have to write. can i take TABLE: MDSB in the include, or any other way. because its standard FM we cant take it in IMPORT.
Regards,
NikHello Nik
You can use a similar approach as described in thread:
Get Parameter from Standard Transaction to BADi
You need to find out in which main program MDSB is defined. Then you can try to access this field dynamically from within your exit.
Alternatively, you have to search for a function module which can retrieve this (runtime) information (MDSB-MATNR).
Regards
Uwe -
Any function modules or user exit for confirmation mail
Hi,
I am in SAP system , there is data distribution happening with SAP and non SAP system through middleware XI system.
pls help me suppose there is an error happens how SAP can send
an email to nonsap system or suppose data updated it should be
an confirmation email. pls help me regarding thisHi,
i have alredy implement EXIT_SAPMM06E_013 but the program do not stop there.Do i miss something?I activete the project and saw that EXIT_SAPMM06E_007 EXIT_SAPMM06E_013 and EXIT_SAPMM06E_016 are implemented and active. -
Execute a function module from sapportal without to create the users in R/3
I have a pdk application in sapportal. This pdk application will be execute for any sapportal users which don't have R/3 users. The problem is the follow.. in this pdk application there is a R/3 function module that must be execute, ¿how can i execute this function module without to create the users in R/3?
Hi Michael,
Create a JSP dyn page application. Hope you have the table name and in R/3 there will be Function modules already available which we also can reffer.
Then from this JSP dyn page application, call this particular function table.
wE DON'T have to create a user for this.
Regards
Arun Jacob
P.S please award points for helpful suggestions. -
Error while executing the function module BAPI_RE_CN_CREATE
Dear All
I was using the the function module BAPI_RE_CN_CREATE. When I am trying to execute the function module I am getting the error message u201CBusiness transaction RECN doest existu201D. While inputting the parameters for the function module I have given RECN In the input field TRANS. Requesting you to please kindly suggest.
Regards.
VaraprasadHi Varaprasad,
please try the following.
1. Create a contract manually in the system
2. Use BAPI_RE_CN_GET_DETAIL to show how the fields and structures are filled.
3. Check and change the parameters for BAPI_RE_CN_CREATE accordingly.
Hope that helps.
Regards, Franz -
Function module when used should not display ALV
Hi ,
All ABAP Gurus
I want to use a function module WS_DELIVERY_MONITOR which should give the VBELN on the basis of CHARG in internal table so that on the basis of VBELN I can fulfil further requirement and display the final output in ALV.
But this function module when executed display an ALV.
My requirement is that it should retrieve all the VBELN on the basis of CHARG (which is in the internal table and is passed to the function module) in an internal table and do not display the ALV so that when all the VBELN come in internal table then I can perform further calculation.
Please guide me in this matter.
Thanks & Regards
Bharti JainHi Bharti,
Please try calling FM 'WS_LM_DATA_SELECTION' instead. This FM is callled inside main FM 'WS_DELIVERY_MONITOR' and is used to fetch data. You will only need to fill extra import parameter for using this FM ( if_flag_inbound) and two changing tables (lt_postab) and ( lt_postab_kodat), which will have results. 'if_flag_inbound' field will be having value X for all inbound cases.
I have used the same FM to get open deliveries:
CALL FUNCTION 'WS_LM_DATA_SELECTION'
EXPORTING
if_proctype = c_proc_type_f
TABLES
it_matnr = i_deliv_matnr
it_lgort = i_deliv_lgort
it_lfart = i_deliv_type
it_kostk = i_deliv_kostk
it_wbstk = i_deliv_wbstk
ct_postab = i_deliv_nos
CT_POSTAB_KODAT =
EXCEPTIONS
no_data_found = 1
wrong_proc_type = 2
OTHERS = 3 .
IF sy-subrc = 0.
**-Calculate open delivery quantity
LOOP AT i_deliv_nos INTO wa_deliv_nos
WHERE NOT posnr IS INITIAL.
pc_open_deliv_qty = pc_open_deliv_qty + wa_deliv_nos-lfimg.
ENDLOOP.
ENDIF.
<removed by moderator>
Edited by: Thomas Zloch on Sep 7, 2010 9:06 AM - please do not ask for ... -
Can I execute a function module in my Webdynpro App ?
Hi,
Can I execute a function module in my Webdynpro App ? I mean, it's not a BAPI.
Is it possible ? which is the procedure to follow ? (comparing to a bapi procedure).
Thanks for your help !
Regards from Mexico. =)
DiegoHi Diego,
the warning icon indicates that you're using a function module that has not been externally released. If the corresponding function module has been defined by SAP, its interface might be changed in an incompatible way within one of the next releases, e.g. removing / renaming a parameter or structure field. Stability is only guaranteed for BAPIs or external released function modules.
From the point of view of the model import it does not make any difference. If import does not work, there seems to be some other problem. Maybe the function module has not been activated in the R/3 system. Or check the log file or the import log page which will be the last page of the import wizard.
You might want to import some other none external released function module in order to verify that model import of these kind of function module works.
Kind regards,
Lothar Bender -
Calling and executing a function module in the Portal iview development
Hello Portal development gurus...
I am very new to portal iview development and am learning a lot of stuff.. I now have a requirement to do the following:
1. I need to use the NWDS to create java code in developing an iview
2. I need to call and execute a function module and display the parameters pulled in from the function module onto a Jsp.
3. I need to create an iview based on this deployed component.
Could anybody please explain me how to do the coding on this front?
I appreciate if anybody can share documentation about this kind of a development.
As always, points galore for useful and helpful suggestions.
Regards,
~~~LBHi,
Firstly Have you searched in SDN for the same, anyhow please go through the link to work on the requirement
[/docs/DOC-8061#15|/docs/DOC-8061#15]
Go through the thread which will talk in detail
[https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955|https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955]
Hope this helps.
Cheers-
Pramod -
Impact of Function Modules when used in upgraded versions
Hello Experts,
I wan to know the Impact of Function Modules when used in upgraded versions. How the function module works irrespective of changes done to it in the latest verisons
Thanks in AdvanceHi,
If the function modules is released, it should not have any impact. However if not released, use them with caution as SAP does not support non-released function modules.
Cheers.
...Reward if useful. -
How to execute a function module?
I am new to SAP and I need to execute a function module, per OSS Note 894279.
It says I need to run a function module with a certian parameter. Well I see how I can modify function modules in SE37 or SE80, but how do I run/execute them?
I am sure this is something simple that I am not aware of. Thanks.Hi,
Go to SE37--> Give the FM name --> press F8 --> Give the values for Import parameters --> Press F8 or exection button on application tool bar.
Thanks,
Sri. -
Execute K_BATCH_REQUEST function with another user
Hello,
I would like to execute the function K_BATCH_REQUEST with another user-name (a batch name) but I do not found any option to execute this function with another user.
Someone can help me ??
<removed by moderator>
thanks a lot in advance for your help.
Daniel
Edited by: Thomas Zloch on Nov 14, 2011 3:02 PMSuppose the FM signature looks like
FUNCTION ztest.
*"*"Interface locale :
*" IMPORTING
*" REFERENCE(PAR1) TYPE C
*" TABLES
*" TAB1 STRUCTURE MARA
A wrapper program could look like
REPORT ztestwrapper.
TYPES tmara TYPE mara OCCURS 10.
* no-display allows much more flexibility here
PARAMETERS: par1 TYPE c NO-DISPLAY,
tab1 TYPE tmara NO-DISPLAY.
CALL FUNCTION 'ZTEST'
EXPORTING
par1 = par1
TABLES
tab1 = tab1.
For the scheduling of the job read [Task Overview: Full-Control Job Scheduling|http://help.sap.com/saphelp_470/helpdata/en/fa/096cf2543b11d1898e0000e8322d00/frameset.htm]
Regards,
Raymond -
How to block particular function module for user or users
Hi,
Can anyone let me know that if I want to prevent users for certain function module or modules.Is it possible to do so.Please let me know.
Have a great day ahead.Please take note that there are hundreds of thousands of function modules in any one SAP system (see table TFDIR) and a large number of them can do very very powerfull and even dangerous things when executed on their own in the test mode.
It shounds as if you are only worried about only one (probably some famous one...) and want to range around it's name. This is not a good idea and will not work anyway.
Cheers,
Julius -
Funtion Module for user exits variables in BEx Queries.
Hi,
This is for BW Query customer exit variable (zvar2) for include ZXRSRU01 and exit :EXIT_SAPLRRS0_001.
Can anyone please suggest the function modules that can be used to do the following.
1)Read value of zvar1 from selection screen whatever
user enters at run time.
2)How to define the zvar2 in the include. zvar2 is the
variable created in BEx to be populated from this
customer exit.
3)How to use case statment where once the value for zvar1
is determined then,
Case zvar1.
when zvar1 = 0 , then zvar2 = 10
when zvar1 = 1 , then zvar2 = 20
3) Assign zvar2 value as computed in the case statement.
Can anyone please help with the code to achieve this.
Any information regarding function modules that can help write user exits for variable reading and input will be greatly helpful.
Thanks
Sarah.Hi Sarah,
You don't need any FM for your issue.
Please try thie sample code :
DATA: VAR_INPIUT LIKE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'ZVAR2'.
CLEAR L_S_RANGE.
IF I_STEP = 2."PROCESSED AFTER VARIABLE INPUT
*Reading value of ZVAR1
LOOP AT I_T_VAR_RANGE INTO VAR_INPIUT
WHERE VNAM = 'ZVAR1'.
CASE VAR_INPIUT-LOW.
*FILLING ZVAR2
WHEN 0.
L_S_RANGE-LOW = 10.
WHEN 1.
L_S_RANGE-LOW = 20.
ENDCASE.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
ENDCASE.
Hope this helps
Joe -
Debugging customized function module when Idoc is triggered via ALE
Hi,
Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module.
However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.
How do we get into debug mode and break the flow in the function module so that we can debug in the function module?
Any help would be greatly appreciated.
Thanks in advance,
MickHi Mick, this might be of some help 4 u.
ALE IDOC
Sending System(Outbound ALE Process)
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
ALE IDOC Steps
Sending System(Outbound ALE Process)
Tcode SALE ?3 for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
This is Receiving system Settings
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
1)a Goto Tcode SALE
Click on Sending & Receiving Systems-->Select Logical Systems
Here Define Logical Systems---> Click on Execute Button
go for new entries
1) System Name : ERP000
Description : Sending System
2) System Name : ERP800
Description : Receiving System
press Enter & Save
it will ask Request
if you want new request create new Request orpress continue for transfering the objects
B) goto Tcode SALE
Select Assign Client to Logical Systems-->Execute
000--> Double click on this
Give the following Information
Client : ERP 000
City :
Logical System
Currency
Client role
Save this Data
Step 2) For RFC Creation
Goto Tcode SM59-->Select R/3 Connects
Click on Create Button
RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
give the information for required fields
RFC Destination : ERP800
Connection type: 3
Description
Target Host : ERP000
System No:000
lan : EN
Client : 800
User : Login User Name
Password:
save this & Test it & RemortLogin
3)
Goto Tcode BD64 -- click on Change mode button
click on create moduleview
short text : xxxxxxxxxxxxxx
Technical Neme : MODEL_ALV
save this & Press ok
select your just created modelview Name :'MODEL_ALV'.
goto add message type
Model Name : MODEL_ALV
sender : ERP000
Receiver : ERP800
Message type :MATMAS
save & Press Enter
4) Goto Tcode BD82
Give Model View : MODEL_ALV
Partner system : ERP800
execute this by press F8 Button
it will gives you sending system port No :A000000015(Like)
5) Goto Tcode BD64
seelct the modelview
goto >edit>modelview-->distribute
press ok & Press enter
6)goto Tcode : BD10 for Material sending
Material : mat_001
Message Type : MATMAS
Logical System : ERP800
and Execute
7)goto Tcode : BD11 for Material Receiving
Material : mat_001
Message Type : MATMAS
and Execute --> 1 request idoc created for message type Matmas
press enter
Here Master Idoc set for Messge type MATMAS-->press Enter
1 Communication Idoc generated for Message Type
this is your IDOC
Change Pointers
I know how to change the description of a material using ALE Change Pointers.
I will give the following few steps
1) Tcode BD61---> check the change pointers activated check box
save and goback.
2) Tcode BD50---> check the MATMAS check box save and comeback.
3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
4) Tcode BD52---> give message type : matmas press ok button.
select all what ever you want and delete remaining fields.
save & come back.
5) 5) go to Tcode MM02 select one material and try to change the description and save it
it will effects the target systems material desciption will also changes
6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
give Message type : MATMAS and Executte
ALE/IDOC Status Codes/Messages
01 Error --> Idoc Added
30 Error --> Idoc ready for dispatch(ALE Service)
then goto SE38 --> Execute the Program RBDMIDOC
29 Error --> ALE Service Layer
then goto SE38 --> Execute the Program RSEOUT00
03 Error --> Data Passed to Port ok
then goto SE38 --> Execute the Program RBDMOIND
12 Error --> Dispatch ok
Inbound Status Codes
50 Error --> It will go for ALE Service Layer
56 Error --> Idoc with Errors added
51 Error --> Application Document not posted
65 Error --> Error in ALE Service Layer
for 51 or 56 Errors do the following steps
goto WE19 > give the IDOC Number and Execute>
Press on Inbound function Module
for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
cheers,
Hema.
Maybe you are looking for
-
Problems with driver in microsoft windows vista
I speak of Brazil, I have a smarthfone BlackBerry 8100 and a Dell Inspiron 1525 notebook with Windows Vista 32-bit, Service Pack 1. I'm having problems with "Bluetooth peripheral device" and the solution of the problem indicates to contact with RIM t
-
I Cannot Figure this out! How Do I Lock a Track In Adobe Premiere Pro?
Hi everyone! I'm from the Final Cut Pro world, getting acclimated to Adobe Premiere Pro and am wondering how do I lock a track on the timeline? The audio and video are synced which is what I want, it's just one thing I want to change within the audi
-
Is it safe to download the Adobe Flash Player to my macbook
Is it safe to download Adobe Flash Player to my macbook? If so, any recomendations?
-
Web Service Logon Error Message
Hi Experts, I have created a web service and trying to consume it in SOAPUI but i am getting error saying that Logon Error Message . when i see the Tcode SOAMANAGER (Provider Security tab) i have this position i am not sure whi
-
Can't send email on Envy 5660 printer
Have new HP Envy 5660. Almost too sophisticated for me and small info screen requires steady hand and stylus. I tried to send an email and when I finally got my email address in it wanted a pin and I can't remember whether I ever picked one and if