Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Idoc Inbound Processing

Former Member
0 Likes
3,097

Hi all,

I have created inbound processing FM for a customised Idoc. I went to tcode we42 and added my Fm there selecting processing with ALE service and processing FM module . A task request popped up and I created the request. And then a new screen popped with a message saying for entry access select ALE-EDI inbound. Now I am taken to a different screen with the title New Entries : Details of New Entries. In that screen what should I enter in the screen against Functional Module.In the drop down list I cannot see the functional module I created there .

Regards,

Vijay.

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
2,215

Hi Vijay,

There are two ways to process inbound IDoc. It depend on your business requirement. You could process immediately or background.

This process is controlled in your partner profile setup (WE20)-> Inbound parameters -> inbound options -> Processing by Function Module -> Trigger by background program or Trigger immediately.

If you want to trigger by background program, please maintain variant in program <b>RBDAPP01</b> and schedule a job to execute. Please select appropriate values for your variant based on your condition.

If you set trigger immediately, SAP will take care the process. You only need to monitor for any error occured via WE02.

Well ... hope you have a good time and enjoy working with IDoc stuff. Let me know if you need an extra help.

Good luck.

Pls close the thread if it resolved your problem, thanks.

Regards,

Ferry Lianto

Message was edited by: Ferry Lianto

Message was edited by: Ferry Lianto

16 REPLIES 16
Read only

ferry_lianto
Active Contributor
0 Likes
2,215

Hi Vijay,

Please enter your custom FM. Then the sytem will take you to next screen to the logical message information.

You may then specify your custom message type.

Hope this will help.

Regards,

Ferry Lianto

Read only

0 Likes
2,215

Hi ferry,

I went to tcode we42. I clicked change and themn new entries. The values I have enetered are :

<b>Process Code : Zdoc

Description : Process code for Zdoc

Identification : z_idoc_input_zvlfa1 " Fm created by me. This is remote functional module.

The options I have selected are :

Option ALE : Processing with ALE service.

Processing type : Processing by functuional Module</b>And then I say enter. In the next screen I need to select the Fm again from the drop down list. But in the list my Fm is not displayed. Should I change the Fm to Normal Fm.

Please help me.

Regards,

Vijay.

Read only

0 Likes
2,215

Hi,

I have a requirement where i need to send CREMAS, CLFMAS and ADRMAS in that order.

Also please advice if there is any way where i can combine all these IDOCS into one IDOC and send it across ( I am also ready for extension of CREMAS if thats the only option ).

Any advice would be of great help.

Thanks & Regards

RA

Read only

0 Likes
2,215

Hi Robin,

Check out the link

http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1073695

and check out the processing outbound IDOCs.

Regards.

Read only

0 Likes
2,215

Hi Naveen,

It seems this is very specific to BEA.

I Need to send CREMAS, CLFMAS and ADRMAS all as one complete IDOC. I am planning to extend CREMAS and include CLFMAS and ADRMAS into it. But i need to extract all data for CLFMAS and ADRMAS and then populate these in my customized CREMAS IDOC.

Please advice further.

Thanks & Regards

Robin Aggarwal

Read only

0 Likes
2,215

Hi Robin,

Check out the Link

http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml

regarding your requirement as your saying that u need to extract all data from CLFMAS and ADRMAS, vying the option i think the processing time will be more and performance may be effected. if you dont require to extract all data from CREMAS you can do IDOC Reduction, so that we can limit the data transfer.

Read only

ferry_lianto
Active Contributor
0 Likes
2,215

Hi Vijay,

Please ensure you have setup both ALE Attributes (BD51) and message/application object (WE57) prior to setup process code (WE42). Otherwise you may not able to see your custom FM.

Hope this will help.

Regards,

Ferry Lianto

Message was edited by: Ferry Lianto

Read only

0 Likes
2,215

Hi Ferry,

Is there any thing else I need to do because even thought I have configured it in we 57, it is still not found in the drop down list in we42. what else should I do ?

Regards,

Vijay.

Read only

ferry_lianto
Active Contributor
0 Likes
2,215

Hi Vijay,

Did you do BD51? If you did, please check your custom FM and make sure the status is activated.

Regards,

Ferry Lianto

Read only

0 Likes
2,215

Hi Ferry,

I did that too and finally I completed the task in we42.

From the inbound side I send a Idoc ad the status is success. In the inbound side I processed the idoc using bd87. It Gives me an error saying :

<b>No resources , immediate processing not possible : to few free dialog work.</b>

What could be the error ? I set a break point in the fm to check where I am going wrong . But the break point was not triggered.

Earlier I used dummy proces code for inbound parameters and configured ALE. And then the distribution model view. Do you want me reconfigure all this again ?

Could you please help me with this.

Regards,

Vijay.

Read only

ferry_lianto
Active Contributor
0 Likes
2,215

Hi Vijay,

Sorry ... I never had the same error message before.

Did you have done partner profile setup (WE20) for inbound parameters?

Regards,

Ferry Lianto

Read only

0 Likes
2,215

Hi Ferry,

Might be in bd51 should I check in Dialog allowsed. And also in the type I gave as 1 (input) is that right ?

Also should I create any object type for Idoc type ? is it manadtory ?

Regards,

Vijay.

Message was edited by: vijay kalava

Read only

ferry_lianto
Active Contributor
0 Likes
2,215

Hi Vijay,

Try to set to 0 (Mass Processing) and no dialog allowed.

Please find the SAP link which show you step by step on how to configure inbound IDoc processing.

http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

In the mean time, let me do some search.

Regards,

Ferry Lianto

Message was edited by: Ferry Lianto

Read only

0 Likes
2,215

Hi Ferry,

One small doubt ferry, After the Idoc is recieved how do I process it ?

I tried to do it this way :

Go to tcode bd87 specify the Idoc number and F8. When I tried this way I get the status as 64 and the error which I gave in my previous reply ?

But when I go to Tcode we19 ad say inbound functional module the idoc is processed and The data is populated in the ztable as per my wish . Even if I want to debug the FM I am able to debug.

Thank a lot for your help all through the day, but can you explain me what is the correct way of processing a inbound Idoc.

And for your help you deserve 100 points in my opinion.

Once again thanks a lot my friend.

Regards,

Vijay.

Read only

ferry_lianto
Active Contributor
0 Likes
2,216

Hi Vijay,

There are two ways to process inbound IDoc. It depend on your business requirement. You could process immediately or background.

This process is controlled in your partner profile setup (WE20)-> Inbound parameters -> inbound options -> Processing by Function Module -> Trigger by background program or Trigger immediately.

If you want to trigger by background program, please maintain variant in program <b>RBDAPP01</b> and schedule a job to execute. Please select appropriate values for your variant based on your condition.

If you set trigger immediately, SAP will take care the process. You only need to monitor for any error occured via WE02.

Well ... hope you have a good time and enjoy working with IDoc stuff. Let me know if you need an extra help.

Good luck.

Pls close the thread if it resolved your problem, thanks.

Regards,

Ferry Lianto

Message was edited by: Ferry Lianto

Message was edited by: Ferry Lianto

Read only

Former Member
0 Likes
2,215

Hi Vijay,

I have been trying to do something similar to what you have done. I have attached one process code ZTest to my function module. I tried testing and Idoc using we19 but it failed. Can you please tell me how exactly you read the inbound idoc and processed it to update certain Z tables. Please reply back. This is a little imp for me at this hour.

Regards

Priyanka