Regarding an Interface
I had a debate with regards to the definition of an Interface.
Can I call an Interface an object?.Far as I know,everything in Java can be called as an Object.
Am i right?.
sidster wrote:
This is why I have to understand that everything in Java(excluding primitives) is an object.
Source: SCJP Book by Kathy and Bert(310-035),Chapter 07,page 406.
"You’re an object. Get used to it. You have state, you have behavior, you have a job.
(Or at least your chances of getting one will go up after passing the exam.) If you
exclude primitives, *everything in Java is an object*. Not just object, but Object with
a capital ‘O’. Every exception, every event, every array extends from java.lang.Object".
This has driven me into believing that everything except primitives is an object.Did I understand it wrong?.It depends what you mean by "everything". All the things I listed above are part of Java but are not objects.
Apparently this book is only referring to things that hold values, but even that's not right, since objects are not part of Java's type system. Only primitives and references are.
Don't get so hung up on it. What difference could it possibly make to how you write your code if "everything is an object" vs. "not everything is an object."
Similar Messages
-
Facing some issue regarding Requisition interface table
I am facing some issue regarding Requisition interface table..
Purpose: we have to massage data & create massage data & create Requisitions.
Issue Detail:
Before:
Previously it was Auto Create Purchase Requisition
On the move transaction form step 10 to 20, this step will trigger creation of requisition.
and Creating Requisition successfully.
After:
After stopping Auto Create Purchase Requisition functionality the Requisition interface data is not getting populated in the Requisition Interface tables as well.
Please provide your inputs.It's standard functionality not to populate the req interface while you don't want to autocreate.
Thanks,
PS. -
Regarding Message Interface , Service Interface
Hi All
My scenario is File to File from 1 application server to another application server ,without any transformation in PI 7.1 for service interface to be involved for Interface Pattern Stateless and Stateless (XI 3.0) compatible can only be used with Category Abstract
only abstract catgory is possible , can'nt i make 1 outbound & another inbound for this ?
Regards
Abhishek
Edited by: Abhishek Agrahari on Feb 9, 2009 11:08 AMSearch SDN for this there is Blog for this i dont have info on this
Need to do follwoing in the ID
1. Sender and receiver Business system/services
2. respective File communication channels
3. Receiver Agreement
4. interface determination
5. Finally receiver agreement and sender agreement
Rajesh -
Regarding message interfaces in JDBC implementation
Hi Bhavesh,
I have been trying to implement the jDBC scenario as mentioned by you in the blog "JDBC Receiver Adapter -- Synchronous Select Step by Step",could you please help me out with interfaces(how many interfaces do we need on the whole).
Regards
MadhuMadhu,
Please refrain from directing questions to someone in particular. There are lots of XI experts around here who can surely help and directing questions to one person is going to discourage others from answering .
Answering your question~~ refer into this blog by Arpit and use the same concepts as he has described for File - RFC - File. The only difference will be in the datatypes and message types,
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Regards
Bhavesh -
Regarding XIF Interface and Sale Transaction in CRM
Hi,
I have done the configuration in CRM system using XIF interface to communicate with other system.
We are in the process of implementing CRM, Product and Partner data has to upload in CRM. We are not using R3 for anything.
When i create a sales transaction using transaction code CRMD_ORDER,System allow me to save/create a business transaction even though i can see the error attached to it and at the same time I can see the BDOC number in SMW01.
But i dont see any relevant OUTBOUND IDOC against the BDOC, evenif i have configured it for external system and I was expecting Outbound IDOC with error status, please correct me if i am wrong.
I am using WE02 and WE05 to see my outbound idoc and i have not found anything here.
Am i missing some step in configuration which is required for converting BDOC to IDOC, Please suggest me.
Steps which i followed to configure the system are
1. Create a suitable RFC destination in the SAP IMG Define Target Systems for RFC Calls .
2. Create a logical system.
3. Create a receiver port (transactional RFC) in SAP IMG Define Port, indicating the RFC destination you created earlier.
4. Create a partner profile, for example, partner type LS with the partner number CRM_XML_BC, in the SAP IMG Maintain Partner Profile Manually.
5. Enter all outbound parameters for the logical system CRM_XML_BC in Create Outbound Parameters in the Outbound Parameters window .
6. Create a site (transaction SMOEAC). To do this, select Object Type Sites and Create Object. Assign your site a suitable name and select Site Type External Interface for IDocs. Assign the partner profile created previously as a Site Attribute.
7. Use object type Subscriptions to maintain a subscription for publication of the object with the predefined site.
8. Create an entry for the new site using XIF customizing transaction CRMXIF_C1 via F4 help (BDoc Type = <objname>, IF Type = 'CRMXIF_*_SAVE_M', Set relevant flag for complete Data and Return). The flag Flag for complete data is only relevant for the objects "order", "business partner", and "business partner relationship". It flags whether only delta changes or the object instance should be transferred completely. The object "business document" is always sent completely, regardless of flag status.
Thanks & Regards,
Manoj TiwariHi Joao,
Thanks alot for your quick reply.
Yes i have selected "post it immediately" instead of "collect Idoc". should i select "post it immediately"??
About the Outbound parameter i specified everything like message type (crmxif_order_save_m), port , RFC destination of type R3 since we have SRM system, basic type (crmxif_order_save_m01), package and post the idoc immediately.
Here in our distributed environment we are sending data from CRM to SRM, means our target system is SRM.
I have created the Site of site type "External interface for idocs" and give the partner Number of SRM system and created subscription too as part of XIF setup.
Please reply me if i am going wrong in my approach.
Thanks & Regards,
Manoj Tiwari -
Hi All,
If We Are Developing a Sysnchronous Interface Say RFC -XI--SOAP
Then here How many Msg Interfaces We need to Develop ????
What Are those Intefaces with Mode And the Directions ???? ( Ex: Sysch,,,Outbound )
Please let me Know
Regards
VamsiHi
For HTTP-XI-RFC Go through this
/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
Thanks -
Regarding SAP interface inforamation.
Hi All,
I want to know some basic information about interfaces as :
1) Where we can check, is particular interface is active or not?
2) What type of master data does the IDoc contain (i.e. material master) ?
Awaiting for your kind reply.
With Regards,
Preeti.Hi Preeti,
In the first place, what type of interface are you looking for whether interfaces within SAP like SAP PP-WM / PP-QM etc. or whether an interface from 3rd party systems to SAP?
To your second question about the contents of the IDOC Master data, if you have the document already created goto tcode WE02 enter message type, date and time parameters and execute. Then check the individual EDI segments - Header and Detail segments. This will be based on standard EDI format.
Best Regards
Srinivas -
Regarding Message Interface Working
Hi All,
Can anybody give some help in finding wht actually happens when we create a message interface.
means in which format information entered in Message Interface gets stored.
where this object gets stored and how we can retirve information for this.
Best Regards,
AmitHi Amit,
The Objects of Message Interface will be obviously in IR Objects only.. for further info on Message Interface u just go thru the link below..
http://help.sap.com/saphelp_erp2005/helpdata/en/34/3d8942ecd55551e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/3f/01623c4f69b712e10000000a114084/frameset.htm
Regards,
Raj -
Regarding Conditional Interface Determination
Hi All,
I need small confirmation on behavior of conditional interface determination,
My source message is like below
<?xml version="1.0" encoding="UTF-8"?>
<PROS_CustInfo><Structure>
<name>ABC</name>
<data>100</data>
</Structure>
<Structure>
<name>XYZ</name>
<data>101</data>
</Structure>
</PROS_CustInfo>
I am having 2 Receiver RFC messages for same receiver.
If name=ABC then i need to send this data(ABC, 100) to first RFC by using 1st mapping else
if name=XYZ then i need to send that data(XYZ,101) to second RFC by using 2nd mapping.
But in my message name contains ABC and XYZ also. Now how conditional interface determination bahaves. Will it execute 1st mapping or 2nd mapping or both.
If you find any related post please share.
Thanks,
MadhusudhanHi Madhusudhana,
because of the problem, that only one condition can ever be true at runtime, you can avoid this by using count function. Because you can't build a Statement like count(xy) > 1 with ExpressionEditor of SAP PI, you have to use this expression with SAP PI:
/PROS_CustInfo[count(Structure[name='XYZ'])>=1] EX
This condition works on whole document.
Regards,
Alex
Edited by: Alexander Kirsch on Feb 16, 2010 4:43 PM
Edited by: Alexander Kirsch on Feb 16, 2010 4:45 PM -
Regarding Component interface controller
hi all
Can anyone explain me use of Component Interface Controller under Component with example.
Thanks in advance
ImityazHi,
Interface Controller
One Web Dynpro Component may declare the use of another Web Dynpro Component to form a u201CParent-Childu201D usage relationship. In such cases, the only point of interaction between the parent and child components is the functionality found in the childu2019s interface controller.
if an interface controller is part of a component interface, the controller editor is in change mode and the context, the events and the methods can be implemented and edited directly.
Refer this thread,step by step procedure is there.
/docs/DOC-8061#61 [original link is broken]
http://help.sap.com/saphelp_nw70/helpdata/EN/47/45641b80f81962e10000000a114a6b/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/44/0dcafa2d9d1ca2e10000000a11466f/frameset.htm
Regards,
Sunaina Reddy T -
Regarding scheduling interface
Hi
Xi guru's
please give information how to schedule our interfaces
In our project i have to run our run our interface weekly once i.e Xi need to pick the file at friday morning 5:00 clock. For frequent picking of file we go for poll interval where this scheduling is done . Is it done in R/3 ? then how to do that?
provide me solution as early as possible
Thanks in advance
Regards
raoRao,
Have you seen this weblog for scheduling of adapters:
/people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
---Satish -
Regarding (oops) Interface
hi,
could u plz tell me can we create instance for Interface,
if it is possible how?Hi Rajesh,
This program will show the use of interface reference variable and how it can be used to access the components of an interface in a class(implementing that interface). Use of interface reference variable paves the way for polymorphism via interface.
INTERFACE lif_employee
INTERFACE lif_employee.
METHODS:
add_employee
IMPORTING im_no TYPE i
im_name TYPE string
im_wage TYPE i.
ENDINTERFACE.
Super class LCL_CompanyEmployees
CLASS lcl_company_employees DEFINITION.
PUBLIC SECTION.
INTERFACES lif_employee.
TYPES:
BEGIN OF t_employee,
no TYPE i,
name TYPE string,
wage TYPE i,
END OF t_employee.
Declare event. Note that declaration could also be placed in the
interface
EVENTS: employee_added_to_list
EXPORTING value(ex_employee_name) TYPE string.
CLASS-EVENTS: Events can also be defined as class-events
METHODS:
constructor,
display_employee_list,
display_no_of_employees,
Declare event method
on_employee_added_to_list FOR EVENT
employee_added_to_list OF lcl_company_employees
IMPORTING ex_employee_name sender.
PRIVATE SECTION.
CLASS-DATA: i_employee_list TYPE TABLE OF t_employee,
no_of_employees TYPE i.
ENDCLASS.
*-- CLASS LCL_CompanyEmployees IMPLEMENTATION
CLASS lcl_company_employees IMPLEMENTATION.
METHOD constructor.
no_of_employees = no_of_employees + 1.
ENDMETHOD.
METHOD add_employee.
METHOD lif_employee~add_employee.
Adds a new employee to the list of employees
DATA: l_employee TYPE t_employee.
l_employee-no = im_no.
l_employee-name = im_name.
l_employee-wage = im_wage.
APPEND l_employee TO i_employee_list.
Raise event employee_added_to_list
RAISE EVENT employee_added_to_list
EXPORTING ex_employee_name = l_employee-name.
ENDMETHOD.
METHOD display_employee_list.
Displays all employees and there wage
DATA: l_employee TYPE t_employee.
WRITE: / 'List of Employees'.
LOOP AT i_employee_list INTO l_employee.
WRITE: / l_employee-no, l_employee-name, l_employee-wage.
ENDLOOP.
ENDMETHOD.
METHOD display_no_of_employees.
Displays total number of employees
SKIP 2.
WRITE: / 'Total number of employees:', no_of_employees.
ENDMETHOD.
METHOD on_employee_added_to_list.
Event method
WRITE: / 'Employee added to list', ex_employee_name.
ENDMETHOD.
ENDCLASS.
Sub class LCL_BlueCollar_Employee
CLASS lcl_bluecollar_employee DEFINITION
INHERITING FROM lcl_company_employees.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING im_no TYPE i
im_name TYPE string
im_hours TYPE i
im_hourly_payment TYPE i,
add_employee REDEFINITION.
lif_employee~add_employee REDEFINITION..
PRIVATE SECTION.
DATA:no TYPE i,
name TYPE string,
hours TYPE i,
hourly_payment TYPE i.
ENDCLASS.
*---- CLASS LCL_BlueCollar_Employee IMPLEMENTATION
CLASS lcl_bluecollar_employee IMPLEMENTATION.
METHOD constructor.
The superclass constructor method must be called from the subclass
constructor method
CALL METHOD super->constructor.
no = im_no.
name = im_name.
hours = im_hours.
hourly_payment = im_hourly_payment.
ENDMETHOD.
METHOD add_employee.
METHOD lif_employee~add_employee.
Calculate wage an call the superclass method add_employee to add
the employee to the employee list
DATA: l_wage TYPE i.
l_wage = hours * hourly_payment.
CALL METHOD super->add_employee
CALL METHOD super->lif_employee~add_employee
EXPORTING im_no = no
im_name = name
im_wage = l_wage.
ENDMETHOD.
ENDCLASS.
Sub class LCL_WhiteCollar_Employee
CLASS lcl_whitecollar_employee DEFINITION
INHERITING FROM lcl_company_employees.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING im_no TYPE i
im_name TYPE string
im_monthly_salary TYPE i
im_monthly_deductions TYPE i,
add_employee REDEFINITION.
lif_employee~add_employee REDEFINITION.
PRIVATE SECTION.
DATA:
no TYPE i,
name TYPE string,
monthly_salary TYPE i,
monthly_deductions TYPE i.
ENDCLASS.
*---- CLASS LCL_WhiteCollar_Employee IMPLEMENTATION
CLASS lcl_whitecollar_employee IMPLEMENTATION.
METHOD constructor.
The superclass constructor method must be called from the subclass
constructor method
CALL METHOD super->constructor.
no = im_no.
name = im_name.
monthly_salary = im_monthly_salary.
monthly_deductions = im_monthly_deductions.
ENDMETHOD.
METHOD add_employee.
METHOD lif_employee~add_employee.
Calculate wage an call the superclass method add_employee to add
the employee to the employee list
DATA: l_wage TYPE i.
l_wage = monthly_salary - monthly_deductions.
CALL METHOD super->add_employee
CALL METHOD super->lif_employee~add_employee
EXPORTING im_no = no
im_name = name
im_wage = l_wage.
ENDMETHOD.
ENDCLASS.
R E P O R T
DATA:
Object references
o_bluecollar_employee1 TYPE REF TO lcl_bluecollar_employee,
o_whitecollar_employee1 TYPE REF TO lcl_whitecollar_employee.
START-OF-SELECTION.
Create bluecollar employee obeject
CREATE OBJECT o_bluecollar_employee1
EXPORTING im_no = 1
im_name = 'Gylle Karen'
im_hours = 38
im_hourly_payment = 75.
Register event for o_bluecollar_employee1
SET HANDLER o_bluecollar_employee1->on_employee_added_to_list
FOR o_bluecollar_employee1.
Add bluecollar employee to employee list
CALL METHOD o_bluecollar_employee1->add_employee
CALL METHOD o_bluecollar_employee1->lif_employee~add_employee
EXPORTING im_no = 1
im_name = 'Gylle Karen'
im_wage = 0.
Create whitecollar employee obeject
CREATE OBJECT o_whitecollar_employee1
EXPORTING im_no = 2
im_name = 'John Dickens'
im_monthly_salary = 10000
im_monthly_deductions = 2500.
Register event for o_whitecollar_employee1
SET HANDLER o_whitecollar_employee1->on_employee_added_to_list
FOR o_whitecollar_employee1.
Add bluecollar employee to employee list
CALL METHOD o_whitecollar_employee1->add_employee
CALL METHOD o_whitecollar_employee1->lif_employee~add_employee
EXPORTING im_no = 1
im_name = 'John Dickens'
im_wage = 0.
Display employee list and number of employees.
CALL METHOD o_whitecollar_employee1->display_employee_list.
CALL METHOD o_whitecollar_employee1->display_no_of_employees.
Reward Points, if useful.
Regards,
Manoj Kumar -
Hi Guys,
I am new to SAP XI. Only thing I know is Message Interfaces are very key role to play in SAPXI. In case of any IDOC Are BAPI you can directly import them to I.R as interface objects. for example there are lots of IDOCS Available like BATMAS, MATMAS, ORDERS, CREMAS, there is lot of confusion on this what information this IDOCS contain how can we Know that particular IDOC contains the information Meeting our requirement. In case I am integrating MM Module Are SD module with SAP what interfaces I need to use pls any one explain me with clear scenario. and also pls help with some realtime docs so I can understand the things better. Thanks in advance.
Regard's
Kiran.BHi Kiran,
There is no confusion about IDOCs. The requirement shows the what type of IDOC u want to used.
The XI guys will take care of the Import the IDOC from particular R/3 system.
Like same RFC Function Modules also..
When ever we used IDOC we need configured setting in R/3 & XI Systems.
__Configured steps in R/3 System:__
1) RFC Destination-- SM59
--> Create the RFC Destination
--->Crate the RFC Destination type 3(R/3 system)
---> specify the server address of the Integration server as target hosts
2) Port----WE21
_---->Create the port for transaction RFC
> Enter the RFC Destination
3) Partner Profiles--WE20
Configure the steps in XI System:
1) Create the RFC destination (SM59)
2) Create the IDOC port into IDOC adapter(IDX1)
3) Load the meta data of IDOC into IDOC Port(IDX2)
Regards,
Nskumar -
Doubts regarding Inbound Interface
Hello All,
Im trying to import item categories into base table mtl_item_categories... for that in plsql program
1) i loaded data into staging table
2)performed some validations
3)inserted into interface table-- mtl_item_categories_interface
After this should i call the api INV_ITEM_CATEGORY_PUB.Create_Category_Assignment explicitly or not?????????
Thanks in advance.
Edited by: user13552077 on Jun 29, 2011 12:50 PMHi,
In order to import Item Categories from interface table (MTL_ITEM_CATEGORIES_INTERFACE) to base table, please run the concurrent program using below navigation, this should create item categories in inventory.
Inventory>Items>Import>Import Item Category Assignments.
Excerpts from previous post: ------------
Hi before using the mtl_item_categories_interface you have load all the ietms into inv with the help of mtl_system_items_interface when you do this automatically a default category id and category set_id will be assigned to the loaded items. so when you try to insert it wont take it. instead you have to update the category and category set id if necesaary..so the status should be update and you should provide the defalut category and category set id and along with the desired category id and category set id which you wish to populate. still facing the issue post me ur code I will correct it as i already did this conversions
Link: -------------------
reg : mtl_item_categories_interface
Regards,
Yuvaraj.C -
Hi All,
I have to develop QM interfaces...The Scenario is as below.. Please guide me how to proceed
1. Once inspecton lot completed, data has to go to external system in table format.
2. After that results recording and UD has taken care in the external system
3. Once results are updated with ok, UD has to update automatically in the SAP system
4. In case of rejection, defects will send to SAP system and based on defects need to update Notification in SAP system
5. After that notification need to send to External system.
6. I have to send master data like characteristics, Catalogs, sample procedures and sample scheme
Pls help me how i have proceed....
I already check with QM-IDI interfaces, but Results updation and UD updation and Notification updation will automatically done, this purpose will solve.
If it solves pls provide me the techniqes to handle these QM-IDI secenarios...
Regards,
ReddyNaraHi Kiran,
There is no confusion about IDOCs. The requirement shows the what type of IDOC u want to used.
The XI guys will take care of the Import the IDOC from particular R/3 system.
Like same RFC Function Modules also..
When ever we used IDOC we need configured setting in R/3 & XI Systems.
__Configured steps in R/3 System:__
1) RFC Destination-- SM59
--> Create the RFC Destination
--->Crate the RFC Destination type 3(R/3 system)
---> specify the server address of the Integration server as target hosts
2) Port----WE21
_---->Create the port for transaction RFC
> Enter the RFC Destination
3) Partner Profiles--WE20
Configure the steps in XI System:
1) Create the RFC destination (SM59)
2) Create the IDOC port into IDOC adapter(IDX1)
3) Load the meta data of IDOC into IDOC Port(IDX2)
Regards,
Nskumar
Maybe you are looking for
-
I want to upgrade to leopard but not got intel
i purchased my g5 a while ago now and since apple released snow leopard the original leopard is impossible to buy. With the original g5 being power pc and not intel im unable to purchase any newer versions apart from os x leopard. i just don't want t
-
How do I sharpen video from DSLR in Premiere Elements 11?
I've been using PE11 for some time now. Mostly for home videos and a youtube channel. Up until this point I have used a Canon Vixia HF M-50 which was great. I had to do very little adjusting the picture in post for what I needed. But I just recieved
-
IMac shut down and will not turn on no matter what I try...help!
I am hoping that someone can help me. I have a 20", 2.0GHz Intel Core 2 Duo iMac that was purchased late 2007. A few days ago, it shut down on it's own during normal computer use and it won't turn back on since. I have searched through the boards and
-
Customer credit limit - Report
Hi I need to take a report as below Customer a/c Terms of payment Credit limit is there any standart report available in SAP. Please let me know regards Hari
-
Apple TV freezes after watching a program ever since we did the last update?
Having problems with Apple TV freezing ever since last update