General questions on IDOCs and IDOCs for 2 Accounting Interface BAPIs

This post involves several questions pertaining to the topic of IDOC creation. I downloaded a couple of PDFs and tried googling for material on that, but things are far from being clear in my mind.
I tried to put my questions in some order, so we can follow a line of reasoning. Here we go, then:
I have one code where I there are calls to 2 BAPIs:
- BAPI_ACC_ACT_POSTINGS_REVERSE and
- BAPI_ACC_GL_POSTING_REV_POST
I am supposed to prepare/create an IDOC to perform the activities these BAPIs are responsible for, for the sole purpose of providing us much more details on the activities being executed in the system - this is one of the IDOC's features, if I got it right, its highly detailed logging of everything that is going on behind.
Now, the 1st question arises:
From the material I read, I understood that IDOCs are nothing more than data containers, whose sole purpose is to provide a means of communication between two different systems/parties - one of them would usually be SAP. If this is right, than what sort of IDOC would be this one I am supposed to build - if there's not going to be any inter-system communication ? Doesn't it sound strange that pure "data containers" can work as "logging functions" ? Please share some light here.
The 2nd question - after I understand what an IDOC really is - is
then connected to the job I have to do. I found 2 IDOCs which I think have the proper/correspondent basic types for the 2 aforementioned BAPIs. They are, respectively:
- ACC_DOCUMENT_REVERSE01 and
- ACC_GL_POSTING_REVERSE01
Getting back to my understanding of IDOCs, I got that every IDOC is generally made of one control record, data record(s), and status record(s). 3rd question: Where do the segments fit in ? Are the segments definitions of the Data Records ? And why is it that some IDOC types have header segments only and others doesn't have one ? (header segments are not the same as control records, right ?)
Finally, what is the general process flow for creating/preparing an IDOC ? I looked over a couple of forum posts about this but some of them differ one from another in the order of the steps, some don't mention this or that step, so I am still confused.
4th and last question: what comes first ? The definition of a partner, the bonding of a message type with an IDOC basic type, definitions of the inbound/outbound interfaces ?
Any help here would be highly appreciated.
Thanks in advance,
Avraham

Hi Jaya,
Answer 1. Class is a template for creating objects. Object can also be called as instance.
Interfaces allow you to use different classes in a uniform way (polymorphism).
Answer 2. Normal abap is a procedural programming where as by using abap objects we can achieve object oriented programing.
Answer 6. Source code:
In below code i have created a interface and a class which is implementing the interface. I have declared a reference variable of type interface and created a object. Then i have called a method.
REPORT  ZABAPOBJECTS_INTERF.
      INTERFACE I1
INTERFACE I1.
  METHODS METH1.
ENDINTERFACE.                    "I1
      CLASS C1 DEFINITION
CLASS C1 DEFINITION.
  PUBLIC SECTION.
    METHODS: METH2.
    INTERFACES: I1.
ENDCLASS.                    "C1 DEFINITION
      CLASS C1 IMPLEMENTATION
CLASS C1 IMPLEMENTATION.
  METHOD I1~METH1.
    WRITE: / 'This is a method one'.
  ENDMETHOD.                                                "I1~METH1
  METHOD METH2.
    WRITE: / 'This is a method two'.
  ENDMETHOD.                                                "METH2
ENDCLASS.                    "C1 IMPLEMENTATION
START-OF-SELECTION.
  DATA : REF1 TYPE REF TO I1.
  CREATE OBJECT REF1 TYPE C1.
  CALL METHOD REF1->METH1.
Question 7: Yes we need to create a class but most probably we use the existing classes.
Regarding BAPi's go through the below links,
http://www.sapgenie.com/abap/bapi/example.htm
http://www.sapdevelopment.co.uk/bapirfc/bapirfchome.htm
Regards,
Azaz Ali.

Similar Messages

  • Manual creation of idoc for a Accounting document FIDCC1

    Hi,
    Some of the config for the change pointer was not moved to production and some accounting documents have been created which have not triggered the IDOC.
    Is there a way to create the idoc for the accounting documents already created.
    Regards,
    Puneet.

    Once you have all your change pointers setup correctly (view bd52) then you should be good to go BUT to answer your question about the existing documents .. you would need to somehow "touch" those documents to trigger the creation of the IDOCs. You can modify something on then that also is attached to the change pointer say a date? 1/11/11 change to 1/12/11 but don't save that value .. change back to 1/11/11 then save.
    Just my thoughts .. let me know how it goes.
    Jay Esparza

  • HT5312 I want to know the questions and protection for my account because my account is locked I can not buy please help

    I want to know the questions and protection for my account because my account is locked I can not buy please help

    The page that you posted from tells you how to reset them i.e. if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 half-way down that page should let you reset them.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use

  • HT204088 I bought a gift card in my account and introduced new, but asked me to enter the account once again I do not remember which email account is not recorded it, but I have the card number and PIN for my account Can you help me?

    I bought a gift card in my account and introduced new, but asked me to enter the account once again I do not remember which email account is not recorded it, but I have the card number and PIN for my account Can you help me?

    Help you what?
    We are itunes users just like you.
    Not sure I understand your question.
    Please explain.

  • Purchased the gift card in my account and introduced new, but asked me to enter the account once again I do not remember which email account is not recorded it, but I have the card number and PIN for my account Can you help me?

    Purchased the gift card in my account and introduced new, but asked me to enter the account once again I do not remember which email account is not recorded it, but I have the card number and PIN for my account Can you help me?

    I'm sorry, I do not fully understand your question. However if you are looking for the email address which you have used for your iTunes account, you can find this out by using the "get info" command on any items you have previously purchased from iTunes and navigating to the summary tab.

  • Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when i enter account name and password for one account, i cannot access other accounts, because windows saves username

    Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when I enter account name and password for one account, i cannot access other accounts, because windows saves username. how can i prevent this from happenning. I really need to access all my accounts and dont want it to save automaticlly.

    Why have 5 accounts if you need to access all of them.. just have one account?
    Sorry I cannot follow why you would even use the PC to control the Time Capsule. Apple have not kept the Windows version of the utility up to date.. so they keep making it harder and harder to run windows with apple routers.

  • I can't get FaceTime or iMessage to connect, I enter valid password (tested and works for Apple account) and it won't connect. I have checked all settings, upgrades iOS to 8.3 rebooted, changed Apple acount PW still wont connect. My internet connecti

    I can't get FaceTime or iMessage to connect, I enter valid password (tested and works for Apple account) and it won't connect. I have checked all settings, upgrades iOS to 8.3 rebooted, changed Apple acount PW still wont connect. My internet connection is fine Safari works and I can access all sites. I have an iPad 2. Any help on this will be greatly appreciate.  iPad 2, iOS 8.3

    This is an ongoing problem as you will see by searching the forum. 
    Out of curiosity, do you have 2 step verification enabled?  It was recently extended to include iMessage & FaceTime & I'm wondering if it might be causing some of the issues that some users are experiencing.

  • I can't remember the password I used to set up icloud nor the email I used to set it up with. I have my apple ID and email for that account.

    I recently had to do a factory restore on my iphone 4s. Upon trying to set up my phone again I am being asked to sign into my icloud account. I can't remember the password or the email I used to set it up. I know my Apple ID, password and email for that account, but that doesn't allow me to get back into my phone. I can't reset the icloud password because I can't remember the email I used. Any ideas on what I can do please ?

    Hi, Fugalltadowivu.  
    Thank you for visiting Apple Support Communities.
    This sounds like Activation Lock has been enabled on this device.  Here is some helpful information regarding this feature.
    Find My iPhone Activation Lock
    http://support.apple.com/en-us/HT201365
    If you purchased your device from a third party, this device may be locked to their Apple ID.  If this is the case you may want to check out the article below.
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/en-us/HT201441
    Cheers,
    Jason H.

  • How to create credit and debit for an account

    Please tell how to create credit and debit for an account in currencies like EURO,GBP other than functional currency(USD).

    hi,
    You will find Dr and Cr entry for Both currencies which are functional & Transaction currency.
    Regards,
    Srikanth.Kura

  • HT201441 what if the previous owner doesn't know the email and password for its account and is not present, i bought this ipod from gamestop but it shows this screen, can i dlete this account to use my ipod ?

    help
    what if the previous owner doesn't know the email and password for its account and is not present, i bought this ipod from gamestop but it shows this screen, can i dlete this account to use my ipod ?

    The device is useless. Send it back and have them return your money.

  • HT201303 I bought a gift card in my account and introduced new, but asked me to enter the account once again I do not remember which email account is not recorded it, but I have the card number and PIN for my account Can you help me?

    I bought a gift card in my account and introduced new, but asked me to enter the account once again I do not remember which email account is not recorded it, but I have the card number and PIN for my account Can you help me?

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • My itunes keeps asking me to set my permissions.  they are set to read and write for all accounts, admin, everybody, etc.  don't know why it won't let me download

    my itunes keeps asking me to set my permissions.  they are set to read and write for all accounts, admin, everybody, etc.  don't know why it won't let me download

    Ever find a real solution to this? I just posted something similar - been having the issues ever since I started using the mac.
    I have 5 mac accounts: 2 of those are admins.
    After I installed every program I may possibly want, I redid all my user accounts (as I had been having a lot of permissions issues before that). My (admin) account downloads fine. Another admin account, set up exactly as mine, periodically gets prompted that it doesn't have the right to download.
    To avoid duplication, I have a /common/music directory for all itunes accounts music. We have to periodically do a recursive permissions deal on the 2nd admin account so it can put music there, even though that directory is read/write for everyone. Apple's never been able to help me on this...

  • IDOC for Customer Account Statement

    Hi All,
    I have a requirement that the Customer Statement should be sent thru and IDOC for some specific task. We are using the F.27 to print the Customer Account Statement. In the process of finding the IDOC for the same, we found FINSTA01 and Message type FINSTA will suit the requirements. Now the issue is, when i use F.27, it generates the SPOOL and starts priniting the same, insetad i need the same to initiate the IDOC. I mean the communication method to be IDOC instead of the Physical Print. Can anyone help me on how to do this? also please through some light on the things needs to be done if anyone of has come across such requirement.
    Thanks in Advance.
    Regards
    Nambi

    Hi Thiruchudar,
    There are some setup you need to do. If you're not technically well grounded, i would suggest you get an ABAPer to do this for you. Basically, the following are what you need to do:
    1. Create the Partner Profile for your Customer using transaction code <b>WE20</b>. Click on the create icon and enter Partner type <b>KU</b> (Customer) and enter the Customer Number.
    2. Next, add an Outbound Message Type <b>FINSTA</b> by clicking on the <b>green +</b> icon under the outbound parameters. Complete all the other mandatory fields as appropriate. Save your Entries.
    3. Test your outbound partner profile for your customer by running the customer statement again using transaction code <b>F.27</b>.
    Your output control would have been created with the medium EDI.
    4. Use transaction code <b>WE05</b> to display the iDocs that would have been created.
    <u><b>Note:</b></u> You still have to set up the communication between your system and that of your Customer to allow for EDI transmission.
    I hope the above helps.
    Do not forget to award the points please.
    Thanks and Regards,
    Jacob

  • I created an Apple ID for iTunes using a work email address and left that company before I had an opportunity to change the email and password for that account.  How do I change the email address to a new one that I can access?

    I created an Apple ID for iTunes using a work email address and left that company before I had an opportunity to change the email and password for that same account.  Now I can't seem to login to that account and I can't choose the option for forgot password because it will send email to the old workplace.  How do I change the email address to a new one that I can access?

    If you remeber the password to that Apple ID then follow these steps
    1 - Make sure you have an email address that is NOT an Apple ID
    2 - Go to AppleID.Apple.com
    3 - Where it reads Manage Apple ID - Sign in
    Once you are signed in want to make sure the email address you are wanting to use is NOT set up as a "Recovery/Rescue" email for this account.
    [To check this - Main page where you see Primary ID - below do you see the email address you want to use listed towards the bottom? Yes - Delete / No - Good ./. If made any adjustments "Save" Next on the left select "Password & Security" - Answer your security questions you set up "if you have any" then scroll towards the bottom and check to see if you see the email address you want to use. Yes - Delete / No - Good] <-> Also you can change your password on this page as well. Any adjustments made "Save"
    Once this is done go back to the main page where you should read "Primary ID" and change the email address that is showing to the new email address youo want. "Save" Done
    I learned this not to long ago and worked for me. Hope this helps you!

  • How to Set "delete from hub and server" for each account

    How can I set "delete from hub and server" differently for each account?
    I have 3 emails (2 shared, 1 personal).
    the personal is a 'hotmail' account which has device set to 'sync email', 'push', and 'Use SSL'.
    it will only sync one way (from desktop to device).
    I cannot set the global setting on the device to "delete from Hub and server" without affecting all accounts.
    I do not want to have to confirm delete on every item.
    previous to the 10.3 update this was not an issue.
    am i missing something? or is this another step backwards?

    The only other way would be to set it to prompt every time you get an email. Yeah, I know that defeats the purpose.. I guess in this aspect it is a step back

Maybe you are looking for

  • Trying to write a Listener on a CheckBox to change the Model of a ComboBox

    I am trying to change the list that appears in a ComboBox dynamically based on if a CheckBox is selected or not. I have multiple CheckBoxes and ComboBoxes being created in a loop based on a variable assigned at creation. Every tutorial i have seen wr

  • Alignment problem on abap report after Unicode conversion

    Hi, I've recently convert my system to unicode. Now my user is complaining the aged debtor report (ABAP) is having a column alignment problem when displaying the Japanese character. I'm not sure what to do now. Have anyone experience this and let me

  • ADF DVT PROBLEM

    Can any one tell me after downloading jdeveloper 11g how to upgrade jsf dvt lib to 2.0 because by default it jsf dvt 1.0 due to which i am unable to see graph in pop-up menu I have download latest version 11.1.2 and i want to upgrade dvt libraries in

  • HT201205 Problems connecting 5s to ipad via Bluetooth

    Cannot connect ipad and 5s via Bluetooth. Both running ios7. Wasted a whole evening with tech support rebuilding both devices with the same outcome. Anyone else having this problem?

  • Create an instanz of a class

    Hello, I am devloping an a simple struts Applikation (Name Hello) The structur my Webapp. the Applikation ist in C:\Tomcat\webapps\Hello HelloAction.java in C:\Tomcat\webapps\Hello\WEB-INF\classes\org\java\example HelloForm.java in C:\Tomcat\webapps\