You are on page 1of 18

3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

GetStarted

Solutions Support Training Community Developer

Partner About

Community / Blogs

IntegratingMM&SDModulesin
SameClienttoCreateSales
orderinSupplyingCompany
CodeUsingPOraisedin
ReceivingCompanyCodeByI
DocMessageTypeORDERS
Part1
August22,2013 | 2,390Views |
SatishBabu
morebythisauthor

MM(MaterialsManagement)

SAPERP | ba00 | edi | enterpriseresourceplanning | idoc | mm | neu | orde

share
0 share
0 tweet share
0

Follow

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 1/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

Hi Friends in this document Im going to explain about integrating


purchasing and sales process between different company codes
maintained in same server & client by using EDI & I-Docs with message
type ORDERS. Once the Sales order is created in Supplying company
code, confirmation is sent to receiving company code by using message
type ORDRSP.

Prerequisites:

1.Knowledge of MM & SD
2.Two organization structures: one for purchasing and another for
sales

Purchasing: Company Code:8888, Plant: 8881, Purchase


Organization: 8881,

Sales: Company Code:6666, Delivering Plant: 6661, Sales


Area:6666, 66, 66, Shipping Point 6666.

3. Basic I-Docs knowledge

Steps:

1.CheckLogicalsystemassignedtoyourclientintransaction
SCC4.

2. Create RFC destination (of type ABAP Connection) to the logical


system in transaction SM59. Here give the same name as of logical
system & fill target host & system number as shown below. In logon
& security Tab fill client, username & password. To check the

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 2/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

connection click on Remote logon & connection test. If you are able
to remotely log in to target client then proceed to the next step.

3. Create a port of type Transactional RFC in transaction WE21.


You can give port name manually or else system will assign one based
on your selection. select I-Doc version as SAP release 4.X & give
RFC destination name which was created in Step No.2 .

4.CreateVendorMasterinTransactionXK01withOrganizational
elementsofPurchasingSystemi.e,CompanyCode:8888&P.Org:
8881.InCorrespondenceCompanyCodedata,maintainAccount
withVendorfieldwiththecustomernumberthatyouwillcreatein
StepNo.7

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 3/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

5.IntransactionWE20createPartneroftypeLI(Vendor)&givethe
vendornumbercreatedinStepNo.4&Saveit.NowClickon+
buttoninoutboundparametersareaasshownbelow.

6.EnterthePartnerRoleVNandselectmessagetypeasORDERS.

InOutboundoptionstab,enterthereceiverportwhichwascreatedin
StepNo.3.SelectthetransferidocimmediatelytotransfertheIdocas
soonasitwascreated.SelecttheBasictypeasORDERS05

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 4/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

InmessagecontrolTabEntertheOutputMessagetypeofPurchaser
orderEx.NEUasshownbelowandselectprocesscodeasME10.

InEDIStandardTabmaintainasshownbelow.Formoredetailspress
F1inthatparticularfield.

7. Create Customer Master in Transaction XD01 with organizational


elements of Sales System i.e., Company Code:6666 Sales Area:
6666, 66, 66. In correspondence company code data, maintain
Account at customer field with vendor number created in Step
No.4.
https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 5/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

8.IntransactionWE20createPartneroftypeKU(Customer)&give
theCustomernumbercreatedinStepNo.7&Saveit.NowClickon+
buttoninoutboundparametersareaasshownbelow.

EnterthePartnerRoleSPandselectmessagetypeasORDRSP.

InOutboundoptionstab,enterthereceiverportwhichwascreatedin
StepNo.3.SelectthetransferidocimmediatelytotransfertheIdocas
soonasitwascreated.SelecttheBasictypeasORDERS05

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 6/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

InmessagecontrolTabEntertheConfirmationMessagetypeofSales
OrderEx.BA00asshownbelowandselectprocesscodeasSD10.

InEDIStandardTabmaintainasshownbelowFormoredetailspress
F1inthatparticularfield.

9.IntransactionWE20,expandPartnertypeLS(LogicalSystem)&
selecttheLogicalsystemwhichwasassignedtoyourclientinStep
No.1(ThisLogicalsystemalreadyexists&dontrequiredtocreate).

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 7/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

NowClickon+buttonininboundparametersareaasshownabove.
SelectmessagetypeasORDERS.

InInboundoptionstab,SelecttheprocesscodeORDEandselect
triggerimmediately&toprocesstheIdocimmediately.

10. Similarly maintain inbound parameters for message type ORDRSP to


the same logical system with process code ORDR (order confirmation)

11. Create Condition record in transaction NACR for message type NEU
(purchase order Print out EDI) with combination P.Org & EDI Vendor.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 8/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

EntertheP.Org:8881&Vendor:2096andpressenter.SelectMedium
6(EDI),4(sendimmediately)&LanguageEN)English).Thensaveit.

Note:ThepartnerroleselectedhereisusedaspartnerroleinStep
No.6.

Note:Inmessagecontroltabyouhavetomaintainthis
message(NEU)instepNo.6.

12.SimilarlyCreateConditionrecordintransactionNACRfor
messagetypeBA00(SalesOrderConfirmation)withCombination
OrderType.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrece 9/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

EnterthethesalesorderdocumenttypeORandpressenter.Select
Medium6(EDI),4(sendimmediately)&LanguageEN)English).Then
saveit.

Note:ThepartnerroleselectedhereisusedaspartnerroleinStep
No.8.

Note:Inmessagecontroltabyouhavetomaintainthis
message(NEU)instepNo.8.

13.CreateMaterialmasterinTransactionMM01withorganzational
elementsofpurchasingsystemi.e.,Plant:8881.Maintainbasicdata,
purchasing,plantstoragedata&accountingviews.FillGrossweight&
netweightfieldsinbasicdatatab.remainingasnormal.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 10/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

14.ExtendthematerialcreatedinStepNo.13intransactionMM01
withorganizationalelementsofSalessystemi.e.,Plant:6661,Sales
Area:6666,66,66.MaintainSales1&2,salesplantdata,storageplant
data,accountingviews.

15.CreatestandardpurchasinginforecordinTransactionME11,with
vendor:2096,Material2070,P.org:8881,Plant:8881.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 11/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

InGeneralDatamaintainVendorMaterialNumberfieldwithmaterial
NumberinSalessystem(Samenumberasbothsystemsareusing
samematerialnumber).InConditiontabmaintainGrossprice.Ex.
Rs.300perTO

16.CreateConditionRecordforinputTaxConditiontypeMWVSin
transactionFV11.SlectkeycombinationEx.DomesticTaxes.Wherei4
istheInputtaxcodewith10%inputtaxinCountryIndia

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 12/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

17.CreateConditionrecordForGrossPriceConditionTypePR00in
transactionVK11withrequiredkeycombination&maintaintheGross
Price.Ex.300PerTonne

18. Create Condition Record For output tax condition type MWST in
transaction VK11 with required key combination. Where S1 is the ouput
tax code with 10% output tax in country India.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 13/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

19.MaintaintheSalesAreafortheCustomer&vendorcombinationin
TransactionVOE2

Note:Maintainthevendornumbermanually(asthereisnosearch
help)withprefixzerosifrequiredasSAPwilllookforthesame.

20. Convert External Partner Numbers to internal partner numbers.


Here we have to convert external ship to party(8881 receiving plant)
to internal ship to party 100211. To achieve this make entries as below
in Transaction VOE4.

21. In your sales pricing procedure make sure that condition types
EDI1 & EDI2 exists at the end of the schema as shown below. Those
two condition types stores unit price and total value of item expected by

customer(i.e., Price maintained in PO). These two condition types are for

informationpurpose&canbeusedforblockingsalesorder&billingiftheprice

differs from price in sales order. Transaction V.25 is to be used to release from

blocking.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 14/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

Testing:

Step1.Makesurethestockexistsindeliveringplant(6661).Then
CreatePOinTransactionME21Ninreceivingplant8881

InPOItemMaterialsDatatabobservevendormaterialnumberfield
filledornot.ifyouhaventcreatedinforecordyoucanmaintain
manually.

InConfirmationtabmaintainConfirmationControlkeyas
0001(Confirmations)&markAcknowledgementrequiredcheckbox.

InmessagesobserveNEUmessagewastriggeredwithmedium
6(EDI).SavethePO&makesurePOmessagewassent.Use
transactioncodeME9Fifrequired.

Step2:InTransactionWE02ChecktheoutboundIdocStatusof
messagetypeORDERS.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 15/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

HereIdoc911045asshownabove.Ifitissuccessfullyprocessedit
willhavestatus3.

Step3.ThenCheckInboundIDocofMessagetypeORDERS.Here
theIDoc911046.Ifitissuccessfullyprocessedandhavestatus53
thengetthesalesordernumberasshownbelow.

Step4.OpenthesalesorderinTransactionVA03.ObsrvePO
Number,orderquantity,deliverydate&customermaterialnumber.

InitemConditionsTabobserveconditiontypesEDI1&EDI2are
updatedwithUnitprice&totalvalueofmaterialorderedinPO
respectively

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 16/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

InitemOrderdatatabobservebelowdetails

Step5.NowMakesuresalesorderMessagetypeBA00wassent.in
VA03GotoExtras>Output>Header>Edit.

Step6.InTransactionWE02CheckOutboundIDocstatusofMessage
typeORDRSP.

HereIdoc911047asshownabove.Ifitissuccessfullyprocessedit
willhavestatus3.

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 17/35
3/24/2017 IntegratingMM&SDModulesinSameClienttoCreateSalesorderinSupplyingCompanyCodeUsingPOraisedinReceivingCompanyCodeBy

Step7: Then Check Inbound IDoc of Message type ORDRSP. Here the
IDoc 911048. If it is successfully processed and have status 53 then
check information message saying purchasing doc XXX successfully
processed as shown below.

Step8:NowDisplaythepurchaseorderinME23Nandinitem
confirmationstabobservethesalesordernumberisupdatedwith
confirmedschedulelineasshownbelow.

EndOfDocumentPart1

InContinuationofthisdocumentIwillexplainabout
processingdeliveryinSDandgoodsreceiptinMMforthe
abovebusinessprocessusingIDocsinmynextdocument
http://scn.sap.com/docs/DOC45777

ThanksForReading&Pleaseshareyourreviews&
feedback.

Regards

Satish

https://blogs.sap.com/2013/08/22/integratingmmsdmodulesinsameclienttocreatesalesorderinsupplyingcompanycodeusingporaisedinrec 18/35

You might also like