Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Question on Inbound IDoc from internal table to XML and transform it to IDoc

Former Member
0 Kudos
197

Dear expert,

I am new to development and may i ask about based on the scenario below:

I would like to use the POS interface in SAP having the following procedure, please advice if the procedure below is correct

1. There will be some flat csv file from external POS system , contains data and send to a folder on SAP server

2. Ports, Partner profile and Logical system has been created in SAP

3. There will be an ABAP program to import the data from csv to internal table

4. Using the message type WPUWBW, Basic Type WPUWBW01 , Process Code WPUW for inbound

5. There will be an ABAP program to fill internal table data to IDOC (or XML) filling in segment type E1WPG01.

6. Trigger report RSEINB00 and done !

However, we come up to a critical point which is on step 5, how could we put the data to IDoc?

We know that from TCode WE60 IDoc Documentation we can export a XML Schema but how chould the XML Schema transform to XSD for ABAP program to feed in?Would it be possible to provide some code example on the ABAP program mentioned in Procedure 5?

Thanks so much i hope i you guys can save my life!

Best,

Chris

1 ACCEPTED SOLUTION

Former Member
0 Kudos
102

Hello,

I guess you need to use the FM 'IDOC_INPUT_POS_INV_MANAGEMENT' to push the Idocs in ECC

best regards

swanand

1 REPLY 1

Former Member
0 Kudos
103

Hello,

I guess you need to use the FM 'IDOC_INPUT_POS_INV_MANAGEMENT' to push the Idocs in ECC

best regards

swanand