Creation of interfaceses in ABAP

HI
GURUS PLS HELP ME HOW TO DO INTERFACES
USING RFC&BAPI

Bapi is an inerface . but interface in ooabap and interface in bapi r different.
BAPI is a remote enabled finction module and connect the two systems.
Interfaces are independent structures that allow you to enhance the class-specific public points of contact by implementing them in classes.
Interfaces can be defined globally in the R/3 repository or locally in ABAP program
Can define exactly same components in Interfaces as in Classes
Unlike classes, Interfaces do not have instances, instead they are implemented by classes
Implemented using INTERFACES statement in the declaration part of the class
INTERFACES statement must be included in the PUBLIC SECTION of the class
Different classes that implement the same interface can all be addressed in the same way.
Interface references allow users to address different classes in the same manner.
Interfaces can also be nested.
Interfaces are the basis for polymorphism in classes, because they allow a single interface method to behave differently in different classes.
we use interfaces in badis all over implementation belongs to the interfaces only
in interfaces we have implemntation methods.
i am giving syntax for that
METHOD intf~meth.
ENDMETHOD.
Have a look at this link.
http://help.sap.com/saphelp_46c/helpdata/en/22/042427488911d189490000e829fbbd/content.htm
Other type of Interfaces are
http://help.sap.com/saphelp_nw70/helpdata/en/ec/d9ab291b0b11d295400000e8353423/content.htm
Inbound & Outbound Interfaces.
Outbound Interfaces - Retrieving data from SAP and sending to other systems.
Inbound Interfaces - Sending data from other system to SAP.
Example
Outbound interface is used to send IDocs to the ALE server.
Inbound interface is used to Analyse the received Idoc.
Check this link.
http://help.sap.com/saphelp_nw04/helpdata/en/cd/0b733cb7d61952e10000000a11405a/content.htm
Have a look at this link.
http://help.sap.com/saphelp_46c/helpdata/en/22/042427488911d189490000e829fbbd/content.htm
Other type of Interfaces are
http://help.sap.com/saphelp_nw70/helpdata/en/ec/d9ab291b0b11d295400000e8353423/content.htm
Check the forum links below:
INTERFACES
INTERFACES
interfaces
interfaces
Reward points if useful.

Similar Messages

  • Sales order creation using webdynpro in ABAP

    Plz give the process how to create sales order creation using webdynpro in ABAP. if not possible plz let me know how to create in JAVA.
    It is very urgent. I hope i will get it very soon.
    Thanks all
    Sai

    In your WDA application,  all you need to do is call the BAPI BAPI_SALESORDER_CREATEFROMDAT2 when the user clicks some button.  Most likely, you can put the code for this BAPI call in the onAction method for your button. 
    Regards,
    Rich Heilman

  • Creation of IDOC through abap program.

    hello all,
    I hav created idoc through abap program. I hav used FM 'Master_idoc _distrribute'.this program creates an idoc but giving status 30. can any one tell me how to get status 03. I hav already created port, Logical sys,partner no.,distribution model.
    My Program is as follows:
    ABLES : CRMD_ORDERADM_I,CRMD_ORDERADM_H,CRMD_SCHEDLIN.
    DATA : S_CTRL_REC LIKE EDIDC OCCURS 0 WITH HEADER LINE,"Idoc Control Record
           ORDER_NO TYPE CRMT_OBJECT_ID VALUE '5000000032'," SEGMENT ORDER DATA
           PRODUCT TYPE CRMT_ORDERED_PROD VALUE 'SRV_01',
           QUANTITY TYPE CRMT_SCHEDLIN_QUAN VALUE '1.000'.
    DATA : ZORDER LIKE ZORDER_NUM OCCURS 0 WITH HEADER LINE.
    DATA :  T_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.     "Data Records
    DATA :  T_COMM_IDOC LIKE EDIDC OCCURS 0 WITH HEADER LINE. "Generated Communication IDOc
    CONSTANTS :
    C_ZRZSEG1 LIKE EDIDD-SEGNAM VALUE 'ZORDER_NUM'.
    PARAMETERS :  C_MESTYP LIKE EDIDC-MESTYP DEFAULT 'ZORDER_IDOC2', "Message Type
                  C_RCVPRT LIKE EDIDC-RCVPRT DEFAULT 'LS',          "Partner type of receiver
                  C_LOGSYS LIKE EDIDC-RCVPRN DEFAULT 'BSNL_OUT',
                  C_RCVPOR LIKE EDIDC-RCVPOR DEFAULT 'A000000006',
                  C_SNDPOR LIKE EDIDC-SNDPOR DEFAULT 'SAPBCD0000',
                  C_SNDPRN LIKE EDIDC-SNDPRN DEFAULT 'BCDCLNT100',
                  C_IDOCTP LIKE EDIDC-IDOCTP DEFAULT 'ZORDER2',
                  C_SNDPRT LIKE EDIDC-SNDPRT DEFAULT 'LS'.          "Destination System
    ***START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM GENERATE_CONTROL_RECORD.
      PERFORM SEND_IDOC.
    *&      Form  generate_control_record
    FORM GENERATE_CONTROL_RECORD .
      S_CTRL_REC-RCVPOR = C_RCVPOR. "Receiver Port
      S_CTRL_REC-MESTYP = C_MESTYP. "Message type
      S_CTRL_REC-IDOCTP = C_IDOCTP. "Basic IDOC type
      S_CTRL_REC-RCVPRT = C_RCVPRT. "Partner type of receiver
      S_CTRL_REC-SNDPOR = C_SNDPOR. "SENDER PORT
      S_CTRL_REC-RCVPRN = C_LOGSYS. "Partner number of receiver
      S_CTRL_REC-SNDPRT = C_SNDPRT. "Sender Partner type
      S_CTRL_REC-SNDPRN = C_SNDPRN. "Sender Partner Number
    APPEND S_CTRL_REC.
    ENDFORM.                    " generate_control_record
    *&      Form  send_idoc
    FORM SEND_IDOC.
    ZORDER-ORDER_NO = ORDER_NO.
    ZORDER-PRODUCT = PRODUCT.
    ZORDER-QUANTITY = QUANTITY.
    APPEND ZORDER.
    T_EDIDD-SEGNAM = C_ZRZSEG1.
    T_EDIDD-SDATA = ZORDER.
    APPEND T_EDIDD.
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          MASTER_IDOC_CONTROL            = S_CTRL_REC
        TABLES
          COMMUNICATION_IDOC_CONTROL     = T_COMM_IDOC
          MASTER_IDOC_DATA               = T_EDIDD
        EXCEPTIONS
          ERROR_IN_IDOC_CONTROL          = 1
          ERROR_WRITING_IDOC_STATUS      = 2
          ERROR_IN_IDOC_DATA             = 3
          SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
          OTHERS                         = 5.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        COMMIT WORK.
        LOOP AT T_COMM_IDOC.
          WRITE:/ 'IDoc Generated - ', T_COMM_IDOC-DOCNUM.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " send_idoc
    I hav created segment , basic type,message typealso and release also .I also linked them.
    Plz help me.
    Hemlata

    Hi Hemalatha,
    Just call this Progream RSEOUT00 from your Zprogram and pass the basic parameters like IDOC number, Basic type,Partner number etc.
    You can check the parameters by executing the Program RSEOUT00.
    This Program will change the status of your IDOC 30 to 03.
    Thanks.
    Note:Reward Points if you find useful.

  • Widget creation in Web Dynpro ABAP

    Hi All,
    I have one doubt that is there any way to create simple widgets in WD4A just to display some data on the SAP screen.
    For eg. There will be invoices which will either be posted or blocked. Based on the status i want to display the counts of the posted invoices and blocked invoices on the SAP screen.
    Please let me know if it is possible in Web Dynpro for ABAP ??? if yes then how??
    Thanks in Advance,,
    Abhijeet

    Hi Abhijit,
    There is a tool wigdet gallery is there for this it only in beta version, once it is ready you can use it,
    Best regards,
    Rohit

  • Dynamic creation of node in ABAP WD

    Hi All,
    Can anyone please suggest me why in ABAP webdynpro the second code is more prefareable then the first one.
    It's mentioned in SAP material that the 2nd code is more prefarable.
    1) lr_parent_node = wd_context->get_child_node(
       name = '<parent_node>' )
      lr_parent_node_info = lr_parent_node->get_node_info( )
    2) lr_root_node_info = wd_context->get_node_info( )
       lr_parent_node_info = lr_root_node_info->get_child_node(
       name = '<parent_node>' )

    Hi Suman,
    I would suggest that you ask questions about ABAP WD in the forum for ABAP WD.
    Kind regards,
    Ulrich

  • Creation of task via ABAP

    Hello Experts,
          I am SRM Consultant & working on a requirement related to portal. We have a requirement to create a task (Universal worklist) automatically from ABAP i.e. Customized SRM transaction. Is it possible to achieve this ?? IF so can anyone tell me step by step how can I achieve this ??? Would appreciate if anyone can send me a document or step-by-step way to do this.
    Would reward points definitely for helpful answer.
    Thanx in advance.

    Hi Michael,
      Many thanks for the reply. Actually I thought of one alternative as workflow task only  but it does not have collboration feature like the task created via Universal worklist.
    Basically the requirement is Users and approvers must be able to add multiple trackers / approvers in the task created from ABAP which is not possible when workflow task is created.
    Can you suggest something for above reqmt ?
    Thanks again,
    Rajeshree

  • How to know if iam in tcode  creation or modif  inside abap  prog ?

    hello ,
    i  want  to  know if there  is any things  that can  help  me to know  if  iam  in tcode  of creation (ME21N) o  modification (ME22N/ME23N) for  PO,  without using  sy-tcode inside a program of smartforms edition.
    thanks ,
    karim

    >
    karim sefiani sefiani wrote:
    > hello ,
    >  
    > i  want  to  know if there  is any things  that can  help  me to know  if  iam  in tcode  of creation (ME21N) o  modification (ME22N/ME23N) for  PO,  without using  sy-tcode inside a program of smartforms edition.
    >
    >  thanks ,
    > karim
    Please check the value of the variable T180-TRTYP
    T180-TRTYP = H - Create - ME21N
    T180-TRTYP = V - Change - ME22N
    generally 'A' in case of display transactions, however the table T180 shows the value 'V' in case of ME23N also, kindly check

  • Creation of Program using ABAP Query (SQ01)

    Hi All,
    I have a program called "AQL4FI==========INVOICE_CHECK=" in my 4.6 server but a similar program doesnot exist in ECC.
    From the name, it looks like a program created using SQ01.
    Can anyone please help as to how to create the same program in ECC using SQ01 by looking at the program in 4.6?
    Please help.
    Helpful answers will be fully rewarded.
    Thanks a ton.
    Naba

    First thing is this is not the way to convert the SAP Query to Report.
    First check that how many table in your query they have used.To check this if you go in SQ02 press display button left side you can see the tables.To check the fields selecting from tables check in field groups.
    In record processing check are there any conditions are there.
    Now wrire a select statement by joing all tables which you found above and in this select statement extract all fields which you found in field group into one internal table .Here you give the selection screen fields as condition fields in select statement.If you found any conditions in record processing event ,Loop that internal table and check the conditions or modifications.
    If you need more help let me know.
    Pls. reward points for helpful answers
    Thanks
    Murali Poli

  • How to integrate WebDynpro for ABAP application with SAPEnterprisePortal7.0

    Hi WebDynpro for ABAP Experts,
    We developed an WebDynpro for ABAP application on R/3, and now we are planning to show this as an iview on SAP Portal EP7.0 (SAP j2EE Engine--Java stack). is it possible to integrate this application with portal?
    If so can you proviode me the way how can we achieve this?
    ADV Thanks
    Regards
    Phani

    Hi Alex,
    Thanks for your response.
    I already created the system object R/3 Backend.
    Actually some WebDynpro java applications/iViews are currently running on Portal. and the developers developed these in NWDS and deployed the .sca files on the Portal server and we created Webdynpro for java iViews.
    but now the requirement is creation of webDynpro for ABAP views.
    The developers developed  WebDynpro for ABAP on the R/3 system. So what are the parameter values we need to give at teh time of creation of  WebDynpro for ABAP iview like the Namespace, Application name etc which are mandatory values and how the Portal server detects the application, this means no need to deploy the application on the Portal server?
    Shall we need to maintain any JCo Destinations or not?
    Pl share your ideas.
    ADV Thanks
    Regards
    Phani

  • Technical System of Web AS ABAP

    hi all,
    i have following doubts when creating technical system of web as ABAP type.
    1)when creating techincal system it is asking me for
    ' Message Port (sapmsXXX): '. what should i enter for this field and wheredo i get the details from. by default it is taking 3600 is it ok if i go ahead with 3600.
    2) logical system name .it appears it is optional but should i fill this entry as well.
    3) After creating the technical system. do i need to fill TMS Domain and TMS Transport Group Name. if yes how do i need to fill and and what is the use of this field.
    can some one suggest me a blog for Technical System creation for  web as abap type.
    thanks,
    raj

    Hi,
    you can do it automatically
    check out my weblog:
    /people/michal.krawczyk2/blog/2005/03/10/registering-a-new-technical-system-in-sld--abap-based
    or you can find how to do it
    (in more details) in my book too:
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Any advice / guide on how to create separate Stack ABAP + JAVA for CTS+

    Hello Experts,
    Can you please point me to the how to guide for creation of separate Stacks ABAP + JAVA for CTS+ Transport Management.
    Also can you please clarify how I can convert STMS Virtual systems in to Real systems? Any guidance for this?
    Thank you

    Hello,
    You should have a look at the installation guide.
    http://service.sap.com/instguides -> SAP Components -> SAP Solution Manager -> Release XXX
    For instance :
    http://service.sap.com/instguides -> SAP Components -> SAP Solution Manager -> Release 7.0 EHP 1
    Then have a look at section 4.2 Installation Checklist u2014 Java Add-In
    It covers:
    Java Add-In for an existing central ABAP system
    Java Add-In for an existing distributed ABAP system
    Java Add-In for an existing High-Availability ABAP system
    ABAP+Java Dialog instance
    Regards,
    Paul

  • TDMS shell creation  - R3szchk running longtime

    Hi,
    I am running a shell creation package, in Export ABAP phase R3szchk running long time and there is nothing written to log file
    -rw-r-----    1 root     sapinst           0 Oct  4 19:56 /tmp/sapinst_instdir/ERPEhP4/LM/COPY/DB6/EXP/CENTRAL/AS-ABAP/EXP/R3szchk.exe.log
    where else I can check to find out the issue?
    Thanks
    Din

    Thanks Pankaj for the valuable information.
    ---The size of exports may depend on the data in your client independent tables. There are certain client indepedent table which hold a lot of data for example STXL, STXH and DYNP* tables. It also depends on the volume of custom development that you have done in your systems. Most of the client independent tables are exported in full duing shell.
    I could understand that. I ran an optional activity u201CCheck size of large tables (optional)u201D  in TDMS Shell package, it returns witj some large tables, such as
    STXH- 190,854,900 KB
    STXL- 26,819,840 KB
    DYNPSOURCE- 20,452,251 KB, some of these are independent and some are dependent tables. For ex. STXH is dependent table with size 190GB, does it means that this table will be exported in full during shell export?
    However, you need to be sure that because of certain mistakes you are not exporting the complete system (including application data). As stated by Marcus, you need to make sure that you are using Migration monitor in manual mode and that you configure the Migration monitor control file with correct parameter values.
    I think I configured import monitor control file correctly and started it manually.
    Here is the import monitor startup log:
    Export Monitor is started.
    CONFIG: 2011-10-05 00:49:22
    Application options:
    dataCodepage=4102
    dbType=DB6
    ddlFile=/shell_install/DDLDB6.TPL
    ddlMap=
    exportDirs=/shell_export/ABAP
    ftpExchangeDir=
    ftpExportDirs=
    ftpHost=
    ftpJobNum=3
    ftpPassword=*****
    ftpUser=
    host=
    installDir=/shell_install
    jobNum=6
    loadArgs=
    mailFrom=
    mailServer=
    mailTo=
    monitorTimeout=30
    netExchangeDir=
    orderBy=name
    port=
    r3loadExe=
    server=
    taskArgs=
    trace=all
    tskFiles=yes
    Thanks
    Din

  • How to setup BPEL JNDI connection on the application server

    Hi
    Can anyone tell me how to write a JNDI connection for my BPEL process? Currently we are invoking all my BPEL processes from a property file, but i need to call my BPEL process thru JNDI connection. Is it possible? If yes then How?
    Has anyone got any idea? Please let me know
    BTW, you need more clarification on the question, let me know please.
    Thanks.
    Deepak

    Hi Grafl,
    Chk this link
    Folder creation in AL11 using ABAP program
    try this code.This works on UNIX servers
    data: unixcom like   rlgrap-filename.
    data: begin of tabl occurs 500,       
            line(400),    
          end of tabl.
    dir = unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command 
    call 'SYSTEM' id 'COMMAND' field unixcom
                      id 'TAB' field tabl[].
    <b>Reward Points if Useful</b>
    Regards
    Gokul

  • How to Integrate Office2000,Adobe Phototshop application with IFS

    hi ,
    Requirement : How can i do Content Management Functionalities like(Checkin,checkout,make a file versioned,copyout,save,open,lock,unlock etc) while open/save a file using Open/SaveAs Dialog Of Desktop Application like Microsoft Word,PPT,XL,Adobe products like Phtoshop,Illustrator on Windows and Machintosh Environment?
    My Thought : As Far as i know IFS supports a set of protocols (SMB,NTFS,WebDav,Http,IMAP,SMTP etc) and provides a set of API's which are exposed as Java API. I have seen the WinUI application that is provided by oracle for Explorer Integration. I want a application like that to be plugged in to All desktop products which can talk to Oracle IFS
    My Question:
    1. What are the customization required at Client OS Side/Desktop Application () side?
    2. What is the customization required at Server Side (Oracle IFS Side ) in terms of Custom classes,parsers,Agents ?
    3. Which protocols to use in client side to communicate and how ?
    4. Can u send me the Explorer Integration source Code in windows for my reference ?
    5. What is client side protocols and usages in Machintosh to connect to Oracle IFS ?
    I think sombody at oracle or people oute there may have faced the same problems and aware of this ..
    Please reply me in this regard at [email protected] as i urgently need the replies so that i can talk to my client ..
    regards
    rajaram
    [email protected]

    Hi Alex,
    Thanks for your response.
    I already created the system object R/3 Backend.
    Actually some WebDynpro java applications/iViews are currently running on Portal. and the developers developed these in NWDS and deployed the .sca files on the Portal server and we created Webdynpro for java iViews.
    but now the requirement is creation of webDynpro for ABAP views.
    The developers developed  WebDynpro for ABAP on the R/3 system. So what are the parameter values we need to give at teh time of creation of  WebDynpro for ABAP iview like the Namespace, Application name etc which are mandatory values and how the Portal server detects the application, this means no need to deploy the application on the Portal server?
    Shall we need to maintain any JCo Destinations or not?
    Pl share your ideas.
    ADV Thanks
    Regards
    Phani

  • How to create folder on server.

    Hello,
    I want to make folder on remote server using sun.net.ftp. So how i can do that? I have api to create folder using issueCommand(newdir). But when i do this it gives null pointer error. In issueCommand() only pass directory name or path of remote server in which i want to create this folder.
    For example
    remotes server path : apps/bhavesh
    new folder name like : test
    so in issueCommand() pass only folder name or path also. and how i can do that?
    Reply me As soon as possible.
    Regards,
    Bhavesh Kharwa

    Hi Grafl,
    Chk this link
    Folder creation in AL11 using ABAP program
    try this code.This works on UNIX servers
    data: unixcom like   rlgrap-filename.
    data: begin of tabl occurs 500,       
            line(400),    
          end of tabl.
    dir = unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command 
    call 'SYSTEM' id 'COMMAND' field unixcom
                      id 'TAB' field tabl[].
    <b>Reward Points if Useful</b>
    Regards
    Gokul

Maybe you are looking for

  • Connecting iBook G3 as second monitor for iBook G4

    I want to know if (and then how) I can connect my iBook G4 (running on OSX (10.4.5)) to an iBook G3, ultimately connecting the iBook G3 to a data projector, so that I can use presenter tools in PowerPoint. iBook G4, iBook G3 Mac OS X (10.4.5) iBook G

  • IMessage Won't Open on iPad 2 iOS 6.1.3

    My 32GB Black Wi-Fi iPad 2 Running iOS 6.1.3 has been working fine until recently. My friend spammed me with messages on iMessage and now it won't open. I launch it and it crashes. I've tried a soft reboot, a hard reboot, and a "reset all settings."

  • Thinkpad 600E "bluescreens" on startup indicating BIOS error

    I have a 600E which on starting up Windows XP "bluescreens" displaying in part: your computer (BIOS) has reported that a component in your system is faulty and has prevented windows from operating. You can determine which component is faulty by runni

  • EStore and Google docs

    I am about four days into owning the C510 eStation. In the print app center, there is an app promoted for eDocs, which looks great!  I can link to a page that even shows how documents would look! The problem is that there does not appear to be any wa

  • JSP - HTTP Session memory leak !!!

    Hi there, Another problem with JSP implementation of the framework !!! I just added a debugging option to the jsp that show me the session.getValueParameters() with their value. My question is why or when are the rowkeys flush out of the session envi