Define a new internal RFC destination INTERNAL
Explore both the transactions WEDI and SALE and adjust the settings as necessary
Use transaction BALE to generate an arbitrary IDoc
You can access most of the transactions used in the example below in the menu
WEDI and SALE.
We will assume, that we want to send material master data from the current system
to a remote system. To simulate this scenario we do not need to have a second
system. With a little trick, we can set up the system to send an IDoc back to the
sending client.
We will set up the system to use an RFC call to itself. Therefore we need to define
an RFC remote destination, which points back to our own client. There is a virtual
RFC destination called NONE which always refers to the calling client.
RFC destinations are installed with the transaction SM59. Create a new R/3
destination of type "L" (Logical destination) with the name INTERNAL and the
destination NONE.
Note: Do not use RFC type internal. Although you could create them manually, they
are reserved for being automatically generated. However, there is the internal
connection "NONE" or "BACK" which would do the same job as the destination we
are creating now.
The next step is defining a data port, which is referenced by the IDoc sending
mechanism to send the IDoc through. Declaring the port is done by transaction
WE21.
We will now declare an ALE connection from our client to the partner INTERNAL.
ALE uses IDocs to send data to a remote system. There is a convenient transaction
to send material master data as IDocs via the ALE.
The set up is done in transaction SALE. You first create a new ALE model, to avoid
interfering with eventual existing definitions. Then you simply add the IDoc
message MATMAS as a valid path from your client to INTERNAL.
In order to send the IDoc, you call the transaction BALE and choose the distribution
of material master data (BD10). Choose a material, enter INTERNAL as receiver
and go.
To see, which IDocs have been sent, you can use the transaction WE05. If you did
everything as described above, you will find the IDocs with an error status of 29,
meaning that there is no valid partner profile. This is true, because we have not
defined one yet.
ABAP/4,ABAP report,Interactive Report Example,ALV grid Example,ALV list,IDOC,User Exit,RFC,Smartform,sapscript,ABAP Performance,Remote Function Module( RFC ),Function Module,ABAP Sample Code,ABAP tools,ALV report Generator,ABAP Interview Questions,BDC,BAPI,ALE,BADI,EDI,InternalTable,Data Structure,LSMW,Domain,DataElement,Basis and Administration,ABAP HR development,ABAPDebugger,BW,Exception Handling,Download FI, CO, MM, PP, SD, PM, PS, QM, SM, HR, BW, APO,ABAP Tutorial
Monday, April 21, 2008
Subscribe to:
Post Comments (Atom)
Sample ABAP Code
- Sample ABAP Program to Upload table using new function GUI_UPLOAD
- Sample ABAP Program for Submitting report with selection table
- Sample ABAP Program for Sending SAP Mail
- Sample ABAP Program for Search Layout sets for given String
- Sample ABAP Program for Sapscript PerForm Module
- Sample ABAP Program for Create IDOC
- Sample ABAP Program for Output file to application server then send mail with Download details
- Sample ABAP Program for Module Pool Skeleton
- Sample ABAP Program for Module Pool containing screen loop processing
- Sample ABAP Program for MB1B Call Transaction
- Sample ABAP Program of Function Module to Convert Work Center into Personnel Number
- Sample ABAP Program of FTP Function Module
- Sample ABAP Program to EXPORT LIST TO MEMORY
- Sample ABAP Program to Execute Unix command from within SAP
- Sample ABAP Program to Get Output in EXCEL
- Sample ABAP Program to Implement EDI
- Sample Program to dynamically change upload/download program for any Table
- Sample ABAP Program to download table using new function GUI_DOWNLOAD
- Sample ABAP Program to Download file to Presentation Server
- Sample ABAP Program to display pop message to avoid abort
- Sample ABAP Program of ALV Grid
- Sample ABAP Program of Dialogue Module Pool
- Sample ABAP Program to DIALOGUE FLOW LOGIC
- Sample ABAP Program to Delete a file from the application server
- Sample ABAP Program to Compare to Unix or PC files and print differences
- Sample ABAP Program to Colour cells in ALV
- Sample ABAP Program to Calculate difference between date/times in hours
- Sample ABAP Program of BW User Exit
- Sample ABAP Program of ALV Grid control using OO methods
- Browse a file on the application server
No comments:
Post a Comment