cancel
Showing results for 
Search instead for 
Did you mean: 

BPM calling a BAPI

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

where are you seeing the error sxmb_moni? rwb ?

is your BPM working and it stops at the transformation step?

were you able to activate the BPM?

naveen

Former Member
0 Kudos

Sorry if this was not clear:

I get the error described above when I want to activate the BP. Therefore I actually do not comes to the point where I can test it.

Regards

Olli

Former Member
0 Kudos

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

Former Member
0 Kudos

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