Skip to Content

Calling BAPI_MATERIAL_SAVE_DATA inside BTE 1250 FM sample_inetrface_00001250

Hi All,

I am calling BAPI_MATERIAL_SAVE_DATA inside my BTE 1250 FM sample_inetrface_00001250 , to update Z-fields in amterial master (MVKE-Zfield). But the issue I am facing is that BAPI_MATERIAL_SAVE_DATA agains triggeres the BTE , and this goes on and on. Is there any way to avoid the BAPI call second time from the BTE or is the basic design itself flawed?

This development is an inbound IDOC process code , from which the BTE is triggered and I have to add validation and update material master inside the BTE. Kindly help.

BR,

Shankar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 27, 2013 at 12:18 PM

    You should add some check in the triggered FM like CHECK I_MARA_NEW NE I_MARA_OLD or similar check ?

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 28, 2013 at 12:11 PM

    Hi All,

    From the indbound IDOC process code , the FM 'IDOC_WRITE_AND_START_INBOUND' is called which triggers the BTE 1250 FM 'sample_interface_00001250' the first time. Inside this BTE FM , I am calling BAPI_MATERIAL_SAVE_DATA to update material master MVKE-Zfield. This BAPI again triggers the BTE and the BTE again the BAPI and this goes on. Now if I place a check on I_MARA_NEW <> I_MARA_OLD, the BTE FM does not gets processed at all the first time it is called from FM 'IDOC_WRITE_AND_START_INBOUND'. Is my design itself wrong ?

    Also just for my knowledge sake, can someone let me know how does the FM 'IDOC_WRITE_AND_START_INBOUND' trigger the BTE 1250 , since this BTE is only for material master update ? I went through the stack flow and obserevd that the FM 'BAPI_MATERIAL_SAVEREPLICA' is triggered by this FM . How does this happen and where is the configuration mainatained for this?

    BR,

    Shankar.

    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.