Application Development 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: 

INBOUND program For custom IDOC

Former Member
0 Kudos

Hi ,

i have a one senario on creation of IDOC,that is interface for the transmission of the Acknowledgement of check Remittance and Supplemental interface,once the message is received Successfully through OUTBOUND program it triges the Acknowledge other wise it send one mail to respective team for that i need to create a one inbound program please explain me i am new in the area of ALE/ IDOC please give in deatials.

Thanks,

Harinath

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Harinath,

In your case SAP is sending <b>Check Remittance and Supplemental</b> data to legacy system which in turn need to send acknowledgement for that. And its going to be in form of an idoc. for this we dont have an idoc you need to create one from scratch. please find the steps to be followed to create a custom idoc.

1) Create ‘Z’ segment with required fields(fields coming towards you) using WE31

2) Create ‘Z’ idoc using segment created in step 1 using WE30.

3) Create ‘Z’ message type using WE81.

4) Link idoc created in step 2 with message type created in step 3 in WE82.

5) Create ‘Z’ function module to post the idoc in SE37. Include all validations, updations to tables, Error handling in source code tab of this FM.

6) Maintain Inbound process code using the FM in WE42

Coming to sending a mail, It can only be done using workflow. But i think in your case it is not required. so it need to be done manually.

Get back if you have any doubts.

Regards,

Younus

<b>Reward Helpful Answers!!!</b>

3 REPLIES 3

Former Member
0 Kudos

You can copy an existing FM and remove the code then start developing as below using the exisint parameters.

loop at IDOC_CONTRL.

loop at idoc_data where docnum = IDOC_CONTRL-docnum.

case idoc_data-segnam.

when 'E1...'. "Segname

-->Write the update logic/collect all idocs into itab for updation

when 'E1...'.

-->Write the update logic/collect all idocs into itab for updation

endcase.

endloop.

endloop.

---> Then return the messages through the table IDOC_STATUS

Former Member
0 Kudos

Hi Harinath,

In your case SAP is sending <b>Check Remittance and Supplemental</b> data to legacy system which in turn need to send acknowledgement for that. And its going to be in form of an idoc. for this we dont have an idoc you need to create one from scratch. please find the steps to be followed to create a custom idoc.

1) Create ‘Z’ segment with required fields(fields coming towards you) using WE31

2) Create ‘Z’ idoc using segment created in step 1 using WE30.

3) Create ‘Z’ message type using WE81.

4) Link idoc created in step 2 with message type created in step 3 in WE82.

5) Create ‘Z’ function module to post the idoc in SE37. Include all validations, updations to tables, Error handling in source code tab of this FM.

6) Maintain Inbound process code using the FM in WE42

Coming to sending a mail, It can only be done using workflow. But i think in your case it is not required. so it need to be done manually.

Get back if you have any doubts.

Regards,

Younus

<b>Reward Helpful Answers!!!</b>

Former Member
0 Kudos

Hi Harinath,

As per Eswar solution it is correct. First read the IDOCs and move the data into internal table.

We can do according to that coding.

Reply for queries. shall post the updates.

Regards,

Kumar.