on 04-21-2010 8:38 PM
Hi ,
I have a requirement where i need to call a custom transaction using transaction launcher. I am able to successfully launch the transaction. But i need to pass a value to the transaction.
For eg. If i am calling a custom report transaction which has a selection screen field 'FORMNAME' as a parameter i need to pass the name of the form to the transaction. I am not able to pass that value. Can any one help me onthis.
I have seen all the posts , but could not get any help on how to set the value for custom transaction. I can see how it is done for standard transaction.
Regards
Ansari
Plz check this wiki entry.
http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUI-LaunchingtransactionsinGUIforWindows
Rg,
Harshit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Any help on this....I am still awaiting the response.
Requirement: My requirement is to launch the SE38 transaction on WEBUI using transaction luncher tool and set the parameter on the selection screen.
Issue: The issue is that I am able to lunch the transaction but unable to set the parameter
Steps Performed:
I want to list down all the steps I performed to launch an SE38 transaction using transaction launcher on the WEBUI
1) Defined logical system in tcode CRMS_IC_CROSS_SYS
-The logical link looks like this
http://<server>:<port>/sap/bc/gui/sap/its/webgui/?transaction=IC_LTXE&okcode=ICEXECUTE ?sap-client=300
2) Defined URL & paratemeter wherein the request method is "GET", opted for NON-BSP URL
URL link here is
http://<server>:<port>/sap/bc/gui/sap/its/webgui/?transaction=SE38&okcode=ONLI
-Note: My selection screen okcode os ONLI*
-The logical system ref is provided here
3) Defined the parameter by giving the screen name like for SE38 selection screen name is "RS38M-PROGRAMM"
4) Configured the transaction launcher of type B - URL type and provided the reference of the URL ID, choose the relevant parameter from the drop down and have hardcoded the value, cheked the box "Save Data in Activity Clipboard
5) Added this in the NAvlink/Bus Role etc
6) Now in the handler class of the TL the code looks like this:
IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW
__gdc ?=
cl_crm_ui_data_context_srv=>get_instance( gv_view_controller ).
__value
=
'ZC_TEST'.
add_parameter(
iv_name =
'RS38M-PROGRAMM'
iv_value = __value ).
However, after performing the above steps I am unable to set the parameter. Please suggest where am I missing out on. An early response would really be appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dhara,
By Parameter ID, I mean there should be parameter ID created for the transaction code field in ECC and we should be setting the value to this parameter ID.
It is just the way how you open a transaction code in interactive abap reports on click.
Try creating a Z TCODE for your program.
Regards,
Masood Imrani S.
Can we obtain any code relevant to this. We are able to launch the transaction. But I am not sure where do we declare the paratemeter ID of a report program parameter and in the transaction launcher class we have writtent the logic of hardcoding the value parameter and call addparameter method. But still the parameter is not set. Any kind of sample code would be really appreciated.
Edited by: Dhara Parikh on Apr 22, 2010 3:58 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muhammed,
You need to create a Parameter ID for the selection screen field you have. I rememeber working on similar requirement of launching a standard transaction using the parameter ID.
You can use create a URL based Tx Launcher and adjust the URL in PREPARE_DATA_FLOW method of the transaction launcher class.
Your URL should like
http://<serverhost>:<port>/sap/ xxxx ~TRANSACTION=ME23N&BES=123
Regards,
Masood Imrani S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.