Skip to Content
avatar image
Former Member

How XI will read the .txt file

Experts,

i AM WORKING ON A FILE BAPI synchrounous scenario.

Sender will drop the required file on XI directory and XI will pull the file and map it with the BAPI u2013 and crate services entries in SAP SCM. If errors are encountered during the process they are returned to the client in a report or as erroneous file.

*I have a .txt file( tab delimitted file) in the folowing structure

H NAME date sex data_txt 676869*

C a b c

C d e f

H name Account brat abcc 12333

C a b c

C d e f hjhdkf

like this multiple entries, ll be getting .

Based on H ( indicator), Have to get the data. How will I do in XI file adapter? Please help me how should I design the file adapter so that It can read the .txt file.

I have created the sender data type similarly to the structure of BAPI.

Note; H indicates teh Header and D indicates teh sublines. Together it is called one service entry. Aagain Next 'H' indicates the strat of next service entry.

Thanks

Veeru

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 18, 2009 at 04:11 AM

    Hi Viru,

    You have to use FCC parameters of File Adapter. It will be helpful if you will provide the structure in which you want to form the XML.Then we can help you out with the FCC parameters.

    Thanks

    Nutan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 18, 2009 at 11:48 AM

    Hi Viiru,

    You can use the content coversion parameter .

    Add comment
    10|10000 characters needed characters exceeded