IDOC_OUTBOUND_WRITE_TO_DB

Hi,
Could any one give me idea regarding the following function module?
Why these are used in IDOC and how to use them?
If any one could please forward me sample coding using these function module.
CRM_UPLOAD_BTMBDOC_FILL
CMS_UPLOAD_BTMBDOC_START_FLOW
IDOC_OUTBOUND_WRITE_TO_DB
Thanks in Advance.

It would be better that instead of asking about these, if you could state the requirement and issue you are facing.
You can always look a the FM documentation, and Where used list to see how and where these are used

Similar Messages

  • How do I SUBMIT from a user exit which is called in an update task?

    I want to send an idoc each time there is a goods movement. So, in the user exit of MB_POST_DOCUMENT I am calling IDOC_OUTBOUND_WRITE_TO_DB. This creates an idoc of status 30. However, in order to send the idoc I want to SUBMIT RSEOUT00. I get an ABAP dump on the SUBMIT because MB_POST_DOCUMENT is called in the update task, where SUBMIT is not allowed. Do you know any other way I can execute RSEOUT00 at this moment without having to call it later in batch?
    Thanks!!
    Joy

    Hi Naren,
    Your reply is VERY helpful!! Thank you so much.
    I added  CALL FUNCTION 'RSAP_IDOC_EINBUCHEN_VOM_BIW_4' IN BACKGROUND TASK. I am no longer getting the dump, but my idoc is still a status 03 and not a status 30. Should I expect to see it turn to a status 30? I ran this function directly in SE37 -> Test with the same parameters and it ran perfectly and turned the idoc to a status 03. Is there anything else I need to do in the code?
    Thanks again,
    Joy

  • How to find Correct IDoc Status in SAP

    Hi All,
    I need some help on IDoc scenario, I have custom program to create Idoc and as well it will send IDoc to XI. I want to know idoc staus in the program to update custom table whether idoc sent successfully or not but idoc giving status as 03 (Data passed to port OK) irrespective of idoc send or not, actually idoc not sent to xi when I check SM58 showing error.
    Please advice me how to find correct idoc status inside program itself.
    **-----Create IDoc
      CALL FUNCTION 'IDOC_OUTBOUND_WRITE_TO_DB'
        TABLES
          int_edidd      = i_edidd
        CHANGING
          int_edidc      = wa_int_edidc
        EXCEPTIONS
          idoc_not_saved = 1
          OTHERS         = 2.
      COMMIT WORK.
      i_edidc = wa_int_edidc.
      APPEND i_edidc.
      REFRESH i_edidd.
    **-----Send Idoc
      CLEAR i_edidd.
    **-------Send Idoc to XI
      CALL FUNCTION 'EDI_OUTPUT_NEW'
        EXPORTING
          onl_option = 'B'
          error_flag = ' '
        TABLES
          i_edidc    = i_edidc
          i_edidd    = i_edidd.
      COMMIT WORK.
      READ TABLE i_edidc INDEX 1.
    **-----Update Dispatch order status based on Idoc status.
      IF sy-subrc =  0 AND i_edidc-status ='03'.
        znxi01_update c_03 i_edidc-docnum.
        gw_success_record = gw_success_record + 1.
      ELSE.               " Error in Data Transfer
        znxi01_update c_02 i_edidc-docnum.
        gw_fail_record = gw_fail_record + 1.
      ENDIF.

    Hi Anil,
    for setting IDOC Status you can send back a IDOC of type <i>ALEAUD01</i>.
    The function IDOC_INPUT_ALEAUD takes automatically this IDOC and writes the status to the origin IDOC.
    Regards Mario

  • Outbound idoc posting program Creation

    Hi,
    i want to create a posting program for my new idoc/segment, can anybody give some standerd posting program.

    HI,
    use FM: IDOC_OUTBOUND_WRITE_TO_DB
    Fill int_edidd with your IDoc Data and int_EDIDC with the IDoc control.
    maybe it´s useful!

Maybe you are looking for

  • AMD X2 4200+ and CPU Fan

    Its been a while since I've been on this forum, but I need advice on this one...  I am planning on buliding a new system with a Athlon X2 4200+ (still waiting to see if AMD will sell X2 4000+ or 3800+ ). I think I'll go for an MSI K8N Neo 4 platinum

  • How do i email a file (not picture) from dropbox on my nice new iphone 6?

    Hi, i need to use my iphone for business emails - having just moved from android i'm not too familiar with ios8 but i cant find any way to attach files from various folders in dropbox or anywhere else for that matter other than predefined apple image

  • [SOLVED] Kernel bug fix, works for me!

    Having been hit by the kernel bug that interferes with internet access & having to downgrade the kernel to escape the bug.  I am happy to say that after reading a bug report on the subject here: http://bugzilla.kernel.org/show_bug.cgi?id=11721 Courte

  • JMS Adapter 11g

    hi All, I am using SOA/JDev 11.1.1.1.0 I created a queue in jms and i am trying to produce a message to taht. But I am getting below error. +<fault>+ +<faultType>0</faultType>+ +<bindingFault>+ +<part name="summary">+ +<summary>Exception occured when

  • Is the macbook air the right computer for me

    im planning on buying an 11 inch 2013 macbook air im mostly going to use it for gaming on Kerbal Space Program and properly Roblox. im also going to use it for imovie and whatching youtube videos sometimes but i will likely use my iPad for that inste