Moving control b/w grid & transaction

Hi,
Anybody will tell me how to write the logic for moving the control between alv grid to transaction.
Suppose i have records in grid. Now If user clicks on any row or column of grid the control moves to transaction 'VA01'.
Anybody will tell me how to do this??
If any sample coding is there it will be more helpful.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
    I_CALLBACK_PROGRAM                = W_REPID
    I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
    I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                        P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when '<Function code for double click>'.
call transaction 'VA01'.
endcase.
ENDFORM.
rEGARDS,
RAVI

Similar Messages

  • Control BEx Analysis Grid context menu entries via VBA

    Hey Forum,
    I have kind of a tricky question for you. I want to control BEx Analysis Grid context menu entries via VBA, namely the Expand Hierarchy Node function when I right click on a Hierarchy node entry.
    Does anyone know how to access this function via VBA?
    I also thought about adding a BEx button and access it via VBA but I am lacking the correct Button Parameters to expand/collapse a hierarchy node.
    Anyone has a tipp for me?
    Thanks,
    R.

    Hello, DDrazdou and All too
    Did you have any information about requested function?
    I need to call binded transaction in R\3, and meanwhile, I just write wrapping functional module in the R\3, and making RFC call from VBA...
    It seems to work fine, but may be the better(standart) way is posible.
    with best regards, Alex.

  • How to add new fields  to a table control in a standard transaction JHA3X

    Hi All,
            We have a requirement where we have to add two new fields  to  a table control
            in a standard transaction JHA3X .
           We don't want any changes into our standard code and also we don't have any USER EXIT for that
           screen.
           Please provide with some solutions for the same .
           Thanks in advance .

    You will need add this to the /var/clientlibs/libs/cq/security/widgets.js and add the field under the 'CQ.security.UserProperties'.  For example, if you wanted to add a field to show the 'Middle Name' under the 'First Name' field, you can try adding the following:
                "items":[{
                        "xtype":"textfield",
                        "fieldLabel":CQ.I18n.getMessage("Login"),
                        "anchor":"100%",
                        "disabled":true,
                        "allowBlank":false,
                        "name":"rep:userId"
                        "xtype":"textfield",
                        "fieldLabel":CQ.I18n.getMessage("First Name"),
                        "anchor":"100%",
                        "name":"givenName"
                        "xtype":"textfield",
                        "fieldLabel":CQ.I18n.getMessage("Middle Name"),
                        "anchor":"100%",
                        "name":"middleName",
                        "xtype":"textfield",
                        "fieldLabel":CQ.I18n.getMessage("Last Name"),
                        "anchor":"100%",
                        "name":"familyName",
                        "allowBlank":false
    Hope this helps.
    -Ron

  • Dual Control for Sensitive fields  Transaction FD08?

    Hi all,
    When configuring the dual control for sensitive fields, Transaction i have a few questions:
    a) Is there a way (work around) by which I can add the sales area data fields to the catalogue of fields.
    b) More importantly, system allows to create the sales order even if the changes have not been confirmed by the respective approving authority, this alone beats the logic of configuring the sensitive fields.
    Is there some more setting or user exit which needs to be put in to prevent the user from creating the sales order unless the changes to the sensitive fields have been confirmed.
    Userfull answers will be rewarded!
    Thanks
    Kind Regards

    Hi,
    Please go through the following path for configuration :
    Point No. 1
    1> Customer
    IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for Creating Customer Master Data --> Define Sensitive Fields for Dual Control (Customers)
    2> Vendor
    IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Vendor Accounts --> Master Data --> Preparations for Creating Vendor Master Data --> Define Sensitive Fields for Dual Control (Vendors)
    Point No. 2
    You can execute transaction code FD08 in background with a periodic job for each User ID who has authorization and tick on Accounts to be confirmed by me and send the output via mail through distribution list or each user can view output by viewing spool by going to transaction code SP01.
    Point No. 3
    Same as point 2 only need to select option Accounts refused.
    Point No. 4
    Yes
    Point No. 5
    Same as point 1
    Hope your issue gets resolved.
    Regards,
    Tejas

  • Controling field display by Transaction Type

    Hello,
    Is it possible to control field display by Transaction Type in CRM 7.0 anymore given that we have the Web UI now. I remember from my 5.0 experience that we used CRMV_SSC to control this at transaction type. I would imagine, the functionality has not been taken away but rather changed to a different place where we control this. Anybody dealt with a similar requirement? Any ideas / suggestions/ tips?
    Essentially for transaction ZOR1 we want to surpress a tab / fields, but for ZOR2 we want to keep those available. ZOR1 and ZOR2 belong to the same transaction category.
    Thanks in advance..
    KK

    Kevin,
    This is all controlled now by Configurations in the WebUI, along with the Component/view. As an example, via the WebUI try going into each of the transaction types. You have not said what kind of transaction types you were referring to, so I'm just going to assume it's Opportunities for the time-being. So, If you click on each of the transaction types and when the screen is displayed place the cursor on an editable field and press F2. This will then display the technical details behind the screen. Here you'll see  that each tranx type has it's component/view name and context node. You will also see the configuration as well. So, the transaction types are actually controlled by the code and screen design behind the component and view, but there can be a different screen layouts for the same tranx type dependning of the configuration used. And, this configuration is normally identified by the business role that you're currently using.
    So if that was a bit wordy, but if you look at the technical details behind each of the tranx types it should become clear.
    Jason

  • How can i control weather a custom transaction is executed

    How can i control whether a custom transaction containing delete sql statement is executed using the results of a record set?
    The custom transactions dialog does no allow me to use anything more than sql and has no conditions so i cannot control flow their.
    Triggers seem not to be able to access record sets defined on the same page and internally seem able to perform select staments but unable to return result sets.
    Please help if you can ?

    What exactly are you trying to do?
    The following partial code-snippet checks a value on a form and performs a sql select query if a condition is met, it could perform any valid sql...
    //start GWB_SetSubscribedToThread trigger
    function GWB_SetSubscribedToThread(&$tNG) {
    //Get the current values from the form
    $threadid = $tNG->getColumnValue('NbForumMessageID');
    $userid = $tNG->getColumnValue('CreatedBy');
    $subscribed = $tNG->getColumnValue('Subscribe');
    //Check current subscription
    $query = "SELECT ms_RandomKey FROM messagesubscribe WHERE ms_MessageTypeID = 1 AND ms_ThreadID = " . $threadid . " AND ms_UserID = " . $userid ;
    // This syntax doesn't work for some reason??
    //$result = $tNG->connection->execute($query);
    //This syntax does work
    $result = mysql_query($query);
    if (!$result) {
    $message = 'Invalid query: ' . mysql_error() . "\n\n";
    $message .= 'Query String: ' . $query;
    $message = nl2br($message);
    die($message);

  • Issue with number of lines in Table control for an web transaction in ITS

    Hi,
    We have acustom web transaction ZC03 where we have used table controls. Recently a kernal patch has been installed and after that the number of lines appearing in table control has got changed. Earlier table control was coming with 5 lines and presently its coming with 3 lines. Can you please help me to fix the issue.
    The  code used in HTML template for table controi is given below:
    `SAP_DynproLayerBegin(005,013,067,006)`
      `SAP_TableControl("TC_TIME1")`
        `SAP_DynproLayerEnd()`
    I have tried other alternatives like  `SAP_DynproTableControl("TC_TIME1")`, `D_TableControl("TC_TIME1') but did n't get any fruitful result also.
    Thanks and Regards,
    Ranadev

    What where the precise Kernel updates? What where you on and what did you upgrade too?
    Did you apply any BASIS Support Pack corrections during the Kernel upgrade?
    If you applied a new BASIS support pack - check the following WIKI:
    [How to check the publishing Date of an Internet Service|http://wiki.sdn.sap.com/wiki/x/OYG8BQ ]
    if you need to republish - use the following WIKI:
    [How to activate, publish and test ITS services in the integrated ITS?|http://wiki.sdn.sap.com/wiki/x/kmE ]
    Regards,
    Oisin

  • Authorization Control for Physical Inventory Transactions

    Hello,
    Can we control the authorization for Physical Inventory Transactions especially MI01, MI02, Mi04, MI07, MI08, MI31 etc. at Storage Location level instead of Plant Level.
    If it's not possible at Sloc level does anyone knows the user exit/code we can use enable the authorization check at Storage Location level.
    Regards,

    hi,
    yes u can do it.
    check
    M_MSEG_LGO     Goods Movements: Storage Location
    mvt type 701/702

  • EC-PCA  controlling area settings     - Store transaction currency

    Hi
    Reviewing controlling area settings I found that ckeck "store transaction currency " is off  ... could I activate (set on) in a productive client that already has postings ??
    This could bring any problems? Or It would be better to activate it at beginning of next year?
    Reward points to hepful answers
    King Regards

    Hi Andres,
    It is possible to turn on "store transaction currency" indicator even after data has been posted. It increases the data volume and is relevant for data coming through other modules (has no effect on data posted within PCA). It is strongly recommended to test it before you implement in the production system and also refer to OSS help for any recommendations.
    Turning on has effect on the future transactions only and will not change the past data.
    Regards
    Sharabh Ivaturi

  • How can I control the EJB's Transaction with entity bean

    If I use entity bean, the Transaction is managed by container.and I want to create JDBC Connection by myselft ,not the Datasource,how is the transaction is controlled by the container,if transaction is not controlled ,how can I control it??

    Hi,
    If you want to control the transaction your self then you need to use javax.transaction.UserTransaction interface and methods defined by it.
    Hope this helps
    Vishal

  • Printing a Table Control AND ALV grid from same report

    Hello,
    I am trying to figure out how to print the output of my report, which consist of a table control and a OO-driven ALV grid under it. i tried several possibilities but I only get the ALV in my spool....?
    Answers will be rewarded !

    Keep a break point in that method. Press print in the ALV, check it stops in the break point. If yes then you can use write statement, the values what ever u r writing it come in the print-out. If the control doesn't stop in the break point then there is some problem in the method declartion.
    Check my code - I written every thing in the global declaration.
                          ALV Class Definition
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
            handle_top_of_list
                FOR EVENT print_top_of_list OF cl_gui_alv_grid,
            handle_end_of_list
                FOR EVENT print_end_of_list OF cl_gui_alv_grid.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    DATA: o_event_receiver   TYPE REF TO lcl_event_receiver.
                          ALV Class Implementation
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_top_of_list.
        DATA: lws_top1(20) TYPE c,
              lws_top2(150) TYPE c,
              lws_top3(150) TYPE c,
              lws_len_file TYPE i,
              lws_file(80) TYPE c,
              lws_file1(100) TYPE c,
              lws_file2(100) TYPE c,
              lws_file3(100) TYPE c.
        WRITE: / text-001.
    *Date
        CONCATENATE text-008 ws_date INTO lws_top1 SEPARATED BY space.
        WRITE : /1 lws_top1.
    Source File Name
        WRITE: / text-009.
        lws_len_file = STRLEN( p_upload ).
        IF lws_len_file < 80.
          MOVE p_upload TO lws_top2.
          WRITE : /1 lws_top2.
        ELSE.
          MOVE p_upload TO lws_file.
          MOVE p_upload+80(48) TO lws_file1.
          DO.
            IF lws_file+79(1) EQ '\'.
              EXIT.
            ELSE.
              CONCATENATE lws_file+79(1) lws_file2 INTO lws_file2.
              SHIFT lws_file RIGHT.
            ENDIF.
          ENDDO.
          IF lws_file2 IS INITIAL.
            MOVE lws_file TO lws_top2.
            WRITE : /1 lws_top2.
            WRITE : /1 lws_file1.
          ELSE.
            CONDENSE lws_file.
            MOVE lws_file TO lws_top2.
            WRITE : /1  lws_top2.
            CONCATENATE lws_file2 lws_file1 INTO lws_file3.
            WRITE : /1  lws_file3.
          ENDIF.
        ENDIF.
      ENDMETHOD.                           "handle_top_of_list
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    Regards,
    Prakash.

  • Control Cycles in LPK1 transaction

    Hi experts,
    Has anyone worked on Control Cycles(LPK1) in Data Conversion?
    I need a little Functional and technical overview and what needs to be taken care while loading Control Cycles?
    I searched on web But couldn't find all details.
    Regards,
    Rahul

    SAP docu can be found here:
    http://help.sap.com/saphelp_erp2005/helpdata/EN/c6/f841494afa11d182b90000e829fbfe/frameset.htm
    control cycles can be created with and without material (just at plant level)
    As it is a tiny little transaction, you can load it with LSMW using own recordings.

  • Control "Shelf Life" date: Transaction LT03

    Hi,
    we want to check the validity date of the field "Shelf Life" (field SLEDBBD in the ALV) in the transaction LT03 before creating the Tranfert Order. For the moment the standard does not provide any control on this field:
    Basically, the standard flow is in that way:
    LT03: Create a Tranfert Order for Delivery (no control)
    LT12: ConfirmationCheck the validity date of the Shelf Life
    Reject
    Accept
    Our need consists to generate a blocking error message when the validating batch number is expired in LT03, like that:
    Have you got some Technical/Custo idea?
    Best regards.
    Rachid.

    Hi,
    You can control this via batch determination. Using condition technique, you can set the desired length of remaining shelf life for each of your customer (I mean you can create a condition record for each of them with the suitable parameters).
    Please check these links:
    http://www.renet-web.net/2008/09/05/sap-batch-determination-made-easy/
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/25/283aac4f7811d18a150000e816ae6e/frameset.htm
    (As per my best knowledge you won't be able to consider remaining shelf life during planning.)
    Regards,
    Csaba
    Edited by: Csaba Szommer on Apr 5, 2009 8:56 AM

  • Dynamic Logging level control in a grid/rac system

    How is the logging level in a grid/rac configured Weblogic system dynamically configured? I would like to control the logging level in grid/rac configured system dymaically via a GUI. What are the steps to controlling the level, or please direct to the appropriate documention.

    You would do it the same way you would with a tank of any shape. The only difference is that you are dealing with the volume of a sphere rather than a cylinder or rectangle. Hence the amount of fluid required to raise the level by X is non-linear in that it varies with how much stuff is already in the tank - which is a function of the volume of a sphere (actually the volume of a partial sphere).
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Problem with the table control BDC in FV60 transaction

    Hi All,
    I got the problem with the table control in FV60 transaction.
    This is working for 900 line items.After 900 line items it is giving the problem like it is 1000th line item.You can post only 999 line items.
    I know we can post only 999 line items,but in my file only 920 line items.
    Please give me solution,if anybody come across this situation.
    Thanks & regards,
    rakesh.

    Hello Rakesh ,
    your file may have only 920 line items , but based on those line items, SAP may create few more  new lines ( based on the clearing recon accounts , inter company transaction ...etc )...
    regards
    Prabhu

Maybe you are looking for

  • Home sharing on iTunes 11.0.4 is keeping my mac awake...help?!

    Hi All. After upgrading iTunes to 11.0.4 my faithful Mac mini can't get any sleep. It tries, but as soon as it sleeps something wakes it back up again within seconds. Actually what happens is the mac sleeps then about a minute later it wakes for a fe

  • REST call from PDf form returns error

    I have created a very simple process that allows a user to enter data into a PDF form and submit the form for archiving.  In the process I have used LC Output to flatten the PDF and I am using the Sharepoint connector to create and archive the docume

  • Syncing one unit to two desktop

    Greetings - I'd like to be able to sync my Treo to the same set of databases through two different computers. I'm thinking of maybe storing the data in the cloud somewhere and then be able to sync to the data from my home and work computers. One devi

  • I tried to adjust my .plist on bootcamp and now it will not open, how can i fix it?

    i tried to adjust my .plist on bootcamp and now it will not open, how can i fix it?

  • How to know as5300 standard performance

    HI i am having problem in access server that the users get disconnected so i want to know the standard performance of the AS5300 access servers so that i can compare my as5300 performance with the standard access server performance. is there any comm