Hi i want to execute bapi two times with different paramters....Possible

Hi,
i want to execute bapi twice times.Possible please explain where i put which code.Means i put bind code at doinit() method of conpopnent controller and execute bapi code in doinit() iof view. But for second time where i put bind and execute code. 
Regards,
Gurprit
Edited by: GURPRIT BHATIA on Dec 17, 2007 1:24 PM

Hi Gurprit,
For executing the bapi second time, you can put the execute bapi code in the action of the button which is on your form. You need not write the bind code again.
Bye
Ankur

Similar Messages

  • Running the same code multiple times with different paramters automatica​lly

    Hi guys,
    I want to run the same code multiple times with different paramters automatically. Actually, I am doing some sample scans which takes around 2 hours n then I have to be there to change the paramters and run it again. Mostly I do use folowing paramters only
    X_Intial, X_Final, X-StepSize
    Y_Intial, Y_Final, Y-StepSize
       Thanks,
    Dushyant

    All you have to di is put all of the parameters for each run into a cluster array. Surround your main program with a for loop and wire the cluster array through the for loop. A for loop will autoindex an input array so inside the for loop you just have to unbundle the cluster to get the parameters for each run.
    Message Edited by Dennis Knutson on 07-13-2006 07:50 AM
    Attachments:
    Cluster Array.JPG ‏9 KB

  • Can i execute bapi two times if yes then wht code i need to write 2 time.

    Hi,
    I am trying to execute my bapi at wdDoInit() method of view . Same Bapi will execute at  Controller.
    But my view bapi is not running.
    Why this is happeded?
    My code for View is like this
    public void wdDoInit()
        //@@begin wdDoInit()
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
                   try
                               wdContext.currentZcrm_Sales_Orders_InputElement().setRun_Bp("ALL");
                               wdContext.currentZcrm_Sales_Orders_InputElement().setUname("SUNIL103");
                               wdContext.currentZcrm_Sales_Orders_InputElement().modelObject().execute();     
    wdContext.nodeOutput().invalidate();
                   catch(WDDynamicRFCExecuteException e)
                                    manager.reportException(e.getMessage(), false);
        //@@end
    Please help me to trace this thing ,
    Regards,
    Gurprit Bhatia

    Hi,
       Change this code a bit:
    Zcrm_Sales_Orders_Input input = new Zcrm_Sales_Orders_Input();
    wdContext.nodeZcrm_Sales_Orders_Input().bind(input);
    input.setRun_Bp("ALL");
    input.setUname("SUNIL103");
    wdContext.currentZcrm_Sales_Orders_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    Regards,
    Satyajit.

  • Why JRC executes query two times? (reports.queryengine(?:?) - Executing query: ...)

    Hello! Using JRC. While creating the report for viewing, I noticed one interesting thing. Why JRC executes query two times AND first time is executed with default parameters AND if default parameters are NULL the query can be invalid (even if it is marked to convert all database NULLs to defaults in Report Options).
    <!break>
    1. Why do you need to execute query the first time with these default parameters, which are later set to the others? We need to make some valid default parameters to make everything work. Also it is not efficient to execute unnecessary query.
    2. If I'm wrong could you explain please? If I'm right, is it a bug and when do you fix it?
    Waiting for answer,
    Anton Stalnuhhin
    Java-developer, Webmedia AS

    .

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • Apply the same LCR two times on different tables

    Hi all
    Just one question:
    Can I apply the same LCR two times on different tables using only one apply queue?
    For example executing two times LCR.EXECUTE(TRUE) in a procedure handler:
    LCR.EXECUTE(TRUE);
    LCR.EXECUTE(TRUE);
    ....

    Topas,
    You need to create new LCR and execute both LCRs.
    Regards,
    Serge

  • I have 2? How do I sync selected photos from my IPad to my IMac w/o losing all photos on my IPad and getting the phoos o my IMac. ou see I have two IMacs with different sets of photos. Also want to convert all Apple works docs to pages docs on my IMac.

    I have 2? How do I sync selected photos from my IPad to my IMac w/o losing all photos on my IPad which will be replaced with the photos on my IMac.You see I have two IMacs with different sets of photos. Also want to convert all Apple works docs to pages docs on my IMac. Is there and app available to do the former. many thanks. b

    The iPad and related software is designed to sync with only one computer. I suggest transferring the photos from one of your iMacs to the other so that all photos are on one Mac. Same for all other files you want to sync over.
    To get those AppleWorks files to the iPad you'll have to determine if Pages will open them. If it will then use the file sharing feature of iTunes to copy them to Pages on your pad.
    If Pages will not open the AppleWorks files directly you'll have to save them in some format that Pages will read. These include but may not be limited to Pages and Word formats.

  • I'm thinking about getting an i pod touch for my daughter. If I get the 4th generation i pod, is it compatible with the ios 7 updates for i phones as far as if she wants to imessage or face time with me?

    I'm thinking about getting an i pod touch for my daughter. If I get the 4th generation i pod, is it compatible with the ios 7 updates for i phones as far as if she wants to imessage or face time with me?

    The 4G can not run IOS-7.  "6" is the highest that it can go.  You need the 5G for IOS-7.
    However, that won't affect her ability to use iMessage and FaceTime.

  • Customs duty commming two time with two different price

    Dear All,
    I facing the issue while creating the PO the condition Customs duty  Conditions (Z005 )commming two time with two different price
    Can you please tell me where can check
    Regards
    Murugan
    Edited by: murugan jayaraman on Jan 9, 2011 3:19 PM

    In the PO go to the conditions tab, select the condition type and click on analysis, then check where the conedition type is coming from.
    Repeat this for both the Z005 conditions.
    In M/06 t.code see if there is also a access sequence and condition contrl says Manual entry has priority. If this is the case sometimes system allows same condition twice.
    One time it comes from Mek1 and the other one is manually entered.

  • Two tables with different filter values base on a analysis

    Hi guys,
    let assume that I have a analysis with columns : group_id and sales.
    Based on it I would like to create two tables : table1 where group_id =1 and table2 where group_id = 2.
    Is OBIEE capable of doing it?
    Regards,
    Slavi

    Hi Slavi,
    You can do that in single analysis, but you need to have the group_id column two times.
    That is, bring group_id_1, group_id_2 (same column), sales
    Now in table 1,
    bring group_id_1, sales
    Then in selection steps for group_id_1 -> Select Members -> Action choose keep only -> choose the filter value 1
    This will filter the table 1 with group_id 1
    In table2 bring group_id_2, sales
    Then do the same step for group_id_2 with value 2.
    now in same report you have two reports with different filter.
    If you want you can keep the same column name for both group_id columns, I just kept group_id_1, group_id_2 for easy reference.

  • HT204053 I have two iphones with different numbers that I use my apple ID for purchases, etc.  How do I get my second iphone setup on icloud?  I would like to use the features of icloud for both of my iphones.  Thank you

    I have two iphones with different phone numbers that I use.  I have one of them set up on icloud now, but do not know how to set up my second device on icloud.  Both of my iphones use my same Apple ID for purchases, etc.  Is there a simple way to add a device to my icloud account?  Thank you in advance for any help someone may be able to give me.

    To move one of the phones to a different iCloud account (if that's what you want to do), go to Settings>iCloud and turn all synced data to Off.  When prompted, choose to keep the data on your iPhone.  After everything is off, scroll to the bottom and tap Delete Account.  This will delete the account from the phone but not from iCloud so the other phone will not be effected.  Then set up a new iCloud account with a different Apple ID and turn iCloud syncing in Settings>iCloud back to On.  When prompted, choose Merge.  This will upload the data to the new iCloud account.
    You will then have to go to icloud.com and sign into each iCloud account separately and delete any unwanted data that you don't want on the phone syncing with each account.

  • Multiprovider - two infoproviders with different levels of summarization

    Hi Gurus,
                  I need to create a report which requires data from two infoproviders, I am thinking of building a multi provider on top of the two infoprovider . I wanted to know if its possible to create a multiprovider on top of two infoprovider with different level of summary. Any suggestions with be very helpful for me.
    Kindly let me know..thanks in advance...
    cheers,
    Tuck

    Hi
    Two different level of summarization will throw inconsistency in reporting
    It is not advisable
    Regards
    N Ganesh

  • How to combine two applications with different workspaces in APEX

    Hi,
    Can anyone help out in merging two applications with different workspaces in APEX 3.2 ?
    Thanks in advance,

    Hello Satya,
    >> I am Satya …
    Please take one more step to help us and update your forum handle to something friendlier than user123… Thanks.
    >> Can anyone help out in merging two applications with different workspaces in APEX 3.2 ?
    This is not a trivial task.
    You didn’t mentioned if both workspaces sharing the same APEX instance, or they are on two different instances (machines). I believe the latter is a pre-condition to a success.
    First you need to remember that importing an APEX component, like a single page, is possible only to the same application that it was exported from. This is still valid if you have the same workspace on two separate APEX instances – one is an import of the other (which makes it an identical copy). Still, the application ID must be the same, or you’ll get the following error: “This page was exported from a different application or from an application in different workspace. Page cannot be installed in this application.”
    You can’t simply manipulating the export file, if the two workspaces are sharing the same APEX instance, as all workspaces on the same instance shares the same APEX metadata files, and you’ll receive a “unique constraint violated” error messages. That means you can’t import one application into the workspace of the other, even if you are using a different application ID.
    As far as I can see, the only viable way of doing an application merge is to have two identical workspaces, on two separate APEX instances. The two applications should share the same application ID, although this parameter can be changed in the import file. You should export the page in one application – on the first instance – and import it into the other application – on the second instance.
    You should also make sure that the exported page ID doesn’t exist on the target application, otherwise it will be replaced by the new imported page. Also, if the imported page include references to shared components that are not defined on the second application, it might also pose a problem.
    As I said, this is not trivial. The benefits are mostly depend on the amount and complexity of the pages you want to merge. If they are not many, and simple, you should consider just re-creating them on the target application. If they are very complex, the merge might fail anyway.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • Two sequences with different settings?

    In Premier Pro CS6, is it OK to use two sequences with different settings?

    Yes, no problem.
    You can make as many sequences with differents settings as you want.

  • How do i link itunes between two computers with different Apple ID's

    how do I link itunes between two computers with different Apple ID

    You need to set up two user accounts on the mac.  System Preferences>Users & Groups.  Then each user can set up apple IDs for itunes and icloud any way they want.

Maybe you are looking for

  • Excise JV with reference to Credit Bill

    Dear SAP Champions: I am struck in a situation where I'm returning the Sold goods which is excisable and for that I am doing the following 1. Sale Return Order 2. Return Delivery with reference to Sale Return Order 3.Credit for returns(Billing) with

  • What are the requirements for Oracle Locator?

    Hi, when installing a new database, we want to trim out the stuff that Oracle installs by default that we don't absolutely need. However, we do want to make use of the MDSYS.SDO_GEOMETRY type and Oracle Locator (not Spatial). Oracle has all these dif

  • After sending a picture or message in "Message", what causes the "send" button to grey out?

    After sending a picture or message in "Message", what causes the "send" button to grey out?

  • 10.5.8 generating a 2048bit cert for signing is failing

    in server admin i make a new cert, set the bit length to 2048 (default is 1024) and save. upon save the bit length reverts to 1024 and so when i submit it for renewal i get a kickback from godaddy who now requires 2048 bit length keys. how can i do t

  • Insufficient privilege.

    Hi, I have imported schema.ddl of sample database to server database. So i ran the following command line query from bin directory of server root. DDLIMP /u SADMIN /p SADMIN /c "SiebSrvr_Siebel7.8" /g SSE_ROLE /f "F:\sea7.8\dbsrvr\ORACLE\schema.ddl"