Step-By-step Guide on File-To-IDoc Using SAP PI 7 -1

4

Click here to load reader

description

IDOC overview part1

Transcript of Step-By-step Guide on File-To-IDoc Using SAP PI 7 -1

Page 1: Step-By-step Guide on File-To-IDoc Using SAP PI 7 -1

Search

Hom e • Tips • Tutor ials • For um s N EW • Ce r t if icat ion Q's • Inte r vie w Q's • Jobs • Te s t im onials • Contact Us

Document Categories:

ABAPTM

Adobe FormsABAP-HRALE & IDocsALVBAPIBASISBSPBusiness WorkflowCRM NEWLSMWSAP Script/Smart FormsBI/BWeXchange Infrastructure (XI)Enterprise Portals (EP)eCATTObject Oriented ProgrammingSAP QueryUserexits/BADIsWebDynpro for Jav a/ABAPTM

Others

What's New?

ABAP QuizHandling conv ersion errors -File EncodingCustom tab in Delivery(VL01N) –Header /Item Lev elALV - Consistency CheckVersion management insmartforms between differentserv ersDebugging Update Task andBackground TaskSAP System LoadGenerator(SGEN)Jav a Mapping for PI 7.1 usingAbstract transformation classUpdate Email address ofVendor Master Using eCATTSimple way of defining Select-options in Module PoolProgrammingALE step by stepConfiguration for Messagetype MATMASAdditional fields for selectionin the Free Search option inPA20/PA30Creation of WEB UIComponent and nav igationwith standard componentDemonstration of Table Popinin Web DynproLetter of credit process inExportAdding custom tab to thetransaction VF01/VF02/VF03Condition ExclusionSav e Select Options and ALVSelection records in ABAPWeb Dynpro ApplicationBuilding a Simple RoadMapApplication using Floor PlanManager GAFCreating custom page formatfor SAP Script / Smart FormSending workflow notificationto Requestor in HTML formatSteps to Translate OTR Textsin Webdynpro ABAPStep by step guide on addinga new tab in ME21N using aBADIStep-by-step procedure forCreation of Custom Archiv ingObject

Contribute?

Step-by-step guide on File-to-IDoc using SAP PI 7.0

By Deepak Shah, L&T Infotech

Brief Overview:

The purpose of this exercise is to implement a simple one w ay Asynchronous link betw een a f ilesender and SAP R/3 system using SAP XI/PI. Custom XML Document Containing Vendor informationis picked up from the FTP server by file adapter. The Message is mapped to IDoc –XML format &then routed to the IDoc adapter. The CREMAS IDoc is then posted into the backend R/3 System andvendor w ill be created by the R/3 system provided that it has authorization to do so.

Prerequisites:

1. Basic Know ledge of SAP PI / XI 7.02. Business System configuration in SLD is not covered in detail. 3. FTP configuration should be in place to pick up flat f ile from specified location4. Try creating a vendor in R/3 using transaction XK01 and get list of mandatory f ields that are

necessary in the source f ile structure

Implementation Steps:

A.) Maintain XI/PI System (Pick File – Transform into IDoc xml)

A.1) Maintain SLD (System Landscape Directory)

This Document does not contain configuration steps for creating the Business System, Technicalsystem, Product & Softw are component. It is assumed that the sender and receiver BusinessSystems are already created along w ith corresponding Technical System, Product, Softw arecomponents. Also the Softw are Component is imported into Integration Repository.

In this Example,

Sender Business System : TBIT40_Legacy_BS_DS

Receiver Business System : CX1_Business_System

Software Component: TBIT40_DS_SWCW, 1.0 of SAP

A.2) Maintain IR (Integration Repository)

A.2.1 Importing IDoc from SAP R/3 System

Double Click on your Softw are Component in the Integration Repository.

Select the radio Button “Import of RFC and IDoc interfaces from SAP system Permitted”

Enter the Connection Data for Import from SAP System

Add a new Namespace “http://sdht1.com ”.

Click on SAVE & Activate.

SAP Im Jobs www.accenture.com/SAP

Opportunities for SAP IM Experts. View Jobs& Submit Your CV Now.

Retail software and SAP www.citixsys.com

Build a successful retail business with iVendRetail and SAP.

What is Share Market? Sharekhan-Firststep.com

Learn The Investment Basics From Our Step-By-Step Guide.

University Of Glasgow www.admissionguide.co.uk/

Admissions Open Get Scholarships FreeGuidance by Experts

BI DirectorExcellence in Design,Documentation andAnalysis of BIApplicationswww.bi-director.com

SAP Jobs forFreshers.Apply to all SAPVacancies. SubmitYour Resume Free.Now!MonsterIndia.com

MSc SAP BusinessSystemsIntegration UsingState of The Art SAPTechnology - Find outmorewww.Brunel.ac.uk/MScBSI

Study & Work inAustraliaOpen Career Optionsin Australia Join TopUniversities.Apply in2011www.StudyPlaces.com/Admi…

Six Sigma TrainingIndiaSix Sigma TrainingDelhi BangaloreMumbai ChennaiHyderabad Kolkatabenchmarksixsigma.com

06-05-2011 Step-by-step guide on File-to-IDoc us…

saptechnical.com/…/Index.htm 1/4

Page 2: Step-By-step Guide on File-To-IDoc Using SAP PI 7 -1

Sample Specs

What's Hot?

Web Dynpro for ABAP Tutorials

Join the Mailing List

Enter name and email address below:

Name:

Email:

Subscribe Unsubscribe

GO

Now right click on Imported Object under your Softw are Component and click on Import of SAPObjects.

Give the relevant Sender System information

Select the IDoc CREMAS03 and click continue

Click finish to start import. Once the IDoc is successfully imported save & activate it.

06-05-2011 Step-by-step guide on File-to-IDoc us…

saptechnical.com/…/Index.htm 2/4

Page 3: Step-By-step Guide on File-To-IDoc Using SAP PI 7 -1

Note: We don’t need any Data Type, M essage Type and M essage Interface for Receiverside as IDoc itself will be used for receiver Data Type, M essage Type and M essageInterface.

A.2.2 Create Data Type for Sender:

Go to Interface Objects tab in your namespace.

Go to Data type and Click on new

Here w e w ill create a data type Address_DT and Vendor_DT.

Address_DT w ill be referred as type for one of the field in the Vendor_DT.

This is called as Nesting of Data types.

This is achieved by Selecting “Search Help” from the Drop dow n menu. There you w ill be able toselect any existing data type in the SAME Softw are Component

The Structure of Both data types are as follow s

A.2.3 Create Message Type for Sender:

In the Left Frame, Right Click on the Node Message type and select “New ”.

The Name of the Message type w ill be “Vendor”.

Note: Message type forms the root element of the XML business Document.

For section “data type used”, select your data type “Vendor_ DT” from F4 help.

Save & activate.

Cli k h t ti

06-05-2011 Step-by-step guide on File-to-IDoc us…

saptechnical.com/…/Index.htm 3/4

Page 4: Step-By-step Guide on File-To-IDoc Using SAP PI 7 -1

Click here to continue...

Please send us your feedback/suggestions at [email protected]

Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us

© SAPTechnical.COM. All rights reserved.All product names are trademarks of their respective companies. SAPTechnical.COM is in no way affiliated with SAP AG.

SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.Every effort is made to ensure content integrity. Use information on this site at your own risk.

Graphic Design by Round the Bend Wizards

Join IT career course www.Aptech-Education.com

Learn HTML, .NET, C, SQL, Linux Prepare forjobs in top companies

Graphics Design in 12 mth www.Arena-Multimedia.com

Learn at Arena Animation Academy Jobs inPrint TV Advtg Net Gaming

India's Top Engg College www.amity.edu

Ranked first for Placements. Faculty creditedwith 150 patents

Top Finance Courses-India www.icofp.org

Our courses are rated amongst Top 3 Financecourses by IndiaToday

06-05-2011 Step-by-step guide on File-to-IDoc us…

saptechnical.com/…/Index.htm 4/4