Name of the function module to logon to other server
Dear All
i would like to know the name of the functional module through which user can logon to other server ex: from DEV to PRD for debug the programs . i tried through st03N i am able to get only used tcode but not functional module from which they are logon to prd server
is there any way to get logs for particular user to get log for last 10 days used tcodes all my traces are not active and audit also not active..
Regards
Dear
I need the name of the FM through which we can log on to any other server
there is S_RFC authorization object now i disabled that but i need the name so i can manually restrict the FM
Regards
Similar Messages
-
Find Triggered report name in the function module.
Hi All,
A function module is being called by many Reports say (100). Now the question is, I need to find out the Triggered report name in the function module where I can do required logic change based on the report. I cannot include an import parameter in the function module to capture the Report name, for this solution I need to change 100 reports. Is there any better way to find the Triggered report name in the Function Module?
thanks in advance.
raviTry system parameter SY-CPROG.
-
Where I Find the names of the functions modules?
Hi,
Someone help me? I need to know what table has the information about the functions modules, functions group,description, etc.
Thanks for your help.
Maria Chi
chk the table tadir.
and check OBJECT = func ( function modules)
fugt ( fn grp text)
fugr ( fun gr)
table TFDIR for FMs.
regards,
madhu -
Name of the function module-where used
I want to know the name of function module which gives the where used list for that perticular table. like I want a where used list abt table spfli so which function module gives this information.*where used list for tables
Hi Abhijeet,
Use FM <b>BRF_WHERE_USED</b>
<b>RKD_WHERE_USED_TABLE_IS_BUILD</b>
There is another way without FM.go tpo se11.enter the table name.click on WHERE-USED_LIST button on application tool bar.
Reward points if helpful.
Regards,
Hemant -
How to use the function module ....
hi
how to use the function module ssf_function_module_name in smartformsHi..
If you are using this Function module, you can get the generated function module name of smartform dynamically. It is good progrmaming practice to get the fucntion module name dynamically because there might be some problems if you are hard coding in program.
This will return the name of the function module and then from the exporting parameters you can use the fucntion module name to pass parameters to Smartforms.
Check this link.I am expalining here how to use this function module.
https://wiki.sdn.sap.com/wiki/pages/pointstab/viewpageversion.action?pageId=36109&version=2
Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
<b>Reward points if useful</b>
Regards
Ashu -
Problem in copying the function module.
Hi All,
I have to Copy the standard function modules "FI_ITEMS_DISPLAY" and "ITEM_DERIVE_FIELDS".
The Function group for both of above FM is "FI_ITEMS".
What i did is I went to SE80 ,I copied down the Function Group 'FI_ITEMS' to 'ZFI_ITEMS'.
later on i copied the standard function modules 'FI_ITEMS_DISPLAY' and 'ITEM_DERIVE_FIELDS'
to the 'ZFI_ITEMS_DISPLAY' and 'ZITEM_DERIVE_FIELDS' resp.in the same function group 'ZFI_ITEMS'.
Then i made some changes to these copied modules (I did change the structure of it_items from RFPOSXEXT to ZRFPOSXEXT in ZFI_ITEM_ITEM_DISPLAY,and same change in ZITEM_DERIVE_FIELDS but for the parameter s_item).
And finally i activated these FM..and it got activated also.
But later on when i used these FM in my report...error occured saying that -
"The name of the function module to be called is "ZITEM_DERIVE_FIELDS".
but "ZITEM_DERIVE_FIELDS" cannot be found in its function group. "
hence i thought of activating the function group ZFI_ITEMS,which was inactive before to this...but when i tried activatin this FM it was giving hell lot of errors showing conflict occured at diffrent places,I think just because of the change (structure of IT_ITEM chnged from RFPOSEXT to customised ZZRFPOSXEXT).
I am helpless in removing all this errors ...
Can anybody suggest where did i go wrong?
And what is the right way to copy the function module.?
If possible reply me ASAP.
Thanx in advance.Hello Sanjay,
First, delete your new function group and
Do like this:
1. copy FI_ITEMS_DISPLAY to zFI_ITEMS_DISPLAY from Se37. here you find a button on the application toolbar to do it. It also asks about the Function group. GIve the FG as
ZFI_ITEMS.
Activate all the related objects
2. same for the other FM. Use the same FG. and activate the related objects.
Regards,
Naimesh -
Need the name of the funcion module for master data planning
Hi all,
i need to know the name of the function module to call in a planning function in order to do a master data planning.
thanks a lot!Hello Giancarlo,
You cannot do master data planning in BPS. Master data has to be maintained separately in the BW system.
Cheers
Aneesh -
ST22 , Need to get the Transaction and Pgm name using a FUNCTION MODULE ?
Hi All,
I need to create a Report for monitoring Dumps which is seen in ST22 every day.
The function module RS_ST22_GET_DUMPS gives the dump information . But i need to fetch the Program name and the transaction where the dump has happened for my report.(Like when we double click the alv output in ST22 and the next list gives us the complete information , Transaction , Main program name ...etc)
Kindly suggest me and help me on this .
Regards,
Richard AHi
Funcion module RS_ST22_GET_DUMPS will return the program names where the dump has taken place.
Pass this program name to function module RPY_TRANSACTION_READ to get the trascation code of the program.
Regards
Srilaxmi -
Need name of a function module or BAPI to update the Tax Classification val
Hi Guru's
Need name of a function module or BAPI to update the Tax Classification value for Material master.
Thanks in advance.Hi
U can try to use BAPI_MATERIAL_SAVEREPLICA
Max -
Function module to get the name of all the function module used
I want to populate a internal table with the name of all function module used in the submitted program?? Is there any function module which return the name of all the function module used?
Hi Priya
Try this one RPY_FUNCTIONMODULE_READ.
Ranga -
Can I add special character "$" in the function module parameter name??
Hi Friends
Can I add special character "$" in the function module parameter name??
awaiting for your reply,
Regards
Praveen>
prashanth kishan wrote:
> Thomas,
> ... What if Praveen passes the $ parameter in that unknown FM and suddenly theres smoke coming from the rear of the CPU? Who's answerable to that??
>
> pk
Blame Canada! -
Tell me the function module name
Hi ,
By using material in MSEG table I need to get BOM field from MAST table. Then using that BOM I have to retrieve BMENG from STKO table and POSTP (item category) in STOP table and here I need to search table STPO with BOM#; retrieve component quantity from field STPO/MENGE for all materials with Item category N
I can do the above things by using select for all entries
But One function module is there to do all these things..
Can any one tell me the function module name
Thanks,
Navaneethcheck this BOM related
CSAP_BOM_ITEM_MAINTAIN
CSAP_DOC_BOM_CREATE
CSAP_DOC_BOM_DELETE
CSAP_DOC_BOM_ITEM_SELECT
CSAP_DOC_BOM_MAINTAIN
CSAP_DOC_BOM_READ
CSAP_MAT_BOM_ALLOC_CREATE
CSAP_MAT_BOM_ALLOC_DELETE
CSAP_MAT_BOM_CLOSE
CSAP_MAT_BOM_CREATE
CSAP_MAT_BOM_DELETE
CSAP_MAT_BOM_ITEM_SELECT
CSAP_MAT_BOM_MAINTAIN
CSAP_MAT_BOM_OPEN
CSAP_MAT_BOM_READ
CSAP_MAT_BOM_SELECT
CSAP_ORD_BOM_CREATE
CSAP_ORD_BOM_DELETE
CSAP_ORD_BOM_ITEM_SELECT
CSAP_ORD_BOM_MAINTAIN
CSAP_STOCK_TYPE_CREATE
CSAP_STOCK_TYPE_DELETE
CAVC_I_CHANGE_BOM_ITEM_DATA
CAVC_I_DELETE_BOM_ITEM
Check Above function modules which all related to BOM
And also Check function groups CSAP, CSAI, CSAR, CSBD etc...
Check out the following:
http://help.sap.com/saphelp_40b/helpdata/en/92/58b521417011d189ec0000e81ddfac/content.htm
regards,
prabhu
reward if it is useful -
Log on into the function module with different user name.
hi,
i log on into the system with my user id suppose 'mukka' and i have to check the authorization of another user say 'you' using the function module "authority_check_tcode". but here i am getting the problem that when i assigned sy-uname to 'you' and execute the function module it is entering into the function module with 'mukka' user name only.
sample code:-
sy-uname = p_uname.
CALL FUNCTION 'AUTHORITY_CHECK_TCODE' "#EC"
EXPORTING
tcode = v_tcode
EXCEPTIONS
ok = 1
not_ok = 2.
when i am changing the sy-uname with p_uname the sy-uname is changed but when i entered into the function module authority_check_tcode in the debugging mode at the below the sy-uname variable is showing as 'mukka' only. but i need to check the authorizations of user 'you' pls give me solution to my problem.Hi,
Why would you want to check the authorisation of another user and not the one currently logged in? The idea of authorisations is to check the current user is able to perform a certain activity. The majority of fields on SYST are constantly updated to have the correct values (partly so you can't fiddel authorisation checks like this
Maybe if you explain to us what you are trying to do we can offer some other help.
Gareth. -
Jobs to run the function modules to extract the generic extarctors
Gurus,
I have a Datasource 'ZCMS_PP_TRAN' with extract structure 'ZBW_ST_CMSD_PP'. The extract structure is populated using the function module Z_BW_GET_CMSD_PP.
But how do I schedule this FM or in general, are they run using std programs?
Thanks,
SimmiHi Simmi,
what ever it may be the DS(i mean Business Content DS, Generic DS).... these will extract the Data using Dynamic Function Calls(not always). Comming to Generic DS using FM, this will be called using Dynamic Function Module.
In RSA3 or while extracting data from BW, you will pass request number, Update Mode, debugging option, selection fields, BW source System ID, DS Name.
Based on these details system will extract the underlying extract structure and function module(or table/view/infoset).
No job(Job created from BW while extracting data in the source system BI_requestid) created for Generic DS while extracting data in SAP.
For Queue Delta, Background job will be created, it will move the data to Delta Queue.
i will update the thread with related function modules. Try to debugg in RSA3, you could find all the information.
all the best.
Nagesh. -
Not able to use Commit after the function module STATUS_OBJECT_CREATE
I am using function module STATUS_OBJECT_CREATE
CALL FUNCTION 'STATUS_OBJECT_CREATE'
EXPORTING
CHGKZ = 'X'
CLIENT = SY-MANDT
OBJNR = LV_OBJNR3
OBTYP = 'IWE'
STSMA = 'ZS_RE_01'
IMPORTING
OBJNR = LV_OBJNR3.
STONR = LV_STONR.
IF SY-SUBRC = 0.
COMMIT WORK.
ENDIF.
i am getting error after the COMMIT WORK .
I am not getting any issue in the function module .after the function module i am using the COMMIT WORK and i am getting the following error message
Category ABAP Programming Error
Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC
Except. CX_SY_OPEN_SQL_DB
ABAP Program SAPLBSVU
Application Component CA-GTF-TS-SMT
Date and Time 03/17/2014 07:01:29
|Short text |
| The ABAP/4 Open SQL array insert results in duplicate database records. |
|What happened? |
| Error in the ABAP Application Program |
| |
| The current ABAP program "SAPLBSVU" 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 |
| keep them for a long time. |
|Error analysis |
| An exception occurred that is explained in detail below. |
| The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught |
| in |
| procedure "STATUS_UPDATE" "(FUNCTION)", 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: |
| If you use an ABAP/4 Open SQL array insert to insert a record in |
| the database and that record already exists with the same key, |
| this results in a termination. |
| |
| (With an ABAP/4 Open SQL single record insert in the same error |
| situation, processing does not terminate, but SY-SUBRC is set to 4.) |
|How to correct the error |
| Use an ABAP/4 Open SQL array insert only if you are sure that none of |
| the records passed already exists in the database. |
| |
| 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: |
| |
| "SAPSQL_ARRAY_INSERT_DUPREC" "CX_SY_OPEN_SQL_DB" |
| "SAPLBSVU" or "LBSVUU01" |
| "STATUS_UPDATE" |
| |
| 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". |
| |
| 4. Details about the conditions under which the error occurred or which |
| actions and input led to the error. |
| |
| The exception must either be prevented, caught within proedure |
| "STATUS_UPDATE" "(FUNCTION)", or its possible occurrence must be declared in |
| the |
| RAISING clause of the procedure. |
| To prevent the exception, note the following: |
|System environment |
| SAP Release..... 702 |
| SAP Basis Level. 0010 |
| |
| Application server... "sds6ci" |
| Network address...... "11.224.101.53" |
| Operating system..... "Linux" |
| Release.............. "2.6.18-194.el5" |
| Hardware type........ "x86_64" |
| Character length.... 16 Bits |
| Pointer length....... 64 Bits |
| Work process number.. 17 |
| Shortdump setting.... "full" |
| |
| Database server... "gctsdb01lds.hsi.hugh" |
| Database type..... "ORACLE" |
| Database name..... "DS6" |
| Database user ID.. "SAPDS4" |
| |
| Terminal.......... "GCTEMP02VDI" |
| |
| Char.set.... "C" |
| |
| SAP kernel....... 720 |
| created (date)... "Sep 14 2013 05:28:14" |
| create on........ "Linux GNU SLES-9 x86_64 cc4.1.2 use-pr130820" |
| Database version. "OCI_102, 10.2.0.5.0, V2, default" |
| |
| Patch level. 500 |
| Patch text.. " " |
| |
| Database............. "ORACLE 10.1.0.*.*, ORACLE 10.2.0.*.*, ORACLE 11.2.*.*.*" |
| SAP database version. 720 |
| Operating system..... "Linux 2.6, Linux 3" |
| |
| Memory consumption |
| Roll.... 1317248 |
| EM...... 0 |
| Heap.... 0 |
| Page.... 0 |
| MM Used. 1242912 |
| MM Free. 53400 |
|User and Transaction |
| Client.............. 160 |
| User................ "DV018458" |
| Language key........ "E" |
| Transaction......... "SE38 " |
| Transaction ID...... "5323C30FC9364665E10000000BE06533" |
| |
| EPP Whole Context ID.... "002655EE0F241ED3ABB7D81260A28C44" |
| EPP Connection ID....... 00000000000000000000000000000000 |
| EPP Caller Counter...... 0 |
| |
| Program............. "SAPLBSVU" |
| Screen.............. "RSM13000 3000" |
| Screen Line......... 2 |
| Debugger Active..... "none" |
|Information on where terminated |
| Termination occurred in the ABAP program "SAPLBSVU" - in "STATUS_UPDATE". |
| The main program was "RSM13000 ". |
| |
| In the source code you have the termination point in line 60 |
| of the (Include) program "LBSVUU01". |
| The program "SAPLBSVU" was started in the update system. |
| The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in |
| procedure "STATUS_UPDATE" "(FUNCTION)", but it was neither handled locally nor |
| declared |
| in the RAISING clause of its signature. |
| |
| The procedure is in program "SAPLBSVU "; its source code begins in line |
| 1 of the (Include program "LBSVUU01 ". |
|Source Code Extract |
|Line |SourceCde |
| 30| LOOP AT jsto_upd WHERE chgkz = 'X'. |
| 31| CHECK: jsto_upd-chgnr > '000', |
| 32| jsto_upd-stsma NE jsto_upd-stsma_old. |
| 33| CLEAR jcdo_tab. |
| 34| MOVE-CORRESPONDING jsto_upd TO jcdo_tab. |
| 35| MOVE-CORRESPONDING chdat TO jcdo_tab. |
| 36| jcdo_tab-stsma_new = jsto_upd-stsma. |
| 37| APPEND jcdo_tab. |
| 38| ENDLOOP. |
| 39|* Änderungen zu Einzelstatus (Insert) |
| 40| LOOP AT jest_ins WHERE chgkz = 'X'. |
| 41| CHECK jest_ins-chgnr > '000'. |
| 42| CLEAR jcds_tab. |
| 43| MOVE-CORRESPONDING jest_ins TO jcds_tab. |
| 44| MOVE-CORRESPONDING chdat TO jcds_tab. |
| 45| jcds_tab-chind = 'I'. |
| 46| APPEND jcds_tab. |
| 47| ENDLOOP. |
| 48|* Änderungen zu Einzelstatus (Update) |
| 49| LOOP AT jest_upd WHERE chgkz = 'X'. |
| 50| CHECK jest_upd-chgnr > '000'. |
| 51| CLEAR jcds_tab. |
| 52| MOVE-CORRESPONDING jest_upd TO jcds_tab. |
| 53| MOVE-CORRESPONDING chdat TO jcds_tab. |
| 54| jcds_tab-chind = 'U'. |
| 55| APPEND jcds_tab. |
| 56| ENDLOOP. |
| 57|* Verbuchung Statusobjekte |
| 58| DESCRIBE TABLE jsto_ins LINES sy-tabix. |
| 59| IF sy-tabix > 0. |
|>>>>>| INSERT jsto CLIENT SPECIFIED |
| 61| FROM TABLE jsto_ins. |
| 62| ENDIF. |
| 63| DESCRIBE TABLE jsto_upd LINES sy-tabix. |
| 64| IF sy-tabix > 0. |
| 65| field-symbols <fs_jsto_line> like jsto_upd. |
| 66| loop at jsto_upd assigning <fs_jsto_line>. |
| 67| IF <fs_jsto_line>-chgnr = '000'. |
| 68| <fs_jsto_line>-chgnr = '999'. |
| 69| ENDIF. |
| 70|* on change of status profile delete user status related to old profile |
| 71| IF <fs_jsto_line>-STSMA NE <fs_jsto_line>-STSMA_OLD. |
| 72| DELETE FROM JEST CLIENT SPECIFIED WHERE |
| 73| MANDT = <fs_jsto_line>-MANDT AND |
| 74| OBJNR = <fs_jsto_line>-OBJNR AND |
| 75| STAT LIKE 'E%'. |
| 76| DELETE FROM JCDS CLIENT SPECIFIED WHERE |
| 77| MANDT = <fs_jsto_line>-MANDT AND |
| 78| OBJNR = <fs_jsto_line>-OBJNR AND |
| 79| STAT LIKE 'E%'. |i tried with out using commmit but it is not creating Status.
When i see the function module help and they are trying to COMMIT
FU STATUS_OBJECT_CREATE
Short Text
Create Status Object
Functionality
The function module generates a status object.
Take the object number from the object number management (function modules OBJECT_NUMNBER_GET_xx).
If no object number is given, the module takes a temporary object number that must be replaced later (function module STATUS_OBJECT_SWITCH_NUMBER).
Example
Creating an internal order with number 100123 (object type "ORC") for status profile "STATSCHEM" with final object number
call function 'OBJECT_NUMBER_GET_OR'
exporting
aufnr = '100123'
importing objnr = objektnummer.
call function 'STATUS_OBJECT_CREATE'
exporting
objnr = objektnummer
obtyp = 'ORC'
stsma = 'STATSCHEM'.
commit work.
Creating the same order with a temporary object number
data: objectkey like ionra.
* TBO00-REFSTRUCT for object type 'OR' is 'IONRA'
objectkey-aufnr = '100123'.
call function 'STATUS_OBJECT_CREATE'
exporting
i_objectkey = objectkey
obtyp = 'ORC'
stsma = 'STATSCHEM'.
importing
objnr = objektnummer.
call function 'OBJECT_NUMBER_GET_OR'
exporting
aufnr = '100123'
importing objnr = objektnummer_neu.
call function 'STATUS_OBJECT_SWITCH_NUMBER'
exporting
objnr_old = objektnummer
objnr_new = objektnummer_neu.
commit work.
Notes
Maybe you are looking for
-
Freqent "Your computer restarted because of a problem" after sleep wake up
After wake up from sleep (eg. at the morning, when I'm starting to work) my MacBook Pro Retina is often restarted at the login screen and after logged in, appears window "Your computer restarted because of a problem". It happens about 3-4 times per w
-
So i'm trying to see how i can set up a website in iweb and edit that website from multiple computers and it stay up-to-date. is there a way to do this?
-
I'm trying to burn my project which has only 1 track (55 Min.) and should play to the end. I also inserted 39 chapter markers which do not have targets assigned. these markers are only accessible with a DVD remote. It all plays fine on the simulator
-
Where should the "English" Folder be in Master Suite CS4 for Mac
For some reason the English folder is sitting on my desktop. On my PC it is buried several folders down. It makes no sense but being mostly a PC person, I'm afraid to move the darn thing. Can anyone help? Cindy
-
when i go to download apps form my ipod touch, it requires a password to a username i've never seen before. These are legit apps, and i have no idea why and it won't let me change the usename, only allows me to type in a password.