FKK_CREATE_DOC??

Hi All,
When we use FP04 /FP04M transaction we post a document for Write Off for the particular BP/Contract/Contract Account.
Now this is done via Event 5040 (Go to transaction FQEVENTS).
Now what i need to do is i need to post another doument with few changes been done to what the document is been posted by FP04 /FP04M transaction, in order to do the same i guess i need to use the following Function Module :FKK_CREATE_DOC.
while searching for the possible FM's i have found the following :
FKK_CREATE_DOC.
FKK_CREATE_DOC_ADDITIONAL
FKK_CREATE_DOC_CLEAR
can some one let me know the difference between the three and which one will be the best to use in order to post a document via event 5040.
Thanks.

Fkk_create_doc FM gives the new document number which it will post directly
where as the FM FKK_CREATE_DOC_ADDITIONAL will give a number like 1 or 2 and using that number we will have to find the value of the document number.

Similar Messages

  • Update correspondence history (DFKKCOHI) when posting manually via FPE1

    Hi experts,
    Here is a difficult one. I need to update the correspondance history when posting manually certain types of documents via FPE1. I was told to use business event 723 - Correspondence : Free --> Create (tcode FQEVENTS) that is one of the events for Document. I thought that by creating and activating my customer function module Z_FKK_SAMPLE_0723 it should be enough, placing my own code there. But I can see that when I post a document via FPE1 this event is never triggered, even though now is activated. Am I missing something??
    After a lot of debugging I found out that event 1118 is called instead (one of the events called among others).
    From include LFKPPFB0
    * finally call the posting module
      CALL FUNCTION 'FKK_CREATE_DOC'
        EXPORTING
          I_FKKKO          = FKKKO
          I_UPDATE_TASK    = ' '
          I_FKKOPL_CF      = 'X'
          I_DIALOG         = 'X'
        IMPORTING
          E_OPBEL          = XOPBEL
        TABLES
          T_FKKOP          = XFKKOP
          T_FKKOPK         = XFKKOPK
          T_FKKOPW         = XFKKOPW
          T_FKKOPL         = XFKKOPL
          T_FKKOPKC        = XFKKOPKC
          T_FKKOPREL       = XFKKOPREL
          T_FKKOP_ESR      = XFKKOPESR
        EXCEPTIONS
          ERROR_MESSAGE    = 4.
      IF SY-SUBRC = 0.
        PERFORM EVENT_1118.
      ELSE.
        PERFORM MESSAGE_STORE USING '1119'.
        PERFORM MESSAGES_SHOW.
        PERFORM OKCODE_OVER.
      ENDIF.
    And that this event (FKK_SAMPLE_1118) is empty so you can write your own code there. But I don't know how risky this is.
    Please I need some advice with this issue. My two questions are:
    - 1) why event 723 is not triggered when I do I manual post?? What do I have to do to trigger it?
    - 2) My plan B is to force the call to event 723 from event 1118, which I for sure know that is triggered. Anybody can see any problem in this?
    Anybody has been in a similar situation making a new event in FQEVENTS?
    Thanks in advance, points will surely be rewarded.
    Elena

    Hi Prashant,
    Thanks for that. YES! That may be to update text in document. But while uploading invoices I will not have document number details, it will be created when we process batch which been created using “rfbibl00”. How can I capture document numbers after processing batch session? Because with document number details I will able to use SAVE_TEXT to update remaining text fields. So can you please suggest best way to do this if you can? Many thanks.
    Regards,
    Tim

Maybe you are looking for

  • ITunes Installer has encountered a problem and needs to close.

    I accidentally removed apple mobile device support so now I can't charge my ipod touch on my computer. I uninstalled itunes and tried reinstalling the latest one and got the message: iTunes Installer has encountered a problem and needs to close. We a

  • Maps on N95

    Hi, Is maps available on N95 ? Nokia Maps 1.0 pre-launch link in http://mobile.nokia.com does not show N95. Can I select any other model and download ? Will it work if I install it in N95 ? Thanks

  • JEditorPane & HTML button tag

    Hi, I have a program the renders some HTML pages inside JEditorPanes. Everything seems to be rendered correctly, with the exception of the <button> tags. Buttons are not displayed, but in there place is an odd text field with the word "button" in it,

  • OVMAPI_6000E Internal Error: Connection refused Connection refused  - OVM

    Hi, Test environment, as per this doc http://www.oracle.com/technetwork/server-storage/vm/template-1482544.html Running the above OVMs on virtual box version 4.2.10 OVM is version 3.1.1.365 I setup my environment and was ready to import VM templates.

  • Can't Connect EAS

    Before I log a support case, has anyone else come across this ??????I can retrieve data fine from my cubes, but when I try to log onto EAS (version 7.1 btw), I get the message "could not connect to Administration Server telesto".Keep in mind we have