Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BDC in Inboud idoc function module.

Hi all,

Please tell me a if i can distribute data in inbound idoc function module using BDC.My function module is IDOC_INPUT_MATMAS01.

Thank you.

Edited by: sanu debu on Apr 16, 2009 5:09 PM

replied

HI Sanu,


* Inside the function module use can use BAPI/ Call transaction...

* find the Proper User exit and Write you r call transaction..

"<<< see the sample code..
 LOOP AT it_edidd INTO idoc_data.
      CASE idoc_data-segnam.
        WHEN 'Z1PROCORD'.
          wa_z1procord = idoc_data-sdata.
          PERFORM call_transaction                 "Use call transaction Peform..
            USING    wa_z1procord
            CHANGING l_subrc
                     l_return.
          IF l_subrc = 0.
            l_posting_ok = 'X'.

          ELSE.
            l_posting_error = 'X'.
*            APPEND l_return TO lt_return.
          ENDIF.
      ENDCASE.
    ENDLOOP.

Regrads,

Prabhudas

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question