ABAP Views using in Programming
Hi Experts,
I am going to create a report using <b>Views</b> concept.
I don't know about Views concept. How i have to create view. how can i use the same in program for more than one table.
Please send me a sample code.
I hope that i will get answer soon.
if u feel free send your answers to my id [email protected]
Thanks & Regards
Prabhakararao
Hi prabhakara,
1. Views
U can create them thru se11.
2. In views, u can use
one table, or more than one table
and link them with common fields.
(Do not forget to take into consideration
MANDT field)
3. U can use them in abap sql
just like any other table name.
I hope it helps.
regards,
amit m.
Similar Messages
-
Problem converting XML back to ABAP Structure using XSLT program
Hi Experts,
I am currently trying to convert this xml file back to my ABAP structure but i have been unsuccessful so far. In XML file contain more than 1 reocrd. But my XSLT program is retriving only only first record. Try to help to get all the records.
Sample XML File:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Header/>
<soapenv:Body>
<m:matchResponse xmlns:m="http://www.openuri.org/">
<matchResult soapenc:arrayType="xs:string[1]">
<enc:String xmlns:enc="http://www.openuri.org/encodedTypes">
23417|finc|20060427 |BELMETALNERGO||||||X
X|ALL||||20060427|20880808
</enc:String>
</matchResult>
</m:matchResponse>
</soapenv:Body>
</soapenv:Envelope>
My XSLT Program:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sapxsl="http://www.sap.com/sapxsl" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hp="http://www.openuri.org/" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<OUTTAB>
<xsl:for-each select="soapenv:Envelope/soapenv:Header/soapenv:Body/m:matchResponse/matchResult/enc:String">
<ZA2_RPL_DETAILS_S>
<FINAL_RESULTS>
<xsl:value-of select="."/>
</FINAL_RESULTS>
</ZA2_RPL_DETAILS_S>
</xsl:for-each>
</OUTTAB>
</asx:values>
</asx:abap>
</xsl:template>
</xsl:transform>
My Structure is : Structure Name is ZA2_RPL_DETAILS_S.
filed is: FINAL_RESULT CHAR553
My requirement is to store the complete value between <String> and </String>.
Currently it is giving the blank records
Thanks for your help in advance.
Regards,
RaoHi,
post here
expert forums -> sapnetweaver -> exchange infrastructure
Regards -
Delimiting relationship in ABAP HR using standard program RHGRENZ4
Hello Experts,
I am using the standard program RHGRENZ4 for delimiting the relationship. I want to enter conditions for the delimitation. .
There is a tab called Set Structure Conditions... Is this tab useful? How to enter conditions using this tab...
Please help,
Thanks,
Praitbhahi,
the tab Set Structure Conditions is useful if you need to filter the data, in order to give more conditions that the selected data have to proof.
Click on the button Set Structure Conditions and use the F1 help fro each section of the displayed pop-up. The system help will give you a lot of information.
Regards luiigi. -
How to use LDB PNP with ABAP objects in a program
Hello,
I am wondering if anybody has used the HR logical database(LDB) PNP with user defined ABAP objects in a program? I am using the FM- <b>LDB_PROCESS</b> but its not working. Also assigning PNP in the attributes section of the program -- so that I can use predefined fields from the LDB and then invoking the FM doesn't work -- throwing 'Logical database already active' error.
I suppose even with the ABAP objects and the new FM -- I should still be able to utilize the pre-defined fields of the PNP database -- and also the built in authorizations. I cannot use GET PERNR and REJECT as they give errors. I understand that the use of HR-macros (RP-PROVIDE-FROM-LAST and et al.) are not allowed as they use the table work area -- which is not allowed in ABAP-OOPS.
I would really appreciate if anyone could show me some insight regarding this. Thank you.
Kshitij R. DevreHi Kshitij
It would be really good if we could use both together. But as I know, it is not possible. "GET pernr." is an event-like loop statement and so cannot be used in OO context. And I guess, the same restriction holds for the "LDB_PROCESS" since it uses LDB-specific processing.
What I suggest you is to use standard and BAPI functions.
Sorry for giving bad news...
*--Serdar -
Consuming HANA views using ABAP
Hi Experts,
We have ABAP reports in ECC which is taking very long time to process it. So we decided to push down the complex logic to HANA where ever it is taking long time to fetch data.
We have standalone HANA System. So can we use HANA as secondary database??? If yes, how can i consume HANA views in ABAP reports??
Can some one guide me.
Thanks in advance.
Best Regards,
Krishna.Hi Sundar,
Thanks a lot for your valuable inputs.
You need to access the native HANA artefacts (like HANA information views) from your ABAP system using native SQL and ADBC in case HANA is not the primary DB.
- If i want to pass values to the views can we use HANA input parameters in this case as a PLACE HOLDER in Native SQL??? else do i need to create a procedure for it???
Basically ABAP team is optimized the code but still we are hitting with performance. So we want to utilize existing HANA databse as secondary db to push down the complex logic to HANA.
Best Regards,
Krishna -
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 -
How to Display 'purchase order text' in MM03 using report program
Hi Friends,
Can anybody suggest me how to display 'purchase order text' in MM03 using report program.
'Purchase order text' tab displays purchase long text of particular material .
I coded as:
SET PARAMETER ID 'MXX' FIELD 'E'.
SET PARAMETER ID 'MAT' FIELD k_final-matnr.
SET PARAMETER ID 'WRK' FIELD k_final-werks.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
It displays Purchasing tab other than Purchase Order Text tab of MM03.
Please suggest me how can i solve this.
Is there any parameter id to set values for Purchase Order text tab>
Madhu Mano Chitra wrote:
> I want how to navigate to MM03 'Purchase Order text' tab/ view using ABAP code.
> could any suggest me
You can call a transaction and pass it a BDC table that tells it where you want it to go. You have to work out for yourself what to put into the BDC table. The code below works for tcode CATSSHOW.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
DATA opt TYPE ctu_params.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'CATSSHOW'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SO_STATU-LOW'.
bdcdata_wa-fval = '20'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'ANDZEIT'.
bdcdata_wa-fval = SPACE.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'PAST'.
bdcdata_wa-fval = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
IF p_selscr = SPACE.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=ONLI'.
APPEND bdcdata_wa TO bdcdata_tab.
ENDIF.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'CAPP' USING bdcdata_tab OPTIONS FROM opt. -
How to call a maintenance view from a program
Hello Abapers,
Can anybody explain with some examples. How to call a mainetenance view from a program.
Thanks
Ranjith.Use FM 'VIEW_MAINTENANCE_CALL'.
REPORT zmaintaintest.
VARIABLES / CONSTANTS
CONSTANTS:
c_action(1) TYPE c VALUE 'U', "Update
c_viewname TYPE tabname value 'ZEMP_EXAMPLE', "View Name
c_field(6) TYPE c VALUE 'EMPNO'. "Field Name
INTERNAL TABLES
DATA: itab_rangetab TYPE STANDARD TABLE OF vimsellist,
v_empno TYPE zempno,
wa_rangetab TYPE vimsellist.
SELECTION SCREEN
PARAMETERS: p_empno TYPE zempno OBLIGATORY. "Emplyee ID
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
Chcking the existence of the user in EMPLOYEE table
PERFORM validate_employee.
START_OF_SELECTION
START-OF-SELECTION.
This will restrict the user view so that user can only view/change
Table data corresponding to his/her Employee ID
PERFORM define_limited_data_area.
Displaying table maintenance view for a particular employee ID
PERFORM call_view_maintenance.
*& Form validate_employee
Validate plant entered in the selection screen
FORM validate_employee.
SELECT SINGLE empno u201CEmployee ID
FROM zemp_example u201CEmployee Table
INTO v_empno
WHERE empno = p_empno.
IF sy-subrc <> 0.
MESSAGE 'Not an Valid User' TYPE 'I'.
ENDIF.
ENDFORM. "validate_employee
*& Form DEFINE_LIMITED_DATA_AREA
To restrict the user view so that user can see/change table data
corresponding to his employee ID. Here one internal table is
getting populated with field name as u201CEMPNOu201D (Key field of the table)
And value as given by user in Selection Screen and this is passed as
Parameter in function module 'VIEW_MAINTENANCE_CALL'
FORM define_limited_data_area.
CLEAR wa_rangetab.
wa_rangetab-viewfield = c_field.
wa_rangetab-operator = 'EQ'.
wa_rangetab-value = p_empno.
APPEND wa_rangetab TO itab_rangetab.
ENDFORM. "define_limited_data_area
*& Form CALL_VIEW_MAINTENANCE.
Displaying table maintenance view for a particular employee ID
FORM call_view_maintenance.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = c_action
view_name = c_viewname
TABLES
dba_sellist = itab_rangetab.
ENDFORM. "call_view_maintenance
Regards,
Joy. -
I wanted to watch a video on ABC TV. When I started the process I was able to see the commercial (preceding the program), but after the commercial completed it stopped rather than show the program. I encountered the same problem with Orca (a browser built around Firefox. However I had no problem viewing the program using IE8. I encountered a similar experience before trying to view an ABC program and was then able to view it on Avant, a browser built on IE.
If you are getting that message then you are not streaming from your computer, but rather from the cloud. 3mbps is not fast enough for HD content, go to settings - iTunes and switch to SD.
If you want to stream off your computer you need to use home sharing by going to the Computers icon on Apple TV
As for DNS (settings - general - network - configure DNS - automatic) -
Not able to find the Appraisal View in HAP_START_PAGE_POWL_UI program
Hey gurus,
Can I change the Status Tab of Appraisal Screen which uses HAP_START_PAGE_POWL_UI program. There is one link on this page with name Appraisal Document Name which opens a new window but client wants that it uses the same window and then come back to original screen.
Does anyone gone through this requirement before..??
ThanksHi All,
This issue is resolved. I have done the following steps to make the Z assignment block to be available in the Web Ui....
1.I have created a Z Component and i have created a view with Z filelds in this Z component.
2.I have added this in the overview view of the component PR00OV.
3.I have adde this to the Overview in the view set in Runtime repository of the PRIOOV component
4.Now the vew is avialble in the configuration and i have added this to the displayed list.
5.Once this is done it should be displayed in the WEBUi but its not displaying in the WebUi. To resolve this I have made an entry in the table CRMC_PRIL_UIU by giving the
Object Type -
>S
Object ID -
>Obj Name
BSP Application -
> Zcomponent (Which i have created)
View -
>Zview (Which i have created)
6.Once i have made an entry in the above mentioned table, My Z assignment block is displayed in the Web UI. With this my problem is solved........
Regards,
Lakshman.P -
How to Access Maintenance View from a program
Hi Experts,
I have created a maintenance view for a table. i want to insert data's into the table through the maintenance view. I don't know how to access the view, how to insert data into the Maintenance view. Please suggest me how to access the view from the program.
with regards,
James...
Valuable answers will be rewarded...Hi,
What is the need to search for a program.
Use transaction SM30 or SE16 to create or maintain entries in the table.
e.g. if the Maintenance view is created on table A, then Goto transaction SM30 or SE16 and give the table name as A and proceed. This will automatically take u to the maintenance view on tha table A.
Regards,
Himanshu -
If I am buying single app adobe premier pro by annual prepaid plan,after the after the end of the year subscription would it be possible to use the program further without updating or I should pay each year?
Thanks
2 бер. 2015 15:50, користувач "Peru Bob" <[email protected]> написав:
If I am buying single app adobe premier pro by annual prepaid
plan,after the after the end of the year subscription would it be possible
to use the program further without updating or I should pay each year?
created by Peru Bob <https://forums.adobe.com/people/Peru+Bob> in *Premiere
Pro* - View the full discussion
<https://forums.adobe.com/message/7243337#7243337> -
Dear Folks:
I have the trial version of Adobe Premier Pro CS4, and I have 64 bit Vista Home Premium. I can not download Flash in order to view the Help Program Tutorial. I am a student at CCBC Essex Campus, and I need to assemble a three minute video for a class. I have Internet Explorer (latest version), and I also have Firefox. Please help me with a solution.
Thank You,
Dan Pasten
111 Alcock Road
Essex, Md. 21221-2110
United States of America
(410) 686-8067For easy searching, download the product user guide PDF(s)
The individual CS5 pages also have links to the earlier user guide pages
CS5 User Guides - online and PDF (right click PDF link to save PDF to your hard drive)
http://blogs.adobe.com/premiereprotraining/2010/08/help-documents-for-creative-suite-5-pdf -and-html.html
Some tutorial links... these MAY not apply to CS4, but it doesn't cost to look
http://forums.adobe.com/thread/913334
http://forums.adobe.com/thread/845731
-and http://forums.adobe.com/message/3234794
Encore http://tv.adobe.com/show/learn-encore-cs4/
A "crash course" http://forums.adobe.com/thread/761834
A Video Primer for Premiere http://forums.adobe.com/thread/498251
Premiere Tutorials http://forums.adobe.com/thread/424009
PPro Wiki http://premierepro.wikia.com/wiki/Adobe_Premiere_Pro_Wiki
Tutorial http://www.tutorialized.com/tutorials/Premiere/1
Tutorial http://www.dvxuser.com/V6/forumdisplay.php?f=21
Tutorial HD to SD w/CS4 http://bellunevideo.com/tutorials/CS4_HD2SD/CS4_HD2SD.html
Exporting to DVD http://help.adobe.com/en_US/premierepro/cs/using/WS3E252E59-6BE5-4668-A12E-4ED0348C3FDBa.h tml
And http://help.adobe.com/en_US/premierepro/cs/using/WSCDE15B03-1236-483f-BBD4-263E77B445B9.ht ml
Color correction http://forums.adobe.com/thread/892861
Photo Scaling for Video http://forums.adobe.com/thread/450798
-Too Large May = Crash http://forums.adobe.com/thread/879967
-And another crash report http://forums.adobe.com/thread/973935
After Effects Tutorials http://www.videocopilot.net/
Authoring http://www.videocopilot.net/tutorials/dvd_authoring/
Encore Tutorial http://www.precomposed.com/blog/2009/05/encore-tutorial/
And more Encore http://library.creativecow.net/articles/devis_andrew/
Surround Sound http://forums.adobe.com/thread/517372
Regions and NTSC vs PAL http://forums.adobe.com/thread/951042 -
ABAP pgm using append, sum, modify
I am new to ABAP programming. Can somebody please help me out with the following program or give me some hints as to how to proceed?
1. ABAP inputs: The pgm will have following parameters:
P_ITEM - input string of 20 characters (select options)
P_QTY - input number (select options)
P_RATE - input number with 2 decimal points (select options)
2. Main processing logic:
1. Accept 5 items each with qty and rate.
2. store in internal table.
3. calculate their price.
4. sort on price in ascending order.
5. display o/p as per section 3.
3. Output format:
ITEM QTY RATE PRICE
TOTAL
Hints: For this ABAP make use of APPEND, SUM, MODIFY
Thank you.This can be coded, but it does make much sense. There is no "tie" between the selection-screen fields. If you are assuming that the first value in P_ITEM corresponds to the first value in P_QTY and P_RATE, then you can do it, but this is not really a good way of coding. Here is a sample anyway.
Add values to all three select-options and hit execute.
report zrich_0004
no standard page heading.
data: begin of itab occurs 0,
item(20) type c,
qty type i,
rate type p decimals 2,
price type p decimals 2,
end of itab.
select-options: s_item for itab-item,
s_qty for itab-qty,
s_rate for itab-rate.
start-of-selection.
clear itab. refresh itab.
loop at s_item.
clear itab.
itab-item = s_item-low.
read table s_qty index sy-tabix.
if sy-subrc = 0.
itab-qty = s_qty-low.
endif.
read table s_rate index sy-tabix.
if sy-subrc = 0.
itab-rate = s_rate-low.
endif.
itab-price = itab-qty * itab-rate.
append itab.
endloop.
sort itab ascending by price.
loop at itab.
write:/ itab-item, itab-qty, itab-rate, itab-price.
endloop.
Welcome to SDN! Please remember to award points for helpful answers and mark your posts as solved when solved completely.
Regards,
Rich Heilman -
Multipe Sender RFC using same Program ID
Hi all,
I have RFC>XI>HTTP scenario. All confiruation has been done in R/3 and XI has ben done correctly.
Is it possible to use the same TCP/IP port Program ID created in SM59 (in R/3) for sending different RFC messages to XI. Meaning, in different XI RFC sender adapter communication channels, can I use the same Program ID.
When I tried, it work for one RFC, but when multiple RFC sender adapter uses same program ID..RFC program errors out in R/3 itself with error message - Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchExcept.
Please help.
Thanks
KarthikKarthik,
It is possible to send different messages from R3 to XI that use the one RFC destination and Program ID (in R/3) and the one Communication channel (in XI)
Assume that interfaces AAA and BBB have different structures
<u><b>SAP R/3</b></u>
<b>For interface AAA</b>
(1) Execute ABAP Z_AAA which
(2) Populates the internal table ITAB_AAA with structure ZST_AAA
(3) Calls the remote enabled function ZFN_AAA
(4) Passes the interface data in the tables statement
CALL FUNCTION 'ZFN_AAA' DESTINATION RFCCOMMON
EXPORTING
=
IMPORTING
=
TABLES
AAA = ITAB_AAA.
<b>For interface BBB</b>
(1) Eexecute ABAP Z_BBB which
(2) Populates the internal table ITAB_BBB with structure ZST_BBB
(3) Calls the remote enabled function ZFN_BBB
(4) Passes the interface data in the tables statement
CALL FUNCTION 'ZFN_BBB' DESTINATION RFCCOMMON
EXPORTING
=
IMPORTING
=
TABLES
BBB = ITAB_BBB.
Each function is called with the same destination RFCCOMMON
In SM59 point the RFC destination RFCCOMMON to your XI environment and provide a program id, for example ID_COMMON
<i><b>XI</b></i>
<b>(1) Configure the sender RFC Communication Channel</b> for example CC_COMMON and enter your SAP R/3 server parameters to include the program id ID_COMMON
<b>(2) Configure the Receiver Determinations</b> as follows
For interface AAA
Sender Service Enter your SAP R3 Business System for example R3PROD Interface ZFN_AAA (this is the SAP R/3 remote function)
Namespace urn:sap-com:document:sap:rfc:functions
Configured Receivers
Service Integration Process AAA
For interface BBB
Sender Service Enter your SAP R3 Business System for example R3PROD
Interface ZFN_BBB (this is the SAP R/3 remote function)
Namespace urn:sap-com:document:sap:rfc:functions
Configured Receivers
Service Integration Process BBB
<b>(3) Configure the Sender Agreement</b> as follows
For interface AAA
Sender Service R3PROD
Interface ZFN_AAA
Namespace urn:sap-com:document:sap:rfc:functions
Sender CC CC_COMMON
For interface BBB
Sender Service R3PROD
Interface ZFN_BBB
Namespace urn:sap-com:document:sap:rfc:functions
Sender CC CC_COMMON
Regards,
Mike
Maybe you are looking for
-
Problem with File and his methods
Is there a way to know how much Files there is in a File. MyFile contain MySubFile1 MySubFile2 and what i want my program to do is to return the number 2 (for my two subfiles).
-
So I installed the latest update of Itune on my Windows 7 Ultimate 64 bit PC.( the previous versions worked fine never a problem) It installs, and comes up with error7 126. Reinstall program again. So I go through all six steps to unistall, and reins
-
How can I delete an iCloud account off my iPhone 5 with iOS 7?
I have an iPhone 5 that's been updated with iOS 7 and am wondering if anyone can tell me if it is possible to delete another persons iCloud account off my phone without knowing the password and only using my iPhone to do it as I don't have a computer
-
How many restarts in an average day?
I am interested to know how often BT Broadband users find they need to restart the BT Home Hub, say each day? I find that generally in a weekend, for example, I will need to restart the BT Home Hub at least three, sometimes five times, because broadb
-
Webconsole - shows nothing about cluster
Hello, This is 2 node solaris 10 cluster. After changing the Service properties tcp_listen = true, I am able to access the 6789 port from other machine's browser (https://ip:6789) Now funny thing is when I click on Manage Sun Cluster application, it