Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Sender File content conversion

Hi Experts,

My scenario is file to proxy. I need help in file content conversion.attached sample input file and message type  . My requirement is need to read all lines and send to proxy.

Header starts with H H;fieldname1;fieldname2;;;fieldnamen;

Details starts with D  D;fieldname1;fieldname2;;;fieldnamen;

Control block starts with CH CH;Number of header;Total amount of currency;

CH; Unique currency name;total amount of that currency

Pls guide me for content conversion parameters

Thanks in advance

Jeevitha N

Sample.jpg (98677 B)
MT.jpg (168749 B)
Former Member
Former Member replied

Hi Jeevitha,

  • Change the Recordset Sequence to variable
  • Give correct key Field Name
  • Add keyFieldName for all recordset Structures(Header, Detail etc)

Header.fieldNamesLineIndicator,SupplierCode,InvoiceDate,Currency,Amount
Header.fieldSeparator;
Header.endSeparator'nl'
Header.keyFieldNameLineIndicator
Header.keyFieldValueH
Detail.fieldNamesLineIndicator,LineType,CompanyCode,Costelement
Detail.fieldSeparator;
Detail.endSeparator'nl'
Detail.keyFieldNameLineIndicator
Detail.keyFieldValueD
ControlBlock.fieldNamesControlIndicator,TotalLine,TotalAmount
ControlBlock.fieldSeparator;
ControlBlock.endSeparator'nl'
ControlBlock.keyFieldNameLineIndicator
ControlBlock.keyFieldValueCB
ControlHeader.fieldNamesControlIndicator,TotalLine,TotalAmount
ControlHeader.fieldSeparator;
ControlHeader.endSeparator'nl'
ControlHeader.keyFieldNameLineIndicator
ControlHeader.keyFieldValueCH

Regards,

Praveen.

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question