Calling custom tcode in HAP_DOCUMENT_LINK

HI Experts,
                 I have req that i want to call my custom tcode in standard webdynpro component HAP_DOCUMENT_LINK. Actually i have a table in HAP_DOCUMENT_LINK with link, when user click on link i want to display my custom t-code.
I have created a custom webdynpro component which contains ALV table, When i execute that component it display empty rows with editable mode, i have created t-code for that webdynpro component like ZTABLE ( tcode name of wd component ) i want to call this tcode by filing all records and display it in read only mode. please help me to solve this .
Regards
Syed

Hi Syed,
You will just pass the key information via URL parameters to your custom web dynpro application. I think for your requirement you no need to create t-code, you launch the url directly.
Please refer the below links
Calling one webdynpro application from another | Webdynpro ABAP
Read URL Parameters in Web Dynpro ABAP
The above links clearly explains how to call one web application in other component and pass the url parameters.
Process can be divided as below:
  Enhance the standard component, use POST EXIT and call the URL of Zcomponent and pass the parameters
Go to eventhandler method "HANDLEDEFAULT" of window of zcomponent and read the url parameters
Now, Based on the above parameters, you can populate the data into alv table in custom component
Also, make the alv as read only by using method if_salv_wd_table_settings~SET_READ_ONLY( abap_true)
Hope this helps you.
Regards,
Rama
Message was edited by: Ramakrishnappa Gangappa

Similar Messages

  • Baseline date mesg not appear when call transaction FB60 in custom tcode

    Hi Experts,
    One of the custom tcode which calls the standard tcode FB60.
    If we give the last month date in payment date, it should shows the 'Due date is in the past' message and if we give next year as payment date i.e, more than 365 days, then show 'Baseline date foe pmnt is 700 days after the document date : check'.. These messages are coming when we call the standard tcode FB60 directly.
    But if call it in the custom tcode, these messages are not appear.
    Thanks,
    Mani.

    Hi Experts,
    One of the custom tcode which calls the standard tcode FB60.
    If we give the last month date in payment date, it should shows the 'Due date is in the past' message and if we give next year as payment date i.e, more than 365 days, then show 'Baseline date foe pmnt is 700 days after the document date : check'.. These messages are coming when we call the standard tcode FB60 directly.
    But if call it in the custom tcode, these messages are not appear.
    Thanks,
    Mani.

  • Calling a custom tcode using abap class from workflow

    Hi Experts,
    I have a requirement of calling a custom tcode from my workflow.
    For this i have created a class zcl_test ( has if_workflow ) .
    I created a method ztest which will call the tcode.
    CALL TRANSACTION 'ZTX'.  ( My tcode just has 1 input field, for testing purpose )
    Then i created a task in whichi hv used this abap class and method.
    But the tcode does not run when i execute the workflow.
    Please help.
    Thank You,
    Radhika Vadher.

    Radhika Vadher 
    use the sample code to get the data from the task container into the ABAP class
    DATA :
             w_ref        TYPE  REF TO      if_swf_run_wim_internal,
             w_ref_cnt  TYPE  REF TO      if_wapi_workitem_context,
              w_wi_ref   TYPE  REF TO      if_swf_ifs_parameter_container.
    TRY.
        CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
          EXPORTING
            im_wiid     = w_wiid
          RECEIVING
            re_instance = w_ref.
      CATCH cx_swf_run_wim_enq_failed .
      CATCH cx_swf_run_wim_read_failed .
      CATCH cx_swf_run_wim .
    ENDTRY.
    CALL METHOD w_ref->get_workitem_context
      RECEIVING
        re_ctx = w_ref_cnt.
    CALL METHOD w_ref_cnt->get_wi_container
      RECEIVING
        re_container = w_wi_ref.
    and the w_wi_ref is having a method GET use that method to get the values of the task container into the ABAP class.

  • How to call mmpv TCODE through BDC program.

    Hi
    In my  requriment i have to create custom program through which i have to call mmpv TCODE, because mmpv closes period for indivisual company code and for large number of company code it is time cunsuming exercise. for that i that i have to creat custom program. it is having selection screen like below.
    company code                                   (marv-bukrs)
    fiscal year of current period                 (marv-lfgja)
    current posting period                         (marv-lfmon)
    fiscal year of previous period                (marv-vmgja)   
    month of previous period                      (marv-vmmon)
    fiscal year of last periodof previous year (marv-vjgja)
    last month of previoud year                  (marv-vjmon)
    allow posting to previous year           (marv-xruem)
    disallow dack posting after a change of period (marv-xruev)
    and  output should show : company codes affected,the periods closed and the current period open for posting .and also show wheather back posting allowed / disallowed for the company code.

    CALL FUNCTION 'BDC_INSERT'  "BDC_OBJECT_UPDATE
             EXPORTING
                  TCODE     = 'mmpv'
             TABLES
                  DYNPROTAB = BDC_TAB.
    hope this helps
    Warren

  • Custom TCode for Excel File Upload/Import - WebGUI Error

    We get an ABAP runtime error when uploading an excel file with a custom tcode using WebGUI.  It works ok with WinGUI.  Any ideas what could be causing that error?
    Runtime Errors         RAISE_EXCEPTION
    Date and Time          01/05/2011 17:27:16
    Short text
         Exception condition "JAVABEANNOTSUPPORTED" raised.
    What happened?
         The current ABAP/4 program encountered an unexpected
         situation.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         A RAISE statement in the program "C_OI_CONTAINER_CONTROL_CREATORCP" raised the
          exception
         condition "JAVABEANNOTSUPPORTED".
         Since the exception was not intercepted by a superior
         program, processing was terminated.

    You can use the below code. One more thing while running make sure there is no unsaved excel sheet open in your system.
    FORM sub_create_container .
    Create Instance control for container
      CALL METHOD c_oi_container_control_creator=>get_container_control
        IMPORTING
          control = iref_control
          error   = iref_error.
      IF iref_error->has_failed = c_check.
        CALL METHOD iref_error->raise_message
          EXPORTING
            type = 'E'.
      ENDIF.
    Create generic container linked to container in screen 100
      CREATE OBJECT oref_container
        EXPORTING
          container_name              = 'CONT'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH 'Error while creating container'(012).
      ENDIF.
    Establish connection to GUI Control
      CALL METHOD iref_control->init_control
        EXPORTING
          inplace_enabled      = c_check
          r3_application_name  = 'EXCEL CONTAINER'
          parent               = oref_container
        IMPORTING
          error                = iref_error
        EXCEPTIONS
          javabeannotsupported = 1
          OTHERS               = 2.
      IF iref_error->has_failed = c_check.
        CALL METHOD iref_error->raise_message
          EXPORTING
            type = 'E'.
      ENDIF.
    Create Document Proxy
      CALL METHOD iref_control->get_document_proxy
        EXPORTING
          document_type  = soi_doctype_excel_sheet
        IMPORTING
          document_proxy = iref_document
          error          = iref_error.
      IF iref_error->has_failed = c_check.
        CALL METHOD iref_error->raise_message
          EXPORTING
            type = 'E'.
      ENDIF.
    ENDFORM.                    " SUB_CREATE_CONTAINER
    FORM sub_create_document  USING    p_sheet TYPE i.
      DATA:  l_title   TYPE char40,
              l_char    TYPE char2,
              l_time    TYPE i,
              l_sheet   TYPE char12.
    Calculate the number of sheets to be created
      l_time = p_sheet - 1.
      CONCATENATE 'Assembly Table'(015) v_char INTO l_title
      SEPARATED BY space.
    Create document
      CALL METHOD iref_document->create_document                 " Open use Open_document method
        EXPORTING
          open_inplace   = c_check
          document_title = l_title
          no_flush       = c_check
        IMPORTING
          error          = iref_error.
    Open Spreadsheet interface
      CALL METHOD iref_document->get_spreadsheet_interface
        EXPORTING
          no_flush        = c_check
        IMPORTING
          sheet_interface = iref_spreadsheet
          error           = iref_error.
    Get number of sheets
      CALL METHOD iref_spreadsheet->get_sheets
        EXPORTING
          no_flush = c_check
        IMPORTING
          sheets   = i_sheets
          error    = iref_error.
    Reaname he sheet
      READ TABLE i_sheets INTO wa_sheets INDEX 1.
      l_char = p_sheet.
      CONCATENATE 'Sheet' l_char INTO l_sheet.
      CALL METHOD iref_spreadsheet->set_sheet_name
        EXPORTING
          newname  = l_sheet
          oldname  = wa_sheets-sheet_name
          no_flush = c_check
        IMPORTING
          error    = iref_error.
      REFRESH i_sheets.
      CLEAR: l_char,
             l_sheet.
    Add sheets
      DO l_time TIMES.
        l_char = sy-index.
        l_char = p_sheet - l_char.
        CONCATENATE 'Sheet' l_char INTO l_sheet.
        CALL METHOD iref_spreadsheet->add_sheet
          EXPORTING
            name     = l_sheet
            no_flush = c_check
          IMPORTING
            error    = iref_error.
      ENDDO.
    Get number of sheets
      CALL METHOD iref_spreadsheet->get_sheets
        EXPORTING
          no_flush = c_check
        IMPORTING
          sheets   = i_sheets
          error    = iref_error.
      SORT i_sheets BY sheet_name DESCENDING.
    ENDFORM.                    " SUB_CREATE_DOCUMENT
    FORM sub_save_document .
      DATA: l_changed     TYPE int4.
    Save the document
      CALL METHOD iref_document->save_as
        EXPORTING
          file_name = p_file
          no_flush  = c_check
        IMPORTING
          error     = iref_error.
    Close the document
      CALL METHOD iref_document->close_document
        EXPORTING
          do_save     = c_check
          no_flush    = ''
        IMPORTING
          has_changed = l_changed
          error       = iref_error.
    ENDFORM.                    " SUB_SAVE_DOCUMENT
    Thanks
    Subhankar

  • Smartforms:Can i call a Tcod from Driver Prg 4 its o/p 2 be appended

    Hello Smartform Gurus
    I need 2 call 1 tcode from my Driver prog ,which has report o/p that is 2 be appended in my Smartform o/p as a
    appended page .
    Is it possible at all ?
    plz throw some light on this .
    thnx
    Moni

    Hi Moni,
    of course there are several ways to reach your goal.
    I have assumed:
    - your smartform is based on a SAP-document
    - document output is based on standard output determination with output messages
    This is defined in customizing (SPRO) at several places or combined in NACE.
    Anyway, create additional output just after smartform output, take care of same printer, spool name and so on ->  you will end with one (combined) spool request.
    Have a look for output messages, if you are unsure how to get a 'simple' smartform output.
    Regards,
    Christian

  • To Add Custom Tcode in SAP Menu

    Hi ,
    I want to edit the standard SAP menu in sap easy access screen and  need to add one custom transaction.
    Under the sap menu:
    Logistics --> Sales and Distribution --> Shipping and Transportation > Post Goods Issue> Custom Tcode
    Anyone please let me know,how to get this done.
    Thanks in advance,
    Savitha

    Hi,
    Creating your own SAP Customized Main Menu
    You can add additional menu transaction in the SAP main menu without affecting the original SAP default area menu S000.
    For example, you have created a transaction code called ( z123 - ABC Own Report ) and you want to insert it under Logistics.  The specific user will be able to access ABC Own Report by clicking Logistics -> ABC Own Report.
    Steps :-
    Goto Transaction SE43 - Area Menu
    Click the copy button.  Copy from S000 to ZXXX
    After copying, click Change (area menu ZXXX)
    Double click on Logistics and add in your transaction code in the AreaMenu.
    Remembers to Activate it.
    Next Goto Transaction SU01 - Maintain users
    Type in the user name and click the Defaults button
    Type in the area menu (ZXXX) in the Start Menu field.
    Click Save
    The user will be able to see the additional transaction on the next logon.
    Regards,
    Nagaraj

  • Custom Tcode Authorization Error

    Dear Security Gurus,
    We are getting an authorization while testing Custom Tcode. This tcode is used for Uploading data.
    The authorization error shows missing Activity field value and a field called Operating Concern.
    The SU53 and the Trace(ST01) show the same error even though the role that is assigned to the user has exactly the required values.
    Also Authority Check in the Program of the tcode is maintained for only the Activity field and Operating Concern field.
    Hence we are unable to figure out why the auth. issue occurs even though the role assigned to the user has the missing values
    Please let me know how I can resolve this authorization issue.
    Regards,
    Arjun

    Hi ,
    Below is the Authority check section of the tcode :
    START-OF-SELECTION
      PERFORM F_AUTHORIZATION_CHECK
        AUTHORITY-CHECK OBJECT 'YTIPRC01' ID 'CEERKRS' FIELD P_ERKRS ID 'ACTVT' FIELD '01'
      PERFORM UPLOAD_DATA
        CALL FUNCTION 'GUI_UPLOAD'
          AUTHORITY-CHECK OBJECT 'S_GUI' ID 'ACTVT' FIELD '60'
    Even though I have the ACTVT value 01 and the corresponding CEEKRS (Operating Cncern ) Value in the role I still get the error.
    Thanks,
    Arjun

  • How to attach a Function Module to a custom Tcode

    Hi All,
    I need to attach a Function Module to a new custom Tcode.I tried to create the new Tcode with option Parameter Transaction by giving the Tcode as SE37. But i am not able to give my Function module name as default.
    Do you have any idea how to do this.
    Plese help me.
    Thanks
    Manas

    Hello Manas,
    For example in the first line of your FM you write
    call screen 100.
    Then double click on 100 number and you found yourself on program of creating screen.
    Then you write need to describe your pai and pbo functions and set pf-status.
    For example, on the click of some button you execute some function.
    In transaction you directly execute operator call screen 100 by specifying
    SAPLZTEST screen 100.
    One more time: call screen 100 in FM equals call transaction 'zmytcode', which have been created to SAPLZTEST screen 100.
    You can see tcode ckm3 and function group SAPLCKM8N
    Good luck.

  • Custom Tcode above SE16N to restrict usage

    Our users in production want to do a mass maintenance on view ENT5828 which is built upon table JSTO.  I have created a custom Tcode called ZJSTO from SE93 by selecting "Transaction with parameters" option and provided screen field DATABROWSE-TABLENAME with view name ENT5828
    and skip selection screen for SE16.
    Note that this view allows maintenance. and the objective is to restrict users from giving open access to SE16 or SE16N.
    This is working wonderful but I could not do mass maintenance as in ALV grid from SE16N.
    I could not do the same thing with SE16N.  Could anybody let me know if I could create a custom tcode with SE16N defaulting table name to ENT5828 and disabling this field for editing.
    Regards
    Kasi

    Hi,
    You can create the Custom tcode on the SE16N..But this will not restrict from entering the table as in SE16. The difference is SE16 has initial screen with table name selection and next screen as selection screen to select the entries ...where as SE16n has got only one screen for table selection and entry selection.
    So it is not possible.
    You need to create custom table mainatance program for mass maintainance.

  • Is it possible to call custom designed RFC function module, apart from BAPI

    Hi Friends,
    1.     Is it possible to call custom designed RFC function module, apart from BAPI.
    2.     Why we call it Adaptive RFC layer, Since every time the JCO layer updated with SAP, Why can’t be dynamic.
    Thanx for Ur time.
    Cheers,
    Sam

    Also check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm">here</a> for more information on aRFC. Here you can find why it is called adaptive.
    Regards,
    Christophe

  • Unable to debug an exit in CALL CUSTOMER FUNCTION 003

    Hi Guys,
    I have an exit EXIT_SAPMV45A_003 that is called by CALL CUSTOMER FUNCTION 003. I had placed a break point at
    CALL CUSTOMER FUNCTION 003 and the debugger stops here but i am unable to debug inside this to reach into
    the code in EXIT_SAPMV45A_003 even after setting the system debugging on & Update debugging
    ON.
    Can someone help me with this?
    thanks
    Dan

    You have to include that Enhancement of that exit in the Project and Activate that project in the CMOD.
    The Enhancement for the exit EXIT_SAPMV45A_003 is V45A0003.
    Create a project in CMOD
    And inclue V45A0003 in the project.
    Activate the Project.
    Now, it will stop at break point.
    Regards,
    Naimesh Patel

  • How to create transaction or screen variant for custom tcode in module pool

    Hi,
              I have one module pool program with custome tcode ,i want to create transaction or screen variant for this tcode.Next time when we run this tcode we need a variant for this tcode.
    I tried by using of SHD0 but it is working only for standred tcodes.Is there any possibilty please help me.
    thanks,
    Lavanya.

    Hi,
    you created a Custom Tcode for ur module pool Pgm..if u execute the Tcode in the output screen give the input details and press Save Option then variant will be created. Then you can use that variant.
    otherwise.. while creating a Tcode..
    select an option for Tcode type Tranasction With variant ..there u will provide the variant for ur Tcode ( which is already created ).
    Regards,
    PraVeen.

  • Steps to create Customized Tcode in BI

    Hello,
    I need to create a Customized TCode at BI side for updating texts of certain master data's.
    Could you please provide me step by step solution for that problem.
    Regards,
    Rahul Mahajan

    Hi Rahul,
    You can create customized T-Code in Bi using transaction SE93.
    You need to give the name of the ABAP Program which you need to include in this customized T-Code.
    T-Code is nothing but a program which gets executed when you run that specific T-code in command bar.
    So what you can do is write a program which will fill your master data and include it ithat program in your T-Code
    Thanks and Regards
    Arun

  • Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service. 

    Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service.  I would prefer to talk to someone directly.

    Are you using any disk cleaner or optimization tools like CleanMymac or Mackeeper?
    Regards,
    Ashutosh

Maybe you are looking for

  • My iMac doesn't support iTunes 7, where can I download 10.6.3?

    I have an older iMac which I will be replacing in the coming months, but I need to get my hands on iTunes 10.6.3 as my iPhone running iOS6 will not connect to iTunes with it's current version (10.5.3). As far as I can tell, I can now only download iT

  • New iPad for Grandma

    Here's the scenario. My Mom is visiting from California and we will be giving her an iPad 2 for Mother's Day. I want to set it up for her here so we can show her how to use it. What would be the best way to go about this? I will create a new iTunes a

  • Importing My Library onto my laptop

    Hi and many thanks in advance for reading/replying. Last night I used Homesharing to transfer my extensive (90G) music collection from my parents PC to my Macbook. However during the process my computer ran out of battery and so not all the music was

  • MIghty Mouse Scroll Ball Only Works If You Scroll Up

    Subject explains it all. Not sure what has changed, but I can scroll up but not down. Any tips?

  • Premiere Pro CC 2014 (trial) interpreting XAVC S as AVCHD, is it normal?

    Hello all, Since PP CS6 doesn't support natively XAVC S and buying a codec pack is quite a few $$$, I decided to try PremierePro CC 2014. Now, it can import the files fine. (XAVC-s 1080-60p) but... However if I make a new Sequence from footage it mak