BADI in a BAPI
Hello,
I activate a Badi for MM02 and MM01 and I need to bypass the code if
a BAPI has been launched.
Is there a way to check if I'm in a BAPI processs ?
Thank you all!
Hello Rajesh
I suppose that BAdIs are usually not called directly within the BAPI coding but within others function modules called by the BAPI. Thus, there is no easy escape from "Trial and Error". However, the <b>Where-Used-List</b> of the BAdI may give you already some hints if it could be called within your BAPI. However, you have to repeat the Where-Used-List search.
Regards
Uwe
Similar Messages
-
An object on badi, ale/idoc,bapi
hi experts
hi this is sripathi.i want objects on badi, ale.idoc,bapi,smartforms and workfow.
i would be thankful to you if any one send these real time objects.BADI
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
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e6/63ee7f486cc143a560799d8803ce29/content.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
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
The specified item was not found.
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
http://www.allsaplinks.com/badi.html
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-serieshttps [original link is broken]:///people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
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
http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40921dd7-d5cf-2910-1894-bb62316afbd1
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
Refer this
http://www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_DATADICTIONARY_FAQ.html
http://www.****************/InterviewQ/interviewQ.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
http://www.techinterviews.com/?p=198
http://www.techinterviews.com/?p=326
http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.geekinterview.com/Interview-Questions/SAP-R-3/ABAP
http://sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions-3240
http://www.sap-img.com/abap/abap-interview-question.htm
http://www.allinterview.com/Interview-Questions/ABAP.html
Smarforms
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
SmartForms : some links
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
http://www.sap-img.com/smartforms/smart-001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sap-img.com/smartforms/smart-002.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
http://www.allsaplinks.com/smartform_example.html
http://www.sap-basis-abap.com/sapsf001.htm
Smart Form PDF Link
http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://sap.ionelburlacu.ro/sap0/sapsf001.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smart-001.htm
Re: How to Debug a Smartform
Debug of smartform and sapscript.
Debugging SmartForms
Debugging of a subroutine pool.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Workflows
http://www.sap-img.com/workflow/sap-workflow.htm
http://www.sapgenie.com/workflow/index.htm
https://sapneth9.wdf.sap.corp/workflow
http://help.sap.com/saphelp_webas620/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Rewards if useful............
Minal -
Need help in work order save BADI and create BAPI
hi expert
Our issues are below list
1. When release and save the work order ,the standard BADI(WORKORDER_UPDATE) have not the parameters about service information . (for this issue , chunfai had give a solution ,we are testing it )
2. When we create work order by BAPI(BAPI_ALM_ORDER_MAINTAIN), the BAPI canu2019t provide the parameters about service information .we canu2019t create WO including service data.
3. When we update work order by BAPI(BAPI_ALM_ORDER_MAINTAIN), the BAPI canu2019t provide the parameter about service information . we canu2019t update WO including service data.
could anyone can provide some suggestion for above question ? thanks for a lotPlease check BADI IBAPI_ALM_ORD_MODIFY its method has a parametrs CT_HEADER_SRV and CT_HEADER_SRV_UP you can pass your data here...
Lets say this BAPI you are calling in custom program than if you donot see any parametrs where service data can be passed then you can export the data before calling bapi and import in this badi implementation and complete your task..
Please check BAPI and BADI documentation for more details
Even BAPi has these two parameters.
Nabheet
Edited by: nabheetmadan09 on Jan 11, 2012 2:08 PM -
hi .
i want to search for BADi's in a BAPI.
On net i hv seen programs which gives list of all user-exits / BADI.
but this program is for finding BADIs for a tcode or program not for BAPI.
Is there any way to find out BADIs for a BAPI other than debugging.....or to first find out the package and then use hit and trial to find out the exact BADIHello Rajesh
I suppose that BAdIs are usually not called directly within the BAPI coding but within others function modules called by the BAPI. Thus, there is no easy escape from "Trial and Error". However, the <b>Where-Used-List</b> of the BAdI may give you already some hints if it could be called within your BAPI. However, you have to repeat the Where-Used-List search.
Regards
Uwe -
Developing custom IDOC , USER Exit , BADI , BAPI and RFC
Hi,
I want basic information on developing custom IDOC , USER exit , BADI ,BAPI and RFC.
Thanks in advanceNeha,
>custom IDOC ,
http://www.geocities.com/xplosion78/customised_ALE_IDOC_BY_SACHIN_DABHADE.zip
>USER exit
USER EXIT
> BADI
BADI Development Contents
> BAPI and RFC
Re: BAPI Development
Cheers
Agasthuri Doss -
Automatic shipment cost doc. using Badi or BAPI
hi all,
I need to create a shipment cost document once PGI is done (PGI is done from shipment document) in background.
can u help me are there any badi's or BAPI's available in standard and how to customize it.
Thanks & Regards,
SureshHI,
VI01 internally call the below function modules.
SD_SCDS_CREATE
SD_SCD_CREATE_CHECK
Pls validate, if this works for your requirement.
Also check this link
Re: BAPI or FM to create SCD (VI01)
Regards,
KK -
BAPI to create SNP planned order based on start date
Hi,
I am looking for a BAPI to create SNP planned order based on the order start date. There is BAPI BAPI_MOSRVAPS_CREATESNPORDER which can be used to create SNP planned order based on the end date but not based on the start date.
Also would be great if some one can share how do they create SNP Planned orders using BAPI BAPI_MOSRVAPS_CREATESNPORDER in case if GR processing time is defined in the product master and workdays for GR to be respected according to the calendar.
Regards,
VenkatHello Mr.Venkat,
Hope you recognize me.
Please check out the BAdi below.
BAdi - APO_BAPI_BUS10503 (this is the BAdi for ManufactOrderAPS BAPI which contains the SNPorder BAPI)
Method - CHANGE_SAVEMULTIPLE2
In this method parameter IT_ORDER_HEAD contains Order start date input option.
For GR time please check this (not sure if it will help).
Same BAdi/ same method
Parameter IV_PLANNING_MODE_USAGE contains field PLANNING_MODE.
Value 1 for PLANNING_MODE corresponds to "Observance of parameters from the product master".
This may make it respect the GR time in product master
Good luck with the above
Regards,
Ashok -
Hi friends
Can we implement BAdI in XI...? If yes,then How...?U may call the BADI inside a BAPI.
This BAPI could be accessed by XI using RFC adapter
Regards,
Prateek -
HOW TO WORK ON BADIS AND IDOCS USING LSMW.
CAN ANY ONE SEND ME DOCUMENTATION REGARDING THIS TOPIC'S
AND A SAMPLE PROGRAMS ON THESE.POST ME TO [email protected]
THANK UJust type in LSMW in the forum search and you will find tonnes of examples, links etc.
I think you typed BADI instead of BAPI as BADI are kind of user exits not something which you can use in LSMW.
Srinivas -
Hi Experts,
I am doing an Interface for Journal Upload. For Park document Trans. FV50. In this I want to park documents. I need a BADI to call the transaction for Park documents. Currently we do gave a customize program for upload posting GL entries, but not the park documents.
In my Interface for Flat file (XLX) file upload.Are you looking for a BADI or a BAPI?
Rob -
Hiding fields in BSP application
Hi Friends,
Iam using HRRCF_TRM_srch BSP Application, i have a requirement to hide few fields in BSP pages. Can any one tell me what BADI and what BAPI is this BSP application is triggering at the behind. so that can will enhance the BADI or modify the BAPI, without modifying BSP page or controller.
Thanks in advance
SrikanthHi James,
Firstly, do you need to have the hidden items on the page? If you don't, you should just delete the items. If you do (perhaps because of the calculations you need for your second question - see below), you can set them to "Hidden" fields - select each item and set the Display As setting to Hidden.
Secondly, there are at least two ways to perform calculations on fields - either using a Page Process or a table Trigger. Page Processes will work on any fields available in the session and triggers will work on the fields on a table.
Which you choose typically depends on whether or not data is likely to be inserted or updated outside of your application.
Regards
Andy -
Issue during automatic Creation of Work Order from Notification
Hi,
I have a issue during automatic Creation of Work Order from Notification.
BADI implemented: NOTIF_EVENT_POST
BAPI called in BADI: BAPI_ALM_ORDER_MAINTAIN
I am able to create Work Order successfully but after that i need to update notification header with created work order number.
But i am unable to update the same (VIQMEL-AUFNR).
Can anybody provide solution for the same!
Thanks,
Kumar.Hi,
Any inputs on above posted issue!
Thanks in advance.
Thanks,
Kumar. -
BAPI_MOSRVAPS_CREATESNPORDER - time zone issue
Hi
We are creating SNP Plan Orders in APO using BAPI_MOSRVAPS_CREATESNPORDER. New Order getting created using the BAPI has time stamp 23:59:59 which is taken from UTC time zone.
Is there any way we can create/load SNP Plan Order with time different time zone OR can have a other time other than 23:59:59
Thanks
DeepakHello Mr.Venkat,
Hope you recognize me.
Please check out the BAdi below.
BAdi - APO_BAPI_BUS10503 (this is the BAdi for ManufactOrderAPS BAPI which contains the SNPorder BAPI)
Method - CHANGE_SAVEMULTIPLE2
In this method parameter IT_ORDER_HEAD contains Order start date input option.
For GR time please check this (not sure if it will help).
Same BAdi/ same method
Parameter IV_PLANNING_MODE_USAGE contains field PLANNING_MODE.
Value 1 for PLANNING_MODE corresponds to "Observance of parameters from the product master".
This may make it respect the GR time in product master
Good luck with the above
Regards,
Ashok -
Performance Monitoring - How to get the data
Hi all,
we have a tool to monitor non sap systems and services and would like to use the same tool to get some runtime information from PI services, specially soap interfaces. The information we want is available at runtime workbench, performance monitoring.
Is there a standard function we can use to get this data (EJB , Bapi, RFC, etc...) ? Today we are importing daily a file with this information from RWB, but this is enough only for statistical purposes, not for monitoring.
Some tip?
thank you.
regards.
robertiRoberti,
Three are a number of ways to tackle these things - I usually like CCMS just because SAP spends so much time making it work for everything anyway - if your tool can connect to this - you can get some decent information from here about your system status, queue's and java.
Speficially for Messages, I don't think that there are monitors defined as RFC BADI's or BAPI's to use but if you feel saucy, tables for messages are SXMSPMAST2 and SXMSPMAST - should give you a programming head-start to get some data and pass that back although you would only replicate the functions in CCMS.
Of course with all SAP Products, you have to go through the application to get this data, no ODBC connections or otherwise - there are other options like DBCON to allow you to 'send' data to other Db's if you need to do it that way.
Hope that helps somewhat and if this answers your question, please set your thread to answered.
Edited by: David Milliken on Feb 22, 2008 8:06 PM -
STO classic scenario SRM 4.0
Hi All,
We create SC that transferred to STO (Stock Transfer Order).
With the Classic Scenario(SRM 4.0) we use BBP_CREAT_PO_BACK.
A STO is created but the number of the STO is not displayed in SC.
Any suggestion ?
Thanks in Advance..
MotiHi Christophe
I) In CS - Did you use the scenario were a SC is transferred to a STO in R/3?
II) In ECS - Did you use the scenario were a SC is transferred to a PO in SRM and a STO in R/3?
Here are more detail of whate i have done:
A. In the Classic Scenario
I) Standard Purchse Order (this one works fine):-
I adapted the BADI BBP_CREATE_PO_BACK as follows :
1. Changing the document from EC to NB,
2. Changing the Vendor from 1000000272 to 1000000271,
Run the program - CLEAN_REQREQ_UP.
The system as expected - A PO is created and
In the Follow-on Document, in the SC, I get tow messages:
1. Shopping Cart 1000000508/1 Follow-on Document Created
2. Purchase Order 4400002238/1
II) Stock transport Order (here the problem arises):-
In order to create a STO
I adapted the BADI BBP_CREATE_PO_BACK as follows :
1. Changing the document type from EC to UB (STO),
2. Changing the Vendor to a Supplying Plant 236 (The central warehouse),
3. Changing the Item category 7 (U - Transport),
Run the program - CLEAN_REQREQ_UP.
A STO is created (Number 4400002239) but the number of the PO is not in
the SC.
In the Follow-on Document in the SC I get only onr tow message:
1. Shopping Cart 1000000511/1 Follow-on Document Created
To confirm the goods receipt of that STO from the status screen I get the messsge: 'PO 1 contains no items for confirmation'.
When confirming the goods receipt from the Confirm Goods/Service I get the message: 'PO 4400002239 contains no items for confirmation'.
B. In the Extended Classic Scenario
I adapted the BADI BBP_ECS_PO_OUT_BADI as follows :
Document type - UB (STO),
Supplying Plant 1000 (The central warehouse),
Item category 7 (U - Transport),
The BADI use the BAPI BAPI_PO_CREATE1.
The BAPI_PO_CREATE1 returns the following listed error messages:
'Net price must be greater than 0'.
Because the BAPI is activated whith extra parameters like: Invoice Receipt Indicator and Partial Invoice
Your help is appreciated.
Rgds
Yoram
Maybe you are looking for
-
I recently bought the hunger games catching fire movie combo, which included the the sd and hd movie plus the digital reemption code for itunes. When I reeded the code onlt the HD version of the movie showed up in my purchased area. I have a ipod c
-
How Can I Get a New IP Address?
I'm starting to get direct-mail solicitations just from visiting websites so I'd like to change up my IP address. I tried unplugging the cable modem for a long time, but it reconnected to the same IP. Can I tell Airport Express to get a new IP addres
-
I have been having problems with the power button on my iphone, I turn the phone off at night sometimes to save battery, the button is becoming more and more unresponsive, I'm on contract with 3 but the phone is over 12 months old. What can I do to r
-
Foxfire wasn't connecting to the web and I had to reinstall it. Since that time I haven't been able to access iTunes and new windows don't open in new tabs
-
How to implement simple java stored procedure
I'm using Maxdb 7. 6.03.15 (standalone - no SAP) as a Migration Environment to a new centralized SAP solution. Most of the work is done in internal DBproc but I need to trig external procedure (those one's written in Java). I have already spent too