Field Seperators for File Adapter Missing , If Data in  field is Initial

Hi All ,
I am working on Idoc to File Adapter Scenerio , The Issue is if one of the field is Initial , then the seperator(|) does not appear .
eg: if I have f1,f2, f3, f4 ... f10 columns
              v1,v2.......v10 are the values , If v3, v4 values are initial , the file has only 8 fields and number of field seperators are 7 and not 9 .
In the content conversion parameters , i had specified the
Row.fieldSeparator  |
Row.endSeparator    'nl'
Row.fieldNames      f1d1|fld2|....|Fld10
Please advice
Regards
Chan

HI Chan,
Because if there is no value in the idoc fields , it will not generate XML tags for that. So you will get only 8 xml tags in your input xml.. Check this from SXMB_MONI->Input xml(Idoc xml).
For this you can make use of <b>Exists</b> node function in the mapping, with <b>If-else</b> functions. So if it exists map directly else map with constant value. So that you will get all the xml tags, so that all the fields..
Regards,
Moorthy

Similar Messages

  • Is a record ID field required for File Adapter (Header, Body, Trailer)?

    Hi,
    File to File scenario. The sender file is a text file i.e. .txt which needs a conversion on the sender file adapter. There are three structures in the file namely header (one), body (many) and Trailer (one). From what I can see I need a record Id field (with the same name) in all the structure types, can anyone confirm this for me?
    Thanks,
    Leanne

    That is correct. If you have a variable number of records of a particular type, then you need a way to accurately identify each type of record... and that is done via the key field (or Record ID)  which is present in each record type.
    Extract from SAP Online Help:
    <i>Key Field Name
    If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value ‘*’, then the substructures must be identified by the parser from their content. A key field must be set with different constants for the substructures. In this case, you must specify a key field, and the field name must occur in all substructures.
    Specify the Key Field Type to be used to compare the predefined values. This entry is used if the key field name is defined.
    NameA.keyFieldValue: Specify the value of the key field for the structure. This entry is mandatory if the key field name is set. Otherwise, the entry is ignored.</i>
    For more info, refer to the SAP Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

  • Key Field Value for File Adapter Sender Wildcard

    Hello everybody, is there a way to use a wildcard for the property of NamA.keyFieldValue in the cc for a Fils Sender????, here's an example why, I need to take some Files via PI 7.0 and my key filed can change according to the file an example is that in a file can be HF28 and in another file can be HF29, the only character that is going to be constant is the H, I would really appreciate any suggestions, thanks in advance.
    Regards,
    Julio Cesar

    Hi Julio
    File sender adapter will read the file using FCC
    Key Field Value entry is mandatory if the key field name is set. Otherwise, the entry can be ignored
    http://help.sap.com/saphelp_nw70/helpdata/EN/34/393071e9b998438ddb8ce97cd617a1/frameset.htm
    Content Conversion ( The Key Field Problem )
    Thanks
    Gaurav Bhargava

  • How to set DEBUG severity for File adapter in J2SE AE

    Hi,
    Can anyone help me in setting the severity level to DEBUG for file adapter?
    I have tried to set in logging.properties file as given below,
    formatter[Trace]         = TraceFormatter
    formatter[Trace].pattern =%24d [%t] %-6s %l - %m
    log[Trace] = FileLog
    log[Trace].pattern     = swb_%g.log
    log[Trace].limit     = 2000000
    log[Trace].cnt          = 5
    log[Trace].formatter     = formatter[Trace]
    com.sap.aii.messaging.adapter.severity = DEBUG
    logging components
    #com.sap.aii.axis.logs = +log[Trace]
    #com.sap.aii.axis.severity = DEBUG
    #org.apache.axis.logs = +log[Trace]
    #org.apache.axis.severity = DEBUG
    Please correct me if I have did anything wrong and sugest me hot to set the DEBUG level as soon as possible.
    Best Regards,
    Soorya

    Hi Sejoon,
    when we changed the host of XI server in one of our projects one of the things we had to change was the exchange profile entries
    http://server:port/exchangeProfile/index.html
    to see how your adapter engine is configured
    http://server:port/sld
    SLD -> Content Maintenance
    then
    Subset: landscape description
    Class: XI Adapter Framework
    buth check the exchange profile entries first
    Regards,
    michal

  • Dynamic UserID/Password for file Adapter

    Hi,
    How to use dynamic UserId/Password for file adapter ?
    (Sender/Receiver)
    In our case the Id/Pwd of FTP Site changes freguently.
    Can anyone help.
    Thanks in Advance
    Regards
    Chemmanz

    Hi Chemmanz,
    >>>>In our case the Id/Pwd of FTP Site changes freguently.
    but do you have those passwords in the message payload?
    if not then you will still have to fill it somewhere right?
    BTW
    the only way would be to use java proxies and write a simple ftp adapter inside it (or your own adapter)
    but this is not possible in standard I believe
    Regards,
    michal

  • Time stamp is not getting updated for File Adapter in communication channel

    Hi All,
    Since yesterday, I am observing that the time stamp of communication channel for File adapter is not gettingupdated some times.
    I had to stop and start the communication channel to update the time stamp.Please let me know if anyone has come across such issue or any useful notes on this.I could not find any related notes on Market place.
    Regards,
    Dinakar

    Hi,
    This is happening only with one communication channel which is sender in derection.Any reason why it is happening like this?since the restart of the communication channel it is getting update now.I really do not know how to delete/create the communication channels as this was done our PI consultants.Pls guide me.
    Regards,
    Dinakar

  • How to have Secure Connection for File Adapter.Pls help

    Hi All,
    For File to File Scenario
    How to have Secure Connection for File Adapter.
    Pls send links/blogs explaining this scenario.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • Directory specification for File Adapter

    Hello,
    I would like to ask if it is possible to determine a directory where message is saved for file adapter based on message content.
    E.g. I have general directory (GD) under which I would like to save a messages in directories with are called based on vendor number what is part of a message.
    So a message would be saved in
    ...\GD\vendor number\file name.
    In case that vendor number directory is not created yet I need to create it.
    I know that in file adapter a directory name is constant and file name can differ based on settings.
    This behaviour is in Business Connector enabled through possibility to write an "user-exit" in Java for directory determination.
    Is something similar possible in XI ?
    We are currently running on XI 3.0 with external adapter engine version 2.0 but to use internal adapter engine is no problem for me.
    Thank you for your advice.
    Marian Morzol

    Hi Marian,
    You can do this with content based routing in the interface determination, but then you have to create a new interface/channel for every extra directory.
    Cheers,
    Frank

  • Can we mix mandatory and optional field entries for file import?

    Can we have devices with mandatory fields only and some other devices with mandatory and optional fields within the same CSV file used for file import?

    Hi Rita and Sandra,
    That is correct, you can mix mandatory and optional field entries for file import. However, if you don’t have OS type and version, the alerts matching would be impacted.
    Thanks,
    June

  • Data Type for File adapter

    hi all,
    we have a scenario which is idoc-xi-file
    the output data type should be something like this:
    [Data.1]
    Promo,1000,,,,,,,
    PromoD,2000,,yup
    Item,1,IGRP,,,,,,FTY,3
    Tier,1,,,,,,,ITEM,,
    Itemy,1,IGRP,,,,,,FTY,1,A_,100,,ELST
    we have to use file content conversion parameters for this as well as this needs to be converted to a CSV file format(third party system).
    any help in declaring this kind of data type(structure) and handling file content conversion parameters would be highly appreciated.
    for data type if any anybody can help me build the structure or give an example!!!
    would be gr8!!!
    thanks in advance
    ahmed

    Hi Parvez,
    For file content conversion, you can refer the below link:-
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    I hope this helps.
    Regards.
    Praveen

  • Receiver server definition for file adapter

    Hi,
    I am trying to create a scenario where the data from SAP system goes to XI through ABAP proxy and has to write the data in the file.
    My Question...
    In the Integration directory my sender system is ABAP Proxy and receiver system is File adapter.
    When I try to create a distribution channel of type XI adapter, I cannot select it as sender. By default it comes as receiver. How Do I go about doin this scenario.
    Also, since I have to write to a file, it is my receiver(outbound adapter). Please can anyone tell me what would be the service definition for this as I am writing to a directory!!!
    Thanks in advance.

    Hi ,
    That is what I have done.
    XI Adapter(ABAP Proxy) is my sender system.
    File adapter is my receiver adapter.
    But I am unable to make a distribution channel with XI adapter as sender. The radiobutton of receiver is only active and I am unable to select the sender radio-button. Is this some sort of error.
    Actually when I select XI, HTTP, IDOC and RFC adapter in communication channel, the receiver radiobuttion is selected by default and I am unable to select on sender radiobutton.
    Have we missed out on any configuration?
    thanks in advance

  • Suppressing Field In Receiver File Adapter

    Hi
    I have a Data type with fields
    1. name
    2. No
    3. city.
    I am using File adapter @ receiver end to create a flat file using this data type. But the requirement is to have only 2 fields in the Output file( say name , no). How to suppress the city field from being populate in the target file( I dont want even separator/Delimiter or blank spaces for city field but separator is needed btwn name & no)
    Appriciate ur help
    Regards
    Kishore

    Kishore-
    Just have a look into this thread-http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    <i>I also tried ur 2nd options but it's creating extra line with 0 space.this will be a problem as i am using field separator it's coming extra.</i>
    If you do City is a part of another node(e.g CityNode) in the Data structure, and then if you use this CityNode in the Content Conevrsion(Receiver) with Cut Parameters, then I don't thik so , you will get the extra field separator or space. Just check with the blog mentioned earlier.
    <i>3rd option is not possible as we don't have SP15 .</i>
    Inorder to write Adapter Java modules , it is not required to have SP15. It is there in much earlier SPs.
    For this you can check this thread-
    Creating Adapter Modules
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/frameset.htm
    Hope this helps,
    Regards,
    Moorthy

  • Reciever content conversion for File adapter.

    Hi ,
    I am doing Idoc to file scenario,it is working fine without any FCC in the reciever file adapter but its failing when I use FCC.getting the error like
    "Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'STRUC.fieldFixedLengths' or 'STRUC.fieldSeparator' is missing "
    I know this error is because of FCC problem.
    I am getting this xml structure without FCC in the rec file adapter
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:DataRec_MT xmlns:ns0="http://xyz.....">
    - <SET>
    - <STRUC>
    <PERNR>0000185</PERNR>
    <ENAME>xyz m xyz</ENAME>
    <NACHN>xyz</NACHN>
    </STRUC>
    </SET>
    </ns0:DataRec_MT>
    I want to get 00000185||xyz m xyz ||xyz format
    I am using these FCC parameters
    STRUC.fieldNames fld1,fld2,fld3 etc
    STRUC.fieldSeparator ||(do I need to put this in ' ' ?)
    STRUC.endSeparator 'nl'
    do I need to add any more parameters or not supposed to use any parameters.
    please help.
    I tried with different combinations but no luck.
    i have DT created with stucture like
    DT_xyz
      Recset
         Record set structure.
    and I maintained all with the same case for field names,recordset structure,record set etc
    I searched blogs and links,and I will keep on.
    and what if if we dont get a value for a field in the record structure?whole FCC gonna fail?
    thank you,
    Babu

    Ramana and Raj,
    I tried both options but,still getting error.
    Recordset structure : STRUC
    STRUC.fieldSeparator ||
    STRUC.endSeparator 'nl'
    or
    Recordset Structure: STRUC
    Try with these parameters
    STRUC.addHeaderLine=0
    STRUC.fieldSeparator = ||
    STRUC.endSeparator = 'nl'
    I get this error in File  CC
    <b>Channel has not been correctly initialized and cannot process messages
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'STRUC.fieldFixedLengths' or 'STRUC.fieldSeparator' is missing </b>
    and when I furthur click on the message ID in CC I get this error
    <b>Success File adapter receiver: processing started; QoS required: ExactlyOnce
    2007-08-01 08:02:57 Error File adapter receiver channel CC_File_RECV is not initialized. Unable to proceed: null
    2007-08-01 08:02:57 Error Exception caught by adapter framework: Channel has not been correctly initialized and cannot process messages
    2007-08-01 08:02:57 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages</b>
    any suggestions?
    thank you.

  • How do I map a drive for file adapter

    I am using a File adapter in XI, and would like to read files from a different server. 
    In the file adapter, there is no place for a username/password, so I need to map a drive first, then use the drive letter in the file adapter.
    eg Source Directory = G:\FTP-Data\sapgms\GMSToXI
    On the source server (call it DATASERVER), there is a local user created with rights to the appropriate data directory.
    I can logon to the XI server as the XI user (eg xidadm) and map a drive, entering username of DATASERVER\username, put in password, and  marking as "Reconnect at logon"
    The problem is that when logging back in, the system prompts for the password.  This is no good for the XI application service.
    A NET USE command in the startup directory works when I log on myself (eg net use Z:
    dataserver1\CorpData /USER:dataserver1\xid_user password1) , but still does not make the drive available for the XI application.
    The XI user (eg xidadm) is local to the XI server, so cannot be given access on the data server.
    I have been using FTP successfully, but have suddenly found that the administrators do not want FTP running on the production data server...
    So my question is:
    is there any place I can map a drive with a specified username/password, and make that drive available to the file adapter in XI?
    Thanks
    Michael
    Message was edited by: Michael Inglis

    Hi Michael,
    We are trying to configure similar scenario using Sender File (NFS) adapter from SAP server directory to XI.
    We have done the following steps:
    1) Map the SAP drive (
    SERVER\interface\ACH) <b>in XI system</b> windows explorer. It created an entry "Ach on SERVER\interface" and I can see all files in SAP directory from XI.
    2) Created SAPServiceXID user <b>in SAP system</b> with the same password as in XI.
    We tried all source directory names, but in Adapter Monitoring we still get error saying that Directory doesn't exist.
    What is the sharename in the directory you mentioned?? (In
    servername\sharename\path)
    In our SAP system (SERVER) files are under following directory d:\interface\ACH and in XI we mapped it under G drive which shows as "Ach on SERVER\interface"
    Are we missing anything here??
    Hi Wouter,
    Did you guys make this thing work?? We are having the same problem. If you figured it out..please let me know.
    Thank You,
    Indrasena Janga

  • Sender File Adapter. Fixed Lengths and Field Separator

    Hello guys,
    I have a doubt in Sender File Adapter with Content Conversion.
    I have a text file like:
    a,b,c,,e
    I have the configuration in the adapter:
    Register.fieldNames: a,b,c,d,e
    Register.fieldSeparator: ,
    The question I have is can I format the length of the text when i create the XML?
    I woul like to create the XML like:
    <Row>
      <Register>
        <a>a   </a>
        <a>b  </a>
        <a>c  </a>
        <a>   </a>
        <a>e   </a>
      </Register>
    </Row>
    I would like that when I create the file in Field A I have length = 4, but I have only 1 in the entry, and I want to fill the rest of the length with spaces.
    I tried with FieldFixedLengths but when I test it the fields are not being formatted and take the commas as part of the field.
    I know that this can be done in Receiver File Adapter, you leave for example one field of 5 length and you format it to 12 length with spaces.
    Is this possible for Sender File ADapter?
    Many thanks.
    Regards,
    Xavi.

    hi,
    See the example given in this bog, in this blog the string has been splited into different fields as per the field length, so you may use the same concept to get your output.
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    I hope it helps you.
    Regards,
    Sarvesh

Maybe you are looking for

  • S.o.s. how to set a memory usage limit in flash cs4?

    flash is using 1 200 000 k. and i cant work in this situation. i know that i can limit the usage of memory in ps cs4. but i dont know how i do it in flash. is there a way of limiting the memory usage or making flash use memory as much as this?

  • Exchange Configuration

    I've now upgraded to OS4 and am hoping that I can now use my iPhone to access both my Gmail account AND my work e-mail. My Gmail is connected and always has been. I've been trying to configure my work account using my network username and password an

  • I want a user exit for ME23N

    Hi guys,                i need a user exit for ME23N transaction, My requirement is , if user want to add a new line item with reference to a PR, i need to validate whether PR is still Open r closed.

  • AE Request Deletion

    Hi Experts, I have a question.. How to delete the requests from Access Eenforcer...i am trying to delete some test work flows. Please advice

  • HT1386 my ipad does not show in devices in itunes

    my ipad does not show in itunes devices