Skip to Content
author's profile photo
Former Member

BPM calling a BAPI

Hi all,

I have a very simple scenario where I want to a BAPI call (BAPI_MATERIAL_AVAILABILITY) for a number of materials.

So I do this within a BPM. My outbound interface is a self-definied one, wich can contain several lines of data needed for the ATP-Check (Matnr, req_date, req_qty, unit,...) in a sequence. The plant occurs only once not in the sequence, but as element directly under the root.

In my BPM I do transformation of the data containing in the sequence to a list (a container element with multiple lines.

So far no prob

After this I have a loop and within this loop I want to call a transformation from the self-definied structure (now in the multi-lines element) to the BAPI input structure.

The prob is that the transformation don't accept a container element based on a message interface as the target structure.

My mapping has the BAPI_MATERIAL_AVAILABILITY as the target and my container element is also based on this type, but I always get the message "Expression must return the interface type BAPI_MATERIAL_AVAILABILITY".

Any Ideas?

Thanks

Regards

Olli

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Oct 04, 2005 at 03:13 PM

    Hi Oliver,

    transformation step requires both the interfaces to be abstract. Hence define an abstract interface that imulates the BAPI structure and do the transformation. have a send step after the transformation step to call the bapi. have an interface mapping between the abstract interface and the BAPI.

    Make sure you have made the necessary configurations in Directory (reciever determination, interface mapping)

    Naveen

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 04, 2005 at 03:18 PM

    Hi Naveen,

    first thank you for your fast reply.

    The topics you described are implemented already. I have abstract interfaces for my source and my BAPI strucure and the transformation (should) do a mapping between these two interfaces.

    Regards

    Olli

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      transformation step takes an interface mapping as input, hence when you choose the interface mapping from the dropdown list, it prefills what type of source message and target message it is expecting.

      Check the source and target messages types in your transformation step editor .

      naveen