cancel
Showing results for 
Search instead for 
Did you mean: 

How to do document offset in Simple Plain to XML for Zip file Sender side

Former Member
0 Kudos

Hi,

Scenario is .zip file to IDOC, A idoc per a record. .Zip file has simple Plain structure like below. Tab delimiter.

Name number code country Rating Item

ABC 123 C4 IND I2 PRD

ABD 123 C4 IND I2 PRD

ABE 123 C4 IND I2 PRD

I am using Adpater Module and Header is generating a IDOC (total 4 IDOCs) in ECC. I would like to use similar to file 'document offset ' option in Adapter Module to skip the header row. so, I need only 3 IDOCS.

plain2XML and using MsgTransfermationBean.

I tried with

xml.documentSkipFirstRows=1

xml.documentOffset=1

xml.addHeaderline=0

I came to know that above all for STRUCTURAL Plain parameters so no use.

I checked this http://forums.sdn.sap.com/thread.jspa?threadID=1223739

http://help.sap.com/saphelp_nw04/helpdata/en/70/f3cbad30ee479cb15672219f3405f0/frameset.htm

Could you please help me with proper parameter to skip the header/first record of the file.

Thanks

shoukat

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184681
Active Contributor
0 Kudos

Hi Shoukat,

Try with the following parameter:

xml.processFieldNames = fromFile

As of SAP Help: "means that the field name information is located in the header line of the file to be converted."

Hope this helps,

Greg

Former Member
0 Kudos

You are right. That works. Now I get rid of the first row. Fortunately my message type has already the same filed names like in the first row so I can use this without any further actions. But if I would have different field names a second mapping step would be necessary.