cancel
Showing results for 
Search instead for 
Did you mean: 

AIF-New interface variant for Outbound interfaces

former_member196098
Participant
0 Kudos

Hello guys,

I am new in AIF and i am assigned into a small project to develop a new interface variant.

I understand what AIF is sure just havent done a new outbound interface variant.

What ı understood? Have ı understood right?

There is an interface for goods movements OI0003

and Need to create a new outbound interface variant.

What is an interface variant?

İ created a simple variant called ZOI0003

As ı debugged the code in AIF first the interface itself is executed then

later the interface variant is executed.

For that you need to leave a space for source and destination structure ,does that mean that its inheriting from the  OI0003

Do you have any documentaion for how to create an outbound interface?

Any help appreciate it

Accepted Solutions (1)

Accepted Solutions (1)

Markus_Schutz
Participant
0 Kudos

Have you already read the AIF Developer Cookbook? Chaper 4.2.11 describes Interface Variants:

The cookbook is always a good reference document.

former_member196098
Participant
0 Kudos

Hello Markus

Thanks my frıend

I have downloaded and have a read

I couldnt undertstand there is no much examples

If i could see some examples it will make sense

Like theres value mappings and field mappings and then actions.

Whats the diffrence between value mappings and field mappings?

Theres a reqiuremnt

I need to fetch data from a Z table

How would ı do that.?

Markus_Schutz
Participant
0 Kudos

You mean in general?

Let's say you have a raw structure with three fields (field1, field2, field3) and an SAP structure with only two fields (field4, field5) where field4 should be the concatination of field1 and field2 of the raw strucutre. This is the field mapping. In other words: Which fields are mapped how.

Value mappings are related to the content of the fields. Let's assume that possible values for field1 of the raw structure are "value1" and "value2". In the SAP structure you would like to map these values in order to be "value1" = "value3" and "value2" = "value4". That's the value mapping. The rules for value mappings can be quite complex. Full details can be found in the cookbook I've mentioned.

Does this answer your question?

former_member196098
Participant
0 Kudos

Thanks Marcus

That makes sense more sure

thats a godo explanation

Can i ask you one more thing?

in here we have a Goods movements interface

Theres no interface variant specified but there is a namespace and interface defined as

OI003And this is linked with the event on a godos movement

So when there s a good movements created it will trigger this interface and AIF.

When theres an interface variant created the code works and triggers the variant
and its ok.

But

My question is when there is no interface variant specified then should not the code still be working using the default interface?

But when i test it it goes as empty XML to PI and the status is set to undefined

Hope i explained it well

please help me in this

thanks

Markus_Schutz
Participant
0 Kudos

That's a scenario I have never implemented myself. So I'm afraid that I cannot answer this question. Maybe Verena can. She is participating actively in this forum so chances are high that she reads you question.

former_member196098
Participant
0 Kudos

Thanks Markus for your help and answer

Thats an interesting thing i am looking at

If i find an answer i let you know.

Cheers

Answers (0)