Reg. entering another transaction from output list

I am using 'REUSE_ALV_LIST_DISPLAY' for displaying output from a custom table. The custom table contains sales order and corresponding delivery. Now, on the output, if the user clicks on the sales order (like a hyperlink), it should go to VA02 transaction (where the user should be able to change if he wants and save and come back). If the user clicks on delivery, it should go to VF03 (only display, not change mode..but the user should be able to come back).
Can you tell me what code I need to add around with this ''REUSE_ALV_LIST_DISPLAY' for the above requirement? First of all, is this possible when I am displaying output with ''REUSE_ALV_LIST_DISPLAY'?
Thank you very much.

Sure, check out this sample program,  this illistrates using a hotspot in the ALV list,  all you need to do is the code for the delivery number as well.
report zrich_0001 .
* Global ALV Data Declarations
type-pools slis.
data: ivbak type table of vbak with header line.
start-of-selection.
  select * into corresponding fields of table ivbak
            from vbak
                 up to 100 rows.
  perform call_alv.
*  CALL_ALV
form call_alv.
  data: xfc type slis_fieldcat_alv.
  data: ifc type slis_t_fieldcat_alv.
  data: xevents type slis_alv_event.
  data: ievents type slis_t_event.
  data: repid type sy-repid.
  repid = sy-repid.
* Events
  clear ievents.  refresh ievents.
  xevents-name = 'USER_COMMAND'.
  xevents-form = 'HANDLE_HOTSPOT'.
  append xevents to ievents.
* Build Field cat
  clear ifc.  refresh ifc.
  clear xfc.
  xfc-reptext_ddic = 'Sales Document'.
  xfc-fieldname    = 'VBELN'.
  xfc-tabname      = 'IVBAK'.
  xfc-outputlen    = '10'.
  xfc-hotspot      = 'X'.
  append xfc to ifc.
  clear xfc.
  xfc-reptext_ddic = 'Order Type'.
  xfc-fieldname    = 'AUART'.
  xfc-tabname      = 'IVBAK'.
  xfc-outputlen    = '3'.
  append xfc to ifc.
* Call ABAP List Viewer (ALV)
  call function 'REUSE_ALV_LIST_DISPLAY'
       exporting
            it_fieldcat        = ifc
            i_callback_program = repid
            it_events          = ievents
       tables
            t_outtab           = ivbak.
endform.
*       FORM handle_hotspot
form handle_hotspot using w_ucomm type sy-ucomm
                          w_selfield type slis_selfield.
  case w_ucomm.
    when '&IC1'.
      read table ivbak index w_selfield-tabindex.
<b>      case w_selfield-fieldname.
        when 'VBELN'.
          set parameter id 'AUN' field ivbak-vbeln.
             call transaction 'VA03' and skip first screen.
*        when 'DELNOTE'.   "<-- What ever field is the delivery note
*          set parameter id 'VL' field <dn_value>.
*             call transaction 'VL03' and skip first screen.</b>
     endcase.
  endcase.
endform.
Regards,
Rich Heilman

Similar Messages

  • Can we call another transaction from the Userexit

    Hi all,
            Can we call another transaction from the Userexit?
    Thanks,
    Balaji

    Hi
    Because the statament CALL TRANSACTION triggers the end of the LUW so COMMIT WORK, so you should be sure not to insert that statament while some updating actions are been doing.
    So that exit shouldn't be triggered while updating
    Max

  • Want to call transactions from ALV list output

    Hi Guru's,
    I have a report which displays Open PR's, open PO's n their details with respect to material. wat i want to do is call transactions from this out put i.e i want a interactive output. if i click on particular PR i want the system to call that PR screen. how can i do this?? Plz help.

    REFER THIS
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = 'USER_COMMAND '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
      IT_FIELDCAT                    =
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      TABLES
        T_OUTTAB                       =
    IF SY-SUBRC <> 0.
    ENDIF.
    AND THEN
                     rs_lineinfo type slis_lineinfo.
    FORM user_command5 USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    data : lv_date type char4.
    CLEAR : LV_DATE .
    CASE r_ucomm.
    WHEN '&IC1'.
          IF rs_selfield-fieldname = 'BELNR'.
        read table it_e into wa_e index rs_selfield-tabindex.
        if sy-subrc = 0.
        lv_date = wa_e-budat(4).
        endif.
        SET PARAMETER ID 'BLN' FIELD rs_selfield-value.
        SET PARAMETER ID 'BUK' FIELD s_bukrs-low.
        SET PARAMETER ID 'GJR' FIELD lv_date.
        call TRANsaction 'FB03' AND SKIP FIRST SCREEN.
        endif.
        ENDCASE.
    ENDFORM. "user_comm

  • Calling a transaction from output.

    hi everybody,
    my problem is .
    i done a report and i am geting output also.
    (kunnr,vbeln,vgbel)
    Wen i am double clicking on Delevery no(vbeln)... it has to call the trasaction VL02n, and the cursor has to move Bill of lading(BOLNR) field of that transaction.
    i done a littile code at AT USER-COMMAND event.
    code is as follows.
    SET PARAMETER ID 'VL' FIELD it_output-vbeln.
    CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
    but the cursor is not going to the Bill of lading field.
    Can any body help this.
    thanx in advance.

    hi thomas,
    I wrote a BDC program to send the cursor to Bill of lading field.But what happening is ...
    when i am first time double clicking on Delevry number Ok-prompt dialog box is appearing which is not good for user and also the cursor not moving to Bill of lading field.It is moving to before filed.
    But i came back and double clicking on the Delevery field ..it is going directly to Bill of lading field without asking any Ok-CODE promt.
    My problem is it is asking first time only...
    The code is as follows.
    FORM process_bdc .
      CLEAR bdcdata.
      bdcdata-program = 'SAPMV50A'.
      bdcdata-dynpro = '4004'.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
      CLEAR bdcdata.
      bdcdata-fnam = 'LIKP-VBELN'.
      bdcdata-fval = it_output-vbeln.
      APPEND  bdcdata.
      CLEAR bdcdata.
      bdcdata-fnam = 'BDC_OKCODE'.
      bdcdata-fval = '/00'.
      APPEND  bdcdata.
      CLEAR bdcdata.
      bdcdata-program = 'SAPMV50A'.
      bdcdata-dynpro = '1000'.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
      CLEAR bdcdata.
      bdcdata-fnam = 'BDC_OKCODE'.
      bdcdata-fval = '=HDET_T'.
      APPEND  bdcdata.
      CLEAR bdcdata.
      bdcdata-program = 'SAPMV50A'.
      bdcdata-dynpro = '2000'.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
      CLEAR bdcdata.
      bdcdata-fnam = 'BDC_OKCODE'.
      bdcdata-fval = '=T\04'.
      APPEND  bdcdata.
      CLEAR bdcdata.
      bdcdata-fnam = 'BDC_CURSOR'.
      bdcdata-fval = 'LIKP-BOLNR'.
      APPEND  bdcdata.
      CALL TRANSACTION 'VL02N' USING bdcdata
                                MODE 'E'.

  • When clicking on a lookup, firefor does not allow me to select from the list

    When I use firefox, the website I am on has lookup fields located on it, firefox does not allow me to select my preferred option from the list. also when I slect another lookup from a list it displays the message 'invalid lookup value located in field ......'
    This does not happen in IE

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How to enter a transaction by double-clicking output ?

    I have an itab with fields vbeln etc etc.
    I have a simple list on the output table based on this itab. Now if the user double clicks on this list, he/she should be able to enter VA02 transaction after which if he/she makes changes and save, he/she should be able to come back to the output screen.
    Can you please tell me where should I modify reg. this?
    Thanks a lot.

    Hi
    Try this
    DATA: BEGIN OF ITAB OCCURS 0,
           VBELN TYPE VBELN,
           MATNR TYPE MATNR,
           NETWR TYPE NETWR,
         END   OF ITAB.
    START-OF-SELECTION.
      PERFORM ACTION.
    AT LINE-SELECTION.
      SET PARAMETER ID 'AUN' FIELD ITAB-VBELN.
      CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
    *&      Form  action
          text
    FORM ACTION.
      IF NOT ITAB[] IS INITIAL.
        LOOP AT ITAB.
          FORMAT HOTSPOT ON.
          WRITE: AT /10 ITAB-VBELN,
                        ITAB-MATNR,
                     39 ITAB-NETWR.
          HIDE ITAB-MATNR.
          FORMAT HOTSPOT OFF.
          AT LAST.
            SUM.
            WRITE: /39 ITAB-MATNR.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "ACTION
    Max

  • How to auto populate data from one list in SharePoint 2007 into another list based on a key value?

    Hi,
    As a part of new requirement in my project I am supposd to work on SharePoint 2007. I have one List (BCExtract - Main list) with all data related to an Application (like ID, name, app manager RTO etc).
    I have created another list which has form to be filled by a user (with details about his/her applications). My requirement is that when the user enters AIT ID then the page should refresh (probably after hitting enter) and other details like Application
    name, RTO etc which is present in another list gets auto populated depending on the AIT ID (unique column) entered so reduce the burden on the user.
    Please suggest me how this can be done. I do not have permission for obtaining SharePoint Designer and I do not know JQuery. Infopath is ok but if this can be done through SharePoint 2007 alone then it would be great.
    Thanks....

    Hello,
    You can either use jquery/jaavscript or infopath form to achieve this. There is no default way to do this.
    I would suggest jquery because you can put script in newform/editfor.aspx page using content editor webpart. Refer this link for jquery:
    To get value from list:
    http://social.technet.microsoft.com/Forums/en-US/ac47fe2a-ccb6-4f5b-b274-703aecc6cb0a/get-list-items-in-sharepoint-2010-by-using-jquery
    http://www.robertkuzma.com/2010/08/read-list-items-using-sharepoint-web-services-and-jquery/
    To set value in column:
    http://paulgalvinsoldblog.wordpress.com/2009/06/13/quick-and-easy-use-jquery-to-set-a-text-field%E2%80%99s-value-on-a-sharepoint-form/
    http://spservices.codeplex.com/discussions/468729
    If you use infopath form, then you need to create two data connection to get data from both lists. Later you can set value in fields based on selection using rule. This can be possible without code.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • What are all the ways that can add fields in the output list of FBL3N transaction?

    Hello dear experts,
    There is this transaction FBL3N, which you might be aware of. Now, the requirement is to add 4 new fields in the output list of the standard program.
    The fields are:
    NAME1   KNA1
    LOKKT    BSEG
    USNAM   BKPF
    TXT50      SKA1 -> SKAT
    Please tell me how to do this apart from implementing the note 310886. What are the other ways?

    I agree, start reading 984305 - Line item: Definition of special fields (T021S)
    Then for non BSEG/BKPF fields, better use BAdI FI_ITEMS_CH_DATA (1323512) and not the good old BTE 1650, the BAdI will be called once with the full internal table with special fields already filled, when the BTE will be executed for each and every record without special fields, so harder to optimize, and may require access to BKPF/BSEG for missing fields.
    Regards,
    Raymond
    PS: Did you use search tool, there are already many discussions/threads on this subject.

  • Access to MD03 from another transaction

    Hi Gurus,
    We did a trace to all the users, and one of them used the MD03 transaction. The point is that he has no authorization to this transaction, so probably he is accessing to it from another.
    Could you help me searching any transaction where the user could jump to MD03 from menu, buttons, double click,...?
    Thank you in advance.

    Hi,
    Click on Enviornment>>Navigation profile>>Assign. In the General settings tab page you can assign the navigation profile. Just check whether the navigation profile assigned to the user has the T-code MD03. Check the seetings and t-codes in OM0K - Define navigation profile.
    But as suggested by Mr.Brahmankar kindly check whether it's possible to access the transaction from MD04 if the user doesn't have the authorization of other transaction which he/she is accessing. In your case MD03. I'm not sure about that.
    Regards,
    Lodhi.S

  • I can not eliminate ASK engine from the list. It came back by itself. Please, tel me how I can eliminate this problem. Another problem, this browser is no longer compatible with some institutions. This new version might have some problems.

    '''I can not eliminate ASK engine from the list. It came back by itself. Please, tel me how I can eliminate this problem.
    Another problem, this browser is no longer compatible with some institutions. .'''

    Step by step, how did you arrive at seeing this agreement?

  • Moving a List Item attachment from one list to another

    Hi,
    What are the best way of coping / moving the List Item attachment using
    jQuery / JavaScript in SharePoint 2013 from one list to another.
    Thanks
    Saroj
    Impossible is nth but good coding :-)

    For your needs better try to code your own solution. See
    SharePoint JavaScript Class Library for details. You can have two possible architectures:
    Make all work from JavaScript. And the first your step will be
    addItem method of SP.List.
    Make processing of selection on client in JavaScript and call your custom server-side component (may be an application page) for items copying (creating copies in new list of already existed items from initial list.). See
    this for example.
    Also be careful with context.load. It's recommended to write all next code in context.executeQueryAsync. Use Firebug in FF and developer tools in Chrome for debugging your code and to find what is wrong.
    Or 
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    var siteUrl = 'Site Url';
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List1');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var objListItem = listItemEnumerator.get_current();
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List2');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', objListItem.get_item('Title'));
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededFinal), Function.createDelegate(this, this.onQueryFailed));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function onQuerySucceededFinal(sender, args) {
    //Do next set of operation if needed
    </script><input name="btnVarIQReject" onclick="retrieveListItems()" type="button" value="Submit"/>
    Please use my above POC code to start. This will copy all the title field value from list1 to list2
    If this helped you resolve your issue, please mark it Answered

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Vendor list - not get transaction from last three years

    Dear Sir,
    Can we have a list of vendor which are not get transaction from last three years ?
    Vijay Vadgaonkar
    SAP MM

    either you write a z-report
    or you download all vendor numbers from LFA1 table
    then run MC$4  transaction for analyzing period of last 3 year.
    download the vendor numbers from this report as well.
    Finally compare the both download (easiest with VLOOKUP formula) to find the delta, which are the inactive vendors.
    However, these are the inactive vendors from purchasing point of view only.
    vendors like restaurants and customs and tax authorities may only have financial postings and never purchasing activities.

  • Access data from from two lists based on lookup columns and insert into another

    Hi,
    I am new in SharePoint and is stuck in some problem.
    I want to insert data in to a list by fetching data from 2 lists.
    The scenario is :
    List A Columns : EmployeeName, EmployeeID, EmployeeSalary 
    List B Columns : DepartmentName, EmployeeID, ManagerID
    EmployeeID is lookup column 
    I want to fetch data from these 2 lists and insert data into another list:
    List C Columns: EmployeeName, EmployeeSalary, DepartmentName 
    Can someone please explain me all the possible approaches to do the above task

    If ListA and ListB are the lists that you created, it would be better to generate the lists data into one list not seperate lists, as they both represents the property information of one employee.
    If they are existing lists, you may have following considerations:
    1. if you are a programmer, it would be easier to have a lookup column at ListA, to generate the EmployeeName, EmplyeeSalary, then using ItemAdded event, to generate the DepartmentName column based on EmployeeID column.
    2. have a lookup column look at ListA, use workflow, set when item is created, start the workflow automatically, then in the workflow, find ListB related item based on EmployeeID column, to set the DepartmentName column, SharePoint designer workflow
    set Item Value activity can do this work, you can research to find more information about how to do this.
    Thanks,
    Qiao Wei <br/> My blog:http://blog.goobol.com

  • Error while switching from price list  while entering  the sales order

    hi
    i am getting this error " App - ont -250271 On line discounting is not allowed ; order type enforces price list"
    while switching from price list column
    I checked the transaction type and it does not have enforce price list check box checked.
    do i have to check some where else?
    Regards
    sudharshan.

    Hello,
    Did you fill lines? and after this you want change price list on the header?
    Check your price list, modifier and qualifier set-up because it seems that there is a problem.
    Regards,
    Luko

Maybe you are looking for