IDOCSample.docx

上传人:b****8 文档编号:9092042 上传时间:2023-02-03 格式:DOCX 页数:11 大小:367.12KB
下载 相关 举报
IDOCSample.docx_第1页
第1页 / 共11页
IDOCSample.docx_第2页
第2页 / 共11页
IDOCSample.docx_第3页
第3页 / 共11页
IDOCSample.docx_第4页
第4页 / 共11页
IDOCSample.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

IDOCSample.docx

《IDOCSample.docx》由会员分享,可在线阅读,更多相关《IDOCSample.docx(11页珍藏版)》请在冰豆网上搜索。

IDOCSample.docx

IDOCSample

Portdefinitions

Thisportdefinitionisusedinalltheexamples.

UsetransactioncodeWE21tocreateanewport.

TheportshouldbecreatedastypeFILE

Generaldataandoutboundfile

 

NOTE:

RemembertoleaveOutboundfileblank

Inboundfile

 

 

SalesorderIDOC

Inthisexampleapurchaseiscreated,usingtheSAPstandardfunctionallityforcreatingsalesorders.Whenthesalesorderissaved,andIDOCisautomaticallygenerated.ThenweusetheIDOCtesttooltocreateanorderconfirmationfromthesalesorderIDOC.

 

CreateVendor

Createcustomer

Createpartnerprofiles

Createpurchaseorder

CreatetheorderconfirmationIDOC

 

Createvendor

CreatevendorusingtransactioncodeMK01.Youcanalsouseanexistingvendor.

Vendor:

T-BILHFN

Purch.org.:

001

Purchaseorganizationmayvaryfromsystemtosystem.

CreateCustomer

CreateacustomerusingtransactionVD01.Youcouldalsouseanexistingcustomer.

Inthefollwingexamplethevendor3471isused.

Createpartnerprofiles

Createvendorpartnerprofile

Generaldata

 

Outboundparameters

 

Inboundparameters

 

Createcustomerpartnerprofile

Generaldata

 

Outboundparameters

 

 

 

Imboundparameters

 

Createpurchaseorder

UsetransactionME21tocreatethepurchaseorder.

 

TosendanIDOCwhenthedocumentisfinished,gotoHeader->MessagesandchangetheoutputmediumtoEDI.

 

ThenselectFurtherDataandchangeDispatchTimetoSendimmediately.ThiswillcreatetheIDOCassoonasthepurchaseorderissaved.

 

Savethedocument.

UsetransactionWE02tocheckthattheIDOChasbeencreatedwithouterrors

 

CreatetheorderconfirmationIDOC

AsthesystemhasnotbeenconfiguredtohandletheIDOCflow,theIDOCtesttoolisusedtosimulatetheflow.The OrderIDOCisusedasatemplatetocreatetheorderconfirmationIDOC.

Transactioncode:

WE19

TypethenumberoftheOrderIDOCinonthestartscreenandselectmenuIDOC->Createtocreatethetemplate.

Changethecontrolrecord

NotethatthenameoftheportSAPTSTmayvaryfromsystemtosystem.ThenamecanbeseenintheSenderportoftheIDOC

CreatenewE1DK02segment

TheE1DK02Documentheaderreferencedatasegmentincludesreferencestootherdocuments.

 ThenewE1DK02segmentshouldbecreatedasacopyoftheexistingE1DK02,andatthesamelevel.

Changethefollowingfieldsoftherecord:

Qualifier:

002

Documentitem:

10

Qualifier=IDOCqualifierreferencedocument=002=Vendororder

Documentitem=:

Itemnumber,seetheitemnumberonthepurchasingdocument

CreateE1EDP02segment

TheE1EDP02DocumentItemReferencedataincludesreferencestootherdocuments.

CreateE1EDP02assubelementofE1EDP01DocumentitemGeneralData

Qualifier:

001

Document:

4500010757

Documentitem:

10

Qualifier:

IDOCqualifierreferencedocument001=Customerpurchaseorder

Document:

Documentnumber–Thenumberofthepurchaseorder

Documentitem:

Itemnumber,seetheitemnumberonthepurchasingdocument

ChangingtheACTIONfieldatheaderoritemlevel

Ifyouareworkingwithoutaconfirmationcontrolkey,theIDocmusthaveaprocessableactioncodeateitherheaderoritemlevel:

Atheaderlevel,thesegmentfieldACTIONofsegmentE1EDK01mustbefilledwiththevalue'000'ifthecompletepurchaseorderistobeconfirmed.

Atitemlevel,thesegmentfieldACTIONofsegmentE1EDP01mustbefilledwiththevalue'000'or'004'ifthePOitemistobeconfirmed.

 

TestIDOC

Afterthechangeshavebeenmade,presstheStandardInboundbuttontogeneratetheIDOC.

IfnoerrorsoccursgototransactionWE02tocheckiftheIDOChasbeenprocessedwithouterrors.

IftheIDOChasbeenprocessedwithouterrors,thendisplaythePurchaseorder(TransactionME23).displaytheitemdataanddouble-clickontheitemline.Ifallwentwell,youwillnowsethatthefieldAcknowl.no.hasbeenfilledout.

 

 

 

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 职业教育 > 职高对口

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1