At line-selection at different lines should trigger different lists

friends,
    i have a requirement like this...if i double click at the top of the list, it should go to a transaction and if i do the same at the bottom of the same list, it should go to another transaction...how to program this...thanks in advance

hi,
  Based on the value of the field clicked, we can go to a transaction.
  Ex: If SalesOrder no < '1234567890', we have to go to ZTXN1 and if it is greater, we have to goto ZTXN2.
At line-selection.
  Get cursor field V_field value v_value.
  CASE V_FIELD.
    when 'IT_VBAK-VBELN'.
        if v_value < '1234567890'.
          call transaction ZTXN1.
        else.
          call transaction ZTXN2.
        endif.
  Endcase.
Regards,
Sailaja.

Similar Messages

  • Schedule lines should be in gray mode

    Hi Gurus,
    Any idea how to make the schedule lines in gray mode.
    My client demand is when we save the sales order and
    we go to va02 schedule lines should show in gray mode to avoid
    the changes  quantity.
    Thanks in advance

    Dear Protan,
    the solution suggested above with the help of user-exit USER_EXIT_FIELD_MODIFICATION (Include MV45AFZZ) is the correct way to make the schedule lines unchangable. But please take into consideration that in the "normal" sales orders you do not need to go to the schedule line screen to change date or quantity. It is sufficient that you change the date or quantity on the item level. Then the schedule lines will be changed (created/deleted) in the background automatically.
    So, if you really want to grey out the quantity and date fields, you have to do this on all screens (Sales Overview, Procurement, Shipment etc.) also on  the item level. Then the item will be unchangable at all. Please be careful with this.
    So, you have to grey out all item date and quantity fields in all screens of the order. To do unchangable only schedule line screen is then not sufficient.
    As Manam said above, the USER_EXIT_FIELD_MODIFICATION is the only correct place to make the fields unchangable. I can only confirm this.
    I hope, this additional info was also helpful for you.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

  • Schedule lines should not be maintained with out release

    schedule lines should not be maintained with out release of schedule agreement......but system accepting to maintain the schedule lines.Please say how.
    regards,
    Sridhar kumar.a

    Hello,
    I have the same problem as you. Someone know something about it?
    kanyadhara, did yo solve this problem?
    Thanks a lot

  • How to select valid lines in a secondary list in a interactive report

    hi
    how to select valid lines in a secondary list in a interactive report

    hi,
    do this one
    at line-selection.
    if sy-lsind = some list no.
    GET CURSOR FIELD FIELDNAME VALUE FIELDVALUE.
            IF FIELDNAME = 'TVBAK-VBELN'.
    do some thing
    Regards
    ASHOK KUMAR

  • Without release schedule agreement schedule lines should not be maintain

    Hi experts,
           i made a schedule agreement and i have given 2 level of releases for it.. so with out releasing i maintained schedule lines in me38, then i made migo then system says the document has not been released yet. but what my query is schedule lines should not be happened with out release means it should stop here only. So how to give check for it.i have searched in system messages but nothing is there in that. So please solve this problem its urgent.

    Hello,
    I have the same problem as you. Someone know something about it?
    kanyadhara, did yo solve this problem?
    Thanks a lot

  • select Tag Mozilla cuts off at 20 IE6 cuts off at 30 We are expecting 30 more lines in drop down list without scrollbar.

    <select> Tag Mozilla cuts off at 20 IE6 cuts off at 30 We are expecting 30 more lines in drop down list without scrollbar.

    it has been answered

  • Schedule line should not generate until SA release

    Dear All,
    We want when we run MRP against schedule agreement then "Schedule line should not generate until SA release"
    Abhinay

    HI Abhinay Sachan ,
    Bascially when we run the MRP the system generate the Schedule Lines for that  schedule line we are doing release .....
    If you have SA for a particular materail system gives the Error or warrning message based on the setting what we made...if it is error sysetm won't allow other wise it is warrning meaasge means we can cretae the PR for the particular materail i hope i wll help you
    Regards
    Murugan J

  • Line should be ADSL2+ (G.922.5), but HH3 still rep...

    According to http://www.productsandservices.bt.com/products/broadband/internet-speed-test#services-checker, my line should be capable of 10-19.5Mb download speed (estimates 17Mb). The HH3 reports around 8Mb download and G.992.1 Annex A modulation.
    Is it possible to check my account details and enable ADSL2+?

    OK, here is the rest of the Settings | Broadband | Connection page:
    Line state:
    Connected
    Connection time:
    3 days, 17:15:42
    Downstream:
    7.875 Mbps
    Upstream:
    448 Kbps
    The exchange is Halesworth and SamKnows says:
    ADSL status:ADSL Max statusDSL status:21CN WBC status:FTTC status:
    Enabled as of 18/08/2004
    Enabled as of 31/03/2006
    Not available
    Enabled
    Not available
    We moved to this house around 3 years ago, and have always had 6-8Mb download. A friend suggested we should be able to get more given our location and the results from the site off www.bt.com

  • Can i know the user exits which should trigger while saving billing docu

    hi,
    please can u help me to find out user exits which should trigger while saving billing documents.

    A couple years ago I downloaded this program, I think from SAPFANS.  I don't take any credit for it...Not sure who originally wrote it.  Just type in the t-code and hit execute. 
    *& Report name          : Identify and Drill-Down to SAP User Exits.   *
    *& Program name         : ZZ_FIND_USER_EXITS                           *
    REPORT  ZZ_FIND_USER_EXITS
      NO STANDARD PAGE HEADING
      LINE-SIZE 132
      LINE-COUNT 65
      MESSAGE-ID MM.
    D A T A   D E F I N I T I O N                                        *
    TABLES : TSTC,      " SAP Transaction Codes
             TADIR,     " Directory of Repository Objects
             MODSAPT,   " SAP Enhancements - Short Texts
             MODACT,    " Modifications
             TRDIR,     " System Table TRDIR
             TFDIR,     " Function Module
             ENLFDIR,   " Additional Attributes for Function Modules
             TSTCT.     " Transaction Code Texts
    S E L E C T I O N   S C R E E N                                      *
    PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.
    I N T E R N A L   S T R U C T U R E S   &   T A B L E S              *
    DATA : GT_TADIR LIKE TADIR OCCURS 0 WITH HEADER LINE.
    V A R I A B L E S                                                    *
    DATA :
           GV_FIELD1(30)  TYPE C,
           GV_DEVCLASS    LIKE TADIR-DEVCLASS.
    C O N S T A N T S                                                    *
    CONSTANTS:
               GC_F     LIKE TRDIR-SUBC   VALUE 'F',
               GC_R3TR  LIKE TADIR-PGMID  VALUE 'R3TR',
               GC_FUGR  LIKE TADIR-OBJECT VALUE 'FUGR',
               GC_SMOD  LIKE TADIR-OBJECT VALUE 'SMOD',
               GC_PROG  LIKE TADIR-OBJECT VALUE 'PROG'.
    R A N G E S                                                          *
    RANGES:
      GR_VKORK      FOR  WKBP-VKORG.
    E V E N T   P R O C E S S I N G                                      *
    INITIALIZATION.
    AT SELECTION-SCREEN.
      SELECT SINGLE PGMNA
        INTO TSTC-PGMNA
        FROM TSTC
        WHERE TCODE = P_TCODE.
      IF SY-SUBRC <> 0.
        MESSAGE E899(MM)
          WITH TEXT-E01    " Input Transaction Code is Invalid.
               TEXT-E02.   " Please Correct !!
      ENDIF.
      SELECT SINGLE TTEXT
        INTO TSTCT-TTEXT
        FROM TSTCT
        WHERE SPRSL = SY-LANGU
          AND TCODE = P_TCODE.
    START-OF-SELECTION.
      CLEAR GV_DEVCLASS.
      SELECT SINGLE DEVCLASS
        INTO GV_DEVCLASS
        FROM TADIR
        WHERE PGMID  = GC_R3TR
          AND OBJECT = GC_PROG
          AND OBJ_NAME = TSTC-PGMNA.
      IF SY-SUBRC <> 0.
        SELECT SINGLE SUBC
          INTO TRDIR-SUBC
          FROM TRDIR
          WHERE NAME = TSTC-PGMNA.
        IF TRDIR-SUBC = GC_F.         " Function Group
          SELECT SINGLE FUNCNAME
            INTO TFDIR-FUNCNAME
            FROM TFDIR
            WHERE PNAME = TSTC-PGMNA.
          SELECT SINGLE AREA
            INTO ENLFDIR-AREA
            FROM ENLFDIR
            WHERE FUNCNAME = TFDIR-FUNCNAME.
          CLEAR GV_DEVCLASS.
          SELECT SINGLE DEVCLASS
            INTO GV_DEVCLASS
            FROM TADIR
            WHERE PGMID    = GC_R3TR
              AND OBJECT   = GC_FUGR
              AND OBJ_NAME = ENLFDIR-AREA.
        ENDIF.
      ENDIF.
      SELECT *
        FROM TADIR
        INTO TABLE GT_TADIR
        WHERE PGMID  = GC_R3TR
          AND OBJECT = GC_SMOD
          AND DEVCLASS = GV_DEVCLASS.
      FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
      WRITE:/(19) 'Transaction Code - ',
              20(20) P_TCODE,
              45(36) TSTCT-TTEXT.
      SKIP.
      IF NOT GT_TADIR[] IS INITIAL.
        WRITE:/(95) SY-ULINE.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 SY-VLINE,
               2 'Exit Name',
              21 SY-VLINE ,
              24 'Description',
              95 SY-VLINE.
        WRITE:/(95) SY-ULINE.
        SORT GT_TADIR BY OBJ_NAME.
        LOOP AT GT_TADIR.
          SELECT SINGLE MODTEXT
            INTO MODSAPT-MODTEXT
            FROM MODSAPT
            WHERE SPRSL = SY-LANGU
              AND NAME = GT_TADIR-OBJ_NAME.
          FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          WRITE:/01 SY-VLINE,
                 02 GT_TADIR-OBJ_NAME HOTSPOT ON,
                 21 SY-VLINE,
                 22 MODSAPT-MODTEXT,
                 95 SY-VLINE.
        ENDLOOP.
        WRITE:/(95) SY-ULINE.
        DESCRIBE TABLE GT_TADIR.
        SKIP.
        FORMAT COLOR COL_TOTAL INTENSIFIED ON.
        WRITE:/ 'No of Exits:' , SY-TFILL.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'No User Exit exists'.
      ENDIF.
    AT LINE-SELECTION.
      GET CURSOR FIELD GV_FIELD1.
      IF GV_FIELD1(8) = 'GT_TADIR'.
        SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
        CALL TRANSACTION 'SMOD' AND SKIP FIRST   SCREEN.
      ELSE.
        MESSAGE I899(MM)
          WITH TEXT-I01    " Click on the Exit Name to Drill-Down
               TEXT-I02.   " to SAP Enhancement Information.
      ENDIF.
    END-OF-SELECTION.
    TOP-OF-PAGE.
    S U B R O U T I N E S                                                *
    E N D   O F   R E P O R T  ****************************************

  • Email print attachment should trigger by created by name...

    Dear All,
    I have one doubt related to Email print output. Presently in my project I get one request from the user that when he  create a order at that time a email should trigger so that he/she get a email notification .
    In standard Sap for this we need to maintain the condition record and according to that it should directly goes to either Sold-to-party or contact person assign in that sales order but our requirement is to send the same who create that sales order means created by name. this is for return order type.
    For your information for that output type we used sap script
    Regards,
    Moni

    OK.
    Then you should create a new output type for this mail in transaction NACE.
    And then you should add this program without any sapscript or smartform.....only this program !
    And in the NACE - "Processing routine" enter:
    Special function - ZZSEND_MAIL - ENTRY
    report ZZSEND_MAIL.
    tables: nast.
        data: l_subject type so_obj_des,
              lt_bodytext type bcsy_text,
              i_addr type adr6-smtp_addr,
              l_bodytext_row type soli.
        data: bcs_exception type ref to cx_bcs.
    FORM entry USING return_code us_screen.
    *>>>Here you must add abap for getting email address.....
    * select single ernam from vbak into tmp_ernam where vbeln = nast-objky(10).
    * i_addr  = email_address for tmp_ernam. 
    try.
    *---1) Subject and body
            l_subject = nast-objky.
            l_bodytext_row = 'bodytext'.
            append l_bodytext_row to lt_bodytext.
    *---2) Email document object
            data: document type ref to cl_document_bcs,
                  num_rows type i,
                  textlength type so_obj_len,
                  l_mailtext type soli_tab.
            describe table l_mailtext lines num_rows.
            num_rows = num_rows * 255.
            move num_rows to textlength.
            document = cl_document_bcs=>create_document(
                        i_type = 'RAW'
                        i_text = l_mailtext
                        i_length = textlength
                        i_subject = l_subject ).
    *---3) Create persistent send request
            data: send_request type ref to cl_bcs.
            send_request = cl_bcs=>create_persistent( ).
    *---4) Add document to send request
            send_request->set_document( document ).
    *---5) Get sender object
            data: sender type ref to cl_sapuser_bcs.
            sender = cl_sapuser_bcs=>create( sy-uname ).
    *---6) Add sender
            call method send_request->set_sender
              exporting
                i_sender = sender.
    *---7) Create recipient
            data: recipient type ref to if_recipient_bcs.
            recipient = cl_cam_address_bcs=>create_internet_address(
                                                           i_addr ).
    *---8) Add recipient with its respective attributes to send request
            send_request->add_recipient( exporting i_recipient = recipient ).
    *---9) Set send immediately
            send_request->set_send_immediately( 'X' ).
    *---10) Send document
            send_request->send( ).
            commit work.
          catch cx_bcs into bcs_exception.
            data: ex_msg type string.
            ex_msg = bcs_exception->get_text( ).
            write: 'Caught exception.', ex_msg.
        endtry.
    ENDFORM.

  • Find out user exits which should trigger while saving billing doc.(VA01)

    Hi All,
    please can u help me to find out user exits which should trigger while saving billing documents for VA01 transaction...I have already z report to find the user-exit for any transaction.I have tried in that also.
    Reply
    Ulhas

    Hi
    Try these
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)                    
    The internal number range used in the standard system is specified                
    in the billing type table and can be changed in this user exit. This              
    user exit is only called when the billing documents is created.                                                                               
    USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program                       
    RV60AFZZ)                                                                         
    In this user exit additional fields for account determination that                
    are not provided in the standard system are copied into                           
    communication structure KOMKCV (header fields).                                                                               
    USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)                               
    In this user exit additional fields for account determination that                
    are not provided in the standard system are copied into                           
    communication structure KOMPCV (item fields).                                                                               
    USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program                     
    RV60AFZC)                                                                         
    Depending on the number range, table TVFKD is used to set the                     
    billing date (country-specific requirments in Italy).                             
    USEREXIT_NUMBER_RANGE is automatically deactivated when this user                 
    exit is being applied.                                                                               
    USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)                  
    This user exit is only called when the billing document is created.               
    It is used to provide the header and the item of the new billing                  
    document with deviating or additional data.                                       
      USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)                    
      Printing the item line of a billing document can be supplemented or             
      changed.                                                                               
    USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)                     
      Printing the header line of a billing document can be supplemented              
      or changed.                                                                               
    User exits in program RV60AFZD                                                  
      Short descriptions of the user exits are contained in the program:                                                                               
    -   USEREXIT_RELI_XVBPAK_AVBPAK                                                                               
    -   USEREXIT_NEWROLE_XVBPAK_AVBPAK                                                                               
    -   USEREXIT_NEWROLE_XVBPAP_AVBPAK                                                                               
    e following user exits are available in report SAPLV60B for transfer              
    accounting (function group V60B):                                                                               
    EXIT_SAPLV60B_001: Change the header data in the structure acchd                
      You can use this exit to influence the header information of the                
      accounting document. For example, you can change the business                   
      transaction, "created on" date and time, the name of the person who             
      created it or the transaction with which the document was created.                                                                               
    EXIT_SAPLV60B_002: Change the customer line ACCIT                               
      You can use this exit to change the customer line in the accounting             
      document. This exit is processed once the ACCIT structure is filled             
      in with data from document header VBRK.                                                                               
    EXIT_SAPLV60B_003: Change the customer line in costing                          
      The customer line is filled in differently for costing. You can use             
      exit 003 to influence the ACCIT structure.                                                                               
    EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add          
    information to a GL account item (such as quantity specifications)     
    with this exit.                                                                               
    EXIT_SAPLV60B_005: User exit for accruals                              
    Once all relevant data for accruals was entered in the GL account      
    item, you can add to this data with this exit.                                                                               
    EXIT_SAPLV60B_006: Change the control line ACCIT                       
    You can use exit 006 to add information to the control line.                                                                               
    EXIT_SAPLV60B_007: Change the installment plan                         
    You can use exit 007 to add information to the installment plan        
    parameters in the GL account item.                                                                               
    EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and      
    ACCHD                                                                  
    After the accounting document is filled in with data, you can use      
    exit 008 to change the document once again.                                                                               
    EXIT_SAPLV60B_010: Item table for customer lines                       
    You can use exit 10 to influence the contents of customer lines        
    before they are created.                                                                               
    EXIT_SAPLV60B_0011: Change the parameter for cash account              
    determination or reconciliation account determination                  
    You can use this exit to change inbound parameters in order to         
    influence account determination.                                       
    >                                                                      
    Thanks
    Shiva

  • How to avoid the user selecting a different path in my installer

    Hello again all you helpful forum-goers!
    I have an application and a corresponding installer, and then I have a separate installer putting some support files in the same directory.  My problem is that if the user selects a different path to which to install my primary application, the secondary installer will not put the required support files in the same spot.
    Now, I think I've figured out how to get the user-selected path from the "Run executable at the end of installation" option in the Advanced pane of the LabVIEW installer configuration, and I can pass that in to my secondary installer, and that should fix the problem.  However, what I'd really like to do is just not give the user the option to install my primary application in a different directory to begin with.  I've looked, but cannot find any way to do that.
    Does anyone know of any way to not present the option to install an application in a different directory when using the LabVIEW installer?
    Thanks in advance for any suggestions,
    -Joe

    Ben64,
    That's great!  Thank you so much for your quick reply.  The only reason I haven't already accepted that as my solution is that it requires a manual post-compile change to a text file.  Ideally I'd prefer not to have to remember to do that every time I rebuild my installer.  Is there any way that you know of to automate the process?
    If not, I'm happy to have a good solution even if it takes an extra step each time to implement.
    -Joe

  • This purchase could not be completed please select a different payment method

    I`ve bought a new BB as a present to my wife - Z3.
    I`ve registered for her new BB ID account - **Removed**@dunaeva.su
    And we can not purchase anything having the same problem using all of our cards - "this purchase could not be completed please select a different payment method",
    I`ve read a lot of forums and web pages and belive that our problem - ur sistem has flagged her account as potentially Fraudulent or Blocked.
    U shold unblock her and bring ur appoligise.
    Edit: Email removed. At no time should you provide any personal information to any other community member. Please review the Community Guidelines and Terms and Conditions of Use. for further information

    I apologize for the rudeness of my first post - i was really disappointed with the situation when i`m not able to provide to my wife fully equipped phone with all her contacts and sms (need some paid app). I`ll check up your recommendations and come back with a report or new questions.

  • Is there an iTunes.exe command-line switch/syntax reference list?

    Is there an iTunes.exe command-line switch/syntax reference list?
    I would like iTunes to automatically play my music (selectable/programmable) when I click on the iTunes icon.
    Thank you in advance, ACJ

    Hi,
    Thank you for posting in Windows Server Forum.
    The switch /control indicates that you can take the control of the session which you have taken. Generally when we take remote desktop session we will already get the control of that session but in some case where some administrator will not give full access
    or control of remote session to the user. At that if they know this option they can use to control that remote session.
    Use command line parameters with Remote Desktop Connection
    http://windows.microsoft.com/en-in/windows/command-line-parameters-remote-desktop-connection#1TC=windows-7
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Expende the Line in the result list

    Hello
    I need your help.
    In the result list at "Identify account" i get only 4 lines. and if i have 10 result i need to turn pages.
    I want to get more then 4 lines in the result list in one view without turn pages.
    Thanks
    Merav

    Hi Lisa
    You can change the  visibleRowCount = "4" to "10".
    crmic:tableView id              = "<%= controller->tableview_id  %>"
                         navigationMode  = "BYPAGE"
                         onRowSelection  = "select"
                         onNavigate      = "onNavigate"
                         table           = "//Customers/Table"
                         selectionMode   = "LINEEDIT"
                         columnWrapping  = "FALSE"
                         fillUpEmptyRows = "FALSE"
                         keyColumn       = "BP_NUMBER"
                         emptyTableText  = "Table is empty!"
                         visibleFirstRow = "<%= First_Row  %>"
                         focus           = "TRUE"
                         visibleRowCount = "4"   <----
    Here!!!!!!!!!
                         selectedRowIndex  = "<%= Row_Selection %>"
                         headerText      = "<%=lv_size %> <%=otr(crm_ic_appl/BupaResultsCustomer) %>"
                         headerVisible   = "TRUE"
                         width           = "100%" >
          <crmic:tableViewCols>

Maybe you are looking for