Sap Download Idoc Flat File

8 views
Skip to first unread message

Myong Killings

unread,
Apr 18, 2024, 2:36:22 AM4/18/24
to congespperro

We have a requirement to pick ORDERS05 idoc flat file(.CSV) from SFTP and convert into xml.I have tried with the graphical mapping and also looked into standard converters available in CPI but unable to succeed.

2) using jco. So would the code look like this? I also don't understand why I can't find an example to do this since this would have made life much easier. As you can see in my code, the first lline in my idoc flat file contains the EDI_DC.

sap download idoc flat file


Download Zip ===> https://t.co/7NjiPTtYz9



Is this something like the code underneath where pi_idoc_control_rec_40 will be filled with the first line of my idoc flat file containing the EDI_DC and where pt_idoc_data_records_40 will be filled with all other lines of my idoc flat file containing the segments different from EDI_DC ???

Your flat file should more or less match already the parameters that both function modules expect. So all you need to do is parse the file and fill IDoc control record (idoc_control_rec_40) whenever you have a control record and otherwise add a IDoc data record (idoc_data_rec_40). Note that for IDoc data records you don't have to fill most of the meta data information, i.e. segment name (SEGNAM) and data (SDATA) should be sufficient. The latter basically contains the segment data as a fixed length record, so exactly what you have already in the file (so simple substring with the right offset should do to identify segment names and data).

If you flat file (fixed length records) would have the right layout you could simply use standard SAP program RSEINB00 to process the file. That's the traditional method from the olden days, where usually the IDocs were transferred via ftp/sftp...

The steps we are following are :
Upload the flat file and converting the flat file to the record list. ( This is working fine)
Then looping the record list, and mapping the record list fields to the fields of the IDOC Segment structures. This is not functioning as desired.

In Azure Logic Apps, you can process XML messages that you send and receive by using the Enterprise Integration Pack. If you've used BizTalk Server, the Enterprise Integration Pack provides similar capabilities to transform and validate messages, work with flat files, and even use XPath to enrich or extract specific properties from a message. If you're new to this space, these features expand how you process messages in your logic app's workflow. For example, if you have a business-to-business (B2B) scenario and work with specific XML schemas, you can use the Enterprise Integration Pack to enhance how your company processes these messages.

For example, SAP accepts and sends IDOC files in flat file format. Many integration platforms create XML messages, including Logic Apps. So, you can create a logic app that uses the flat file encoder to "convert" XML files to flat files.

Job Duties: Working on the business blue printing documents for SAP ABAP from technical perspective. Working with business teams to build prototypes to validate system requirements. Ownership for system design, solution approach, implementation of solution and affirmation on quality of deliverables. Designing, coding, unit, UAT testing and reviewing solutions implemented. Creating or changing WRICEF (workflows, reports, Interfaces, conversions, enhancements, forms) objects using SAP-ABAP Netweaver. Implementing enhancement spots, user exit, function exits, Badi etc. Using enhancement framework in SAP ABAP. Creating or changing ABAP programs using logical database (LDB) mainly in SAP-HR module. Developing function module, RFC enabled function module, module pool programs, calling BAPI in custom programs. Developing programs using Object Oriented (OOPS) concept in SAP ABAP. Creating LSMW or BDC program for migrating data in SAP system. Creating interface program (inbound & outbound) using IDOC, flat files. Trouble shooting and resolving production issues by debugging and making changes in existing programs; developing programs and applications using SAP Fiori, SAPUI5, ODATA services. Coordinating with the offshore team. Adherence to development processes. E.g. middleware coding standards, code reviews, unit testing, development process, release notes. Participating in requirements gathering to provide technical input on system options and solutions. Working closely with other technical teams to ensure system solutions meets required specifications. Reviewing test cases. Collaborating with process owners, users and IT Staff to coordinate business simulation testing. Creating automated scripts for regression test suites. Extracting the automation result from the tool and review them. Resolving the defects that are raised during the testing with the help of the functional as well as business team. Changing various transactions, error handling and adding restriction via customization. Monitoring interfaces with legacy systems. Performance tuning of existing transactions and reports. Designing and performing system, integration, regression, and performance testing. Debugging, performance tuning of the mapping and error handling. Application support for critical applications.

3a7c801d34
Reply all
Reply to author
Forward
0 new messages