Standard Component Function Modules
Hi,
I want to know what are the function modules used for UWL or any Standard Component in the portal. Can anyone help me on this ?
Regards,
Suresh
Hi Suresh Mandalapu,
Bapi to get the Leave request in the UWL PT_ARQ_REQLIST_GET
To Update(TO aprove or to Reject) PT_ARQ_REQUEST_EXECUTE
Regards,
srikanth
Similar Messages
-
Exception handling for a standard SAP Function Module - the OO way
Hello,
I was wondering what is the correct way to call a standard SAP function module inside a method of global class.
I want to display the error via the:
get_text( ) and get_longtext( ) methods.
I don't want to use the sy-subrc check. Is this possible?
My example doesn't seem to work...
See example bellow:
DATA: ex_object_cx_root TYPE REF TO cx_root,
ex_text TYPE string,
ex_text_long TYPE string.
TRY.
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = i_lgnum " Warehouse number
i_tanum = i_tanum " Transfer order number
i_quknz = '1' " '1' - confirm withdrawal only (picking )
i_commit_work = 'X' " Indicator whether COMMIT WORK in function module
TABLES
t_ltap_conf = it_ltap_conf " Table of items to be confirmed
EXCEPTIONS
to_confirmed = 1 " Transfer order already confirmed
to_doesnt_exist = 2
item_confirmed = 3
item_subsystem = 4
to_item_split_not_allowed = 51
input_wrong = 52
OTHERS = 53.
CATCH cx_root INTO ex_object_cx_root.
ex_text = ex_object_cx_root->get_text( ).
ex_text_long = ex_object_cx_root->get_longtext( ).
" Error:
RAISE EXCEPTION TYPE zcx_transfer_order
EXPORTING textid = zcx_transfer_order=>zcx_transfer_order
err_class = 'ZCL_WM_TRANSFER_ORDER'
err_method = 'CONFIRM_TO_2STEP_PICKING'
err_message_text = ex_text
err_message_text_long = ex_text_long.
ENDTRY.
Thank you very much in advanceHello Marko,
If i understand correctly you've enclosed the call to the FM 'L_TO_CONFIRM' inside the TRY ... CATCH ... ENDTRY block.
CATCH cx_root INTO ex_object_cx_root.
ex_text = ex_object_cx_root->get_text( ).
ex_text_long = ex_object_cx_root->get_longtext( ).
You can't do this because the FM 'L_TO_CONFIRM' doesn't propagate OO exceptions!
Your approach is almost correct, what you've to do is goes like this:
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = i_lgnum " Warehouse number
i_tanum = i_tanum " Transfer order number
i_quknz = '1' " '1' - confirm withdrawal only (picking )
i_commit_work = 'X' " Indicator whether COMMIT WORK in function module
TABLES
t_ltap_conf = it_ltap_conf " Table of items to be confirmed
EXCEPTIONS
to_confirmed = 1 " Transfer order already confirmed
to_doesnt_exist = 2
item_confirmed = 3
item_subsystem = 4
to_item_split_not_allowed = 51
input_wrong = 52
OTHERS = 53.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
INTO ex_text. "Get the ex_text by this technique & not by CX_ROOT->GET_TEXT()
ENDIF.
I'll have to check how to fetch the long text of the message
BR,
Suhas -
Standard remote function module (HR)
Hi all,
I'm looking for a standard remote function module to get data from Actions (0000) infotype (Employement Status).
where/how can I find it?
thxTo be honest, if your only requirement is to get data out of Infotype 0, then it would be very easy to create your own Z function module on R3, flag it to be RFC enabled and select the data straight out of PA0000.
-
Create BW datasource on standard ECC function module MCEX02_02_SCL_GR
Hello Experts,
I plan to use standard ECC function module MCEX02_02_SCL_GR to get the GR dates for the PO Schedule Lines. I copied this function module with the BW function group and tried to create a datasource in RSO2. However I receive the following error
ZMM_PO_GR: TABLES-paramter E_T_DATA for extractor MCEX02_02_SCL_GR is missing
I understand that the template for BW function modules is RSAX_BIW_GET_DATA_SIMPLE. However is there any way I can use the standard ECC function module OR else how would I incorporate the code in MCEX02_02_SCL_GR into the RSAX_BIW_GET_DATA_SIMPLE template.
Thanks for your help.
Alnickcreate a DS based on FM and call MCEX02_02_SCL_GR into that FM using call funcation XXX destination.
or
create a table in BW with fields Client, Source system and FM..and then do select statement toa take source system and give in palce of destination. -
How to find the Access Key of Standard SAP Function Module
Hi Experts,
I have to change one sap standard function module.
so how can i know the access key for that function module.......
Regards,
DSContact the Basis Consultant in your project.
The access key for standard SAP objects can be obtained from service.sap.com under Keys and Requests.
Note 86161 - Registering developers and objects -
How to CATCH error from call to standard SAP Function Module
Please, is it possible to catch the following error with the TRY CATCH ENDTRY construct?
From a custom program, am calling CS_BOM_EXPL_MAT_V2.
Several nested calls in, Form STL_DATEN_HOLEN (LCSS4F1I) calls FM CS_ALT_SELECT_MAT.
However, that call is missing the CALL_INVALID Exception.
CS_ALT_SELECT_MAT is raising CALL_INVALID, but since it was not included in the FM call, the RAISE_EXCEPTION runtime error is issued.
I added a TRY CATCH ENDTRY construct around the call in the custom program using CATCH cx_root, but the program is still short dumping.
All the research I have done has been misleading...some articles indicate all errors should be caught, some indicate only catchable runtime errors can be caught, others are not quite clear.
So, I would like to find out if, in this scenario, it is even possible to catch this error and avoid the short dump.
I will open a message to see about having the SAP code fixed as soon as I get authorization to do so, (as well as fix the data causing the issue in the first place), but in the meantime, I would like to handle it in my code if possible.
ECC 6.0
Thanks for any information!
Kind Regards,
Deb
Edited by: Debra Garner on Jan 26, 2012 5:19 PMHi Debra,
You cannot catch non class based exceptions using the TRY/ENDTRY. You might also find no luck with help from SAP since the FM in question 'CS_BOM_EXPL_MAT_V2' is not released for customer use. The best bet is to examine why the error is occurring and figure out what needs to be done to fix it and/or avoid it in the future.
Regards,
Ryan Crosby -
Standard function module inside a loop.
Hi Experts,
I am trying to improve performance program that has a standard abap function module inside a loop. I am some what lost on what to do here. Here below is what the code looks like as of now. I have read that i need to try and not use the function module at all be it is a very complicated function module. Any suggestions will be appreciated.
DATA: tl_retorno TYPE bapireturn1 OCCURS 0 WITH HEADER LINE. "Retorno
DATA: wl_bukrs LIKE acct_det_bf-comp_code, "Empresa
wl_process LIKE acct_det_bf-process, "Chave
wl_symko LIKE hrpp_acct_det-symb_acct, "Conta Simbólica
wl_momag LIKE hrpp_acct_det-eg_acct_det, "Agrupamento
wl_razao LIKE acct_det_bf-gl_account. "Conta Razão
*--> <--*
SORT tg_rubcr BY bukrs lgart.
LOOP AT tg_rubcr.
CLEAR: wl_bukrs, wl_process, wl_symko, wl_momag, wl_razao.
wl_bukrs = tg_rubcr-bukrs.
wl_process = tg_rubcr-process.
wl_symko = tg_rubcr-symko.
CLEAR tg_aux.
IF tg_rubcr-u_momag IS INITIAL. "A rubrica necessita de agrupamento?
CLEAR wl_momag.
* Busca Contas Razão sem Agrupamento de Empregados
CALL FUNCTION 'HRPP_FI_ACCT_DET_HR'
EXPORTING
companycode = wl_bukrs
process = wl_process
symb_acct = wl_symko
eg_acct_det = wl_momag
add_modif = ' '
IMPORTING
gl_account_debit = wl_razao
* GL_ACCOUNT_CREDIT =
* POSTING_KEY_DEBIT =
* POSTING_KEY_CREDIT =
* ACCOUNT_TYPE =
TABLES
return_tab = tl_retorno.
tg_rubcr-razao = wl_razao.
tg_aux = tg_rubcr.
APPEND tg_aux.
ELSE. "Não necessita de agrupamento de empregado?
LOOP AT tg_t52em. "Para todos os agrupamentos
CLEAR tg_aux.
CLEAR tl_retorno.
REFRESH tl_retorno.
CLEAR wl_momag.
wl_momag = tg_t52em-momag.
* Busca Contas Razão com Agrupamento de Empregados
CALL FUNCTION 'HRPP_FI_ACCT_DET_HR'
EXPORTING
companycode = wl_bukrs
process = wl_process
symb_acct = wl_symko
eg_acct_det = wl_momag
add_modif = ' '
IMPORTING
gl_account_debit = wl_razao
* GL_ACCOUNT_CREDIT =
* POSTING_KEY_DEBIT =
* POSTING_KEY_CREDIT =
* ACCOUNT_TYPE =
TABLES
return_tab = tl_retorno.
tg_rubcr-razao = wl_razao.
tg_aux = tg_rubcr.
tg_aux-momag = tg_t52em-momag.
APPEND tg_aux.
ENDLOOP.
ENDIF.
ENDLOOP.
* Limpa tabela com rubricas e move todo o conteúdo da auxiliar
REFRESH tg_rubcr.
CLEAR tg_rubcr.
tg_rubcr[] = tg_aux[].
ENDFORM. " busca_conta_razaoHi Patrick,
If you do not want to use the function module then the other option that you can use is do selects from the tables that the FM 'HRPP_FI_ACCT_DET_HR' is using to get the importing "parameter gl_account_debit = wl_razao" outside the loop.
So steps will be:
Debug FM 'HRPP_FI_ACCT_DET_HR' to find out how it getting importing data using exporting parameters.
Then before the loop is called do a select for all entries on table tg_rubcr. And id muliple tables are used Read statements to populate a final table with gl_account_debit = wl_razao value.
Then use the final table to get this value inside the loop.
Please let me know if you need more details. -
SAP API Function Modules used in standard REACh Campaign
Hi friends,
How can i find the standard SAP function modules that are used in the REACh Campaign from portal? For eg: The API used for the search campaigns.
Thanks in advance,
RamHi friends,
How can i find the standard SAP function modules that are used in the REACh Campaign from portal? For eg: The API used for the search campaigns.
Thanks in advance,
Ram -
Regarding Function module exits
Hi,
function module exit :EXIT_SAPLAFAR_002
include in function module exit :ZXAFAU02
include exit is implemented :LAFARF70
Main Program :SAPLAFAR
Please help me how to execute this funcion moduel exit, and how to work on it, I could not find out any transaction for it, and provide me some links to understand the use of function module exits.
Thanks & Regards,
vinesh.Hi,
User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for functionmodule exits is:
EXIT_<program name><3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3 digit suffix>
To find a Exit.
Goto Transaction -- Find The Package
SMOD >f4>Use the Package here to Find the Exits In the Package.
Else if you Want to search by Application Area wise ,
There is one more tab to find the Exits in the Respective Application Area.
Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
Now Run ur Transaction to Check if it Triggers.
Thats it..
Suppose you need to find out all the user exits related to a tcode.
1. Execute the Tcode.
2. Open the SAP program.
3. Get the Development Class.
4. Execute Tcode SE84.
5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
6. Enter the Development class and execute.
Check out this thread..
The specified item was not found.
1. Type the transaction : system->status-> <PROG. NAME>
2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
3. Open CMOD utilities->SAP enhancements
EDIT->All selections
4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
5. The displayed list contains the enhancements names for the transaction You were looking for.
6. Create a project in CMOD and the code in default include->activate.
http://www.erpgenie.com/sap/abap/code/abap26.htm
which gives the list of exits for a tcode
http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
For information on Exits, check these links
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.planetsap.com/userexit_main_page.htm
User-Exits
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/ab038.htm
http://www.planetsap.com/userexit_main_page.htm
http://www.sap-basis-abap.com/sapab013.htm
http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
These links will help you to learn more on user exits.
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
http://www.planetsap.com/userexit_main_page.htm
http://www.allsaplinks.com/user_exit.html
www.sap-img.com/abap/what-is-user-exits.htm
Also please check these threads for more details about user exits.
Re: Screen exit
user exit and customer exit
user exit
1. Document on UserExits in FI/CO
http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
2. Finding User Exits...
http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
3. List of all User Exits...
http://www.planetsap.com/userexit_main_page.htm
Reward if Helpful. -
How to create the INBOUND Function Module for INBOUND IDOCs
Hi Friends,
Can any Suggest me How to proceed to Create an INBOUND Function Module for Processing the INBOUND IDOCS
which are recieved from XI Server ?
I am working in SAP-ISU
Here i will recieve the INBOUND IDOCs for the Meter Reading Orders.
We have a Standard INBOUND FUNCTION MODULE
IDOC_INPUT_ISU_MR_UPLOAD
which Uploads the Meter Reading Results.
I copied the Same function Module into ZIDOC_INPUT_
and working on it.
Can any one suggest me, whether i am going in correct way or not.
In IDOC_INPUT_ISU_MR_UPLOAD Inbound fun module,
BAPI_MTRREADDOC_UPLOAD is used to Update or Insert the Meter Reading Results,
My requirment is to Insert and Update the Meter Reading Orders which are Inbounded from XI.
Can I Use the Same BAPI
BAPI_MTRREADDOC_UPLOAD
to Update the below fields,
EABL-SERNR
EABL-ZWNUMMER
EABLG-ABLESGR
EABL-V_ZWSTAND
EABL-N_ZWSTAND
EABL-ABLHINW
EABL-ZSKIPC
EABL-ADAT
EABL-ATIMTATS
EABL-ADATTATS
EABL-ATIM
EABL-ZMESSAGE
EABL-ABLESER(Meter reader number)
Kindly Suggest me,
Thanks in Advance,
GaneshHello Ganesh
I think you are going completely astray with you z-function module for IDoc processing.
If you look at TABLES parameter METERREADINGRESULTS (type BAPIEABLU ) of BAPI_MTRREADDOC_UPLOAD you will find many of the requested fields already:
EABL-SERNR => BAPIEABLU-SERIALNO
EABL-ZWNUMMER =>REGISTER
EABLG-ABLESGR
EABL-V_ZWSTAND
EABL-N_ZWSTAND
EABL-ABLHINW
EABL-ZSKIPC
EABL-ADAT
EABL-ATIMTATS => ACTUALMRTIME
EABL-ADATTATS => ACTUALMRDATE
EABL-ATIM
EABL-ZMESSAGE
EABL-ABLESER(Meter reader number)
Field EABL-ZMESSAGE appears to be custom field (at least I cannot find it on ECC 6.0). If this field was added using include CI_EABL then you probably can get these values into the BAPI using the EXTENSIONIN parameter.
Check routine CHECK_UPLOADRECORDS in the BAPI which allows two extension structures:
- BAPI_TE_EABL
- BAPI_TE_EOSB
Not surprisingly BAPI_TE_EABL contains the include CI_EABL.
Regards
Uwe -
Error while activating function module
Hi,
I copied a standard SAP function module L_TO_CREATE_DN.
When i activated the function group it throws an error saying that " Field "I_COMMIT_WORK" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement".
All the global data has been copied properly in the TOP include but still while activating the function group we are getting the above said error.
If anyone has encountered same kind of issue.......Please guide.
Thanks and regards,
RameshI was also facing the same issue, when I tried copying just 1 or 2 FM's from that FG L03B.
Finally, I copied the whole function group, including all FM's into Z FG, and FM's, and it got activated w/o any hitches. Looks like there is lot of dependency between the includes and FM's code.
Regards
Deepthi -
Function Module for Installment Customer Payments
Hello,
I am trying to create a payment due report for our customers. We use installment payment terms for our customers. Therefore, when run at the end of September 2011 this report has to only show the invoice amount, tax and discount that is due as of that date. Is there a function module that I can use to get the split based on these installment terms?
The only other option is to do the calculation manually within the program i.e. read the installment percentage from the table T052S and calculate the values per invoice. However, it seems as if there would be a easier way to do this. Can someone please suggest any function modules that can be used to calculate the net due, discount and tax amounts per installment period?
Thanks,
RugmaniHi Suresh,
You have a standard IDOC function module to create the customer Master for Message Type DEBMAS is IDOC_INPUT_DEBITOR and the process code is DEBM.
You can use that combination and you can create customer master with the IDOC's in your system.
Thanks,
Mahesh. -
Function module/ program for deleting Vendor purchasing org. in BBPMAININT?
Hi,
Is there any function module or program available by which i can delete purchasing org. maintained for SRM vendors in BBPMAININT.
Regards
Bharat MHi
Please use the Standard SRM function module
*BBPPORG_DELETE*_
to delete the Purchasing organizations ->
Sample code - >
CALL FUNCTION 'BBP_PORG_DELETE' IN UPDATE TASK
TABLES
IT_FRG0060 = LT_FRG0060
IT_FRG0061 = LT_FRG0061.
COMMIT WORK.
Hope this will help. Do let me know.
Regards
- Atul -
Function module creation for IDOC processing...
hi Experts,
i want to create a function module for idoc processing..
message type: zashpmnt
idoc type : shpmnt05
plz tell me which standard FM is used... and tell me what changes i want to do in it....
Tnx in Advance..Hello,
If you are trying to process an Outbound IDoc for the SHIPMNT05 IDoc Type with an Extension, you can use the IDOC_OUTPUT_SHPMNT Function Module which is assigned to SHPM Process Code.
In Addition, since you have an IDoc Extension, you are required to populate the Custom Segment / Fields. For this, there is a Customer Function / Exit called EXIT_SAPLV56K_002 which you can use it for adding your Custom Segments to the IDoc ZSHPMNT05.
If you are writing code in this exit, make sure to create a Project in CMOD.
Also, ensure that you've made the assignment in WE82 with the Message Type , IDoc Type & the Extension.
For Inbound, if you would like to Create a Custom Function Module, you can follow the Naming Convention Z_IDOC_INPUT_SHPMNT for which you are required follow the below Steps.
1. Register the FM as Inbound FM in BD51 T-Code.
2. Assign the FM to IDoc Type & Extension in WE57.
3. You'll need to Create a Custom Process Code in WE42 in which you are required to make add your FM.
4. Maintain Partner Profiles in WE20.
5. Have the Process Code Migrated to the Testing Environment as creation of Custom Process Code is a Customizing Activity and it requires a Customizing Request to be created / Migrated.
6. Define the Parameters as defined in the Standard Inbound Function Modules such as IDOC_INPUT_ORDERS , IDOC_INPUT_DELVRY etc.
Thanks and Regards,
Venkat Phani Prasad K -
Hi Friends,
Could anybody please tell me what are the " Exchange rate " & Plan exchange rate " standard programs, function modules avaialble in SAP .
Thanks in advance,
Ramesh.Check via transaction OB07 (or SPRO - General Settings - Currencies - Check exchange rate types) usually you will find a "M" average exchange rate (which is used operationally everywhere in Logistics) and a "P" planned exchange rate (used for cost planning)
Exchange rates are maintained via transaction OB08 (or SPRO, same tree - last node - Enter exchange rates)
When programming, use tables TCUR* or FM of function groups like SCUR "Translation of Currency Amounts etc." (CONVERT_TO_FOREIGN_CURRENCY, CONVERT_TO_LOCAL_CURRENCY and READ_EXCHANGE_RATE among others)
Regards,
Raymond
Maybe you are looking for
-
Macbook Pro 13-inch Late 2011 with constant Spinning Wheel of Death (SWOD)
Hi Guys! I really have a problem with the Spinning Wheel of Death and slow performance all the time. It suddently started after upgrading to OS X Mavericks. These are the things i've tried so far: - Boot up in Safe Mode and Internet Recovery Mode to
-
How do i get my music back on my ipod after restoring it
i just had to resotre my ipod because i couldn't get my ipod to update my music. Now that i have restored it i can't get my music on my ipod at all. How do i get my music back on my ipod?
-
My iTunes crashes when I connect my iPod classic.
I tried reseting my computer, reseting my iPod and even connecting my iPod to another computer. Even in another computer when I connect it, iTunes freezes. Is my iPod dead? I can still listen to the playlist in it. It's still working, in it's own way
-
Problem in the function module HAZMAT_PRI_DATA_GET
hi all , This is related to the shipment. we are trying to print a form with details of dangerous goods but function module HAZMAT_PRI_DATA_GET not returning values of the dangerous goods details when the MOT is 05 ie; air . The function module is a
-
Can Canon MP600R scan wirelessly?
I am totally confused about my all-in-one. Before Lion I used it successfully for printing and scanning, both using USB and Ethernet connection. I can't recollect using it wirelessly. I'd like to use it wirelessly now, but I have problems. The printe