CRIF_RW_WEB_CALL_REPORT
Could please let me know how to use the function Module CRIF_RW_WEB_CALL_REPORT. I am trying to get the values of the report writer using this FM however the FM is stopped on the Selection Screen of the report writer - giving a message "Check the Selection".
Thanks & regards,
Ashish Dalal
Here is the Code:
DATA: lt_params TYPE STANDARD TABLE OF alv_s_param_wp,
lwa_params TYPE alv_s_param_wp,
lwa_msg TYPE bapiret2,
gt_msg TYPE TABLE OF bapiret2,
lv_dcpfm TYPE xudcpfm,
gt_data TYPE STANDARD TABLE OF grwwebdata.
CLEAR:gt_data,
lwa_msg.
REFRESH : gt_data, gt_msg.
* SET REPORT painter paramters
lwa_params-pname = '$PARAMETER[$1KOKRE'.
lwa_params-pvalue = c_ccode. '' (company code = 0010)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1GJAHR'.
lwa_params-pvalue = p_year. (2011)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1PERIV'.
lwa_params-pvalue = s_month-low. " (1)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1PERIB'.
lwa_params-pvalue = s_month-high. "(12)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1VERP'.
lwa_params-pvalue = p_plan. " (0)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$SELECT-OPTION[$1KOSET'.
lwa_params-pvalue = 'I[EQ[1110[3190'.
APPEND lwa_params TO lt_params .
CALL FUNCTION 'CRIF_RW_WEB_CALL_REPORT'
EXPORTING
i_report_group = '1SIP'
* I_PERS_APPL =
* I_NEW_SELECTION =
* I_DISPLAY_LIST =
* I_APPL_ID =
* I_VAR =
TABLES
it_params = lt_params
et_data = gt_data
et_messages = gt_msg.
Similar Messages
-
Selection screen of report writer
Hi all,
I am working on a report writer .In this report writer there is one column set which is a key figure set.
It has two key figures,each is associated with one additional set.
The fields of additional sets are as follows.
Additional set 1 -
period range1
year1
record type
Additional set 2-
period range2
year2
record type
Its selection screen is automatically taking these as a parameters from additional sets in the following sequence.
year1
year2
period1 to
period1 from
period2 to
period2 from
I want this sequence to be different i.e. as follows:
Period1 to
period1 from
year1
Period2 to
period2 from
year2
Can anyone tell me how can I achieve this.
Thank You.Here is the Code:
DATA: lt_params TYPE STANDARD TABLE OF alv_s_param_wp,
lwa_params TYPE alv_s_param_wp,
lwa_msg TYPE bapiret2,
gt_msg TYPE TABLE OF bapiret2,
lv_dcpfm TYPE xudcpfm,
gt_data TYPE STANDARD TABLE OF grwwebdata.
CLEAR:gt_data,
lwa_msg.
REFRESH : gt_data, gt_msg.
* SET REPORT painter paramters
lwa_params-pname = '$PARAMETER[$1KOKRE'.
lwa_params-pvalue = c_ccode. '' (company code = 0010)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1GJAHR'.
lwa_params-pvalue = p_year. (2011)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1PERIV'.
lwa_params-pvalue = s_month-low. " (1)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1PERIB'.
lwa_params-pvalue = s_month-high. "(12)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$1VERP'.
lwa_params-pvalue = p_plan. " (0)
APPEND lwa_params TO lt_params .
lwa_params-pname = '$SELECT-OPTION[$1KOSET'.
lwa_params-pvalue = 'I[EQ[1110[3190'.
APPEND lwa_params TO lt_params .
CALL FUNCTION 'CRIF_RW_WEB_CALL_REPORT'
EXPORTING
i_report_group = '1SIP'
* I_PERS_APPL =
* I_NEW_SELECTION =
* I_DISPLAY_LIST =
* I_APPL_ID =
* I_VAR =
TABLES
it_params = lt_params
et_data = gt_data
et_messages = gt_msg. -
Report Painter in Background??
How do you pass parameters or a variant to this FM (crif_rw_web_call_report)?
I want to run a nightly job that executes a custom report painter report (with a selected variant or parameters) and dumps that data to a file.
Edited by: Daniel Simpson on Nov 24, 2008 7:39 PMI realized that I can run report painter in background & export to file on the app server by going to the report selection screen and selecting the "output parameters" button & configuring the report from there.
I would however, still like to learn how to execute the FM ( CRIF_RW_WEB_CALL_REPORT ) to bring the report painter data into internal tables. -
Function Modules to Execute Report Painter Report
Hi Experts,
May I know if there is any way to execute the GR55 Report Painter reports, and get the report result back as a table?
I need this to write a program to export the result to a external system.
Many thanks!!!
Regards,
ChrisI am actually expecting a ABAP way to do so, but not to do that in foreground manually.
I found the solution anyway by using the below sample code:
*& Form frm_retrieve_data
text:Get report painter Result
FORM frm_retrieve_data .
DATA:lt_params TYPE STANDARD TABLE OF alv_s_param_wp,
lwa_params TYPE alv_s_param_wp,
lwa_msg LIKE LINE OF gt_msg,
lv_dcpfm TYPE xudcpfm.
CLEAR:gt_data,gt_msg.
Set report painter Paramters
lwa_params-pname = '$PARAMETER[$ZRYEAR0'.
lwa_params-pvalue = sy-datum+0(4).
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$ZBUKRS0'.
lwa_params-pvalue = 'JNPC'.
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$ZBUKRS1'.
lwa_params-pvalue = 'JNPC'.
APPEND lwa_params TO lt_params .
lwa_params-pname = '$PARAMETER[$ZF-RP00'.
lwa_params-pvalue = sy-datum+4(2).
APPEND lwa_params TO lt_params .
CALL FUNCTION 'CRIF_RW_WEB_CALL_REPORT'
EXPORTING
i_report_group = 'JNZ1'
TABLES
it_params = lt_params
et_data = gt_data
et_messages = gt_msg.
LOOP AT gt_msg INTO lwa_msg
WHERE type = 'E' OR type = 'A'.
gv_flg = cns_yes.
EXIT.
ENDLOOP.
IF gv_flg IS INITIAL AND
gt_data IS INITIAL.
gv_flg = cns_nodata.
ENDIF.
ENDFORM. " frm_retrieve_data -
Need to call a Report Painter Report with filtered selection criteria
Hello All,
I have created a Report through which I am calling a Report Painter Program 'Z443' as I have to first filter out the selections and then pass it to the Report Painter Report.
I tried the following two ways and found these problems :
1. Submit (program) with selection-table ..... and Return.
The output had many entries i.e the parameters were not passed correctly to the Report Painter Report.
2. Tried using the FM ' CRIF_RW_WEB_CALL_REPORT '.
The transaction for the Report Painter is opening but selections from the first Report is not being transferred.
Please help if you have worked on any similar requirements .
Thanks!hi
thanx for ur reply.
i think the select-options is the best way to get more then one currency values.
but i need to know what code i have to write for display of this day.
in the standard report MCTA there he is using only one currency. similarly i need to add 2 more columns for each currency in that same report o/p.
how to do that can any body help me
regards,
maqsood -
Get report painter report result
Hi experts,
I use report painter/writer to create a report. Then I want to get the result of this report and print them. Could you please help to give a solution on how to get the result of this report in another print program??
Thank in advance!!
Villy.LvHello Villy Lv,
Could please let me know how to use the function Module CRIF_RW_WEB_CALL_REPORT. Iam trying to get the values of the report writer using this FM however the FM is stopped on the Selection Screen of the report writer - giving a message "Check the Selection".
We are on ECC 5. I am using the below logic to pass the values to the FM -
ATA: i_data TYPE STANDARD TABLE OF grwwebdata,
i_params TYPE STANDARD TABLE OF alv_s_param_wp,
wa_params TYPE alv_s_param_wp,
i_msgs TYPE STANDARD TABLE OF bapiret2.
wa_params-pname = '$PARAMETER[$6-KOKRS'.
wa_params-pvalue = '1000'.
APPEND wa_params TO i_params.
wa_params-pname = '$SELECT-OPTION[_6ORDGRP'.
wa_params-pvalue = 'I[EQ[TEST3000'.
APPEND wa_params TO i_params.
CALL FUNCTION 'CRIF_RW_WEB_CALL_REPORT'
EXPORTING
i_report_group = '6OBU'
* I_PERS_APPL =
* I_NEW_SELECTION =
* I_DISPLAY_LIST =
* I_APPL_ID =
* I_VAR =
tables
IT_PARAMS = i_params
et_data = i_data
et_messages = i_msgs
if sy-subrc EQ 0.
endif.
Please let me know your thoughts.
Thanks!
Maybe you are looking for
-
Disc image and mounting question .
Disc utility - file - new > blank disc image . Save as ( so so ) . Volume name (so so ) . Volume size (4.5 gb dvd-r/dvd-ram. ) . Volume format ( mac os extended journal ) . Encryption ( none ) . Partition (cd dvd ) Image format ( spars bundle disc im
-
My fiance was talked into getting on the EDGE plan and apparently not many employees know the rules behind the actual Agreement. They told us originally he could get on the EDGE plan and when we were ready we could combine our accounts, I am not und
-
Why i can't reset my iphone 4s?
hi everyone, why can't i reset my iphone 4s back to factory setting? thanks guys
-
Possible to buy a Macbook with Danish keyboard in US Stores?
Now I'm living in Denmark, therefore I don't know whether it's possible to buy a MacBook with Danish keyboard in US. The price - for let's say the new Retina - in US is $2199 while it costs nearly $3099 in Europe. The saving is nice. The only problem
-
Hello, I would like to draw a graph that has four different plots (same x-axis), in addition I want to see all the prvious points of measurement. Thanks in advance, Gaby