Creation of Popup in BADI
Hi
I need to throw a popup in Opportunity while saving with the text '........You cannot save' .It should have a 'OK' button.
This way i should stop user from saving the application depends on a condition.
I'm planning to use 'ORDER_SAVE' BADI to show this popup.Could you please tell me how to create this popup?
Best Regards
Anil
Hi,
To call a popup you need to have access to the window manager which is not available from BADI. So this is something you need to do from the BOL layer itself. EH_ONSAVE should get called.
Anyway, to create popup you need to create a view in your component or if any of the standard desicion popups suit you, you can use that. You need to create a component usage for the view using a component (give the name of your component) and an interface view (basically a window, can be a new or old reusable window). In your runtime repository create an entry for the window and the custom view inside the window.
Next design the htm page of the view, whichever way you want. And add a button. This completed the view development.
Now to call the view as a popup, do like this:
lv_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'Windowname' "#EC NOTEXT
iv_usage_name = lv_comp_usage
iv_title = lv_title ).
duplicate_popup->set_on_close_event( iv_view = view_controller
iv_event_name = on_close_event ).
Do remember to create an event on_close_event, that you help you navigate back to the main processing.
Regards
Prasenjit
Similar Messages
-
Creation of Vendor Invoice - BADI to control "Payment Baseline Date field"
Hi ,
In SRM - Creation of Vendor Invoice or Credit memo -
In the process of creation of vendor invoice in Header Data - Payment Data tab there is a field "Payment Baseline Date" and I want to populate custom value to this field using BADI. But I could not find any BADI to do this.
Can any one please let me know if any idea what BADI I can use.
I tried DOC_CHANGE_BADI and this one does not have this field in the ET_HEADER.
Thanks in advance.
VenkatHi,
Any ideas please?
Thanks for ur time. -
Need to re-install Safari as it is infected with some popup malware badly
How do I re-install Safar to get rid of a bad malware that is creepy and starts doing popups all over the place. It highlights words on the text as links with ads.
Click here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
Reinstalling Safari isn't part of removing the adware.
(126006) -
Popup from BADI implementation
Hi All,
I need to do some processing when an action profile is called from an activity. I am writing a new badi implementation for this. I have associated the same to the action profile.
Now, depending upon some data of activity, I need to show a popup to the user, to collect some more information. Based upon the information entered by the user, I have to call another program by supplying the gathered information.
Any idea how to achieve this? Calling a popup from method, which should return the gathered data?
Regards,
KaushalHi Siva,
Popup function would not have helped, as I needed to capture detailed inputs from the user.
Thanks for your time.
I resolved the issue by creating a new function module & creating a new popup screen within the same function group. I used call screen to show the popup, collect inputs from the user & processing those inputs further in the function module.
Regards,
Kaushal -
Hi guys I'm very new to ABAP and BADIs. We created a BPM session in SolMan and created alerts. The problem now is that we want to send sms alerts but we want a compact version of the alert where we only get the date, the time, the job name and the error.
We also want to setup a e-mail alert the same way. Is it also possible to setup a email popup confirmation where you have to type in what you did when you click 'confirm' on the alert..
Any help on this will be greatly appreciated.
Regards
VincentHi Volker
The problem I'm having with the sms notifications is that the sms are limited to 300bytes or 160 characters. Now I need the notification to be formatted in such a way that it can fit into the sms. So i figured if i put the Alert rating and the time stamp as the sms subject, and then put the alert message as the body of the sms it would fit.. But now I'm stuck as to how I'm gonna get that done..
Any help would be greatly appreciated.. -
Problem in Creation of implementaton for Badi FAGL_DERIVE_SEGMENT
Hello Abapers,
I am facing problem when creating a implementaion for BADI FAGL_DERIVE_SEGMENT,
FAGL_DERIVE_PSEGMENT,
The error is when i am going to save any of BADI implemenations, Specify filter types..
The badi is very important to meet my requirement.So How to solve this problem.
Waiting for your favourable replies.
Thanks & Regards
Maruthi.KHi,
Implementing a Filter-Dependent Business Add-In
If you want to use a filter-dependent Business Add-In, you will need an implementation for each relevant filter value. Multiple filter values may use the same implementation, however.
When implementing a filter-dependent Business Add-In, proceed as follows:
Create an implementation by referring to the corresponding Business Add-In definition.
Enter a characteristic filter value for the implementation, or choose F4 and select a value from the list of possible entries displayed. In principle, it is possible to define multiple characteristic filter values for each implementation.
Use the Class Editor to fill the interface method.
In the string conversion example, you would make the following entries for each country:
BRD:
translate parameter to upper case.
Ireland:
translate parameter to lower case.
Italy:
translate ...
Repeat steps 1-3 for each implementation that you create.
Activate your implementations.
Now, whenever you execute the report program described above, different country-specific implementations are executed.
Regards -
Function Module for creation of variant in BADI
I need to create a variant to store shipment no's which are coming in BADI. And variant need to be passed to a report which has to be run Background. can anyone help me out how to do it. Can anyone know the function module for this.
Hi Anirban,
Use the bapi BAPI_BUSPROCESSND_CREATEMULTI to achieve the same.
<b>Reward points if it helps.</b>
Regards,
Amit Mishra -
SAP SRM Contract : identify Creation/Release and restrict BADI call
Hi There!
I need some suggestion on one of the issue i'm having now:
The SRM contract workflow works on n-level approval for which a BADI is implemented for the approvers. Now for one of the custom sub-process i need to trigger a different workflow from this BADI which works BUT create as much of workflow items as the number of calls of the BADI. Is there way to identify the code/identifier which say it is a 'SAVE' or 'RELEASE' event and also how can i restrict some piece of code inside the approval badi to be called only at the last call of the badi?Dont you want to show a release value to every one ?
Purchaser should know what is going on contract?
what are the POs released? -
Automatic creation of Generic Transactions
Hi colleagues
I am thinking about using generic transaction in our TRM implemetation. But I havn't found a way for creating them except manual enter via RCA00. I am sure there must be a kind of user-exit for their automatic creation (a sort of BADi or BAPi). Hope to get a hint from you.
Thanx in advance.
KonstantinHello,
Using External Data Transfer Generic Transactions can be created in mass. You could even check transactions like RMCM where such generic transactions are created using data from cash management. Hence automating this creation is possible.
Kind regards -
User exit/BADI in MIRO that would trigger invoice quantity block.
Hi,
Is there a way to enchance MIRO so that an invoice quantity block will be set automatically through user exit/BADI?
My requirement is that if an invoice is to be posted onto a PO line using an IO, the invoice needs to be processed onto the PO line up to the total of the PO line. And if the invoice goes above the PO line and there is still some budget on the IO, the invoice should get a quantity block.
Also, the quantity block should be set before posting the invoice.
Thanks.Hi,
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Badi Name Description
INVOICE_UPDATE Business Add-In: Logistics Invoice Verification
INVOICE_UPDATE Transfer Invoice Receipt to Records Management
INVOICE_UPDATE Event manager communication from invoice processing
INVOICE_UPDATE Rückantwort ins CRM aus der Lieferantenrechnung
INVOICE_UPDATE Implementierung, um S1NVEXC zu übermitteln
INVOICE_UPDATE Save FI Document Type for Principle of Prudence
INVOICE_UPDATE Vendor Evaluation Based on Documents from IV
Check this badi's and user exits.
Hope this helps.
Regards,
Qamar. -
Hi,
i'm looking for exits/badis in the MIRO transaction (Enter Incoming Invoice) after pushing the Save-button.
For transaction/event :
- Invoice : for some conditions a subprocess with creation of a sales order must started (---> done in badi INVOICE_UPDATE method CHANGE_BEFORE_UPDATE)
- Credit memo : under some conditions a invoice cancellation must been done
- Subsequent debit or credit : under some conditions not possible, so error message must been created.
So what i need in the badi or exit, is the value of the transaction/event (RM08M-VORGANG), and the possibility to stop the process and show an error message, or to go on with the process and create a sales order or invoice cancellation.
best regards,
Hans
by the way, i know all the standard answers on MIRO-exit questions, but this doesn't work so far.Hi,
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
BADI being INVOICE_UPDATE
Regards -
User exit or badi or enhance for MIRO using Purchase order
Hello All,
When Miro was done using Purchase order i want to change the field BSEG-ZUONR value to assign purchase oder number.
In the setting when the purhcase order was selected but still it comes as blank. could any body suggest the solution.
Thanks in Advance !
Regards
SrinivasHello srinivas,
Exits for the given tcode
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Po
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verifica
Badis and Enhcance spots for the given tcode
Badis Enhcance spots
INVOICE_BW ES_BADI_INVOICE BW Update
INVOICE_UPDATE INVOICE_UPDATE
INVOICE_UPDATE Business Add-In
Thanks,
Santhosh Kumar R
Edited by: santhosh kumar on Dec 23, 2010 9:25 AM -
Popup for view of the same component
Hi,
I want to display a view in a popup window, I know how to do it using interface view of an external component.
But Is it possible to open a view of the same component in a popup window?
Regards,
MauricioHi,
Create a window in you component, say MyPopUpWindow.
In Runtime Repository, Attache the view of your component to this window.
Now create a Component Usage , Say CUXyzPopUp , for your component as used component and use MyPopUpWindow in there. Always use F4 for attaching views, windows and attaching window to Component Usage.
You are done !!
Now use the usual code for creation of popup using this Component Usage.
reuse_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'ZCOMP/MyPopupWindow' "#EC NOTEXT
iv_usage_name = 'CUMyPopup' "#EC NOTEXT
iv_title = lv_title ).
Hope this helps.
Thanks & Regards
Suchita -
Problems with war file,popups and forms
Hi All,
we are using adf faces and jdeveloper 11g for our project.
Development work and all have happened fine, but we are facing few problems when we created the war file of the project and deployed it on tomcat 6.0 .
The major problem we are facing after the deployment of war on tomcat 6.0 is:
Popus (the popups we created and calender popups) are not showing up. The page simply refreshes when click on the popup link. There are no exceptions thrown, no errors in tomcat logs. The same thing is happeing for calender popups also.
We are using the following code for popup creation:
<af:popup id="mypop" eventContext="self">
<table>
<af:spacer width="10" height="20"/>
<tr>
<td>Name:</td>
<td>
<af:inputText columns="20" required="true" value="#{FL.name}"/>
</td>
</tr>
</table>
<table>
<tr>
<td>
<af:commandButton text="Submit" action="#{FL.ValidateName}"/>
</td>
</tr>
<af:spacer width="10" height="10"/>
<tr>
<td>
<af:outputText value="(*) Marked fields are compulsory"/>
</td>
</tr>
</table>
</af:popup>
<af:commandLink>
ADD Name
<af:showPopupBehavior popupId="mypop" align="endBefore"
triggerType="action"/>
</af:commandLink>
the following jars are included in web-inf/lib folder:
adf-controller-api.jar
adf-controller-rt-common.jar
adf-controller.jar
adf-faces-databinding-rt.jar
adf-pageflow-dtrt.jar
adf-pageflow-fwk.jar
adf-pageflow-impl.jar
adf-pageflow-rc.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
adf-share-base.jar
adf-share-ca.jar
adf-share-support.jar
adflibfilter.jar
adflogginghandler.jar
adfm.jar
adfmweb.jar
cache.jar
commons-el.jar
commons-logging-1.1.1.jar
db-ca.jar
dms.jar
dvt-faces.jar
dvt-jclient.jar
dvt-utils.jar
fmw_audit.jar
glassfish.jstl_1.2.0.1.jar
identitystore.jar
inspect4.jar
javatools-nodeps.jar
javax.management.j2ee_1.0.jar
jaxen-full.jar
jdbc2_0-stdext.jar
jewt4.jar
jmxframework.jar
jmxspi.jar
jps-api.jar
jps-common.jar
jps-ee.jar
jps-internal.jar
jps-unsupported-api.jar
jsf-api.jar
jsf-impl.jar
jsf-ri.jar
jstl.jar
log4j.jar
mdsrt.jar
ojdbc14_g.jar
ojdl.jar
oracle-el.jar
oraclepki.jar
org.apache.commons.beanutils_1.6.jar
559,366 org.apache.commons.collections_3.1.jar
org.apache.commons.logging_1.0.4.jar
osdt_cert.jar
osdt_core.jar
saxpath.jar
share.jar
standard.jar
trinidad-api.jar
trinidad-impl.jar
wls-api.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
xmlef.jar
xmlparserv2.jar
We are struggling to find a solution for this.
Any suggestions on this will be highly appreciated.
Thank you.Hi,
please try removing all your HTML elements and just use ADF Faces components. Chances are that mixing HTML with JSF components, though possible in JSF 1.2 causes this conflict
Frank -
hi,
i hv 2 views in my appln.
the 1st 1 is the default view which has a btn "to".
nw i want to see my 2nd view as a popup when i click on "to".
and i want to create it DYNAMICALLY.
plz help.
are there any pdfs for dynmic creation of popup menus?
thanx.
regards,
ankitaHi Ankita,
First embed your SecondView in some window say 'SecondWin'
In Your Controller write this code::
==========================================
public void PopUpFunction(){
IWDWindow window;
IWDWindowInfo windowInfo;
try{
windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("SecondWin");
window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
IWindow wnd=(IWindow)(window);
wnd.setTitle("Second View");
//Can Set various other properties of window. like WindowSize, removeWindowFeature
wnd.open();
catch(Exception e){
IWDMessageManager msgMrg = wdThis.wdGetAPI().getComponent().getMessageManager();
msgMrg.reportException(e.toString());
========================
Finally, on action of 'to' button write ::
wdThis.wdGet<component Name>Controller().PopUpFunction();
Hope this code will help you to create dynamically popup window. This will open the Second View which is embedded into SecondWin
Let me know, if problem still exists.
Regards,
Nittin Garg
Maybe you are looking for
-
Crystal Report Viewer Control on SAP Form?
We are using Crystal Report XI to create custom SAP reports. We have integrated this into our Add-On by adding the Report Viewer Control to a Windows form and setting it's report source at runtime. This works ok but is a bit cludgy looking and caus
-
Java 1.4.2 in Linux with a 2 processor Server
We want to install Linux Enterprise ES 3.0 into a 2-processor Server PC. We are going to use this Server as an Oracle Application Server with the above software installed. Is there any problems-conflicts with 1. java_1.4.2 2. Linux ES 3.0 3. Oracle A
-
Why can't save my photos on CS6??
I'm trying to save my photo as a .gif by 'Save for Web...' but it tells me, "Could not complete the Export command because the file could not be found." And when I click 'Save As...' it tells me, "Could not complete the Save As command because there
-
Premiere Elements 8 ALWAYS hitting internet...WHY???
I have installed Premiere Elements 8 on my home PC in order to help with training & troubleshooting at my work; as soon as this is done I am going to remove this program. At present I have satellite internet & I am limited to how much time/usage I ha
-
Hello Guys, Why can't we delete a Field Created in CRMOD for any record type, while we can delete other things like Page Layouts, Lists etc. Is there any way to delete the fields created. Thanks