Call program screen in ABAP Report
I have a execute program which match to a transaction, in the program, which will generate a selection screen and do selection. After that, the program will call another program screen to do somethings, i want to know can i call program's screen in my execute report, thanks
Hi
To Call the Transaction :
CALL TRANSACTION '<TCODE>' AND SKIP FIRST SCREEN.
To call a Report :
SUBMIT <REPORT> USING SELECTION-SCREEN <NO>.
<b>Reward if Helpful</b>
Similar Messages
-
How to call a sub screen from abap report
Hellow friends,
how to call sub screen 1001 prog name SAPLMGD1
and main program SAPLMGMM screen 4000 of tcode MM02.
i need to call the sub screen from abap reportHi Rajesh,
You can use FM MATERIAL_MAINTAIN_DIALOGUE to go to subcreen MRP1 in MM02.
Please check this sample code from other thread and enter 'MRP 1' for p_dytxt.
REPORT zsritest.
TABLES mara.
DATA: lv_bilds LIKE t133a-bilds,
ls_t130m LIKE t130m,
ls_rmmg1 LIKE rmmg1,
lwa_view TYPE mbildtab,
lwa_auswg TYPE mgauswg,
lt_views TYPE STANDARD TABLE OF mbildtab INITIAL SIZE 0,
lt_auswg TYPE STANDARD TABLE OF mgauswg INITIAL SIZE 0.
PARAMETERS: p_matnr LIKE mara-matnr,
p_werks LIKE marc-werks,
p_dytxt LIKE mbildtab-dytxt.
SELECT SINGLE * FROM mara WHERE matnr EQ p_matnr.
CHECK sy-subrc EQ 0.
CALL FUNCTION 'T130M_SINGLE_READ'
EXPORTING
tcode = 'MM02'
kzrfb = 'X'
IMPORTING
wt130m = ls_t130m
EXCEPTIONS
not_found = 1
wrong_call = 2
OTHERS = 3.
CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'
EXPORTING
branche = mara-mbrsh
materialart = mara-mtart
tcode_ref = ls_t130m-trref
* KZRFB = ' '
IMPORTING
bildsequenz = lv_bilds
* KZ_BILDS_CHANGED =
EXCEPTIONS
wrong_call = 1
not_found = 2
OTHERS = 3.
CALL FUNCTION 'SELECTION_VIEWS_FIND'
EXPORTING
bildsequenz = lv_bilds
pflegestatus = mara-pstat
TABLES
bildtab = lt_views[]
EXCEPTIONS
call_wrong = 1
empty_selection = 2
OTHERS = 3.
ls_rmmg1-matnr = mara-matnr.
ls_rmmg1-werks = p_werks.
READ TABLE lt_views INTO lwa_view WITH KEY dytxt = p_dytxt.
CHECK sy-subrc EQ 0.
lwa_auswg-auswg = lwa_view-auswg.
APPEND lwa_auswg TO lt_auswg.
CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'
EXPORTING
irmmg1 = ls_rmmg1
* IRMMG1_REF = ' '
KZ_EIN_DARK = 'X'
t_tcode = 'MM02'
* FLG_MATNR_RES = ' '
p_pstat = mara-pstat
* FLG_STAT_ALL = ' '
* CALL_MODE2 = ' '
* IMPORTING
* MATERIAL_NO =
* UPDATE_OK =
TABLES
iauswg = lt_auswg[]
EXCEPTIONS
no_authority = 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.
Regards,
Ferry Lianto -
Calling IP function in ABAP report
Hi guys,
I would like to execute a planning function of BIIP from an ABAP report. Which function module has to be used or is there a different approach? For the old BPS planning function there was the API_SEM_BPS....
Regards
StefanHi Stefan,
I think there is no way to call a planning function of IP in a report. But we can call planning sequences using the program
RSPLS_PLSEQ_EXECUTE.
In your case, you can create a planning sequence which contains the planning function and filter, and in your ABAP report, call the program RSPLS_PLSEQ_EXECUTE using the statement SUBMIT.
Also, you can use the statement SUBMIT VIA SELECTION-SCREEN which will prompt you to give the Planning Sequence name at run-time of the execution of the ABAP report.
Hope this helps.
Please revert if unresolved.
Regards,
Srinivas Kamireddy. -
Calling a proxy from ABAP Report
Hi All,
Can any one gimme some idea about calling a XI proxy from ABAP Report.
I need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
Thanks in advance.
Tnx,
Joe.Hi Meetjoe,
We have to design the required interface in PI ,that is used to hold the report data when tigerred a proxy and generate the proxy based on the interface if the Proxy is based on the Outbound side its called client proxy or if the proxy is genereated on Inbound interface we call it server proxy.
need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
In your case its gonna be the client proxy refer the follwing links for your better understanding
For concepts on Proxies:
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
To enable Proxy connections:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d69314-1be0-2b10-11ab-8045021f0c3a
Smaple scenarios on Proxy:
Proxysettings /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
ABAP Server Proxy /people/siva.maranani/blog/2005/04/03/abap-server-proxies
ABAP Client Proxy /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Thanks,
Ram. -
Problem in calling Client proxy using ABAP Report
All Your inputs and various threads were really helpful . i have followed this blog as well /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Now after all while trying to pass values to proxy i have an issue : in the above blog there is a small pinch of code for referencing the proxy through an abap report.
i.e. &----
*& Report ZBLOG_ABAP_PROXY
REPORT zblog_abap_proxy.
DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
CREATE OBJECT prxy.
DATA it TYPE zblogemp_profile_msg.
TRY.
it-emp_profile_msg-emp_name = 'Sravya'.
it-emp_profile_msg-empno = '80101'.
it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
now instead of the DT being in this way : i.e. :
EMPProfile_MSG OCCURENCE
EmpNo 1
EmpName 1
DeptName 1
Instead if the DT / MT for which the proxy is generated is in this format for table data input then whats the way ?
EMPProfile_MSG OCCURENCE
.....Item 0..Unbounded
...........A 1
...........B 1
...........C 1
...........D 1
Please advice,
KrishnaHi,
Did you create a Data type,message type and Message interface and generated the proxy in trnx SPROXY?
If so, then a class gets created like ZCO...........
under which, structure gets created as you did in IR of XI.
Need to implement a BADI and Ztable on the Abap stack.So you get the values dynamically to your proxy.
For each change in your emp details,there will be a record in Ztable.
Hope you understand this.
Regards,
Joslyn -
Issue in Selection Screen of ABAP report after executing it using TCode
Hi,
I have one Z program having a selection screen for it. One selection variable is non editable for the users (has default value) whereas user can enter the value in other selection variable.
To make the first variable non editable, I have used the following code.
INITIALIZATION.
LOOP AT SCREEN.
IF screen-name = 'P_USER'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Now when I execute this program from SE38, it works fine. But when I execute it using a Tcode (assigned in SE93), the first variable also become editable for users.
How can I keep the first variable non editable even after executing the program using a Tcode?
Regards,
YogeshHi,
It seems you create a Transaction type: Dialog transaction.
Delete current transaction and create one with Transaction type: Report transaction (radio button in row 2nd)
regards, -
Selection screen in abap report
Hi,
I am using 2 selection options in my report.
But the list of values for second selection options is depends on the selected value in the first selection option.
how to do this.
because i cant use selected value of first option in AT-SELECTION point.Hi again,
1. There are 2 list box on selection-screen.
2. 1st shows all company code, and company text.
3. On selecting the first,
the second is populated.
(it selects again from T001
and shows the same company information)
4.
REPORT abc.
TYPE-POOLS: vrm.
DATA: it_val TYPE vrm_values.
DATA: ekk TYPE vrm_values.
Sel Screen.
PARAMETERS p_diff LIKE t001-bukrs AS LISTBOX
VISIBLE LENGTH 16
USER-COMMAND ab.
PARAMETERS hh LIKE ekko-ebeln AS LISTBOX
VISIBLE LENGTH 16 .
AT SELECTION-SCREEN OUTPUT.
REFRESH it_val.
CLEAR it_val.
SELECT bukrs butxt FROM t001 INTO TABLE it_val.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_DIFF'
values = it_val.
Second List Box
REFRESH ekk.
CLEAR ekk.
SELECT bukrs butxt
FROM t001
INTO TABLE ekk
WHERE bukrs = p_diff.
clear hh.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'HH'
values = ekk.
regards,
amit m. -
Call .html file in ABAP report (se38)
Hi,
My question is, is it possible to call and execute an html file in a report?
For example, you have 2 containers in the report, 1 is for the html part and the 2nd for some ALV table (which is not the problem in this discussion).
The HTML part is a separate .html file on the server which works with a few .js files called in it.
I've done some research but couldn't find anywhere how read the HTML file in a report, and to work just like it does in a browser.
All I found was how to create a javascript from a report (only some simple examples like show a string..), or how to create an HTML file from a report and execute it in se38, but instead I need to know how to read an HTML in the report and place it in a container (which is a little more complex because of all the javascripts that it calls within).
Can anybody help me with this?
Thanks!I saw this program but I couldn't figure out where is this called from: document_url = 'HTMLFrame1.htm' on line 100.
To be more precise i need to call this HTML file which is on the server, and i need it to be executed in the container of the report, alongside with the javascript files it calls within:
<!doctype html>
<html>
<head>
<title>Essential Studio for JavaScript : Radial Gauge - Default</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8">
<link href="bootstrap.min.css" rel="stylesheet">
<link href="ej.widgets.all.min.css" rel="stylesheet" />
<link href="default.css" rel="stylesheet" />
<link href="default-responsive.css" rel="stylesheet" />
<script src="jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="jquery.easing.1.3.min.js" type="text/javascript"></script>
<script src="excanvas.min.js" type="text/javascript"></script>
<script src="ej.web.all.min.js" type="text/javascript"></script>
<script src="properties.js" type="text/javascript"></script>
</head>
<body>
<div class="content-container-fluid">
<div class="row">
<div class="cols-sample-area" align="center">
<div id="circularframe">
<div id="CoreCircularGauge">TEXT
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$("#CoreCircularGauge").ejCircularGauge({
backgroundColor: "transparent", width: 500, load: "loadGaugeTheme",
scales: [{
showRanges: true,
startAngle: 122, sweepAngle: 296, radius: 130, showScaleBar: true, size: 1, maximum: 120, majorIntervalValue: 20, minorIntervalValue: 10,
border: {
width: 0.5,
pointers: [{
value: 100,
showBackNeedle: true,
backNeedleLength: 20,
length: 95,
width: 7,
pointerCap: { radius: 12 }
ticks: [{
type: "major",
distanceFromScale: 2,
height: 16,
width: 1, color: "#8c8c8c"
}, { type: "minor", height: 8, width: 1, distanceFromScale: 2, color: "#8c8c8c" }],
labels: [{
color: "#8c8c8c"
ranges: [{
distanceFromScale: -30,
startValue: 0,
endValue: 70
distanceFromScale: -30,
startValue: 70,
endValue: 110,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
distanceFromScale: -30,
startValue: 110,
endValue: 120,
backgroundColor: "#f5b43f",
border: { color: "#f5b43f" }
</script>
</body>
</html> -
Call transaction from the ABAP report
Hi Gurus,
Please help me with suggestion. I would like to access from SAP report with double click transaction FB03. I can access it, but in old transaction view ... How can I get the new transaction view?
Here is the code,
BR
Saso
IF fieldname CS 'BELNR'.
PERFORM bdc_screen USING 'SAPMF05L' '100'.
PERFORM bdc_field USING 'RF05L-BELNR' fieldvalue.
PERFORM bdc_field USING 'RF05L-BUKRS' '0008'.
PERFORM bdc_field USING 'RF05L-GJAHR' int-gjahr.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
CALL TRANSACTION 'FB03' USING bdc_data MODE 'E'.
REFRESH bdc_data.
ENDIFTry this Example:
REPORT ZABHI_TABSTRIP NO STANDARD PAGE HEADING
LINE-SIZE 80 LINE-COUNT 60.
TABLES : sscrfields.
DATA activetab(6) TYPE c .
DATA mat_des TYPE makt-maktx.
DATA pl_des TYPE t001w-name1 .
DATA mat_gro TYPE mara-mbrsh .
DATA mat_typ TYPE mara-mtart .
SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN NO INTERVALS.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-002 NO INTERVALS.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 14(18) text-010 FOR FIELD matnr.
PARAMETERS matnr TYPE mara-matnr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK block1.
SELECTION-SCREEN END OF SCREEN 001.
SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN NO INTERVALS.
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-003 NO INTERVALS.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 14(18) text-020 FOR FIELD matnr.
PARAMETERS werks TYPE t001w-werks.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK block2.
SELECTION-SCREEN END OF SCREEN 002.
SELECTION-SCREEN BEGIN OF SCREEN 003 AS SUBSCREEN NO INTERVALS.
SELECTION-SCREEN BEGIN OF BLOCK block3 WITH FRAME TITLE text-004 NO INTERVALS.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 14(18) text-030 FOR FIELD matnr.
PARAMETERS mbrsh TYPE mara-mbrsh.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK block3.
SELECTION-SCREEN END OF SCREEN 003.
SELECTION-SCREEN BEGIN OF SCREEN 004 AS SUBSCREEN NO INTERVALS.
SELECTION-SCREEN BEGIN OF BLOCK block4 WITH FRAME TITLE text-005 NO INTERVALS.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 14(18) text-005 FOR FIELD matnr.
PARAMETERS mtart TYPE mara-mtart.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK block4.
SELECTION-SCREEN END OF SCREEN 004.
SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 5 LINES NO INTERVALS.
SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1
DEFAULT SCREEN 002.
SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2 .
SELECTION-SCREEN TAB (15) tabs3 USER-COMMAND ucomm3.
SELECTION-SCREEN TAB (15) tabs4 USER-COMMAND ucomm4.
* DEFAULT SCREEN 002 .
SELECTION-SCREEN END OF BLOCK tabb1.
INITIALIZATION.
tabs1 = text-002.
tabs2 = text-003.
tabs3 = text-004.
tabs4 = text-005.
activetab = 'TABS1'.
AT SELECTION-SCREEN .
CASE sscrfields-ucomm.
WHEN 'UCOMM1'.
tabb1-prog = sy-repid.
tabb1-dynnr = 001.
tabb1-activetab = 'TABS1'.
activetab = 'TABS1' .
WHEN 'UCOMM2'.
tabb1-prog = sy-repid.
tabb1-dynnr = 002.
tabb1-activetab = 'TABS2'.
activetab = 'TABS2'.
WHEN 'UCOMM3'.
tabb1-prog = sy-repid.
tabb1-dynnr = 003.
tabb1-activetab = 'TABS3'.
activetab = 'TABS3'.
WHEN 'UCOMM4'.
tabb1-prog = sy-repid.
tabb1-dynnr = 004.
tabb1-activetab = 'TABS4'.
activetab = 'TABS4'.
ENDCASE.
START-OF-SELECTION.
CASE activetab.
WHEN 'TABS1'.
SELECT SINGLE maktx FROM makt INTO pl_des WHERE matnr = matnr.
WRITE: 'Material ' , matnr , mat_des .
WHEN 'TABS2'.
SELECT SINGLE name1 FROM t001w INTO pl_des WHERE werks = werks.
WRITE: 'Plant ' , werks ,pl_des.
WHEN 'TABS3'.
SELECT SINGLE mbrsh FROM mara INTO mat_gro WHERE mbrsh = mbrsh.
WRITE: 'Material Group ' , mbrsh ,mat_gro.
WHEN 'TABS4'.
SELECT SINGLE mtart FROM mara INTO mat_typ WHERE mtart = mtart.
WRITE: 'Material Type ' , mtart , mat_typ.
ENDCASE.
And let me know. -
Hi ALL,
My requirement is something like this..
i have to put an button in the report program so that whenevr i press the button
the screen must be captured and should be saved as a picture file in the location i specify.
any one knows how can i achieve this?
i know to copy it to the XL using ALV's but how can i copy it as a snapshot of the report?
any idea?
Thanks a lot
regards
GururajIf it needs to be a picture file, you can do this:
1. While viewing the report, hold down the Alt key and hit your Print Screen key.
2. Now open up a program such as MS Paint or Photo Editor and choose "Edit --> Paste as New Image". Now you can choose where to save it and under what name.
If it can be a spreadsheet, word processor file, etc., you can do this:
1. While viewing the report, go up to the top menu bar and select "System --> List --> Save --> Local File".
2. Choose the type of file you would like to create and click on the checkmark.
3. In the next pop-up, type in the path and file name for your output and click on the Save button.
I hope this helps.
- April King -
Calling custom Infotype method from ABAP report
Hi Experts,
I am working on an application where i need to call a method of a custom defined infotype.
I have done this -->
1. Create a custom infotype 9111
2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
i want to call methods IF_HRPA_INFTY_BL~MODIFY,
IF_HRPA_INFTY_BL~INSERT
However when i call these method from abap report this method does not work.
where as when i try to insert an entry using PA30 transaction it works.
Does anyone know why does this happen and what is the solution?
Regards,
Ashish ShahHi,
This is the code we are using. Just calling the read and modify methods of the check class. Very simple actually .. we just want once update/insert to work but it does not.
<CODE>
REPORT ZTESTRAD_WD.
FIELD-SYMBOLS <p9106> TYPE p9106.
DATA : infty_container_tab TYPE hrpad_infty_container_tab ,
message_list TYPE REF TO cl_hrpa_message_list,
w_ok type boole_d ,
ref_class TYPE REF TO ZCL_HRPA_INFOTYPE_9106,
container TYPE REF TO if_hrpa_infty_container,
it9106_container TYPE REF TO cl_hrpa_infotype_container,
p9106_ref TYPE REF TO data,
busilog type ref to if_hrpa_masterdata_bl.
CREATE OBJECT message_list.
TRY.
CREATE OBJECT ref_class
EXPORTING
tclas = 'A'
infty = '9106'.
CATCH cx_hrpa_violated_assertion .
write :/ 'Error during initialization'.
ENDTRY.
call method cl_hrpa_masterdata_bl=>get_instance
importing
masterdata_bl = busilog.
TRY.
CALL METHOD ref_class->IF_HRPA_INFTY_BL~read
EXPORTING
tclas = 'A'
pernr = 'XXXXXXXX'
infty = '9106'
begda = sy-datum
endda = sy-datum
no_auth_check = abap_true
message_handler = message_list
IMPORTING
container_tab = infty_container_tab
is_ok = w_ok.
CATCH cx_hrpa_violated_assertion .
WRITE :/ 'Infotype could not be read'.
ENDTRY.
*" Fill the local structure with container data:
loop at infty_container_tab into container.
it9106_container ?= container.
TRY.
CALL METHOD it9106_container->primary_record_ref
IMPORTING
pnnnn_ref = p9106_ref.
CATCH cx_hrpa_violated_assertion .
ENDTRY.
ASSIGN p9106_ref->* to <p9106>.
write :/ <p9106> .
endloop.
*" Just change some field values of the record
<p9106>-C1name2 = 'Test name'.
<p9106>-C2name2 = 'Test name 2 3 4'.
data : return TYPE BAPIRETURN1,
return1 TYPE BAPIRETURN1.
*CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = <p9106>-pernr
IMPORTING
RETURN = return1
*PERFORM do_nothing(sapfp50p).
The container itself is modified
container ?= it9106_container->modify_primary_record( <p9106> ).
CREATE OBJECT message_list.
the invocation - errors are always fatal !!!
DATA : lx_exception TYPE REF TO cx_root,
update_mode type HRPAD_UPDATE_MODE,
massn type massn,
massg type massg.
TRY.
CALL METHOD ref_class->IF_HRPA_INFTY_BL~MODIFY(
EXPORTING
old_container = it9106_container
massn = massn
massg = massg
update_mode = update_mode
no_auth_check = 'X'
message_handler = message_list
IMPORTING
is_ok = w_ok
CHANGING
container = container
CATCH cx_hrpa_violated_assertion INTO lx_exception.
RAISE EXCEPTION TYPE cx_wd_no_handler
EXPORTING previous = lx_exception.
ENDTRY.
</CODE>
I have also tried by instantiating the cl_hrpa_masterdata_bl and then calling the methods on that object...... makes no difference.
I used this link to proceed with the modifications:
http://help.sap.com/saphelp_erp2005/helpdata/en/43/21d2254bba2bebe10000000a1553f7/frameset.htm
The funny thing is that the WHOLE logic executes without any error messages or dumps or anything. I have now debugged almost every line of code that these methods call. PA30 works just fine. HR_INFOTYPE_OPERATION does not .. that's a whole differnt story. -
Can we call screen from ALV report
Hi All,
I am in the process of creating a stand alone application. However I have stuck up here.
Problem: Can we call any screen from ALV report? If yes then how??? Can anyone give some code snippet??
All your help appreciated.
Thanks,
JigneshHello Jignesh,
Here is an example, when you double click on a line, it pops with with another screen that holds details for the flight information.
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
handle_double_click FOR EVENT double_click
OF cl_gui_alv_grid
IMPORTING e_row
e_column.
ENDCLASS. "lcl_event_handler
CLASS lcl_event_handler IMPLEMENTATION.
METHOD handle_double_click.
READ TABLE it_flight INTO wa_flight INDEX e_row-index.
IF sy-subrc EQ 0.
SELECT * FROM sbook
INTO TABLE it_book
WHERE carrid EQ wa_flight-carrid AND
connid EQ wa_flight-connid.
CALL SCREEN 101 STARTING AT 10 10.
ENDIF.
ENDMETHOD. "HANDLE_DOUBLE_CLICK
ENDCLASS. "LCL_EVENT_HANDLER
MODULE status_0101 OUTPUT.
Variant to save the layout
gv_repid = sy-repid.
IF g_custom_container2 IS INITIAL.
Create an instance for Custom Container 'ALV_GRID'
CREATE OBJECT g_custom_container2
EXPORTING container_name = gs_container2.
Create an instance for ALV Grid
CREATE OBJECT g_grid2
EXPORTING i_parent = g_custom_container2.
Variant to save the layout
gs_layout-grid_title = 'Flight Bookings'.
CALL METHOD g_grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'SBOOK'
is_layout = gs_layout
CHANGING
it_outtab = it_book[].
ELSE.
CALL METHOD g_grid2->refresh_table_display.
ENDIF. "IF grid2 IS INITIAL.
Setting focus for created grid control
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = g_grid2.
CALL METHOD cl_gui_cfw=>flush.
ENDMODULE. " status_0101 OUTPUT
Refer to BC_ALV_GRID04 for ALV data declarations used in the above piece of code. -
Running ABAP Report in background
Hello,
I am getting timed out error when I execute my report program.
I believd running the report can do it for now.
Can you please tell me detils on how I should proceed on dev, qa and production environment.
Regards,
Sameer.Hello Sameer,
You need to schedule the ABAP program in SM36 transaction.
Following are the steps:
1. Fill general data like Job Name, Job class and click on step button from application menu
2. Fill ABAP program details on this screen like ABAP Report Name, Variant Name (If any) and save it.
3. Go to SM37 transaction (Background Job monitor)
4. On initial screen newly created job will be filtered by user name or using job name.
5. it will be listed in job queue with Scheduled status.
6. Select the Job from listing and click on Release button from application toolbar
7. depending on your requirement you can release job immediately and it will start running as an when background wp is allocated to this job.
8. Or else you can schedule it with some frequency using other options like Date/Time, or using other events to trigger it.
Check if this can help.
Thanks,
Augustin. -
Hi All,
I have a client which implemented SAP R/3 and they have certain standard reports like MB5B, VA05 and certain zreports. Now my task is to propose a BW solution for that client. What will be the steps that needs to be done to accomplish this task. help in this regards will be appreciated and awarded.
Thanks all.Hi Pratibha,
If there are too many reports that need to be reproduced in BW then you can club similar reports or belonging to a particular module. And then built datasources for them.
If there very few reports,
1. Find out the program behind the ABAP reports
2. Build a zprogram for the output and put into an FM.
3. Create a direct update DSO in BW on the FM
Let me know if it helps or not.
-Bikas -
Can the functionality of saved lists for query be extended to any ABAP report. I am able to extend the functionality to classical abap reports but I am unable to do the same for Interactive reports. Any inputs on this ?
Ankur BhandariHi Pratibha,
If there are too many reports that need to be reproduced in BW then you can club similar reports or belonging to a particular module. And then built datasources for them.
If there very few reports,
1. Find out the program behind the ABAP reports
2. Build a zprogram for the output and put into an FM.
3. Create a direct update DSO in BW on the FM
Let me know if it helps or not.
-Bikas
Maybe you are looking for
-
Database settings in SQL server
Hi, Please provide SAP's recommendations for Database Settings when upgarding to BPC 7 1.Compatibility Level. Should it be (80) or (100)?
-
Error messages when opening CS5
After performing a disk cleanup in Windows Vista and deleting all I now have two error messages when starting CS5 Click to open and the loading hangs in "scanning for plugins" Then I get the two error messages first one Owl Ophanage:Photoshop.exe E
-
Populate Username on a text field in seeded page
Is it possible to populate some of the text fields in a seeded page with the username who is logged in and accessing the page. Harshad
-
Has anyone done a full install of Win7 RC1 onto a PC built in 2006 or earlier?
I'm thinking of putting RC1 onto a Presario Desktop PC that came with XP and was built in 2006. Has anyone done a full install of Win7 RC1 onto a PC that originally came with XP (built in 2006 or earlier)? I'm curious what the experience was like. Wa
-
X-fi line is fine, but .... something gone wrong. ---) XtremeMusicFlexi-jack is a JOKE to me. I saw it first on the CHEAP SBLi've24 and had to smile.Currently I use both the LINE_IN and MIC on my audigy2.Creative probably wants me make a hole in the