2008 Apr 17 3:43 PM
MY REQUIREMENT IS To support current min/max programs, this data is sent weekly to the vendor to manage the replenishment stock as necessary. SAP does not have a standard IDOC that contains gross requirements data for transmission. A custom IDOC will therefore be created to capture all the data in the transmission. A custom program will be used to populate the IDOC accordingly and process the transmission. The system which recieves will reformat the IDOC data as needed for presentation to the supplier.
The custom IDOC will capture the gross requirements data that must be sent to the vendor for min/max materials. A custom program willread the min/max gross requirements in SAP. The custom processing routine will retrieve all the materials from the MRP type for min/max materials and create the proper IDOC.
MY REQUIREMENT IS To support current min/max programs, this data is sent weekly to the vendor to manage the replenishment stock as necessary. SAP does not have a standard IDOC that contains gross requirements data for transmission. A custom IDOC will therefore be created to capture all the data in the transmission. A custom program will be used to populate the IDOC accordingly and process the transmission. The system which recieves will reformat the IDOC data as needed for presentation to the supplier.
The custom IDOC will capture the gross requirements data that must be sent to the vendor for min/max materials. A custom program willread the min/max gross requirements in SAP. The custom processing routine will retrieve all the materials from the MRP type for min/max materials and create the proper IDOC.
2008 Apr 18 4:47 AM
Hi,
you can create custom idoc as per your requirement using
we81 create message type .
we 81 assign message type
we31 create segments
we30 assign segments
like this you can proceed for custom idoc creation.
Please the process in steps .
MASTER DATA TRANSFERMATION BETWEEN 2 DIFF CLIENTS
For this scenario Client 800 is the Sender and 810 is the receiving system
1. Creating Logical Systems
o Login using 800 client
o Go to T. Code SALE
o Expand Sending and Receiving Systems
o Expand Logical Systems
o Click on Define Logical System
o Click on New Entries
o Create STUD_S, STUD_R Logical Systems
o Save and come back
o Assign the STUD_S Logical System to client 800
o Assign the STUD_R Logical System to client 810
2. Creating the RFCs
o Go to T. Code SM59
o Expand R/3 Connections
o Enter RFC Name as STUD_S
o Connection Type as 3
o Language as EN
o Client as 800
o User as SAPUSER
o PWD as abap
o Target host as sap
o Click on Remote logon button to test the RFC
o Enter RFC Name as STUD_R
o Connection Type as 3
o Language as EN
o Client as 800
o User as SATISH
o PWD as abap
o Target host as sap
o Click on Remote logon button to test the RFC
3. Creating the Message Type
o Go to T. Code WE81
o Click on change, continue
o Click on New Entries button
o Give message type as ZBAPI_STUD_MAS and description
o Save and back
4. Creating the Segment
o Go to T. Code WE31
o Give segment name as ZBAPI_STUD_SEG
o Enter Short Text
o Enter the Field Name and Data Element in the text boxes
o Save, continue,
o Click on Edit -> Set Release.
5. Creating the Basic IDOC Object
o Go to T. code WE30
o Give obj. name as ZBAPI_STUD_IDOC
o Click on create
o Select create new radio button, give description and continue
o Select the IDOC obj name and click on create button
o Enter the segment name which is create earlier
o Select the check box if you want to make the segment mandatory
o Enter 1 in minimum number 99999 in maximum number, continue
o Save and back
o Click on Edit -> Set Release
6. Creating Customer Distribution Model
o Go to T. Code BD64
o Click on change and Create model view button
o Enter the short text and Technical name as ZSTUDENT
o Select the model and click on Add Message Type Button
o Give the Sender as STUD_S,
o Receiver as STUD_R,
o Message Type as ZBAPI_STUD_MAS
o Select the model view & click on Environment -> Generate Partner Profiles
o Select Transfer IDOC Immediately and Trigger Immediately radio buttons
o Click on Execute
o You should get a list in green color which means it executed successfully.
o Back to main screen, select the model view
o Click Edit->Model view->Distribute
o Click on continue
o You should get a list saying model view is distributed successfully.
7. Checking the Port
o Go to T. Code WE21
o Expand Transactional RFC
o Find the port from the list which is created using BD64 for STUD_R (Receiving system) RFC Destination.
8. Checking the Partner Profiles.
o Go to T. Code WE20
o Expand Partner Type LS
o Select the Partner profile STUD_R
o Double click on Message Type ZBAPI_STUD_MAS in Outbound parmtrs.
o Check Receiver Port is assigned correctly
o Check the Basic type as your Basic IDOC object.
9. Assigning the Message Type to Basic IDOC Object
o Go to T. Code WE82
o Click on Change & continue, New Entries button
o Give the Message type as ZBAPI_STUD_MAS
o Give Basic Type as ZBAPI_STUD_IDOC
o Release as 46C
o Save and back
you can do like this.
after same procedure .
reward points.
2008 Apr 18 5:04 AM
Hi,
Create a custom idoc using the fallowing tcodes.
WE31 to create segment.
WE30 to create IDoc type.
WE81 to create message type.
WE82 link this message type to the Idoc type.
WE20 for partner profile
in report program.
Call the function module
'MASTER_IDOC_DISTRIBUTE'.
populate the control record and data record (whatever data you want to send) tables and pass it to the this function module.
After executing this program run the WE14 transaction code to get the status 03 from 30.
Check this statuses from WE05 tcode.
Regards,
Bhanu
2008 Apr 18 5:06 AM
Hi ,
You need to first identify the information needed to be added into the segment.
Now find the corresponding information in the database table.
Create segment with these fields identified from the table.
Add the segments to ur idoc type and write the query to fill these segment fields with values in the corrseponding user exit's include program
Thanks & reagards
Priyaraj
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |