Skip to Content

Idoc Sample code for FM IDOC_INBOUND_SINGLE

Hi Experts,

Can anyone help me on with a sample code on how to use the FM IDOC_INBOUND_SINGLE. I refered the Function module documentation but it didnt help. Can anyone please help me on this.

Thanks & Regards

Naveen

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 26, 2009 at 06:51 AM

    Hi,

    here is the code use like this

    p_t_edidc TYPE rsari_t_edi_dc40

    p_t_edidd TYPE rsari_t_edi_dd40

    CALL FUNCTION 'IDOC_INBOUND_SINGLE'

    EXPORTING

    pi_idoc_control_rec_40 = p_t_edidc

    TABLES

    pt_idoc_data_records_40 = p_t_edidd

    EXCEPTIONS

    idoc_not_saved = 1

    OTHERS = 2.

    regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2009 at 12:40 PM

    Hi,

    See the sample code.

    P_T_CONTROL_RECORD_OUT LIKE EDI_DC40.
    P_T_INT_EDIDD LIKE EDI_DD40 OCCURS 0 WITH HEADER LINE.

    fill the fields of the structure edi_dc40 in the control record p_t_control_record.

    CALL FUNCTION 'IDOC_INBOUND_SINGLE'
        EXPORTING
          PI_IDOC_CONTROL_REC_40  = P_T_CONTROL_RECORD_OUT
          PI_DO_COMMIT            = 'X'
        IMPORTING
          PE_IDOC_NUMBER          = IDOC_NO
        TABLES
          PT_IDOC_DATA_RECORDS_40 = P_T_INT_EDIDD.

    importing idoc number is optional .

    Lemme know if more help required.

    Rhea.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.