Home > Ask the SAP software/management Experts > SAP NetWeaver, ESA and EAI Questions & Answers > IDoc validation; populating in error tables from IDoc
Ask The SAP Expert: Questions & Answers
EMAIL THIS

IDoc validation; populating in error tables from IDoc

Axel Angeli EXPERT RESPONSE FROM: Axel Angeli

Pose a Question
Other SAP Categories
Meet all SAP Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 23 July 2008
Once I receive orders IDoc data from webMethods, I need to do validation for the following: 1. PO Number and date: exists or not ? 2. Material: exists or not ? 3. Pricing calculation If I find any mismatches in the data, I have to populate these in SAP error tables. Is there any simple way to populate in error tables from IDoc ? I am getting 51 (Status reset after editing IDoc) because I made some changes in IDoc (we05) and reprocessed the IDoc using BD87.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SAP NetWeaver, ESA and EAI
In an upgrade to SAP ECC 6.0, when do integrated apps get upgraded?
Configuring SAP EDI for sales orders
Installing SAP NetWeaver PI 7.1 on servers running ECC 6.0
Resolving app server connectivity problems for remote users
Should a manufacturing expert pursue SAP PP or SAP SCM (APO)?
How to start an SAP NetWeaver career
How to pursue an SAP developer job even if you hate Java
How to choose between SAP Basis and SAP security courses
Which SAP IDoc type can solve the EDI X12 211 error message?
How to fix two common SAP ABAP problems

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


Is there any simple way to populate in error tables from IDoc? Yes. In your IDoc processing routine, add these lines: idoc_status-docnum = idoc_contrl-docnum. idoc_status-status = '51'. idoc_status-msgty = 'E'. idoc_status-msgid = 'VG'. idoc_status-msgno = '204'. idoc_status-msgv1 = xvbak-kunnr. idoc_status-msgv2 = lieferant. APPEND idoc_status IDoc processing is a fully customized process. When you receive an IDoc, the IDoc engine looks for the IDOCTYP and MSGTYP in the IDoc header and loks up the processing function module intable EDIFCT. You can now create an own function module Z_IDOC_ORDER_INPUT and replace the original entry. Then your function will be called instead, and you can pre-process the IDoc as you need it. The best way is like this: Copy the original idoc processing function IDOC_INPUT_ORDERS05 to Z_IDOC_INPUT_ORDERS Delete the coding from the function Z_IDOC_INPUT_ORDERS, and make call function to IDOC_INPUT_ORDERS05 Replace the entry in EDIFCT (with WE42 or with SM31 and view V_EDIFCT) Test it ; it should work as before. Now you can change Z_IDOC_INPUT_ORDERS by adding your code before calling IDOC_INPUT_ORDERS05. If you decide to quit Z_IDOC_INPUT_ORDERS before calling IDOC_INPUT_ORDERS05, do not forget to set the EDIDC-STATUS value correctly.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SAP White Paper Topics
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts