Quantcast
Channel: SCN : Discussion List - SAP Application Interface Framework
Viewing all 82 articles
Browse latest View live

Displaying interface in Interface Monitor

$
0
0

Hi,

I'm having issue getting interfaces to appear in the Interface Monitor (/AIF/IFMON) for my user.  For example, I have gotten the SAP standard BUPA example to display on the Interface Monitor but can't get my own custom AIF configured interface to display there or the SAP standard Flight booking example either.  I have created a recipient for my custom AIF interface and assigned my user to it  and clicked Overview check box but still I can't see it on IFMON.  I can see all interfaces just fine in the Monitoring and Error Handling screens.

 

Please help.  I know it must be a simple fix but what I am I missing?

Also, are there restrictions with RFC interfaces being displayed on the Interface Monitor?


AIF Statistics (Interface Monitor Message Count)

$
0
0

Hello together,

 

quick question regarding /AIF/IFMON:

 

I have an interface (using the XML engine). Data is transferred via a proxy in a custom action in the structure mapping of the interface (we're not using the AIF standard to transfer the data to the proxy in that interface). The interface is not generating any log entries in case everything was successfull. Only error messages are loged in case there are any.

 

I do see the interface in /AIF/IFMON besides my other interfaces (customizing is the same for the other ones) but I do not see any message count for this interface. Running the correction report gives the following results:

 

Alert-Indextabelle prüfen

<namespace>   / <interface>    / 1     :

     4.810  Nachrichten geprüft;                    0  vorhandene Einträge,          0  erwartete Einträge,          0  korrekte Einträge,          0  veraltete Einträge (zu löschen),             0  fehlende Einträge (hinzuzufügen)

 

 

 

Statistik neu generieren

Statistiken der Schnittstelle prüfen:              <namespace>/<interface>/1

Statistiken der Schnittstelle neu generieren:      <namespace>/<interface>/1

         0  Einträge in der Statistiktabelle /AIF/MSG_STATALL wurden gelöscht

         0  Einträge in der Statistiktabelle /AIF/MSG_STAT wurden gelöscht

         0  Einträge in die Statistiktabelle /AIF/MSG_STAT wurden eingefügt

         0  Einträge in die Statistiktabelle /AIF/MSG_STATALL wurden eingefügt

 

 

 

Statistik komprimieren

Nachrichten-Statistiktabelle /AIF/MSG_STAT wird komprimiert            Schnittstelle:  <namespace>/<interface>/1

<namespace>/<interface>/1          0  Datenzeilen vor der Komprimierung in der Statistiktabelle /AIF/MSG_STAT                                       0  Datenzeilen nach der Komprimierung in der Statistiktabelle /AIF/MSG_STAT

Nachrichten-Statistiktabelle /AIF/MSG_STATALL wird komprimiert         Schnittstelle:  <namespace>/<interface>/1

<namespace>/<interface>/1          0  Datenzeilen vor der Komprimierung in der Statistiktabelle /AIF/MSG_STATALL                                    0  Datenzeilen nach der Komprimierung in der Statistiktabelle /AIF/MSG_STATALL

 

It's German but I assume you can get the point. There are messages but I don't see them in /AIF/IFMON because there are no entries in the AIF Statistic tables.

 

What's the reason for that? Is it because there are no messages logged at all or is there another reason?

File interface with test mode (no commit)

$
0
0

Dear community

 

Is it possible to upload a file to a file adapter interface and NOT commit the files to the database, but still receive all potential errors? I was thinking about disable the automatic commit of AIF and do a manual commit depending on a flag indicating test mode or not. It was highly disadvised to execute manual commits, so I do not think it is a good option.


I also know that there is a test mode in the "Define Interface" in the /AIF/CUST, but this is permanent on not user controllable.

 

Is there any way how to enable a user controlled test mode?

 

Thank you in advance

 

Kind regards
Thimo

Issue in sending the data from BAPI_PRODORD_GET_DETAIL to webMethods?

$
0
0

Hi All,

 

I am trying to send in the data from SAP CHM system to webMethods.

The BAPI from which the data is sent is BAPI_PRODORD_GET_DETAIL.The issue which I am facing is I am unable to get the header and the Line Item values in webMethods since the Export tab in Function Module does not have the Header and Line Item Table Parameters.

So could anyone kindly suggest how can I access the parameters from the export?

 

Kindly let me know at the earliest on the same and if there is any alternative solution for the same.

 

I have attached the document with the description.

 

Regards Shrenik

/AIF/IFMON - "No Alert Active" grey bulb on

$
0
0

Hi,

 

I am trying to configure AIF alert notification/email when there is an application error in an inbound web service interface message processing.

 

I did the following configuration...

  1. In "ALRTCATDEF" I created a  Z-alert category copying AIF Alert category.
  2. Under "Define Namespace-Specific Features" configuration
    1. Defined a recipient for respective namespace.
    2. Configured both alert and recipient as default recipient in "Configure Alerts" under namespace specific features configuration.
  3. Under "Assign Recipients" in AIF System Configuration I assigned my user name to the recipient.

 

With this configuration I am able to see the interface errors in AIF interface monitor /AIF/IFMON.

 

However for some reason it is showing "No Alert Active" grey bulb on.

 

I also activated "Mail for Every Single Error". But the system is not generating any email when there is an error. I checked in SOST and see no emails waiting to be sent.

 

Am I missing any steps in this whole configuration to generate emails? In addition to above configuration is there some report that I need to scheduled as a job to trigger the emails?

 

 

Thank you for taking time to read and respond. Your insights on this will be greatly appreciated.

 

Regards,

BRV

 

 

AIF_Alert.jpg

Configuring Outbound Idoc for LOIPRO-Production Order

$
0
0

HI,

 

Could someone kindly suggest how to configure Outbound Idoc for LOIPRO

 

I wanted to get  the detailed steps on the same.

 

Wanted to know the below details as well

 

-Function Module to be used

-Program to be used

-Condition Record to be maintained(How to do the same)

-Output Type to be configured

-Distribution Model to be setup.

 

Would really appreciate anyone's help on the same at the earliest.

Thanks in advance.

Getting an issue Function MODEL_VIEW_REPLICATE not found while trying to distribute the model in BD64

$
0
0

Hi

 

Need urgent help on the mentioned issue.

 

I am working on  Outbound Idoc config for LOIPRO Idoc.

 

I have started the step by step config following each steps

 

1)Created Message Type

2)Configured WE20 Partner Profile

3)Configured the RFC connection-SM59

4)Distribution Model -BD64 setup

 

I am trying to send in the data fromCHM system to MES system through webMethods

So I have set the port of MES system as webmethods and the RFC connection too is working fine and tested.

When I try to go to model view and distribute  the distribution model I get an error saying

Function MODEL_VIEW_REPLICATE not found

 

I really appreciate urgent help on the same

Struggling since past few days on the same issue

 

Note: There is no issue in RFC connection.Its working correctly and tested as well.

    

 

Could someone help me on the same?

 

Regards

Shrenik

Refresh messages in View1 of BAdI /AIF/ERROR_HANDLING

$
0
0

Dear community

 

I am currently implementing the BAdI /AIF/ERROR_HANDLING /AIF/V1_ACT. I used this great blog entry as help so far: Enhancement toolbar for 'Monitoring and Error Handling' in AIF - Series Ⅰ

 

My requirement is to add a button, which allows me to do some additional specific logic in the background and then restart the selected IDOC message. This works very well with the /AIF/IDOC_RESTART FM.

 

The problem I am facing now is that the status of the message in view1 does not refresh automatically as I am used to from the original restart button. It would be great if there is a way to add a refresh of the restarted message in my implementation of the DO_ACTION.

 

I hope someone can help me.

 

Thanks already in advance.

 

All the best

Thimo


Debug /aif/err message - SAP AIF

$
0
0

Hi,

 

Is it possible to debug the error message in /aif/err tcode while restarting.I have unchecked the 'Run Scheduled' and 'Schedule Packages' option of the runtime configuration in the tcode /aif/pers_cgr but it didnt help.

 

 

Please suggest how to debug the error message.

 

 

Thanks and Regards,

Dilipan

How to Monitor SM58 - RFC errors in SAP AIF?

$
0
0

Hi AIF Experts,

 

We have been implementing AIF functionality in all our project interfaces now.

However, there is one basic area of concern for interfaces having an RFC connection.

 

Suppose, an IDoc/RFC interface is triggered from ECC system and IDoc is processed successfully with Status 03.

But due to unavailability of PI or some connection failure, the message gets stuck/in error in SM58.

This particular SM58 error doesn't get captured in AIF. We see a chequered flag in AIF too for this particular message.

 

So, in this case, this particular error gets missed out. And in cases, if there is no middleware (PI), such errors become difficult to track.

 

Can anyone provide some pointers please if there is an option to capture such errors too in AIF? If yes, then how do we achieve this?

 

Please let me know if any further information is required on this.

 

Thank you.

Krishnan.

Before Mapping Function for Inbound Idoc interface

$
0
0

Hi,

 

We are in the process of configuring and setting up few inbound idoc interfaces using AIF.

And our requirement is to have few actions \ steps performed before the actual mapping takes place.

 

We have been trying to use the 'Before Mapping' function available in the interface definition, but it seems that the FM does not get executed automatically every time an idoc comes in, neither does it get executed after restarting a failed message.

But the FM does seem to be getting invoked when we manually transform the inbound message in the technical mode in /aif/err.

 

We have also tried assigning the required FM in the 'Before Mapping' function available under structure mapping, but still no joy.

 

Kindly let Me know if there are any pointers to get the FM invoked automatically before the actual mapping occurs.

 

Thanks,

Sagar J.

Structure mapping

$
0
0

Hi,

I'm using AIF to process IDOC sent in ECC from PI. My scope is to calculate some value wtih Idoc fields.

I have generated dictionary structure for the Basic Type with transaction /AIF/IDOC_GEN. In customizing I defined interface with the same value for fields SAP and RAW data structure. In the "Define Structure Mappings".

In this case I can use the Mapping only al the root level, if I use mapping on the others level it doesn't works.

 

 

It's possible to use mapping if the interface have the same structure in SAP e RAW?

 

Thanks

Geroge

Designing AIF architecture to ensure maximum re-usability

$
0
0

Hi everyone..

 

We plan on making heavy use of AIF 3.0 in our new SAP implementation of version 1605(perhaps 1610).

 

I have a fair amount of experience with v2.0 and I want to make sure we put sufficient thought and design into the new interfaces.

 

Concentrating on inbound interfaces for now.. I want to ensure maximum reusability of posting code.

 

Typically, our Actions follow a pattern such as:

  • Enrich Data
  • Validate Data
  • Post Data

 

Where "Post Data" may contain 1 to many document posting steps.

 

My plan is to create a super class for every BAPI we use and include a method to map data to each structure that the BAPI can accept.

 

For example, we are using 'BAPI_ACC_DOCUMENT_POST'. I have created a super class with the following mapping methods:

  • HEADER_MAPPING
  • ACCT_GL_MAPPING
  • VENDOR_MAPPING
  • CURRENCY_MAPPING
  • TAX_MAPPING
  • EXTENSION_MAPPING

 

 

I want to make sure those super classes are interchangeable so that my AP class can be used anywhere in AIF when I need to create an AP document.

 

My plan is to inherit the super class into subclasses and perform interface-specific mappings there.

 

However, I'm coming across a stumbling block.. In order to make the super class fully re-usable, in what format should I pass data to it? Each Action could possibly contain a different DDIC structure.

 

I guess I could declare the data blob as Type Ref To  ANY in the super class attributes.  Then when I inherit it out to a subclass, I can cast that blob into the interface-specific structure format defined in the subclass? Then map it to the BAPI?

 

Does that sound right?

Are there going to be any sessions on AIF @ Teched Las Vegas this year?

$
0
0

I should be attending and would really like to attend if there are any planned.

AIF File (Async) to RFC

$
0
0

     Hi Expert,

 

I m doing an interface with AIF File(Async) to RFC. I have already created a PI interface for the same. In AIF Framework I have created Namespace and Function module Generator. I m not sure how to proceed further. Basically I m trying to create this interface and monitor successful and failed msgs in AIF framework. Please suggest.

 

Regards,

AarthiAIF.png


How to send images from sap to mobile as an attachment

$
0
0

Hi all,

 

Is there any way to send images as an attachment through sap to mobile using interface or from any other way.

 

Thank you!

Sort based on Key fields in AIF Mointor view 1

$
0
0

Hello All,

 

I have the hierarchy for an interface displayed in AIF Monitor using key field(which is a number) as parent node. Everything works fine as expected.

 

The Tree looks a below.

 

+10002

    ++ Filename1

         +++ Messages

+10003

     ++Filename2

          +++ Messages

+10004

     ++Filename 3

          +++ Messages and so on.

 

I get this hierarchy because, always the the key field(number) is stored in index table in ascending order.

 

But now, I would like to display the tree sorted based on this key field but in descending as below. I could not find the sort option while configuring key fields. Searched BADIs for view 1, but couldn't find much help either. Is it possible to achieve this ?

 

+10004

    ++ Filename3

         +++ Messages

+10003

     ++Filename2

          +++ Messages

+10002

     ++Filename1

          +++ Messages and so on.

 

Please suggest a solution.

 

Thanks in advance.

 

Best Regards,

Raja

Inbound RFC call monitoring in AIF

$
0
0

Hi All,

 

I am very new to SAP AIF. I am working on an inbound RFC scenario.

 

PI will send the data to SAP through RFC call and RFC will update a custom table. I am testing it through two SAP systems only. I have created an RFC in System A and calling it from System B and updating a Z table in System A. Now I have to connect the inbound RFC to AIF so that AIF can monitor this interface.

 

RFCcall from SystA.JPG

This way I am calling RFC FM from the other system(System B). I have to monitor the RFC call through AIF in the System A (Called System).

 

What code should I write in the RFC FM '/SIE/LOT_INF' in system A so that it can be monitored through AIF. This RFC FM is a simple FM updating a custom table. In the real scenario; system A will be PI system and System B will be ECC system. Monitoring will be done in ECC system only.

Capture.JPG

 

Do I need to write the code inside the RFC FM or I have to do any customizing. Please note that there is no structure involved in this RFC ; only internal table is passed. So what structure should I use in customizing.

How can I transfer this RFC interface to AIF.

 

I know a method

 

CALL METHOD /aif/cl_enabler_xml=>transfer_to_aif

     EXPORTING

       is_any_structure = ls_calc_sap.


But in this we pass a structure (e.g. ls_calc_sap ). But in my case there is only one internal table to be passed to SAP ECC system which will update the data in custom table.

 

Capture2JPG.JPG

Please let me know if you did not understand anything. I need to complete this urgently.

 

Thanks in Advance

Pankaj Sharma

AIF RFC Outbound Interface

$
0
0

Hi all,

 

Would like to ask help/suggestions regarding the approach/steps in creating outbound interface using RFC in AIF.

Benefits for Outbound interfaces?

$
0
0

I’ve been thinking about running outbound through AIF.. But, I’m trying to figure out what is the benefit AIF provides for those.

 

I can certainly see how inbound interfaces greatly benefit especially when we have multiple sources of information all doing the same thing (Creating A/P docs for instance)… We have many inbound scenarios in production right now.

 

But what about outbounds? Typically, most companies only send 1 interface out to a 3rd party so I don't see efficiencies gained in common mappings.

 

Thanks,

Robert.

Viewing all 82 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>