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

populating idoc with data

Former Member
0 Likes
324

Hi,

i am trying to send invoice idoc to destination . Can anyone please tell me how to populate the basic idoc type invoice02 with data ? Is there an sap standard program i need to use ?? I am using ALE to send my idoc .

Thank you

1 REPLY 1
Read only

Former Member
0 Likes
285

Hi Alisha

where are you trying to trigger the idoc from?if you are triggering it from a transaction,you should define a output type for that transaction.

there are various other things you need to take care of while sending an idoc from origin to destination.

1.RFC Destination of receiver-define in SM58

2.port definition-attaching the rfc destination to the outgoing R/3 port in WE21

3.partner profiles-outbound parameters for the idoc like the port,type,message type etc. in WE20

here under the message control u have to specify parameters like application,msg type and process code.this process code will link to a FM..IDOC_OUTPUT_INVOIC which consists of the code to populate the idoc.

4.attaching the basic idoc type to a message type in WE82

so as soon as u save the txn...the output control will trigger the FM and the idoc will be generated.if the control data like partner profiles,port definitions are set correctly the idoc will reach the destination as desired.

hope this helps.