Skip to Content
avatar image
Former Member

Exchange of data between two User-Exits MBCF0002 and MB_CF001

Hi,

I'm using exits MBCF0002 (EXIT_SAPMM07M_001) and MB_CF001 (EXIT_SAPLMBMB_001) for material movements.

In EXIT_SAPLMBMB_001, data is transferred to a subsystem. Some of the data for the subsystem must be provided in the segment-text field sgtxt (no other standard field without checks and enough space). But: In EXIT_SAPMM07M_001, the segment-text is replaced by the material-text (this is needed to make the material visible in the accounting document).

Since both function exits belong to the same function group and share a TOP-Include, I thought, it should be possible to exchange data from EXIT_SAPMM07M_001 to EXIT_SAPLMBMB_001:

Now, EXIT_SAPMM07M_001 builds an internal table (data-declaration in shared top-include) of all lines and their original texts in sgtxt before replacing it with the material text. Unfortunately, this internal table is initial (no entries) again in EXIT_SAPLMBMB_001.

Is the data in the internal table gone because EXIT_SAPLMBMB_001 is called in update task?

Any other advises, how data could be transferred from the first to the second exit?

Thanx for any help, Kathrin!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 27, 2004 at 12:03 PM

    I don't know these users exits, but generally speaking I would try with

    EXPORT obj1 ... objn TO MEMORY. 
    IMPORT obj1 ... objn FROM MEMORY. 

    Incho

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanx Scott,

      I've moved the coding from the user-exit to the BAdI and it works out fine. Sorry for late feedback, I didn't find the time to work on it until today...

      Thanx again, Kathrin!