Splitter-container calling standard transaction
We want to create a splitter-container with two elements:
- Left side displays a control tree (this is OK)
- Right side displays a standard transaction such as VA03 (not sure how to do this bit)
Any help would be greatfully received
PeteA
Hi,
Here is a sample program which implements a docking container with a splitter.
data: docking_left type ref to cl_gui_docking_container,
dock_sub_cont1 type ref to cl_gui_container,
dock_sub_cont2 type ref to cl_gui_container,
alv_bottom type ref to cl_gui_alv_grid,
splitter type ref to cl_gui_splitter_container,
html_viewer type ref to cl_gui_html_viewer.
parameters: p_check.
at selection-screen output.
data: it001w type table of t001w with header line.
data: repid type sy-repid.
data: url(255).
repid = sy-repid.
if docking_left is initial.
Create the docking and splitter containers
create object:
docking_left
exporting repid = repid
dynnr = sy-dynnr
side = docking_left->dock_at_left
extension = 525,
splitter
exporting parent = docking_left
rows = 2
columns = 1.
Set the splitters.
call method:
splitter->set_border
exporting border = space,
splitter->get_container
exporting row = 1
column = 1
receiving container = dock_sub_cont1,
splitter->set_row_height
exporting id = 1
height = '25',
splitter->get_container
exporting row = 2
column = 1
receiving container = dock_sub_cont2.
HTML control in the first container
create object html_viewer
exporting parent = dock_sub_cont1
exceptions cntl_error = 1
cntl_install_error = 2
dp_install_error = 3
dp_error = 4.
call method:
html_viewer->load_mime_object
exporting
object_id = 'HTMLCNTL_TESTHTM2_SAPLOGO'
object_url = 'SAPLOGO.GIF'
importing
assigned_url = url
exceptions object_not_found = 1
dp_error_general = 2
dp_invalid_parameter = 3,
html_viewer->show_data
exporting url = url
exceptions cntl_error = 1.
ALV grid in second splitter container.
select * into corresponding fields of table it001w
from t001w.
create object alv_bottom
exporting i_parent = dock_sub_cont2.
call method alv_bottom->set_table_for_first_display
exporting
i_structure_name = 'T001W'
changing
it_outtab = it001w[].
endif.
*Reward points
Regards
Similar Messages
-
Can we call standard transaction from bsp
Hi,
Can anyone tell me how to call a standard transaction(va01) from bsp.
Points will be awarded,
Ugandhar.Hello,
check out this coding in a new bsp page and give it a try in your system landscape. It creates an sap short cut file with the .sap extension writes dynamically to the server cache and get the url back.
Regards, Bernd
Layout:
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title="Start SAP GUI Transaction via BSP" >
<htmlb:form>
<htmlb:textView text = "Start SAP GUI Transaction via BSP"
design = "header1" />
<htmlb:textView layout = "paragraph"
text = "Fill in fields and press the button to create the link." />
<table width=200>
<tr>
<td>
<htmlb:label for = "client"
text = "Client" />
</td>
<td>
<htmlb:inputField id = "client"
value = "<%= client %>" />
</td>
</tr>
<tr>
<td>
<htmlb:label for = "sysid"
text = "SystemID" />
</td>
<td>
<htmlb:inputField id = "sysid"
value = "<%= sysid %>" />
</td>
</tr>
<tr>
<td>
<htmlb:label for = "userid"
text = "UserID" />
</td>
<td>
<htmlb:inputField id = "userid"
value = "<%= userid %>" />
</td>
</tr>
<tr>
<td>
<htmlb:label for = "transactioncode"
text = "Transaction Code" />
</td>
<td>
<htmlb:inputField id = "transactioncode"
value = "<%= transactioncode %>" />
</td>
</tr>
<tr>
<td colspan="2">
<htmlb:button id = "myButton"
text = "Create Link to start SAP Transaction"
onClick = "create_mime" />
</td>
</tr>
</table>
<%
if display_url is not initial.
%>
<htmlb:textView layout = "paragraph"
text = "Click the link to start SAP GUI Transaction." />
<htmlb:link id = "mylink"
reference = "<%= display_url %>"
text = "Link to Start SAP Transaction" />
<%
endif.
%>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Page Atributes:
file_content TYPE STRING
guid TYPE GUID_32
host TYPE STRING
isolangu TYPE T002-LAISO
page_name TYPE STRING
parameters TYPE TIHTTPNVP
port TYPE STRING
sapworkdir TYPE SDOK_CHTRD
sysid TYPE SYSYSID
transactioncode TYPE TCODE
userid TYPE XUBNAME
OnInputProcessing:
* event handler for checking and processing user input and
* for defining navigation
* event handler for data retrieval
event = cl_htmlb_manager=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
button_event ?= event.
IF button_event->server_event NE 'create_mime'.
RETURN.
ENDIF.
* get users workdir
CALL FUNCTION 'IW_C_GET_SAPWORKDIR'
IMPORTING
sapworkdir = sapworkdir.
* get iso language
CALL FUNCTION 'LANGUAGE_CODE_SAP_TO_ISO'
EXPORTING
sap_code = sy-langu
IMPORTING
iso_code = isolangu.
CONCATENATE
'[System]'
cl_abap_char_utilities=>cr_lf
'Name='
sysid
cl_abap_char_utilities=>cr_lf
'Description='
cl_abap_char_utilities=>cr_lf
'Client='
client
cl_abap_char_utilities=>cr_lf
'[User]'
cl_abap_char_utilities=>cr_lf
'Name='
userid
cl_abap_char_utilities=>cr_lf
'Language='
isolangu
cl_abap_char_utilities=>cr_lf
'Password='
cl_abap_char_utilities=>cr_lf
'[Function]'
cl_abap_char_utilities=>cr_lf
'Title='
cl_abap_char_utilities=>cr_lf
'Command='
transactioncode
cl_abap_char_utilities=>cr_lf
'[Configuration]'
cl_abap_char_utilities=>cr_lf
'WorkDir='
sapworkdir
cl_abap_char_utilities=>cr_lf
'[Options]'
cl_abap_char_utilities=>cr_lf
'Reuse=1'
INTO file_content.
CREATE OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
cached_response->set_cdata( file_content ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/octet-stream ' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE guid
'.sap'
INTO page_name.
* get server information
CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
EXPORTING
bsp_application = runtime->application_url
bsp_start_page = page_name
bsp_start_parameters = parameters
IMPORTING
abs_url = display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
ENDIF. -
hello all,
I have to call a standard transaction from Z* program. I want to use the output of the standard transaction into my program how can do this?hi,
FORM call_tcode USING r_ucomm ls_selfield LIKE ls_selfield.
CASE r_ucomm.
WHEN '&IC1'.
IF ls_selfield-fieldname = 'VBELN'.
SET PARAMETER ID 'VF' FIELD ls_selfield-value.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
ENDIF.
IF ls_selfield-fieldname = 'AUBEL'.
SET PARAMETER ID 'BES' FIELD ls_selfield-value.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
regards,
Paras -
Hi all,
I have a requisite to call a standard transaction (SP01) within a Z program but i have to disable one field in the screen of SP01.
Is this possible?
Or there is another way to change the field of SP01 screen?
Regards,
Pedro BessaAfter trying to create a transaction variant for SP01 i got to the conclusion that this method only works for SCREENS and not for selection screens, because what we see when we open the SHD0 put SP01 on it run and press enter the screen that should list all fields is empty.
I've made a z transaction with a screen and it works but not with the selection screen.
So i guess this will not solve my problem. Maybe there is another way to do it...
When we do call transaction sp01 can't we access the selection screen of SP01 and put the field for output only?
Regards,
Pedro Bessa -
How to deny users to call standard transaction variant
Hello!
We have created a variant transaction (ZME52N) for ME52N, and do not
want give authorization to the transaction ME52N for end users.
We unchecked the authorization check in the SE97 for ZME52N-ME52N pair so the authorization check for ME52N does not take place in the function module AUTHORITY_CHECK_TCODE.
However, we noticed that both calling and called transaction is ME52N in the the function module AUTHORITY_CHECK_TCODE, when we executed the variant transaction ZME52N, and obviously the auth check failed.
Is there a way to lock / disable the ME52N instead of uncheck the authorization ?
Thanks in advance!
Regars,
Daniel>
Daniel Kaoro Kobashigawa wrote:
> But this is the point. He wants to disable ME52N for everybody and use the ZME52N instead of ME52N.
Well, I read your question different, you state "We have created a variant transaction (ZME52N) for ME52N, and do not want give authorization to the transaction ME52N for end users. " End users for me is non-technical support for SAP. ME52N will not work for user IDs with SAP_ALL and these are not your typical users. If this is your goal then SM01 is what you want. -
Calling custom dialog screen from Standard Transaction(user Exit)
Hi, I'm calling Standard Transaction from a Custom Screen. I'm calling a custom screen again with in standard transaction (implemented custom screen thru user exits using macros). But when I click 'continue/cancel' in the custom screen, control is going back to main cutom screen rather go back to standard transaction. Could anyone please help me out how to come back to standard transaction from custom screen rather going back to main cutom screen.
***INCLUDE LZ_R_FORWARD_FORWARD_LOADI01 .
*& Module USER_COMMAND_9000 INPUT
MODULE user_command_9000 INPUT.
CASE sy-ucomm.
WHEN 'EXEC'.
PERFORM validate_popup_data.
IF flag_error_screen NE 'X'.
MOVE-CORRESPONDING ZFFL_POPUP to var_ZFFL_POPUP.
clear flag_return.
SET SCREEN 0.
LEAVE SCREEN.
ENDIF.
WHEN 'CANC'.
flag_return = 'X'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN OTHERS.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
*& Module exit_9000 INPUT
MODULE exit_9000 INPUT.
CASE sy-ucomm.
WHEN 'CANC'.
* MOVE perf_flag TO lbpla_exist_flag.
flag_return = 'X'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " exit_9000 INPUT
Thanks in advance.Hi
So the command SET SCREEN 0. LEAVE SCREEN. should "place" the program just after the calling of the popup so here:
FUNCTION z_call_screen.
* Call the Pop up screen
CALL SCREEN 9000 STARTING AT 35 05.
"<------------------------- The program should be here after going back from popup 9000
ENDFUNCTION.
Is it true?
Max -
Call standard SAP transaction in BSP
Hi guys,
I am working in WAS 6.20.
We have separate server for WAS and records fetched from R/3 server.
Now the requirement is i have to call a standard SAP transaction and the output of the standard transaction should be displayed in the BSP output.
Is it possible to call a SAP standard transaction in WAS 6.20.
Is it possible to display the same output in the BSP screen.
Above to all, displayed output should be refreshed automatically for every 20 minutes.
I come with lot of doubts, expecting your reply.
Hopefully waiting for yours reply.
Saravanan. VHi,
Pls check threads like
calling STD SAP transaction in BSP
Calling R/3 Transaction from BSP
Calling standard R/3 transaction from BSP
Calling an SAP transaction from a BSP page
Calling ITS transaction from BSP
Can we call standard transaction from bsp
Eddy
Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details -
Docking container and SAP standard transaction
Hello,
in one screen I have a tree control container and a docking container. With the tree control container everything is perfect. If the user does a click on a node on the tree in the docking container there should be shown a SAP standard transaction (QA03) with the corresponding data.
I have not found a possibility to show QA03 or QM03 in a docking container. I also tried it in a splitter container, but I do not know how.
Can anybody help me?
Greetings
CorinnaHello Corinna
There is a simple answer to your question: it is not possible.
Container can only hold other containers or controls.
Do not be fooled by the ABAP workbench where we apparently can switch between different transactions (e.g. display a class [SE24], show method coding [SE80], double-click on a DDIC structure [SE11]). The ABAP workbench simply changes the control to be displayed but NOT the transaction (remains always the same).
Regards
Uwe -
Problem in calling standard view in nested view container
Hi Experts,
We have a standard SAP component in which there is view containing a TABStrip. In one of the tabs there is a View container. This view container calls another view containing a view container, which in turn calls another standard view of standard component SALV_WD_TABLE. The whole structure is as below:
MAIN(View)->VC_container1(view container)->View1(called view)->VC_Container2(View container in called view)->Table(standard view of SALV_WD_TABLE).
Now we are trying to add one more tab in the same tabstrip and trying to call the the same TABLE view of component SALV_WD_TABLE in the same manner described above. It is allowing us to add the view but when we are activating the enhancement the standard view TABLE of component SALV_WD_TABLE gets disappeared. Can anybody suggest what to do.
Thanks and Regards,
Vaibhav Tiwari.Hi Vaibhav,
My Ques is that are your using the same component usage of salv_wd_table for the Second tab you have added.
Because you are using the component usage of salv_wd_table already in the first tab. So when you are goinig to use the same component usage for the second tab then this problem might will happn i.e. the table is disappeared in the second tab.
Regards
Manoj Kumar -
Can not call RFC contains "call transaction" in webdynpro
We use Webdynpro to develope a UI that can create service orders in CRM
system. We create an RFC funciton "ZKLEE_CRM_ORDER_MODIFY" in CRM,which
contain a statement of "CALL TRANSACTION 'CRMD_BUS2000120' USING T_BDC
MODE 'N' MESSAGES INTO MESSTAB.".
But as we exacute the RFC from WEB,we got 3 error messages in the
output "MESSTAB":
1.MESSAGE ID = "DC",MESSAGE NUMBER = "006", MESSAGE = "Control
Framework: Fatal error - GUI cannot be reached".
2.MESSAGE ID = "SY",MESSAGE NUMBER = "002", MESSAGE = "Exception
condition CNTL_ERROR raised."
3.MESSAGE ID = "00",MESSAGE NUMBER = "359",and it is a terminate
message.
The problem is that we can use webdynpro to call RFCs that do not
contain "call transaction" freely. At first we suspect that it is our
RFC function's fault, but we tried it in ABAP enviroment,and it works
OK. We also tried to call this RFC in JSP through JCO,the same error
occurs.
Our system enviroment is CRM 4.0, J2EE 640, kernel 640 patch 109.HI,
Thank you for your information.
Maybe you are right that BAPI/RFC can not contain "call transaction" statement. But two weeks ago, one of my colleagues tried to use "call transaction" in RFC through JCO in our R/3 enviroment(not in CRM),and he successed.
So I suspect the kernel release. The kernel of R/3 is 640,while CRM is 620(I said our CRM kernel release is 640 before,and it is a mistake.).I will confirm whether what my colleague said is right by myself, and will also told you the result.
Message was edited by: Vincent zklee -
Call a ABAP webdynpro application from a standard transaction.
Hi Gurus,
Can we trigger a webdynpro application on a click of button from a standard transaction as IW31 and pass some of the parameters?
If so, how do we do that?
Please let me know.
Thanks,
DasHi,
You can trigger the webdynpro application on click of a button.
construct the URL dynamically or you can use the URL of the application present in WebDynpro application(if you are sure that if this application run only in this system).
We can display the application either in standard screen using HTML control or we can also open the browser on click of a button on standard screen using the code:
call method cl_gui_frontend_services=>execute
exporting
application = 'www.google.com'
exceptions
others = 1.
For passing the parameters to the application:
1. Create the parameters in the default interface plug of the application.
2. Associate the parameters to the WebDynpro application
3. Pass the parameters to the application by appending to the URL like (¶1=abc¶2=def).
Best regards,
Suresh
P.S. we can define the parameters in the Webdynpro component by defining the importing parameters in the default interface view's inbound plug's method. If we define the importing parameters in the inbound plug (for example DEFAULT plug of the window) then they are visible in the parameters tab in the WD application.
We can receive the parameters in the inbound plug method (HANDLE<plugname>) of the window (interface view associate in application).
Message was edited by:
Suresh Honnappanavar -
How to call Custom screen in standard transaction on same session
Hi ,
I am getting this Problem.
After one of the screen in standard Transaction (CV01N) I need to call one custom screen. for this I created one program type M with screen. in Stan. transaction I am calling like Call transaction 'XXXX'(for above M program).here I am geeting all my required functionality .but I am getting this custom screen in separate session. I want to call this custom screen on same session of std transaction ( means background custom screen is std.screen).
Can any one guide me to achive this functionality;
Regards,
Saida.Hi Agasti,
Thnx for your reply.
I tried that method also. even that also calling the Custom screen in new session not in SAP standard session.
Regards,
Saida -
Does BAPI call the validations defined for standard transactions ?
Hi Experts,
Can anyone tell me if BAPI handles the validations defined for standard transactions ? I have a standard transaction KB15N. Validation defined for a field works fine when run thorugh the transaction. But if same data is updated using BAPI , validations are not getting called and wrong data is updated in the system.
Could you please confirm if BAPI handles validations ? If yes, how to take care of it ?
Best Regards,
V joshiHi Thomas,
Thanks for your quick reply.
I have following condition in the prerequsite of validation
Prerequsite : Transaction code = 'KB15N'
check : Sr cost element > '90000000' AND Sr cost element < '9ZZZZZZZ'
I am using BAPI 'BAPI_ACC_MANUAL_ALLOC_POST' for posting.
Do i need to modify the pre-requisite condition ? Kindly guide.
Regards,
V Joshi -
Calling custom badi in standard transaction
Hi,
Badi is used for enhancements . To enhance the sap standard things there will be some badi definitions avilable .
To activate that definitions we have to implement the badi.Some times we will define the badi in se18 and we will implement in se19. How can we call the custom badi which are created and implemented by us in standard transaction.
Regards,
karthickHi
The custom BAdI will be called when the BAdI definition is getting called.
You can put a breakpoint in any method of your custom BAdI, if the BAdI definition is getting called then it will stop at your breakpoint.
You can also check the BAdI definitions which are getting called by putting breakpoint at method get_instance of class cl_exithandler.
Best Regards,
Nikhil Patil -
Find the call to workflow in standard transaction
Hi,
I have a standard transaction VD02 for SD module.
How to know from where it launches a workflow?
When I put the SAVE button int transaction, the isn´t send. The coupling of events is correct.
ThanksI simulate a event in SWUE with workflow destination and I see in SWEL that the trace is OK, but when I press Save button in transaction, the workflow not send.
I watch, when I press SAVE button in VD03 transaction, trigger CHANGED event FROM standard object BUS1006. The SWEL transaction say to me: "No report recept" because in the workflow I have TOAPROBE event from ZESRKNVV object.
I watch a diferent REPORT CONTROL in TRACE for production environment and development environment. In production the process is correct,
how I can change the program that does the workflow launches?
Maybe you are looking for
-
After performing a clean install on a stock apple 1TB fusion Hard Drive it appears as things got reversed and showing my startup as not using the SSD portion. The SSD portion of the fusion drive used to be on top in disk utility, now its on the bott
-
Create delivery without reference and without movement
Dear All, I have a requirement to create an outbound delivery without reference (the easy bit) but also without movement for normal "FERT" stock items. The reason for the requirement is we have a production planning plant set up and the receiving pla
-
Problem to download a IR to PDF
Hi, I'm trying to download the data from a IR to a PDF, I have already select the Download Formats: CSV, HTML and PDF. I'm able to download but when i'm going to open the file comes a message: " The Adobe Reader cannot open 'myfile.pdf' because there
-
How can I set the spacing between lines in my document?
I am trying to set the spacing in my Pages document. It looks like it is using a space and a half and I would like to change that to just a space.
-
KERN_PROTECTION_FAILURE at 0x0000000000000004
help how do i fix this please