RFCDEST parameter in ABAP Report
Hello,
I have created a ABAP report in R/3 which calls the function module ZBW_RAISE_EVENT in BW ( DEV )
Following is the code of the ABAP report:
===================================
parameters: rfcdest NO-DISPLAY like rfcdisplay-rfcdest DEFAULT 'BWDCLNT200' .
parameters: zevent NO-DISPLAY like tbtco-eventid.
*rfcdest = 'BWDCLNT200'.
zevent = 'TEST'.
call function 'ZBW_EVENT_RAISE'
destination rfcdest
exporting
eventid = zevent
EXCEPTIONS
bad_eventid = 1
eventid_does_not_exist = 2
eventid_missing = 3
raise_failed = 4
OTHERS = 5.
=================================
This code works fine.
My question is - when I transport this code to QA, how do I make it look for the appropriate "RFCDEST" BW client?
I promise to reward points.
Thanks for your time and help.
Pramod.
If rfcdest is a parameter, then you can create a variant for the program which would store the value (even if you put in a default value). The variant name can be the same on all systems (DEV, QA, and PRD) but the value of rfcdest will be different on each system.
BTW, in your program, since zevent is also a parameter, this value can be stored in the variant also, so I would remove the <b>zevent = 'TEST' code</b>, too.
Note: by coding NO DISPLAY, does this mean the parameters do not show up when the program is called directly? If so, I do not know if you can still create variants.
Does this help?
Message was edited by:
Geo
Similar Messages
-
Hello,
I have created a ABAP report in R/3 which calls the function module ZBW_RAISE_EVENT in BW ( DEV )
Following is the code of the ABAP report:
===================================
parameters: rfcdest NO-DISPLAY like rfcdisplay-rfcdest DEFAULT 'BWDCLNT200' .
parameters: zevent NO-DISPLAY like tbtco-eventid.
*rfcdest = 'BWDCLNT200'.
zevent = 'TEST'.
call function 'ZBW_EVENT_RAISE'
destination rfcdest
exporting
eventid = zevent
EXCEPTIONS
bad_eventid = 1
eventid_does_not_exist = 2
eventid_missing = 3
raise_failed = 4
OTHERS = 5.
=================================
This code works fine.
My question is - when I transport this code to QA, how do I make it look for the appropriate "RFCDEST" BW client?
I promise to reward points.
Thanks for your time and help.
Pramod.parameters: rfcdest NO-DISPLAY like rfcdisplay-rfcdest DEFAULT 'BWDCLNT200' .
parameters: zevent NO-DISPLAY like tbtco-eventid.
INITIALISATION.
case sy-sysid.
when 'dev'.
rfcdest = 'BWDCLNT200'.
when 'qa'.
rfcdest = 'BWQCLNT200'.
when 'prd'.
rfcdest = 'BWPCLNT200'.
endcase.
You can further segregate based on parameter sy-mandt which is client.
hope this helps.
A
NOTE: Table RFCTRUST has only trusted destinations. -
SAP ERP 2005 SR 2 IDES installation error in step "Run ABAP Reports"
Hello,
I'm installing SAP ERP 2005 SR 2 IDES on Win2003 R2 SP2 and Oracle 10.2 to create a test-system for my diploma thesis.
During the step "Import ABAP" I got the following message:
object_checker.log
ERROR: 2008-05-21 20:50:38
1 objects have error/ignore/execute or unknown status in the task lines.
Invalid objects are saved in 'invalid_objects.txt' file.
invalid_objects.txt
package object type action status
SAPDFACT ?N pkey create
but the installation went on until "Run ABAP Reports".
Warnings and Errors in sapinst.log are:
WARNING 2008-05-27 15:09:36
Execution of the command "C:\usr\sap\IMP\SYS\exe\uc\NTI386\stopsap.exe name=IMP nr=00 SAPDIAHOST=imperia-sap" finished with return code -1. Output:
STOPSAP: execution of C:\usr\sap\IMP\SYS\exe\uc\NTI386\sapntwaitforhalt.exe name=IMP nr=00 SAPDIAHOST=imperia-sap 3600 failed
Details are written to C:\Programme\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS\stopsap.log
WARNING 2008-05-27 15:09:36
Could not stop instance 'DVEBMGS00' of SAP system IMP.
WARNING 2008-05-27 15:09:38
Connect to message server (imperia-sap/3900) failed: NIECONN_REFUSED.
WARNING[E] 2008-05-27 15:12:05
FSL-06002 Error 1060 (Der angegebene Dienst ist kein installierter Dienst.) in execution of a 'OpenService' function, line (266), with parameter (sapccmsr.00).
WARNING[E] 2008-05-27 15:21:42
FRF-00007 Unable to open RFC connection.
ERROR 2008-05-27 16:30:15
FRF-00025 Unable to call function. Error message: connection closed without message (CM_NO_DATA_RECEIVED) .
INFO 2008-05-27 16:30:19
RFC connection closed.
ERROR 2008-05-27 16:30:45
MUT-03025 Caught ERfcExcept in Modulecall: connection closed without message (CM_NO_DATA_RECEIVED).
ERROR 2008-05-27 16:30:47
FCO-00011 The step runRADDBDIF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_ABAP_Reports|ind|ind|ind|ind|2|0|runRADDBDIF was executed with status ERROR .
Full log of today is available at [http://pastebin.com/f43531f97]
Has anyone an idea how I can finish this installation?
Thx
DanieleIt seems that the system did not come up and thus the RFC call fails.
What´s the output of
dev_w0
dev_disp
(in the ...work directory)?
Markus -
ABAP report to run other ABAP reports dynamically
Hi there,
I'm looking for an standard SAP or commercial solution ABAP Report that completely or partially meet the following requirements:
The report must start ABAP reports on the system and write the result in files on the SAP server.
* The reports that must be started are not defined before, thus a kind of parameter file with the list of reports to be started.
* Most of the reports have 1 selection screens. The value of the selection screens can/must be specified in the parameter file.
* Most of the reports started have a list as a result. No interaction is required.
* Authorization of the user that started the report can and must be used.
It must be executable on every basis release of SAP R/3 e.g. basis 4.6x, 4.7 single code page (+MDMP) & unicode and SAP ECC.
Does anybody have an idea if such an ABAP report exists?
Thanks in advance for your support.
Yannick.First thanks for the answer
I don't think it is so. I mean, currently we have a hard coded solution. In this solution the calling report requests the called report to send its output to the spool. When finished the calling report retrieves the output of the report from the spool and write it into a file.
The problem is taht we do not have time and ressource to implement a fully dynamic solution on our own
Best regards
Yannick -
Abap report need to run only once in a day
can i restrict my abap report that it should run once in a day. is there any authorization funda? or any sap provided concept? how can i approach this?
hi,
no authorizations for tht if u want try this code i think it will help u
DATA:count,date LIKE sy-datum.
GET PARAMETER ID 'MAX' field count.
GET PARAMETER ID 'DAT' FIELD date.
IF date is initial.
date = sy-datum.
ENDIF.
IF date = sy-datum.
count = count + 1.
else.
message e000(zmsgtab)."u con't execute it more than once in a day.
endif.
set PARAMETER ID 'MAX' field count.
IF count > 5.
count = 0.
set PARAMETER ID 'MAX' field count.
date = date + 1.
set PARAMETER ID 'DAT' field date.
message e000(zmsgtab)."u con't execute it more than once in a day.
ENDIF.
write:/ 'this is my program'.
<b><removed_by_moderator></b>
<b><removed_by_moderator></b>
feel free to ask any quiries
<b><removed_by_moderator></b>
<b><removed_by_moderator></b> -
Use of foreign key check in ABAP reports
Hi,
I'm trying to understand if it's possible to use a foreign key integrity check in an ABAP reports. I have understood that this kind of check is deactivated for performance reasons, is it right?
In this case I'd like to know if it is possible to activate the foreign key check "on demand", or just for a particular table.
As an example, I'd like to use the foreign key defined on attribute AKONT of table KNB1, that points on the related attribute of table SKB1.
Thanks,
GabrieleWelcome on SCN!
I'm trying to understand if it's possible to use a foreign key integrity check in an ABAP reports. I have understood that this kind of check is deactivated for performance reasons, is it right?
Most likely yes. Integrity is turned OFF for Open SQL statements but is turned ON for screen fields.
If you just create screen parameter like
parameters pa_akont type knb1-akont.
...then input help for that field will be automatically provided. This means that you will not be able to pick or enter value different that this allowed from SKB1 table (foreign key relationship will be checked).
You can explicitly assign different input help or search help for certain screen field independently of type it is refering i.e by means of fm F4IF_FIELD_VALUE_REQUEST .
This however still relates only to screen fields, not fields used directly in ABAP statement.
Regards
Marcin -
Want to have own selection screen in HR-ABAP report using LDB
Hi experts,
I am working on HR-ABAP report using LDB pnp and infotypes..But, here we get the built in selection criterion..but I want my own selection screen to be displayed..whats the solution for this??? Is it possible to create my own selection screen instead of default one..and how???
Please help me..its very urgent..Hi,
chk this out:
Create Report Categories
In this step, you define the report categories and determine the layout
of the standard selection screen for these report categories. You can
create report categories for programs or queries that are based on the
PNP or PNPCE logical databases.
The definition of report categories is divided into two sections:
o In the Change Report Category view, you define general attributes
such as sort order, input fields for date, and so on.
o In the Change Selection Criteria view, you define which selection
fields of the logical database should be avaliable on the selection
screen.
Example
You want to set up your system so that your employees can only start
evaluation reports for Payroll if they use a payroll area. Within a
payroll area, you should be able to select according to personnel
number. Additional selection criteria should not be possible and you
should not be allowed to enter a sort sequence.
Standard settings
The standard system already contains report categories. You can find the
attributes of the report categories in the table.
Note the following five report categories in particular:
o Report category ' ' is the SAP default report category for
programs that are based on the PNP logical database.
o Report category PNPCE is the SAP default category for programs that
are based on the PNPCE logical database.
o Report category '00000000' is the customer-specific default category
for programs that are based on the PNP logical database.
o Report category '0PNPCE' is the customer-specific default category
for programs that are based on the PNPCE logical database.
o Report category __X2001 is the default category for Queries that
are based on an InfoSet of the PNP LDB.
o Report category QUEPNPCE is the default category for queries that
are based on an InfoSet of the PNPCE LDB.
The default report categories are used when a report is called if
the report has not been assigned a report category.
Parameters and Options for Report Categories of the LDB PNP and PNPCE
Parameters and Options in Screen Area General Data
If you activate this parameter, you can only enter data on the data
selection period if you use reports that have been assigned. The
same date entries are then used for the person selection as for the
date selection.
o Matchcode allowed
If you activate this parameter, you have use of a Matchcode
pushbutton (search help) if you use reports that have been assigned.
This pushbutton enables you to perform the person selection.
o Sort allowed
If you activate this parameter, you have use of a Sort pushbutton if
you use report that have been assigned. This pushbutton enables you
to define a sort order before you execute the report.
o Organizational structure allowed
If you activate this parameter, you have use of an Org.Structure
pushbutton if you use reports that have been assigned. This
pushbutton enables you to perform the person selection.
Note:
For more information about these options, see the online
documentation under this path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> Standard HR Reports -> Report Selection Screen in
Human Resources Management.
Parameters and Options in Screen Areas Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Options for data selection period and person selection period (key
date and so on)
Here you define which options for date and person selection are
available for reports that have been assigned.
o Options for payroll area/period/year
Here you define which options for selection using payroll
area/period/year are available for reports that have been assigned.
Parameters and Options in Screen Area Selection View
o Type/Name
This parameter enables you to use selection views to define report
categories. You use the selection view selected here to determine
which fields are available in the Dynamic Selectionsy.
Note:
You create selection views for the PNP and PNPCE logical databases
in the Object Navigator (SE80):
1. Start the Object Navigator (SE80)
2. Choose Workbench -> Edit Object.
3. Choose the More... tab page and the Selection view on this tab
page.
4. Choose Create.
5. In the Create Selection View dialog box, choose the For any
tables option.
6. In the Name of view field, enter a name for your selection view.
7. In the Tables dialog box, enter the name of the table from which
you want to use fields.
Note:
When you enter the table name, observe the naming convention in
Personnel Administration:
Infotype number: nnnn -> table name: PAnnnn
8. Choose Continue.
9. In the Functional groups area, define functional groups by
assigning a name and a number.
10. Assign fields from the selected tables to the functional groups
by entering the number of the desired functional group in front of
each field.
11. Save your entries.
For more information about adjusting the dynamic selections using
your own selection views, see the online documentation under the
following menu path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> HR Standard Reports -> Report Selection Screen in
Human Resources Management -> Enhancing the Selection Screen -
Dynamic Selections.
If you do not want to offer dynamic selections, make the following
settings:
- LDB PNP: In the Selection view field, enter PNP_NO_FREE_SEL.
- LDB PNPCE: Leave the Selection view field empty.
Parameters and Options in Screen Area Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Available input parameters, date or period entry (today, key date,
all, and so on), and standard value.
Using the Standard value option, you define which of the selected
options is shown.
Parameters and Options in Screen Area CE Selection Fields
o CE selection fields (external person ID, grouping reason, grouping
value)
Using the options in this area, you define whether the external
person Id, grouping reason, or grouping value are available on the
selection screen.
Note:
These parameters are only relevant for you if you implement
Concurrent Employment (see also note 517071).
Parameters and Options in Screen Area Selection view
o Dynamic selections as dialog box
If this switch is set, you can call the dynamic selections as a
dialog box.
o Dynamic selections active
If this switch is set, the dynamic selections of the logical
database are active at the start of the report.
Note that the following combinations are possible for the last two
options mentioned:
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/inactive
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/active
Dyn.Sel. as dialog box/Dyn.Sel. active: active/inactive
Activities
1. Choose Edit -> New entries.
2. Enter an abbreviation and a long text for the report category.
The customer name range for report categories is 0-9.
3. Select the For the PNPCE logical database checkbox, if you want to
create a report category for a program or for queries of the PNPCE
logical database.
4. In the General Data screen area, choose the desired options.
If you want to use selection IDs, you must have first created and
grouped selection Ids. The IMG path to do this is given in the
parameter description section.
5. In the Data selection period/person selection period or Selection
period screen area, choose the desired options.
6. In the Selection view screen area, choose the desired options.
7. In the CE selection fields screen area, choose the desired (only
possible for report categories of the LDB PNPCE).
8. Save your entries.
9. Choose the subactivity Permitted selection criteria.
10. Choose Edit -> New entries.
11. In the Select option field, use the input help to select each field
that should be available on the selection screen.
12. Select the checkbox in the 1.page column, if you want this selection
field to be available directly when you call the selection screen.
Further notes
13. If you want to copy entries, you still have to enter the selection
parameters again in the subsequent screen.
o If you create the report category '000000000', a selection screen is
generated according to report category '00000000'for all reports for
which a report category has not explicitly been assigned.
Assign Report Categories
In this step, you assign a report category to your reports.
Example
You have created your own report, for example ZPCTEST1, and would like
it to have the selection screen that corresponds to that of the
evaluation report for Payroll, which is assigned to report category
'__M00001'.
Assign report category '__M00001' to the report.
Requirements
You must have defined the Report Categories.
Standard settings
SAP Standard Reports:
In the standard system, reports are assigned a report category. If you
want to override these assignments, perform the activities described
here. If you want to assign report categories to standard reports using
SE38, this represents a modification.
Customer-Specific Reports:
For reports you have developed yourself, you can either assign report
categories by performing the activities described here or directly in SE38.
Recommendation
Only assign a report category if you have created your own reports or if
the selection screens in the standard system do not meet your
requirements.
Activities
1. Choose Edit -> New entries.
2. Perform the required assignment using the Program name and Report
category fields.
3. Save your entries.
reward if helpful
regards,
madhumitha -
Multiple selection lists in abap report
I need to populate a multiple selection list and then read the selection in an ABAP report. A parameter with list box is not solving my purpose.
Please give any suggestion on this.Hi
If you can't use the SELECT-OPTION statament, there's no standard solution.
U can only try to create a table control with only one colunm and every hit of the table control is a single hit for the selection.
To insert a table control in a selection-screen u need to use the statament:
SELECTION-SCREEN BEGIN OF TABBED (see the help)
In order to create a TAB where u can load a subscreen where u can insert a table control.
The u need to transfer the hit from table control to a range.
Max -
ABAP report to display material wise forecasted value in sap APO
Hi All,
I want to create a ABAP report in which i want to display the forecasted values of the material from the planning book.
Could anyone please help me with the information with any database table or the function module or any other source to get the forecasted value against the key figure ZCONSTR form the planning book data.
It's very urgent.....Awaiting your reply.
Edited by: Komal Bhutada on Jul 22, 2011 5:50 PMHi,
You can more details from transaction BAPI->Supply Chain Management ->Advanced Planning and Optimization ->PlanningBookAPS ->GetDetail2 .Here you can find input parameter and in detail documentation.
Regards,
Sunitha -
How to read RRI sent parameters in ABAP Report??(Urgent)
I have my own ABAP report. How can I read parameter that RRI sent to me from BEX Query? I know it's possibly needed to setup table name in RSBBS for each element.
hi,
i am failing to see relevance of this post in WebDynpro for ABAP forum. Requesting moderator to move to ABAP general forum. -
How to Call general ABAP Report in WDA?
Hi All,
Is it possible to run our general ABAP report in our WDA.
If yes how can i move....
Thanks & regards,
RaviDavid Pietroniro wrote:
> Hello,
>
> You can call your report using the SUBMIT command to call it like a job. Follow an example on how to do this (from ABAP Help).
> But this is only usefull if this report only process data and don't show data on screen, because this data can´t be showed in the web dynpro via write commands like described in the threads before.
>
> Regards.
Actually with a few changes you are close to a solution here. There is way to get the output of the report and convert it to HTML. You will need to have a little wrapper application around your report. You will have to run this wrapper as a background job or via RFC (pointing to destination NONE). Here is a sample:
* SELECTION SCREEN LAYOUT *
selection-screen begin of block two with frame title text-002.
parameter: prog like sy-repid.
parameter: vari1 like raldb-variant.
selection-screen end of block two.
.....Other Processing....
submit (prog) and return
exporting list to memory
using selection-set vari1.
call function 'LIST_FROM_MEMORY'
tables
listobject = itab
exceptions
not_found = 1.
if sy-subrc ne 0.
leave program.
endif.
call function 'WWW_HTML_FROM_LISTOBJECT'
exporting
* REPORT_NAME =
template_name = 'WEBREPORTING_REPORT'
tables
html = html_tab
listobject = itab.
Once the data is converted into HTML it is more usable from WD. You can't really display it directly within WD, but you could push it out as a file attachment from WD using cl_wd_runtime_services=>attach_file_to_response.
This is a lot of work and I still think it might be easier to fire a linkToURL or Exit Plug and navigate to the ITS/WebGUI. -
How to use a parameter of a report program from selection screen in a dialog program
how to use a parameter value(entered ) of a report program from a selection screen in a dialog program.
I have to fetch the value entered in the parameter of report program and display it in a dialog programHi Aasim,
Just mention like below in your ABAP report.
PARAMETERS: p_aufnr TYPE aufnr MEMORY ID ord.
and mention the same memory ID name in the module pool screen property it automatically populates the value to and fro -
How to use a parameter of a report program in a dialog program
how to use a parameter of a report program in a dialog program.
I have to fetch the value entered in the parameter of report program and display it in a dialog programHi Aasim,
Just mention like below in your ABAP report.
PARAMETERS: p_aufnr TYPE aufnr MEMORY ID ord.
and mention the same memory ID name in the module pool screen property it automatically populates the value to and fro -
How to use a parameter in a report program in a dialog program
how to use a parameter in a report program in a dialog program
Hi Shaikh,
Post it in http://scn.sap.com/community/abap
"ABAP Development".
sree -
Hello,
we have a couple of ABAP reports that generate a traditional list (with WRITE) and now I have to convert the output as HTML and display it (perhaps) in a new window of the browser. I´m not sure if function WWW_LIST_TO_HTML can be very helpful for that purpose.
Has any one experience in this field that can tell me a couple of tricks on how to do it the best way ?? The reports will be called from BSP pages, of course.
Thanks a lotif your report dosent have parameters or you dont need to supply any parameter simply call the following url
http://<wasserver>.xxx.com:<port>/sabp/bc/report?report=<your report>
else follow the following link for details
Re: Conversion ABAP Report to BSP Application
Regards
Raja
Maybe you are looking for
-
Hello there, I made the switch from an old HTC Android to the new iPhone 5S two weeks ago and the one thing I cannot configure to my liking is email notifications in the notification center. I have multiple email accounts that recieve a moderate volu
-
Why does my iTunes / App store go to the German version when I travel in Austria?
Since I updated to iOS 6 my iTunes Store and App Store are both going directly to the Austrian stores. I am in Austria at the moment travelling. But how come I can't change back the Canadian stores? I think someone dropped the ball on this one.
-
InSufficient BAndwidth: Dramatic Solution :-)
http://discussions.apple.com/thread.jspa?messageID=1528487#1528487 Ralph
-
Ugly, distorted fonts in Java apps.
So I'm getting weird-looking fonts in all Java applications such as MultiBit. For example: How can I fix this?
-
Change the title of the new HTML page screen
Hi, I would like to change the title displayed in the screen to create a new HTML file from "New HTML Document" to something like "New Page". Is there any properties file which I can edit to get this done? Or does it come from some java class file? A