How to call transaction xd03 in alv using interactive
hi experts ,
i want code when i click on any value of kunner column in alv grid it call transaction xd03 .but it using interactive format on single click . please elp me
Moderator message : Not enough re-search before posting, requirements dumping is not allowed. Thread locked.
Edited by: Vinod Kumar on Nov 28, 2011 12:15 PM
Hi,
you have to define a handler for the event hotspot_click of class CL_GUI_ALV_GRID, if you are using that class. If you are using class CL_SALV_TABLE maybe class CL_SALV_EVENTS_TABLE may help you.
Regards,
Klaus
Similar Messages
-
How we can use call transaction xd03 in alv report
hey guys i want now that how we can use call transaction xd03 in alv report by using various tables in report or coding.
can you tell me about that by the way of coding so that it can be easy for me to understand and help ful to make report by using alv report with many tables. so please send me .
Moderator message: it seems to be XD03 day today, please search for available information/documentation/previous discussions.
Edited by: Thomas Zloch on Nov 25, 2011 1:24 PMWhere?
Max -
How to use call transaction 'XD03' in alv.
Hi Experts ,
Below i m write code to call transaction xd03 but it not call the transacation.
<Garbled code removed>
Moderator Message: Please continue with your previous thread. Current thread locked.
Edited by: Suhas Saha on Nov 25, 2011 5:04 PMUhm
Here it's your calling:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repid
i_grid_title = gv_title
is_layout = gv_layout
it_fieldcat = gt_fielcat[]
*it_special_groups = gd_tabgroup
* IT_EVENTS = GT_XEVENTS
i_save = 'X'
* is_variant = z_template
TABLES
t_outtab = gt_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
You don't indicate which is the routine for the user_command
You can do it in 2 ways:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repid
I_CALLBACK_USER_COMMAND = 'USER_COMMAND' "<.------- FORM the USER_COMMAND
i_grid_title = gv_title
is_layout = gv_layout
it_fieldcat = gt_fielcat[]
*it_special_groups = gd_tabgroup
* IT_EVENTS = GT_XEVENTS
i_save = 'X'
* is_variant = z_template
TABLES
t_outtab = gt_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
Or you indicate in the GT_XEVENTS table
LS_EVENT-NAMES = 'USER_COMMAND'.
LS_EVENT-FORM = 'USER_COMMAND'. "<.------- FORM the USER_COMMAND
APPEND LS_EVENT TO GT_XEVENTS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repid
i_grid_title = gv_title
is_layout = gv_layout
it_fieldcat = gt_fielcat[]
*it_special_groups = gd_tabgroup
IT_EVENTS = GT_XEVENTS
i_save = 'X'
* is_variant = z_template
TABLES
t_outtab = gt_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
Max -
How to use call transaction 'XD03' in abap.
Hi Experts,
I am use call transaction xd03 in programme but when i click on any customer number the transaction xd03 is called and it show only one customer details. i.e 1 st in row . other customer details not show. so please write code to solved my problemsHi
It's not clear where you set the USER_COMMAND routine and where you set the OK_CODE for doubleclick.
I suppose you set the routine in the importing parameter I_CALLBACK_USER_COMMAND (?) becasue you aren't use the parameter for the event, but for OK_CODE?
Remember the OK_CODE should be upper case:
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
"WHEN 'kunnr'. <--------------- UPPER CASE
WHEN 'KUNNR'.
See my sample:
TYPE-POOLS SLIS.
DATA: BEGIN OF GT_FINAL OCCURS 0,
KUNNR LIKE KNA1-KUNNR,
NAME1 LIKE KNA1-NAME1,
END OF GT_FINAL.
* ALV
DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
GT_LAYOUT TYPE SLIS_LAYOUT_ALV,
GT_REPID LIKE SY-REPID.
START-OF-SELECTION.
SELECT KUNNR NAME1 INTO TABLE GT_FINAL
UP TO 20 ROWS
FROM KNA1.
GT_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = GT_REPID
I_INTERNAL_TABNAME = 'GT_FINAL'
I_INCLNAME = GT_REPID
CHANGING
CT_FIELDCAT = GT_FIELDCAT[].
GT_LAYOUT-F2CODE = 'KUNNR'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GT_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = GT_LAYOUT
IT_FIELDCAT = GT_FIELDCAT
TABLES
T_OUTTAB = GT_FINAL.
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
DATA: GWA_FINAL LIKE GT_FINAL.
CASE R_UCOMM.
WHEN 'KUNNR'.
READ TABLE GT_FINAL INTO GWA_FINAL INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SET PARAMETER ID 'KUN' FIELD GWA_FINAL-KUNNR.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.TYPE-POOLS SLIS.
DATA: BEGIN OF GT_FINAL OCCURS 0,
KUNNR LIKE KNA1-KUNNR,
NAME1 LIKE KNA1-NAME1,
END OF GT_FINAL.
* ALV
DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
GT_LAYOUT TYPE SLIS_LAYOUT_ALV,
GT_REPID LIKE SY-REPID.
DATA: FL_INPUT_OFF.
START-OF-SELECTION.
SELECT KUNNR NAME1 INTO TABLE GT_FINAL
UP TO 20 ROWS
FROM KNA1.
GT_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = GT_REPID
I_INTERNAL_TABNAME = 'GT_FINAL'
I_INCLNAME = GT_REPID
CHANGING
CT_FIELDCAT = GT_FIELDCAT[].
GT_LAYOUT-F2CODE = 'KUNNR'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GT_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = GT_LAYOUT
IT_FIELDCAT = GT_FIELDCAT
TABLES
T_OUTTAB = GT_FINAL.
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
DATA: GWA_FINAL LIKE GT_FINAL.
CASE R_UCOMM.
WHEN 'KUNNR'.
READ TABLE GT_FINAL INTO GWA_FINAL INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SET PARAMETER ID 'KUN' FIELD GWA_FINAL-KUNNR.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM. TYPE-POOLS SLIS.
DATA: BEGIN OF GT_FINAL OCCURS 0,
KUNNR LIKE KNA1-KUNNR,
NAME1 LIKE KNA1-NAME1,
END OF GT_FINAL.
* ALV
DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
GT_LAYOUT TYPE SLIS_LAYOUT_ALV,
GT_REPID LIKE SY-REPID.
DATA: FL_INPUT_OFF.
START-OF-SELECTION.
SELECT KUNNR NAME1 INTO TABLE GT_FINAL
UP TO 20 ROWS
FROM KNA1.
GT_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = GT_REPID
I_INTERNAL_TABNAME = 'GT_FINAL'
I_INCLNAME = GT_REPID
CHANGING
CT_FIELDCAT = GT_FIELDCAT[].
GT_LAYOUT-F2CODE = 'KUNNR'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GT_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = GT_LAYOUT
IT_FIELDCAT = GT_FIELDCAT
TABLES
T_OUTTAB = GT_FINAL.
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
DATA: GWA_FINAL LIKE GT_FINAL.
CASE R_UCOMM.
WHEN 'KUNNR'.
READ TABLE GT_FINAL INTO GWA_FINAL INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SET PARAMETER ID 'KUN' FIELD GWA_FINAL-KUNNR.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
Max -
How to do transactions in jsp pages using Java & MySQL ?
Hi,
I'm a newbie..
I'd like to know "How to do transactions in jsp pages using Java & MySQL ?"
Platform: Windows XP, Apache Tomcat 5.5, MySQL 5, Java bean without EJB
what are the the different types of transactions? Differences between them?Pls provide examples?
Which among them is the best method to implement a transaction?
Pls help me...
thnx in advance...http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
-
How to call RFC in Async Mode using TCP/IP RFC Destination ?
Hi experts,
Can anybody tell me how to call an Async RFC using TCP/IP RFC Destination ?
Regards,
UmeshCheck the link
http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/content.htm
It says
<b> For asynchronous calls, no connection to external systems is possible (TCP/IP connections in transaction SM59).</b>
Regards,
Abhishek -
How to call one report2 from report1 using report1 selection screen
hi experts,
iam presently working in report1.
now, from my report1, i want to call report2 with report1 selection screen.
how to call?
thanks in advance.Below is an sample example, from where i am calling transaction MB5B (Report-RM07MLBD).
Here i am using selection screen data from report ZTEST and passing it to RM07MLBD.
REPORT ZTEST
DATA : listtab LIKE abaplist OCCURS 1.
DATA : listtab_tmp LIKE abaplist OCCURS 1.
DATA : N TYPE n.
*DATA mseg_wa TYPE mseg.
*SELECT-OPTIONS s_matnr for mseg_wa-matnr.
*SELECT-OPTIONS S_WERKS for Mseg_wa-WERKS.
PARAMETERS : S_MATNR LIKE MSEG-MATNR,
S_WERKS LIKE MSEG-WERKS,
S_CHARG LIKE MSEG-CHARG.
DATA MKPF_WA TYPE MKPF.
SELECT-OPTIONS S_BUDAT FOR MKPF_WA-BUDAT.
REFRESH listtab.
CALL FUNCTION 'LIST_FREE_MEMORY'
TABLES
listobject = listtab.
SUBMIT RM07DOCS using SELECTION-SCREEN '1000'
WITH matnr = S_MATNR
WITH werks = S_WERKS
WITH charg = S_CHARG
WITH budat-low = S_BUDAT-low
WITH budat-high = S_BUDAT-high EXPORTING LIST TO MEMORY AND RETURN .
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listtab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DESCRIBE TABLE listtab LINES n .
CALL FUNCTION 'WRITE_LIST'
EXPORTING
write_only = 'X'
TABLES
listobject = listtab
EXCEPTIONS
empty_list = 1
OTHERS = 2.
IF sy-subrc = 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to call transaction in an abap program
how do we open a transaction thru an abap program and pass a parameter to it
Use call transaction. You can fill up the parameters in the BDC internal table
DATA: bdc_tab LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
CONSTANTS: c_tcode LIKE t130m-tcode VALUE 'FB01'. "Tcode you want to call
CALL TRANSACTION c_tcode
USING bdc_tab
MODE 'N'
UPDATE 'S'
MESSAGES INTO messtab.
Error message will be captured in the messtab.
You can goto the SAP help on Call transaction to see all the details and options.
<b><REMOVED BY MODERATOR></b>
Thanks.
Message was edited by:
Alvaro Tejada Galindo -
How to call transaction MRKO in background
Hi All,
I want to call transaction MRKO in foreground step in workflow.
After calling transaction I want to get the posted document number.
I do not have any information prior to calling transaction regarding input fields for MRKO. User can put anything and settle consignment.
Next step in workflow needs information, like posted document number from MRKO to do further processing ..
How can I achieve this?
Thanks ,
Vinaya.Hi,
you have to define a handler for the event hotspot_click of class CL_GUI_ALV_GRID, if you are using that class. If you are using class CL_SALV_TABLE maybe class CL_SALV_EVENTS_TABLE may help you.
Regards,
Klaus -
Calling Transaction from other system using RFC
Hi ,
I have one button on screen(say Screen-A), in ECC. when its pressed the transaction '/SAPAPO/BOPIN' gets called from APO.
For calling transaction from APO I am using FM - 'ABAP4_CALL_TRANSACTION'.
I want the initial screen of that transaction to retain some values which I fill on the Screen-A(the screen which has that button).
When I call the transaction from ECC itself (ex. C006), the initial screen of C006 retains the value on Screen-A.
I want the same to happen in case of calling transaction from APO.
How to achieve this? Would it need the changes in IMG (SPRO)?
Please note that, Screen-A is initial screen of transaction 'md05' and I want to retain vaules of Material, MRP Area, Plant.
Thanks,
SujeetBuilld a RFC enabled FM () that wrap the call of Smartforms (*) in the other system.
Regards,
Raymond
(*) [Writing Remote Function Modules in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/22/0425f2488911d189490000e829fbbd/content.htm]
(**) [Integrating the Smart Form into the Application|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] -
How to get Subtotal text in ALV using OOPS
hi,
Can any one pls help me out getting <b>subtotals text</b> in ALV using OOPS concepts....Pls provide me if any of u have sample code for that......
my code:
data:gr_grid_d0100 type ref to cl_gui_alv_grid.
data : gr_events_d0100 type ref to lcl_events_d0100.
classes**********
class lcl_events_d0100 definition.
public section.
methods:
subtotal_text for event subtotal_text
of cl_gui_alv_grid
importing es_subtottxt_info
ep_subtot_line
e_event_data.
endclass.
class lcl_events_d0100 implementation.
method subtotal_text.
perform d0100_event_subtotal_text using es_subtottxt_info
ep_subtot_line
e_event_data.
endmethod. "subtotal_text
endclass.
data : gr_event_handler type ref to lcl_events_d0100.
SET HANDLER gr_event_handler->subtotal_text FOR wcl_alv_grid_request
FORM d0100_event_subtotal_text USING
es_subtottxt_info TYPE LVC_S_STXT
ep_subtot_line TYPE REF TO data
e_event_data TYPE REF TO cl_alv_event_data.
DATA: l_text TYPE string.
l_text = es_subtottxt_info.
FIELD-SYMBOLS: <fs> TYPE ANY.
ASSIGN e_event_data->m_data->* TO <fs>.
<fs> = text-007.hi vijay
check this code
if you want to use field symbols.
data: total type ref to data,
subtotal1 type ref to data.
field-symbols <total> like gt_sflight.
field-symbols <subtotal1> like gt_sflight.
call method grid1->get_subtotals
importing
ep_collect00 = total
ep_collect01 = subtotal1.
assign total->* to <total>.
assign subtotal1->* to <subtotal1>.
or u can use
U have to do the subtotal column wise.In the field catalog specify the following in addition to the corresponding field name(i.e. Column)
DATA ls_fcat TYPE lvc_s_fcat.
ls_fcat-do_sum = 'X'.
Hope this helps u out.
Thanks & Regards,
naveen -
How to call PL/SQL stored procedure using ODBC?
Could anyone tell me how can I call PL/SQL stored procedure using
ODBC? Are there any sample codes?
Thanx!
nullYou are correct on all counts, they all should work.
Oracle Product Development Team wrote:
: Hi,
: I don't know the exact syntax in ODBC, but reasoning by analogy
: with other API's, I'd bet one of the following works
: (for a call to: procedure my_proc(n1 number, n2 number);):
: "{ my_proc(1,2); }"
: "{ call my_proc(1,2); }"
: "{ begin my_proc(1,2); end }"
: "begin my_proc(1,2); end;"
: "begin my_proc(1,2); end"
: Hope this helps. - Pierre
: jiangbuf (guest) wrote:
: : Could anyone tell me how can I call PL/SQL stored procedure
: using
: : ODBC? Are there any sample codes?
: : Thanx!
: Oracle Technology Network
: http://technet.oracle.com
null -
How to call a sales order form using a parameter?
hi
i am creating a custom form and upon quering the form i am getting all the records
and
i have a button and when i click on that button it should take me to oracle apps order form ?
what i tried doing ?
IF :parameter.actions='Order' THEN
v_startup_mode := 'ORDER';
v_header_id :=:SSWMS_SHIPMENT_LINES.ORDER_HEADER_ID;
FND_FUNCTION.EXECUTE(
FUNCTION_NAME=>:parameter.call_function,
OPEN_FLAG=>'Y',
SESSION_FLAG=>'Y',
ACTIVATE_FLAG=>'ACTIVATE',
OTHER_PARAMS=>'STARTUP_MODE="'||v_startup_mode||'" HEADER_ID="'||v_header_id||'"');
END IF;
i am doing for that line id? can someone help me as how to call this form?
sudharshanHi Prashanth,
I dont think so OPEN_FORM will work out here.
If we want to call new form/open form insted of using call_form / open_form/ New _form
we need to use FND_FUNCTION.EXECUTE which allows you to open forms without bypassing Oracle Applications security, and takes care of finding the
correct directory path for the form.
here FND_FUNCTION.EXECUTE is similar to APP_NAVIGATE.EXECUTE,
except that APP_NAVIGATE.EXECUTE allows a form to be restarted if
it is invoked a second time.
So in the parameters of FND_FUNCTION.EXECUTE,
open_flag indiacates Y/N.
’Y’ indicates that OPEN_FORM should be used;
’N’ indicates that NEW_FORM should be used.
You should always pass ’Y’ for open_flag, which
means to execute the function using the Oracle
Forms OPEN_FORM built–in rather than the
NEW_FORM built–in
i think sudharshan is using the right method FND_FUNCTION.EXECUTE.
--Basava.S -
How to call transaction in workflow
Hi All,
I want to call transaction in my workflow .
Can anyone tell me about it?Hi,
first create activity task in workflow. create a new methos inside BO.
Then call the FM 'ABAP4_CALL_TRANSACTION' in the BO method.
use this FM for call transaction from ABAP code.
Regards,
Jyothi CH. -
How to call a method in onload using jsf
Hi
i have task where i neeed to retrive datas from database on page onload . i have written retriving code in backing bean but how to call that
method on onload in jsf.......
Can anybody help ???????????
thankspublic class firstbean{
list mylist = new ArrayList();
firstbean(){
new firstcontroller().retriveData()
public class firstcontroller{
public void retriveData(){
// I need to get first bean object reference to assign the retived data to my list variable(mylist)
// but iam getting first bean object object as nulll
Object object =
FacesContext
.getCurrentInstance()
.getExternalContext()
.getSessionMap()
.get("FirstBean");
FirstBean firstBean = (FirstBean)object;
// firstBean = null its coming
firstBean.mylist = new FirstDao().getdata();
this is my code how to implement the onload function in this login . here when i try accesss my first bean reference is showing as null . so aim not able to assign the retrived data in to mylist variable
Maybe you are looking for
-
Hi, I am trying to update a mobile devices names. Initially, I changed the iOS device name (Settings->General->About->Name) and then I also renamed the device in the Intune app on the device. Neither of these changes are propagating through to the
-
Integration Directory configurations for IDOC - XI - File
Hi all, I have a scenario as above: IDOC-XI-FILE The IDOCs come from an R/3 system - NHGDDBS01. I've configured 2 BS: 1) BS_NHGDDBS01 -> TS: NHGDDBS01, type: WebAS ABAP -> SWCV: BASIS 6.20 2) BS_DEV1_NAUTICUS_OOTS -> TS: TS_DEV1_NAUTICUS_OOTS, type:T
-
My IE 10 broswer won't recognize that I have updated my Flash Player to version 11
My IE 10 broswer doesn't recognize that I've updated to Flash Plyer version 11? It continues to tell me I don't have it - even when I can see it is on my program files (?)
-
Created a BPEL process (10.1.2.0.0) to access a stored procedure in a 10gR1 database and using the emp table. The PartnerLink references the stored procedure which takes a number (empno) and is to return the ename and sal corresponding to the empno.
-
Web Services with HTTP Basic Auth
Hi, I am having a problem connecting to web services which require HTTP Basic Authentication from a Flex application. I have useProxy set to true and call setRemoteCredentials prior to attempting the call, but the credentials do not appear to be set