How to call BADI Triggering Multiple Times
Hi ,
I got one requirement of Duplicate check for that i implemeted one BADI in that i called Duplicat check function Module also so when i entered first, last and email id it is giving the message as Data is saved. when i entered the same data is entered it gives the message as Account is Duplicate and it wont save at that time when i modified the data then it wants to save that means it wants to call the duplicate check badi once again but thing is it wont save again it is giving the message as duplicate so for each change the badi wants to trigger agin and again but it wont so how can i do this one pls tell me which badi is suitable
Regards
Ravi
I think you can do it by using the same BADI. you can just create a static data to keep the first, last and email id. If the first, last and email id are the same skip the duplication check.
for examples:
Method badi.........
STATICS static_name TYPE name VALUE 10.
IF static_name is initial.
static_name = im_name.
perform duplicate_check.....
ELSE.
if static_name ne im_name.
perform duplicate_check.....
endif.
ENDIF.
Endmethod
Cheers,
Chaiphon
Similar Messages
-
Problem Calling a WebService multiple times
Hi Guys,
I am a relatively new user of DS 12.2 doing a proof-of-concept to call an in-house WebService for a batch of customer records - lets say 1000.
The WS has an input schema where it's parameters are within a nested table such that it can be called for many customers in a single call if desired. WS input schema (made-up example)=
-WS
--$REQUEST_SCHEMA **added by DS on import
---CustVerification
src_nr
src_state
I have successfully been able to create a Data-Flow that builds the input-schema such that 1 WS call is made with a nested input of all 1000 customers. This works and the output from the single call is correct (many records relating to the many inputs etc). Input schema =
- <CustVerification>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
</CustVerification>
Now the problem - I am wanting to do this flow so that it calls the WS once PER customer i.e. 1 entry in many of the nested CustVerification structures.
I have, again, been able to produce the correct XML schema (at least it looks correct) which repeats the Input Schema for each customer record. HOWEVER, when hooking this up to the function call of the WS as before, I either get only 1 single call like before with the last entry in the file run through it..... or, after playing with the query's input schema to add an extra root level and changing FROM clauses to map to the function call schema I then get a huge ACCESS_VIOLATION dump which mentions "LoadDFXML::put_string()+2427 byte(s)" and other such XML-related but non-helpful messages.
New input schema is:
- <CustVerification>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
</CustVerification>
- <CustVerification>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
</CustVerification>
- <CustVerification>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
</CustVerification>
So.... am I missing something simple in how I call a WS multiple times as opposed to once with multiple inputs? Could this be a setting/property somewhere? IS this linked with how I do a QueryTransform in a certain way to get the function called the right number of times? Anything else??
Thanks for any advice/help.
Flip.Thanks for the responses guys.... I actually got past the error with a change to the NRDM structure (as mentioned in the first reply, I think a small problem here really changes things).
So - what I had to do to get this working properly was to add a new 'dummy' level into the structure - this kept it clean to denote that the 1 large bulk of messages were going to be sent through the WS many times. So - structure looks like this:
Input_Query:
- <ROOT>
- <CustVerification>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
</CustVerification>
- <CustVerification>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
</CustVerification>
- <CustVerification>
- <Details>
<src_nr>1234<src_nr />
<src_state>KY</src_state>
</Details>
</CustVerification>
</ROOT>
Then, in the Output schema for the function call, I had to create a dummy extra schema level also - say 'WS_Call', and put the function call within this structure. The FROM mapping has to be set so that both the input_query level AND the input_query.root level are mapped to the WS_Call schema.
And then it works!
Summary -- its a bugger.... but playing with the structure levels (and adding your own at times) and FROM clauses can work!
Cheers,
Flip. -
Calling stored procedure multiple times in the JDBC receiver
Hi,
I am calling the stored procedure(SP) to update a DB table in the JDBC receiver.
SP has 10 input parameters, and SP can receive one value for each parameter at a time.
In my case, i will have multiple rows to insert using SP.i.e multiple values for each parameter.
Its working correctly for a single value for each parameter, but when i have multiple values i want to call the SP multiples times.
Is this possible and how?
Thanks,
Varghese.Varghese,
I think you can have multiple statements in the JDBC Adapter's XML, as in http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm.
Here the StatementName1 node can be inserted into your JDBC XML as often as you want.
Kind regards,
Koen -
Why LOOP AT XVBAP is triggering multiple times in user-exit in 1 item order
Hi,
Just curious,
I put the break point at LOOP AT XVBAP in user-exit of MV45A include of sales order transaction, then I created a sales order with ONLY one item(10) of 1 quantity (meaning, ONLY one schedule line)....then, Why my break-point(LOOP AT XVBAP) is triggering multiple times? even though there is ONLY one item/1 quantity? is supposed to trigger only 1 time(one iteration) right?
why mupltiple iterations are happening?
thank youHello ,
yeah thats true , that exit programs will called several types by SAP itself , so u need to find right FORM exits for ur requirements.
regards
Prabhu -
Hi Experts,
I am a BW consultant and new to webdynpro. Not sure how to run RSO_METADATA_REPOSITORY multiple times and by passing different parameter values each time(either taken from an a standard BW table or user provided - anything is fine) and build web pages with parameter name. Need help with direction on where to start.
Let me step back and explain my requirement:
In BW we have an object called transformation.
One way of generating documentation for transformation is highlight transformation and press F1. Then its documentation will be opened as a local web page.
I need these web pages for all transformations. This is my requirment.
I came to know that RSO_METADATA_REPOSITORY is beeing used to generate this web page.
The web link is something like below:
http://ubw05.xxx.com:8005/SAP/BW/DOC/METADATA/?page=BW_O_D&SystemID=BWPCLNT100&ClassID=TRFN&ID=0KHR6J65AIIUTCJZEC093K6XDFV909PB&objectVersion=A&sap-language=EN&sap-client=100
When i run this link seperately(not by selecting transformation and pressing F1) i need to enter login credentials to BW system.
My challenges is how do i pass login credentials and multiple transformation IDs to generate multipe web pages with each page named by transformation ID?
WHere to start? First of all is RSO_METADATA_REPOSITORY Webdynpro JAVA or webdynpro ABAP or can i use anything?
Since it is beeing opened as local webpages i assume it is webdynpro JAVa is that correct?
Thanks,
Raghuhello,
might be a problem with the version you are using.
regards,
the oracle reports team -
Calling same form multiple times
Hi, i need to call a single form with different table names as parameters depending on conditions.
for eg here is the approach
if flag1_is_set
call form1 multiple times with table1, table2....... as parameters
"and i can avoid this
" form 1 using table 1
" form 1 using table 2
" form 1 using table 3
" form 1 using table 4
" form 1 using table 5
elseif
flag2_is_set
form 1 using table 2
elseif
flag3_is_set
form 1 using table 3.
but i cannot call forms like this. can someone suggest
an equivalent implementation on how to do this.
if i dont implement in the above mentioned approach i have to code the same thing with minor changes multiple times
thanks.
your help would be appreciated.
kranthi.You might try passing a field symbol (itab) in the tables.
And assign the filed symbol with your itab as per the condition.
Check if the program below gives you any idea.
REPORT Z_RAM_DYN_TAB_IN_FORM.
PARAMETERS : P_TAB1 TYPE C.
DATA: lt_users2 type standard table of usr02.
DATA: lt_users1 type standard table of usr01.
FIELD-SYMBOLS: <fs_itab> type standard table.
SELECT * into table lt_users1 FROM usr01.
SELECT * into table lt_users2 FROM usr02.
IF P_TAB1 eq 'X'.
ASSIGN lt_users1 to <fs_itab>.
ELSE.
ASSIGN lt_users2 to <fs_itab>.
ENDIF.
PERFORM test_form TABLES <fs_itab>.
FORM test_form TABLES x_itab .
FIELD-SYMBOLS: <fs_wa> type any.
FIELD-SYMBOLS: <fs_field> type any.
LOOP AT x_itab ASSIGNING <fs_wa>.
DO 5 times. "Write first 5 fields of itabs.
ASSIGN COMPONENT sy-index OF STRUCTURE <fs_wa> to <fs_field>.
WRITE : <fs_field>.
ENDDO.
WRITE :/.
ENDLOOP.
Thanks,
Ram
Message was edited by: Ram Manohar Tiwari -
How to play one clip multiple times at the same time?
I am writing a little game where a certain sound has to be played quite frequently. I load it as a Clip and play it with
myClip.setFramePosition(0);
myClip.loop(0);If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
So here it goes: How can I play a single sound multiple times at the same time? Is that possible?
Edited by: andrasz on Feb 27, 2009 12:37 AMIf the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
So here it goes: How can I play a single sound multiple times at the same time? Is that possible?Ummmm, if you're using a clip, you'll have to maintain one copy per object that needs to play the sound concurrently. You could keep one master copy, and then create copies of the clip as necessary to play them, and then just dump the copies to decrease memory consumption.
A second idea would be to write your own Clip class. Esentially, all you would need to do is dump some sound data onto a TargetDataline to play it. It'll handle the buffering and playing at the correct speed itself. If that's all you did, you should be able to dump multiple times from the same instance and play it multiple times.
Obviously, that's just a theory. In practice, it may not work that way... -
Photoshop CC 2014 Extension - CEP Event callback is triggered multiple times per single event
Trying to make my extensions listen for bunch of events and it's turning out to be a real pain in the ***.
I'm hoping there's someone here who has a bit more experience playing around with these.
I used the example code from here ( Page 43 ): http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/CC14_Extension_S DK.pdf
I've modified the code just a little. I removed some unnecessary things from it. I also added a counter, to try to visualize the issue.
Every time I pasted the code here, the global variable seemed to duplicate. So, eeeeh... the example code can be found here.
The problem is:
I close one document to trigger the event, but for some reason the callback seems to run multiple times.
Even better, it doesn't seem to be super consistent about it. Sometimes it repeats only couple of times and sometimes it repeats 160 times.
It seems like every time the extension panel is reopened, it comes up with a new number.
Currently, if I close a document, it seems to trigger the callback 15 times
Since this is screenshot, you'll have to take my word for it. I only closed a single document and the code ran 15 times.
Am I doing something wrong by any chance?
edit:
I believe I just found out the reason and a way to recreate the issue.
I've occasionally tested the extension by closing and opening the panel, which seems to have caused the issue.
It looks like every time I close and then open the panel, it... adds one more run time to the stack.
- Refreshing the panel from chrome doesn't seem to affect it.
When I restart photoshop, it resets. So after the very first opening of the panel, the event triggers the callback only once.
I forgot to mention that the host application events work just fine without these issues.
In fact, I tried to use documentAfterActivate before, but as far as I could find, there is no way to kind of filter out specific events within host application events.
For instance, I can't specify something different to happen when a new document is opened.
As very much a side note:
documentAfterActivate has its own side effect due to the way photoshop works.
It is triggered when you:
Create a new document
Open a new document
Switch to an open document
It's the "Switch to an open document" part that makes this event listener also trigger when you close a document.
Because when you close a document, photoshop switches back to the previous document and that in turn triggers the event listener when it shouldn't, I suppose.
Of course it doesn't trigger the event when you close the last document as there is no document to switch to at that point.
...but this is beyond the scope of the original question.I was so tired last night that when I found out the cause of it, I never even thought about unregistering...
I decided to unregister it when the panel is opened instead.
This does indeed get rid of the issue.
Thanks, cbuliarca.
(function () {
var csInterface = new CSInterface();
function init() {
themeManager.init();
function registerPhotoshopEvent(in_eventId, register) {
// Added the next line
var register = register === "clear" ? "UnRegisterEvent" : "RegisterEvent";
// Modified the next line
var event = new CSEvent("com.adobe.Photoshop" + register, "APPLICATION");
event.extensionId = csInterface.getExtensionID();
event.appId = csInterface.getApplicationID();
event.data = in_eventId
csInterface.dispatchEvent(event);
var number = 0;
csInterface.addEventListener("PhotoshopCallback" , function(event) {
number = number + 1;
console.log( number );
var closeEventid = "1131180832"
// Added the next line
registerPhotoshopEvent(closeEventid, "clear");
registerPhotoshopEvent(closeEventid);
init(); -
Calling a servlets multiple times from a servlet
Hi All,
Advanced Thanks,
I have a servlet which calls another servlet to display some records. Second servlet will access some data from XML files and forwards to a JSP file. What i want is I need to call the second servlet multiple times from the the first servlet. I used RequestDispatcher to call the servlet but I can call only one time after a an exceptions is occurred like cannot forward after response is committed.
I need this scenario in the saem way because each time second servlet is called I am forwarding response to user each time records are accessed based on the request value.
request.getRequestDispatcher("sample").forward(request, response);
Any one please give me a suggestion?
Thanks in advanceWhat are those servlets supposed to do? Sounds like that they are doing too much, e.g. acting like business classes or utility classes or so. Refactor your code.
-
Rendered Property calling managed bean Multiple Times
Hi
We have a problem within a command button in a jspx, which includes a rendered tag which references a managed bean method via EL.
e.g.
rendered="#{PERUserInfo.trainee}"
When I debug the jspx, the PERUserInfo.trainee method is called 4 times instead of once.
We have noticed similar findings when using managed bean methods via the rendered property. i.e. calls getters multiple times.
Any idea why this is happening?
We are using JDeveloper v10.1.3, JHS v10.1.3 SU1.
All comments appreciated.
Cheers
DenisDenis,
There can be many reasons why your bean method is called multiple times; but I would consider this perfectly normal in any JSF application considering all the lifecycles and (possible) Partial Page Rendering that happens.
The question is, by the way, more appropriate on the JDeveloper forum since it is not directly related to JHeadstart itself.
Hope this helps,
Evert-Jan de Bruin -
How to show the region multiple times on the same page
Hi,
I have a PL/SQL Dynamic Content region which creates a report with custom layout using pl/sql web toolkit. The stored procedure takes the parameter and creates report. Can I display the same region multiple times by calling it from loop with different parameter each time ?
Thank you,
AshaHello Asha,
In your plsql you can do a loop, so you would only have one plsql region but in there that can generate different areas of your website.
e.g. it can loop and generate different divs or tables.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/ -
Process Chain Triggers Multiple times
Hi All,
I have Meta process chain say ZAAA which has multiple Local Chains example ZBBB , ZCCC and ZDDD. .This Local chain ZCCC trigger multiple times of in one day . we had a issues today with deactivation of Transformations and DTP in different levels because of that Local Process chain ZCCC is failed along with other process chains . when I reach to ZCCC started by repeat or repair ,before Local Chain ZCCC finished whole process ,ZCCC triggers second time .
Now first times triggered process chain ZCCC is in yellow , and second time triggered process chain ZCCC gone through all the way to gree , and Meta chain showes red.
what I have do make Meta chain green.
Regards
HariHi Hari,
I wonder what you mean by below statement:
one of the sub pc still yellow first time trigger and went to red and second time trigger whole process is green. all Sub PC are green
For the sub pc mentioned above, you trigger it all over again? Or you repeat/repair the step failed?
If you trigger it the second times all over again it is a new run and the first run remain fail,ed so the meta chain will never get green, if you want to make the meta chain green, you need to repeat/repair the step failed in first run.
Regards
Bill -
IPhone : webViewDidFinishLoad being triggered multiple times
In my app I have a web viewer and in my code I do a 'loadRequest' to populate it. I'm trying to determine when the page finishes loading using the 'webViewDidFinishLoad' delegate. For most pages like yahoo, or google, the delegate is only called once when the load is finished. For abcnew.com, the delegate gets triggered 3 times. I do a NSLog() every time my delegate code is entered, so I'm just counting my log entries from the console window.
I'm wondering why 'webViewDidFinishLoad' is getting called 3 times for abcnews.com but only once for most other sites I try.
Thanks,
TonyIt probably does. I was just trying different pages to see what would happen. That is when I noticed abc.com triggers the delegate three times, yet google.com and yahoo.com only once. I guess I'll have to do some more research to better understand what webViewDidFinishLoad is really doing.
-
How to insert same record multiple times in a loop..
Dear All,
I need to insert a record multiple time how it can be accomplish...
eg:
ref no name dept
123 abc 1
122 def 2
121 feg 1
120 hhh 2
while inserting into another table:
all dept no 1 with should inserted 3 times for each record above
final out put should be :
table abc
ref no name dept
123 abc 1
123 abc 1
123 abc 1
122 def 2
121 feg 1
121 feg 1
121 feg 1
120 hhh 2
Thank Youuser3029023 wrote:
Dear All,
I need to insert a record multiple time how it can be accomplish...
eg:
ref no name dept
123 abc 1
122 def 2
121 feg 1
120 hhh 2
while inserting into another table:
all dept no 1 with should inserted 3 times for each record above
final out put should be :
table abc
ref no name dept
123 abc 1
123 abc 1
123 abc 1
122 def 2
121 feg 1
121 feg 1
121 feg 1
120 hhh 2
Thank YouTry this .
SQL> ed
Wrote file afiedt.buf
1 with t as
2 (select '123' AS ref_no,'abc' AS name,'1' as Dept
3 from dual
4 union all
5 select '122','def','2' from dual
6 union all
7 select '333','feg','1' from dual
8 union all
9 select '120','hhh','2' from dual
10 )
11 select ref_no,name,Dept from t,(select level x from dual connect by level <4)
12* order by 1
SQL> /
REF NAM D
120 hhh 2
120 hhh 2
120 hhh 2
122 def 2
122 def 2
122 def 2
123 abc 1
123 abc 1
123 abc 1
333 feg 1
333 feg 1
333 feg 1
12 rows selected.And insert the same onto your desired table.
Hope this Helps..
Regards,
Achyut -
How to open a form multiple times
pl tell me how to open a form multiple times
HI Sagar,
Before adding the form to SBO
try to get the existing count of the form
as shown below
For int = 0 To objApplication.Forms.Count - 1
If objApplication.Forms.Item(int).TypeEx = FormType Then FormTypeCount += 1
Next
THEN append that with your form type as shown below
objFormCreationParams.FormType=FormType & "_" & FormTypeCount.ToString
Then add the form to SBO
SO every time your form is opened the unique id will like URFORMTYPE_1,URFORMTYPE_2 and so on
Hope this helps
regards
vishnu
Maybe you are looking for
-
Problem in Adobe Form Execution
Hi, I am getting an error "ADS: SOAP Runtime Exception: CSoapExceptioFault: SOAP(100102)" while executing Adobe Form. It seems the ADS configuratoin is not correct. Can some help me out in fixing this issue.
-
Is anyone here using Premiere CC to edit a PBS-style historical documentary? I'm thinking of an American Experience episode or something similar. Something with thousands of photos and hundreds of low-res archival screener clips that will all have to
-
DBMS_SCHEDULER. How do I set frequency to run every 30 minutes
Hi, I need this job to run every 30 minutes, lets say on 15 minutes and 45 minutes past the hour. What are the necessray changes. I have looked through the docs and have been getting errors when I try and change the line repeat_interval. begin dbms_s
-
Setting Dragged Tilelist Item As Drag Proxy
I've wrote about this problem before but I've never really elaborated on my code. I have a tilelist with an item renderer in it which has it's icons and labels poulated via an array collection retrieved via http request to an online xml file. I want
-
Premiere Pro CS6crashes when opening project files ...
01 02 After I work on my videos for long time, now Premiere Pro crashing when i open my projects. It's hepen after I updated adobe softweres. Can some one help me?