User/customer exit after receiving e-mail
Hi,
I want to process the mail after receiving it. Is there any user/customer that can be used after receiving an e-mail? Is there any alternative way?
thank,
- ferudun
Hi,
I have examined PROCESS_INBOUND method of class CL_RMPS_INCOMING_MAIL. I found that there is RMPS_POST_DEFATTR badi call. I have implemented the badi and insert endless loop in methods SET_DEFAULTS_MAIL_SMTP and SET_DEFAULTS_MAIL_BOR. I sent an e-mail but the methods I have implemented were not reached.
I have traced the incoming mail and there were the following lines:
IBND_PROC_POST_DECR G Start of Exit Processing
EXIT_PROCESSING G No Exits Found
IBND_PROC_POST_DECR G End of Exit Processing
IBND_PROC_POST_DECR G Try to Find Internal Recipients
What is missing or wrong in my work?
tahnks,
- ferudun
Similar Messages
-
Search for User/Customer-Exit in Printing Quality-Notifications
Hello,
because we want to use the standard of SAP, we don't want to use a custom print programm for our quality-notifications. One of the print programms is "RQQMUD01". Are there spezific User/Customer Exits for the print programs of the quality-notifications. Or do we have to copy the original print program and make our modifications? Thanks.
Regards, Lars.Hi,
In our casewe have copied the standard SAP Program RQQMUD01 and the form QM_NOTIF_OVERVW1 to meet our requirements.
regards
Aveek -
User,Customer exits or BADI for IDOC Type - CRMXIF_ORDER_SAVE_M01 in CRM
Hi Friends,
We are creating teh EDI Sales order in CRM using below details:
Basic Type - CRMXIF_ORDER_SAVE_M01
Message Type - CRMXIF_ORDER_SAVE_M
Functional Module - IDOC_INPUT_CRMXIF_ORDER_SAVE_M
Direction -Inbound
We need to customize the values for the IDOC,
Can any one help us in providing the details on any Customer Exits , User Exits and /or BADIs for the abov ementioned FM.
We greatly appreciate your early responce.
Thanks
VijayThanks Naresh, it helped...
Can you please help on the below:
1. For outbound Sales order IDoc- CRMXIF_ORDER_SAVE_M01,need BADIs for modification of the IDoc before it gets generated.
2. Need program to generate output as outbound IDoc- CRMXIF_ORDER_SAVE_M01 for sales order conformation/acknowledgement.
3. Need a BADI after the EDI Sales order is saved.
Thanks in advance
Vijay -
Bapi enhancement using user/customer exits
It is necessary to have access to all calls and purchase orders to be able to maintain the control of the ERS procedure centrally in the TBB system for the functionality u201CBestellselektionu201D [purchase order selection],. Without delay, all necessary purchase order and call data is provided for the table 'ERS' u201Crealtimeu201D via the interface from SRM. It must be ensured that this table is always filled for SRM scopes synchronous with the SAP standard tables (EKKO, purchase order header data, EKPO purchase order item data, EKAN vendor address, EKPA partner roles etc.). For this purpose, efforts are made to load this table during each creation or change of a purchase order. On the ERP side, the u201EBAPI_PO_CREATE1u201C, which is called by SRM via RFC in the ERP, serves the purpose of creating purchase orders. The BAPI_PO_CHANGE is used for changes in the purchase orders. These BAPIs can be enhanced by the Customer exits EXIT_SAPL2012_003 respective EXIT_SAPL2012_004. With the help of the exits, a function module is called, which then provides the customer-specific fields of the table 'ERS'
i want to enhance bapi using customer /user exit
so how shall i proceed with this requirement ??
how sahll i code the include for this req???
i m using the functions ::
1] EXIT_SAPL2012_003
2] EXIT_SAPL2012_004
so how can i enhance the bapi using user exits..
I want to transfer the data from SRM system to TBB system with the customizzed table filled with this data at ERP ie TBB side .. so plz reply how shall i proceed ???Thanks Naresh, it helped...
Can you please help on the below:
1. For outbound Sales order IDoc- CRMXIF_ORDER_SAVE_M01,need BADIs for modification of the IDoc before it gets generated.
2. Need program to generate output as outbound IDoc- CRMXIF_ORDER_SAVE_M01 for sales order conformation/acknowledgement.
3. Need a BADI after the EDI Sales order is saved.
Thanks in advance
Vijay -
What is diff b/w user & customer exit
Hi
Good afternoon everybody,
Plz differentiate user exit and customer exit.
What is the way to findout user exits and how to modify it.
Thanks in advance
VenkatHi Venkat,
Check the following description
Customer exits: The R/3 enhancement concept allows you to add your own functionality to SAPs standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
If you want to enhance the functionality of your SAP System, you should take advantage of the exits available in standard R/3 applications. There are two main reasons why you should use exits rather than modifying SAP software yourself. Add-ons attached to exits have the advantage that:
They do not affect standard SAP source code
When you add new functionality to your SAP System using SAPs exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAPs standard software package.
They do not affect software updates
When you add new functionality to your SAP System using SAPs exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects names ensure that they will not be affected by any changes or new additions to the standard software package.
In contrast to customer exits, user exits allow developers to access and modify program components and data objects in the standard SAP System.
User exits: Programs with user exits contain subroutine calls at certain points in their syntax that are identified by the prefix USEREXIT. The actual user exits are located in an include that has been assigned to a module pool. This is where customers can include any changes (enhancements) that they want to make to the system. These includes are always processed during program flow.
I hope this helps.
Regards,
Kinshuk -
Dear SAP Gurus
Hi!!
As an SD functional consultant, I know the list of User Exits are available in SD. But if I want to check about any exit, i mean what this exit will do, How can I see that or check that??Jp Support,
SPRO --> IMG --> Sales and Distribution --> System Modifications --> User Exits --> User Exits in Sales (select the documentation node & you will get an ocean of information.)
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
Amit. -
IPad 2 hanging periodically right after receiving new mail
I've had my iPad 2 since March 23rd. It's been working fine until last week when I heard the new mail indication so I opened the smart cover and nothing happened. The screen remained black. The iPad 2 would not respond to the home or standby/power buttons. I was forced to do a reset (home/standby). I figured this was a one time fluke, but it just happened again today. The first time I noticed it was running iOS 4.3.2 and now with 4.3.3. It seems there's some kind of stability problem.
Has anyone else seen this?Is your new phone signed into the Apple ID used to purchase these apps in Settings>iTunes & App Stores? If not, sign into your ID and try syncing again. If it is, try tapping the ID, sign out, then sign back in, then try syncing again. Also be sure these apps are all checked and Sync Apps is checked on the Apps tab of your iTunes sync settings before syncing.
-
Mail attachement more than 5KB user is unable to receive
Hi All
We are trying to send the mail from SAP to Lotus notes with attachment, if more than 5KB user is unable to receive attached
mail, at the same time user is able to receive the mail if less the 5KB of SIZE.
where we need to change the setup to allow more than 5KB of Attachment mail from SAP.
Please help us to reslove the above issue.Hi Matt Kangas
we have checked the mail server there is no issue in the SMTP Mail server as well as there is no restriction in SMTP Level.
Please clarify.
Regards
Edited by: Krishguna on Nov 18, 2009 6:35 PM -
Changes to Variable in Customer exit
Hi Experts,
We have two variables in the ready for input query.
First Variable : Customer exit variable which gets populated based on user login details.
Second Variable: Input ready variable. The values will be populated depending on the first variable.
Suppose the user belongs to Sales Org India, the first variable will be populated in the back ground with value IND.
So the second variable(input ready) on sales hierarchy shows the available values only for INDIA in the format Region->State->city etc .
Now the problem is, even the user selects city in the second variable, the result set is being locked at the INDIA level . As a result the other users are not allowed to lock the data even if they select any other city.
Is it possible to delete value of the First variable in the customer exit after the user input the value for the second variable ?
I mean the Sales org should be set to empty after the user input to the second variable, so that the lock will apply at the region /city level .
Please let me know If I can provide any more information.
Thanks and regards,
Babu vHello,
Pl see if you can use first variable as authorisation variable
and second variable as i_step =2 as follows
INCLUDE ZXRSRU01 *
Enhancement: MultiProvider using InfoProvider Variable
include YBW_INFOPROVIDER_VARIABLE.
*& Include YBW_INFOPROVIDER_VARIABLE *
DATA:
ls_var TYPE rrs0_s_var_range,
ls_range TYPE rsr_s_rangesid,
l_contained TYPE c,
ls_mapping TYPE ybw_mapping,
lt_mapping TYPE TABLE OF ybw_mapping.
Called after variable popup
IF i_step = 2 AND i_vnam = 'INFOPROV'.
- 13 -
Read mapping table
REFRESH lt_mapping.
SELECT * FROM ybw_mapping INTO TABLE lt_mapping.
Process all selection for country variable
REFRESH e_t_range.
LOOP AT i_t_var_range INTO ls_var WHERE vnam = 'S_COUNT'.
Process all mapping rules
LOOP AT lt_mapping INTO ls_mapping.
Always fill LOW and HIGH, Otherwise logic below will not work
IF ls_mapping-high IS INITIAL.
ls_mapping-high = ls_mapping-low.
ENDIF.
Check if selection is contained in the defined InfoProvider
CLEAR l_contained.
CASE ls_var-opt.
WHEN 'EQ'.
IF ls_var-low BETWEEN ls_mapping-low AND ls_mapping-high.
l_contained = 'X'.
ENDIF.
WHEN 'BT'.
IF ls_var-low <= ls_mapping-high AND
ls_var-high => ls_mapping-low.
l_contained = 'X'.
ENDIF.
ENDCASE.
Add InfoProvider to return table
Note: Use COLLECT to avoid duplicates
IF l_contained = 'X'.
CLEAR ls_range.
ls_range-sign = 'I'.
ls_range-opt = 'EQ'.
ls_range-low = ls_mapping-infoprov.
COLLECT ls_range INTO e_t_range.
ENDIF.
ENDLOOP. " lt_mapping
ENDLOOP. " i_t_var_range
EXIT.
ENDIF.
Thanks and regards -
How to use a customer exit in WebI
Hi expert,
I read from official SAP document that customer exit variable are supported within WebI query.
I created an universe based on a query bex. In this query I use a variable exit for 0calmonth2.
Within the WebI universe I don't see any variable.
How can I use/build a customer exit variable in my WebI query?
System feature: BO 3.1
Many Thanks.
ClaudiaHi,
I havethe same issue, even though I place the user exit variable in Filter section, its not working as expected in WEBI/crystal.
the variable that i have created will assign default value as sysdate.its working fine BW.
Are there any extra settings at BEX/BW level which have to be set before using user/sap exit variables in webi/crystal?
How should the user/customer exit variables be defined in order to get them carried properly to webi or crystal, I mean what should be the properties set for these variables? -
BEx Query Designer - Customer Exit
Hello All,
I have a requirment to create USER customer exit.
User will enter the value of Month(ex, 02, 03...) and Year (ex 2010,2011 ...) with two different prompt screen.
Now i have to return back a date back to a RKF based on following senario:
1) If month and year is current month and current year than return back current date to the perticular RKF Date.
2) If month and year is not current month and current year then return back the last date of the month and year entered.
Thanks & Regards
NishantHI,
Just restrict the RKF with a CMOD variable and write the CMOD code as follows (sample):
assume your month and year variables are as follows: VAR_MON and VAR_YEAR
DATA: L_S_VAR LIKE RRRANGEEXIT.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: V_MON TYPE C LENGTH 2.
DATA: V_YEAR TYPE C LENGTH 2.
DATA: V_MONTH TYPE /bi0/oicalmonth.
DATA: V_CURR_DATE TYPE SY-DATUM.
DATA: V_DATE TYPE SY-DATUM.
when 'variable_name'.
if i_step = 2.
READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'var_mon' INTO L_S_VAR.
IF SY-SUBRC = 0.
V_MON = L_S_VAR-LOW.
ENDIF.
CLEAR L_S_VAR.
READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'var_year' INTO L_S_VAR.
IF SY-SUBRC = 0.
V_YEAR = L_S_VAR-LOW.
ENDIF.
V_CURR_DATE = . "Current date
"Check for the values
if V_MON eq V_CURR_DATE+4(2) AND V_YEAR eq V_CURR_DATE+0(4).
V_DATE = SY-DATUM.
else.
CONCATENATE V_YEAR V_MON INTO V_MONTH.
"call some function module to populate the last day of the above month (V_MONTH)
"and populate the above obtained value into V_DATE.
"see if you can use this SG_PS_GET_LAST_DAY_OF_MONTH
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-LOW = V_DATE.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
Regards,
Joe -
Cluster node does not shutdown after "received shutdown"
Hi,
We put together an automated restart process that restarts cluster nodes across multiple servers. To shutdown a node, we use the Coherence MBeanConnector and invoke stop on object: name=Management,nodeId=<member id>. This works for most cases where member's log output shows "received shutdown", partition transfer messages and after the last primary partitions have been transferred the VM exits.
For one node however, the VM did not exit. From looking at the log file for this particular node, the primary partitions were transferred, the distributedCache thread stops showing output, but the Cluster thread continues to show activity.
Note that this node was the last VM to stop on the given server.
Has anyone seen this before or ideas on why this particular node did not exit after receiving the shutdown message?
Thanks!
Marcel.Hi Marcel -
Please take a thread dump (via "kill -3" or "ctrl-break") on the VM that does not stop correctly. Coherence does not shut the VM down; it simply shuts itself down. If a non-daemon thread is running on the VM, then it may not exit. However, we won't know that until we see the thread dump.
Peace,
Cameron Purdy | Oracle Coherence -
How to capture user input for customer exit processing?
I need to calculate the number of working days elapsed in the current fiscal quarter BASED on the USER INPUT on the reporting front. i.e., say the fiscal quarter started on 1 July 2005 and if the user enters 10 July 2005, I should get the value 8 (Assume that Monday through Friday are all workdays). If the user enters 12 July 2005, I should get 10. I have written customer exits and know how to use factory calendar, but <b>THE CHALLENGE</b> is how do I <b>CAPTURE</b> the user input and use it in my exit? During the varible definition, if I select the check box "Ready for input" then the customer exit is not being processed and unless I check that box I can't get a user entry! If I look at the import values in the customer exit, I see i_t_var_range with type rrs0_t_var_range. My strong feeling is that this parameter gets the user input, but I am unable to use it as the customer exit is not being called if I make the user to input the data. Based on the empirical evidence, I felt that user input and customer exit can not co-exist!! Please somebody prove me wrong and let me know how can I use the user input to process my "customer-exit" variable. I would really appreciate any input from the BW community here.
Hi Sameer,
Most likely, I'm missing something, but I think that the answer is very simple.
CASE I_VNAM.
WHEN 'YOUR_CUSTOMER_EXIT_VAR'.
IF I_STEP = 2. After selecting of input variable
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'USER_INPUT_VAR'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4).
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
ENDCASE.
In this typical user exit coding you have a user entered value in LOC_VAR_RANGE (originally in I_T_VAR_RANGE) and you construct your user exit variable value in E_T_RANGE.
Best regards,
Eugene
Message was edited by: Eugene Khusainov -
MIGO User Exit after Mat Doc creation
Hi Experts.
I would like to request for your help about an user exit that will be triggered after the material document has been created or posted. The requirement is that I need to extract the material document from SY data and create a textfile via download. Thanks a lot!
Best Regards,
RandyTransaction Code - MIGO Goods Movement
Exit Name Description
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
USER EXIT
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.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal
No of Exits: 8 -
User or customer exit for ME21N
Hi all,
I have to make a check before saving the Purchase order thru ME21N. Is there any user exit or customer exit available to do this check? Plz clarify.
Regards,
SteveHi
Use the BADI ME_PROCESS_PO_CUST
see the sample code and the doc for BADI
BAdI Name: ZCHECK_PO_LINE_ITEM (Implementation name) PO Account assignment
Definition Name: ME_PROCESS_PO_CUST
Interface Name : IF_EX_ME_PROCESS_PO_CUST
Implementing Class: ZCL_IM_BADIN_ACCOUNT_ASSGN
Method : PROCESS_HEADER
METHOD if_ex_me_process_po_cust~process_header .
DATA : re_data TYPE mepoheader.
*get the item data
CALL METHOD im_header->get_data
RECEIVING
re_data = re_data.
re_header = re_data.
IF ( re_data-bsart NE 'ZOC' AND re_data-bsart NE 'ZPC' ).
IF ( re_data-bsart <> 'ZIC' AND re_data-bsart <> 'UB' ).
IF re_data-bukrs NE '1001'.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'Use only Sipchem Company'
'Code for External Procurement'.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
Method : PROCESS_ITEM
METHOD if_ex_me_process_po_cust~process_item .
DATA: v_menge TYPE bamng, " PR Quantity
v_statu. " PR Status
DATA : re_data TYPE mepoitem,
re_data1 TYPE mepoaccounting,
re_accountings TYPE purchase_order_accountings ,
header TYPE purchase_order_accounting.
*get the item data
CALL METHOD im_item->get_data
RECEIVING
re_data = re_data.
IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
IF re_header-bsart EQ 'ZRL'.
IF re_data-konnr EQ space.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant create a Release order'
'without a reference to Outline Agreeement'.
ENDIF.
ENDIF.
IF ( re_data-banfn EQ space AND re_data-anfnr EQ space ).
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can create a Purchase order'
'only with reference to a PR or RFQ'.
ENDIF.
IF re_data-knttp NE 'K' AND re_data-pstyp NE '9' .
IF syst-cprog EQ 'RM_MEPO_GUI'.
IF re_data-uebto IS NOT INITIAL OR
re_data-uebtk IS NOT INITIAL OR
re_data-untto IS NOT INITIAL.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant change delivery settings'.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
DEFINING THE BADI
1) execute Tcode SE18.
2) Specify a definition Name : ZBADI_SPFLI
3) Press create
4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
multiple use.
5) Choose the interface tab
6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
7) Dbl clk on interface name to start class builder . specify a method name (name,
level, desc).
Method level desc
Linese;ection instance methos some desc
8) place the cursor on the method name desc its parameters to define the interface.
Parameter type refe field desc
I_carrid import spfli-carrid some
I_connid import spefi-connid some
9) save , check and activate adapter class proposed by system is
ZCL_IM_IM_LINESEL is genereated.
IMPLEMENTATION OF BADI DEFINITION
1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
2) Specify aname for implementation ZIM_LINESEL
3) Specify short desc.
4) Choose interface tab. System proposes a name fo the implementation class.
ZCL_IM_IMLINESEL which is already generarted.
5) Specify short desc for method
6) Dbl clk on method to insert code..(check the code in AAA).
7) Save , check and activate the code.
Some useful URL
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
Now write a sample program to use this badi method..
Look for BBB sample program.
AAA
data : wa_flights type sflight,
it_flights type table of sflight.
format color col_heading.
write:/ 'Flight info of:', i_carrid, i_connid.
format color col_normal.
select * from sflight
into corresponding fields of table it_flights
where carrid = i_carrid
and connid = i_connid.
loop at it_flights into wa_flights.
write:/ wa_flights-fldate,
wa_flights-planetype,
wa_flights-price currency wa_flights-currency,
wa_flights-seatsmax,
wa_flights-seatsocc.
endloop.
BBB
*& Report ZBADI_TEST *
REPORT ZBADI_TEST .
tables: spfli.
data: wa_spfli type spfli,
it_spfli type table of spfli with key carrid connid.
*Initialise the object of the interface.
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
selection-screen begin of block b1.
select-options: s_carr for spfli-carrid.
selection-screen end of block b1.
start-of-selection.
select * from spfli into corresponding fields of table it_spfli
where carrid in s_carr.
end-of-selection.
loop at it_spfli into wa_spfli.
write:/ wa_spfli-carrid,
wa_spfli-connid,
wa_spfli-cityfrom,
wa_spfli-deptime,
wa_spfli-arrtime.
hide: wa_spfli-carrid, wa_spfli-connid.
endloop.
at line-selection.
check not wa_spfli-carrid is initial.
create object exit_ref.
exit_ref1 = exit_ref.
call method exit_ref1->lineselection
EXPORTING
i_carrid = wa_spfli-carrid
i_connid = wa_spfli-connid.
clear wa_spfli.
<b>Reward points for useful Answers</b>
Regards
Anji
Maybe you are looking for
-
Projects, is the Standard Functionality the one with COGS created?
Korean Air manufactures AIRCRAFT components and delivers them to customers such as Boeing. It wants to implement ERP (R12) applying Oracle Projects Solution. Issue 1. When Shipping Type Deliverable is created in Project Module and it is interface to
-
Web pages loading very slowly.
It doesn't matter if my Mac is connected with an ethernet cable or wireless, web pages are loading very slowly. I'm sure there's an easy fix for this but I'm clueless. Can anyone offer a suggestion? Thanks...
-
Copy from clipboard and paste in Web Dynpro table
Hi I have a client requirement where the client wants to copy the table from some already existing application and paste the data directly in web dynpro java table. It is similiar to copy the data from clipboard and paste it directly in web dynpro
-
Working with ProRez and wide screen 16x9
So I am trying to edit HD down to SD using ProRez. FinalCut won't let me edit my sequence in real time unless I have it set to 720x480 with the Anamorphic check box clicked. The problem with this is that when I export out to quicktime and open it any
-
Is there any system object can save the cost time of package?
Guys, i have one question. Usually I get the execute update time of package in JAVA to know the performance, but there is time lost in the network, right? So I suppose to get the cost time in DB and cost time in Weblogic, two parameters together. In