I have doubt in multiselection..Its urgent

Hi All,
I have a table having four fields...They are
1> DocumentNo.
2> Amount
3> Description
4> Date
I have to implement multiple selection.
And if the amount is negative then I have to display a message"Installment Plan cant b created"
And on multiselection or on single selection I will be passing the documentno to the BAPI.
I have implemented the logic..But its not working.
So as per the requirement,I need it urgently..Kindly help me with the logic and the code snippet
Regards
DK

Hi Armin,
This is my code..
if(element != null){
     tableInstallAmount = element.getAMOUNT();
     for(int i= 0; i< sizeOfOpen; i++){
          if(tableInstallAmount.intValue()>0){
           if(wdContext.nodeOPENITEMS_open().isMultiSelected(i)|| selectedRow == i){
               SetKeyValues[0].setDOC_NUMBER(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getDOC_NO());
               wdContext.currentContextElement().setInstalStatus(true);
       }else{
          contextElement.setInstalStatus(false);
          wdContext.currentContextElement().setErrorMsg("Installment Plans cannot be created for negative open amounts!");
          IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("CreateErrorMessage");
          IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);     
          window.setWindowPosition(300,400);
          window.open();
          wdContext.currentContextElement().setWindowInstance(window);     

Similar Messages

  • Doubt in ORA_FFI(Its urgent)

    Hi,
    I've created a test.dll which contains caps func as follows:
    int caps()
         int * ptr=0x417;
         if (*ptr==64)
              return 1;
    else
    return 0;
    Then I called this func through ORA_FFI package..
    DECLARE
    dll_handle ORA_FFI.LIBHANDLETYPE;
    winexec_handle ORA_FFI.FUNCHANDLETYPE;
    vn_ret PLS_INTEGER;
    FUNCTION Runp( handle IN ORA_FFI.FUNCHANDLETYPE)
    RETURN PLS_INTEGER;
    PRAGMA INTERFACE(C, Runp, 11265);
    BEGIN
    break;
    dll_handle := ORA_FFI.REGISTER_LIBRARY(NULL,'test.dll');
    winexec_handle := ORA_FFI.REGISTER_FUNCTION(dll_handle,'caps');
    ORA_FFI.REGISTER_RETURN(winexec_handle,ORA_FFI.C_INT);
    vn_ret := Runp(winexec_handle);
    IF vn_ret = 2 THEN
    MESSAGE('Cannot find file ' );
    END IF;
    EXCEPTION WHEN OTHERS THEN
    FOR i IN 1..Tool_Err.NErrors LOOP
    message(Tool_Err.Message);
    Tool_Err.Pop;
    END LOOP;
    END;
    When I debug this code,It gives error as caps func not found in test.dll.
    But the only func in test.dll is caps..
    I'm using forms 6i in client server mode.
    I created test.dll using Microsoft visual c++ by creating new win32 Dynamic link library.
    One more doubt:
    How can I find functions in a already compiled DLL?
    Pls reply me..Its urgent..
    Adios..
    Prashanth Deshmukh

    Hi,
    refer these ,u will get some help
    Standard Buttons:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproABAP-ALVControllingStandard+Buttons&
    alv-pfstatus:
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm
    then how to capture that button click.
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rowsel.htm

  • I just got my replacement  iphone5 but i am not satisfied that because the battery backup is worst and the one of the speakers have not working so i have doubted that its a brand new or refurbished one. i replaced it in the warranty period

    hi i just got my replacement  iphone5 but i am not satisfied that because the battery backup is worst and the one of the speakers have not working so i have doubted that its a brand new or refurbished one. i replaced it in the warranty period

    thanks for the information about speakers. and i mean the battery back up the battery i always getting lower even im not use. and can u pls tell me how to check this as a brand new or not. b'coz in the store they gave me replacement phone without boxing. the phone was coverd by wrap and they never give any receipt for this

  • In put variable to have default from date as current date..its urgent

    query has input data as an interval it could be replaced with a single start end date parameters.only the start date needs a default value...
    plz its urgent..
    i will assign points...

    Hi,
    Steps to follow,
    1) In bex, Create a new variable of 0Calday characteristic.
    Set the following attributes:
    Type of Variable: Characteristic Value
    Variable name: ZCEMONT
    Variable Description: Caldate
    Processing by: Customer Exit (Drop down combo box)
    Characteristic: Calendar date
    Press Next
    Variable Represents: Range Value
    Variable Entry is: Mandatory
    Check Ready for Input
    And Press Next
    Press Finish.
    2) Transaction CMOD
    Create a new project, maintain the short text, and assign a development class.
    (It’s better to ask somebody senior in our project about this, because every project have one main project and development class)
    If you have project say Zproject. Choose option components. Click Change.
    Double-click on EXIT_SAPLRRS0_001.Then double-click on ZXRSRU01.
    Enter the coding .Save and activate the coding.
    INCLUDE ZXRSRU01 *
    DATA: L_S_RANGE TYPE RSR_S_RANGESID. 'In global area
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT. 'In global area
    DATA: zdate like sy-datum.
    CASE I_VNAM.
    WHEN 'ZCEMONT'.
    IF i_step = 1.
    zdate = 'your default value'.
    l_s_range-low = zdate.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDCASE.
    Activate the project. This is very important.
    3) TO test now, use that variable ZCEMONT in query some where by going to BEx designer.save the query.Don;t run it.
    4) First run it in RSRT(Tran code).
    Hope i m clear.
    Now your report
    1)Place your Priority infoobject in rows
    2)In column area in Bex, Right Click and New Structure.
    3) Right click the New Structure->New Selection"DOWNTIME"->Drag your KF ZDOWNTIME
    4) Now Create a New Formula and drag  DOWNTIME->
    ='DOWNTIME'<4
    5) same for other two.
    Regards,
    San!
    Message was edited by: San!
    Message was edited by: San!

  • I want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    Welcome to the Apple Community.
    You can only wipe your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.

  • Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Jailbroken phones cannot be discussed in an Apple forum. If you synced your phone with your computer the texts will be in the backup, so if you restore the backup you may get them back, but with a jailbroken phone it's anybody's guess what will happen.

  • How to Fix the row in sap script, its urgent......

    Hi Experts,
    first i explain my sap script, i have print void check in my script client give readymade format means box are there, lines are there. i have to fix in box and line data form database table. everthing is working fine. i got all data. i have total 6 window in my script .but i have one issue  In my sap script in header window total five rows... like below
    Check voucher no:8888
    check No: 1234
    Date:1/28/2007
    Bank:xyz
    Batch no: 5678
    now sometime check voucher is balnk....
    Check voucher no: BLANK/NULL
    check No: 1234
    Date:1/28/2007
    Bank:xyz
    Batch no: 5678
    because of that all rows are move up side and all window also move up side and so script not fix to the box and line all data are seen not perfectly... so guru`s how to fix the row and window in script....
    its urgent...
    Waiting for ur reply
    Thanks & regards
    Jigar

    Hi,
    Follow the below steps . Definately your issue will bve resolved.
    Let us suppose you are printing following fields
    PH &v_text&
    PH &v_text1&
    PH &v_text2&
    you will get the output as you expected.
    and if you have any conditions  for these fileds
    /: if v_text is not initial.
    PH &v_text&
    /: endif
    PH &v_text1&
    PH &v_text2&
    if you have data in each field then you will get output as expected .
    But when v_text is initial.
    the data will be moved up wnhich is happening in your case.
    so what you need to do is?
    /: if v_text is not initial.
    PH &v_text&
    /: else
    PH  (Here you need to mention empty line with same paragraph format
    /: endif.
    PH &v_text1&
    PH &v_text2&
    Reward points if useful
    Regards,
    Nageswar

  • Hi All,Please send me abap-hr material .Its urgent please.

    Hi All,Please send me abap-hr material .Its urgent please.

    These are the FAQ's that might helps you
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapgenie.com/faq/hr.htm
    http://www.sapgenie.com/sapfunc/index.htm
    http://www.sap-img.com/abap/sample-hr-reports-allocate-petrol-allowance.htm
    http://www.sap-img.com/hr021.htm
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sap-img.com/human/finding-the-list-of-hr-module-tables.htm
    additional info......
    Download the ABAP e-book for HR in the below link under the section 'Free ABAP eBook Download'
    http://www.sap-img.com
    Also have a look at the following links-
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://planetsap.com/index.htm
    http://www.atomhr.com/library_full.htm
    http://www.sap-basis-abap.com/saphr.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm
    http://www.sapfriends.com/sapstuff.html
    http://www.atomhr.com/know_preview/Reading_Payroll_Results_with_ABAP.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Payroll
    http://www.sap-press.com/product.cfm?account=&product=H967
    http://www.sapdevelopment.co.uk/hr/payres_abap.htm
    http://www.sapdevelopment.co.uk/hr/payres_tcode.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    you can see some Standard Program examples in this one..
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification

  • Hi All requirement on Purchase Order.Its Urgent

    Hi All,
            Pls provide me the soure code for the following requirement ASAP. Its urgent.
    Program: Z_PO_PRINT_MAIL
    Transaction: ZPOP
    Purchase order number: (should be a parameter not a select option) (Code the lookup using search help MEKK)
    Radio button for:     1. Print Preview
                   2. Print
                   3. E-mail
    Additional parameters based on above selection:
    1.     No additional parameters needed
    2.     Printer (code the F4 to search printers)(default user’s default printer)
    3.     E-mail address, cc (should also have same validations as e-mail address)
    Description:
    On pressing enter, use the Purchase order number to look up vendor number and name and display either to the right or below the purchase order number.
    Vendor Number: EKPO-LIFNR
    Vendor Name:    LFA1-NAME1
    1.     Print Preview: Use function ME_DISPLAY_PURCHASE_DOCUMENT with 2 parameters only:
    I_EBELN = PO Number
    I_PREVIEW = ‘X’
    2.     Print:  For this we have to do a BDC.Use transaction ME9F. Enter the purchase order number, blank out the rest. Select the first message, hit ‘Message details’. Enter a new message via Edit>new Entries. For new entries, you will need to enter ‘NEU’ for Output type with Medium 1 (Print output). Hit enter. Select the message and click on further data. Set dispatch time to 4. Green arrow back. Select the message and click on “Communication” method. Enter the ‘Logical destination’ as the printer, select ‘Print Immediately’ and ‘Release after output’. Green arrow back and save.
    3.     E-mail: Use the following function modules:
    ECP_PO_OTF_CREATE
    CONVERT_OTF_2_PDF
    SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi,
    You can explore following link for more details;
    http://www.sap-basis-abap.com/sapmo017.htm
    http://www.erpgenie.com/sap/sapfunc/purchasing.htm
    Bye,
    Muralidhara

  • Hi pls help me its urgent

    hi experts'
    i have to generate asset utilization report in webdynpro
    inputs for report are some rfcs
    i get result from rfcs
    i need to float report i used bussinessgraphic object
    its not interactive
    if i go for tables
    how to create tables with drill down inside table
    how to set color for each cell of table depending on condition
    please help me
    its urgent
    and send me code n link

    Hi Vani,
    Your requirement has many things
    1. How to call RFCs
       https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
    2. Once you have data, how to work with BusinessGraphics ?
      https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38
    (This docs contatins all the required info on webDynpro UIElements)
    3.Tables
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#46 [original link is broken]
    Regards,Anilkumar

  • Lsmw issue plz help its urgent

    Hi Experts ,
    i need to create a LSMW using batch input .
    but the requirement is on the basis of conditions my recording need to be changed .
    dat means
    3127POL09 3127POL09-1 CTR 3127-1003E 100 FUL
    3127POL09 3127POL09-2 WBS 3127POL01 60 FUL
    for ctr i ill have to post data in screen number 200
    and for wbs i ill have to post data in screen number 400 .
    can we put some conditions in recording in lsmw ?
    i no we can create multiple recording but how can we use them to fullfill my requirement .
    plz help its urgent
    thanx in advance

    Hi,
    Within LSMW, there is an option to write our own code wherein this code can be incorporated.
    This is in the Field Mapping Option...
    Just go to the Menu Extras->Layout
    and click on the check box Form Routines
    Global Data.
    Here you can define Global Variables and also perform your ABAP Coding.
    Regards,
    Balaji.

  • Error while Fetching data from BUT0ID data its urgent

    hi all,
    SElECT SINGLE partner FROM but0id INTO l_bp
                     WHERE type EQ 'BUP008' AND
                           idnumber EQ edid4-sdata+45(10).
    this is my select statement its not working i have to fetch partner number with the help of sdata.
    when i give 69093 instead of  edid4-sdata+45(10) then i am getting the output
    when i specify edid4-sdata+45(10) then it is not working
    please tell me any one its urgent
    Thanks & regards
    Vardhan

    Hi,
    Try doing this.Take the offset of sdata and move it into a varaiable and then check the condition in the query.
    Regards,
    Sharath

  • Plz some body answer for this..its urgent

    Hai can anyone help me?
    I have lengthy report containing 1000s of Records in it..
    When i disply this report in viewer,i have to use horizontal scroll bar of IE to view the lengthy report,which will in turn display long page ofit.
    But,My requirement is,i want to display the length report in singe screenshot itself..it means i should not use IE Horizontal scroll bar to view the next set of records in report..
    does discoverer supports providing any scroll bar to view horizontal shots like what we do in Excel.
    Hope u understand what i am coming to say..if not understandable plz query me i will tell in details..
    But plz somebody reply me for this query..its urgent.
    regards
    ck

    Brother this is not the correct way to ask.
    In your words you are commanding...
    But we have to request the EXPERTS.
    WE are in learning stage dont order or command.
    Just request them in another way...... then only u get the required reply....
    With regards,
    Prasad.

  • Problem with connecting ipad 2 with crestron cp2e...help plss its urgent... I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while t

    problem with connecting ipad 2 with crestron cp2e...help plss its urgent...
    I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while the device was in auto -lock(sleep)press connect to reconnect) when i pressed again its connected with cp2e. i am using netgear wireless access point . i also has been changed access point as well as updated ipad firmware bt problem is as it is .. pls help.

    Hi have you solved the issue ?
    Cause I have the same problem.
    Tnx

  • ITS URGENT QUES ON AT LINE-SELECTION AND AT USER-COMMAND

    ITS URGENT...WHEN I SELECT MULTIPUL VALUES IN BASIC LIST ,I HAVE TO GET THOSE SELECTED MULTIPUL VALUES IN SECONDARY LIST THAT CAN BE AFTER(AT LINE-SELECTION OR AT USER-COMMAND)............?

    hey
    this code modify's simlarly u can read n  display secondary window
        DO .
    Reading the internal table whose data is displayed into wrk area.....
          READ LINE SY-INDEX FIELD VALUE INT_DISPLAY-SHIPMENT_ID INTO WF_SHIPMENT_ID.
    Reading the check box value
          READ LINE SY-INDEX FIELD VALUE WG_CHK.
    If all the records are read and there is no code left to read
          IF SY-SUBRC <> 0 .
            EXIT.
          ENDIF.
    To highlight the line which is selected by the user
          IF WG_CHK = WL_X.
            MODIFY CURRENT LINE
            LINE FORMAT COLOR COL_NEGATIVE INVERSE
            FIELD VALUE WG_CHK FROM WL_SPACE.
            MODIFY CURRENT LINE
            LINE FORMAT INPUT OFF.
    Also append the record read into new internal table which u will display in secondary window.......
          ENDIF.
        ENDDO.
    AT USER-COMMAND. or AT LINE SELECTION . u can write this code.........
    DISPLAYING A POP-UP WINDOW .
          WINDOW STARTING AT 10 50
                 ENDING AT 120 70.
    and then write the table into which u have stored the read entry which user had selected
    reward points if useful

Maybe you are looking for

  • Transfer of PIR from ECC to APO - Time stamp

    Hi Friends, We are transferring Planned Independent requirements from ECC to APO through CIF. In APO Product view Forecast requirements Date is sync fine with ECC date however the time is setting default to 03:00:00 am. we want the time to be set to

  • How to put 'Continue in next page' below the table.

    Hi, I have an invoice where all the lines are not fitting into one page. So some of the lines are getting printed in the second page. But in this case I wanted to put a message below the first page as "continue on next page" Since Iam a newbie to XML

  • BPEL-B2B patch for 10.1.3.5

    Hi, Currently we are using BPEL-B2B working fine for 10.1.3.3.1 We are planning to upgrade to 10.1.3.5. As per 10.1.3.5 readme, i noticed new BPEL-B2B patch is required (Patch number: 8713566). However the patch installation instructions are not clea

  • Cannot find vilid dvd drive

    i have a external dvd drive, when i put in a dvd in dvd player 4.6.5 opens. but i get an error message. it is a LaCie drive hook up by firewire viliddvd drive cannot be found (-70012) can onyone help? thanks, dan FireWire Bus: Maximum Speed: Up to 40

  • You must set the deletion flag in the master record

    Hi,   when I go  through  Archiving  document,   Pre requiste is to 'you must set the deletion flag in the master record'.   Please  let   me  know  how  to set  deletion  flag. Thanks, Asha