Skip to Content
author's profile photo Former Member
Former Member

idoc segment occuring 9999 times

Hi all,

i am trying the scenario file-xi-idoc scenario in sap xi 2.0,am using a flat file on ftp server which is being converted as idoc in idoc adapter. Now the idoc is available in receiving sap system with status 51. here i found 2 problems.I am using debmas 03 idoctype.

1. The segment E1KNB1M is occuring 9999 times instead of 1 . I want to set this value to 1 instead of 9999 times.

2. I have taken 3 fields as source structure and mapped the same with idoc fields, but they are not mapped, but idoc is with error 'mandatory fields missing'.

Can anyone suggest??

Sriram

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jan 13, 2005 at 06:39 AM

    Hi,

    In principle the segment E1KNB1M should occurr at least 1 time, so the 9999 does not matter. Did you manage to manually create an IDOC using E.G. WE19 which could be posted without error? Then you can check which segments/fields you must fill at least. What do you mean by we have used 3 fields as source structure?

    Greetz,

    Paul

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2005 at 06:59 AM

    Hi paul,

    Thanks for your response.Actually i want to transfer customer master data from a file in ftp server to sap r/3 receiving system. I have taken customername,country and city fields in file and rest of the mandatory fields hard coded to idoc segments in mapping.

    Now i am getting the idoc posted in receiving system with status code 51 stating mandatory fields are missing. I observed the three fields which i have taken in flat file, they are not mapped into idoc structure.

    second problem is the segment, E1KNB1M is occuring 9999 times. Can we make any changes in mapping. I am using sap xi 2.0?

    Rgds,

    Sriram

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2005 at 07:29 AM

    Hi Sriram,

    Did you test the mapping in the repository using the test option? You can take the data from the message in the SXMB_MONI and save that as XMl file which can be used in the mapping test part. I am working with 3.0 so I am not sure if 2.0 has this option. Maybe you can check too if the correct mapping is selected by XI.

    I still not understand what you mean with the occurrance of 9999, do you mean there have to be 9999 segments?? Because that does not make sense and should be defined in the IDOC type definition in your receiving SAP system. Maybe you have to import the IDOC in XI 2.0 again.

    And off course you can change your mapping! I think somewhere the mapping is not quite right!

    Cheers,

    Paul

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2005 at 12:06 PM

    Hi paul,

    I got stucked with one problem in file-xi-idoc scenario using sap xi 2.0.

    I am using sender file adapter which is picking up the file from ftp server. The file contains three fields and I am placing them in a text file as

    Sriram,mumbai,in.

    The file adapter is picking the file successfully and converting them into xml sending to integration engine. But during runtime these fields are not mapped to target idoc structure (DEBMAS 03) and there are no errors showing in SXMB_MONI. The idoc is going to receiving sap system with error status 51. This is the payload of xml messages observed in SXMB_MONI.

    <?xml version="1.0" standalone="yes" ?>

    - <resultset>

    - <row>

    <field0>sriram</field0>

    <field1>mumbai</field1>

    <field2>in</field2>

    </row>

    </resultset>

    Here is the file adapter configuration :

    1. file adapter java class

    classname=com.sap.aii.messaging.adapter.ModuleFile2XMB

    mode=FILE2XMB

    mode = file2xmbwithrowconversion

    1. Integration Engine address and document settings (example, see docu)

    XMB.TargetURL=http://ht56f4:8000/sap/xi/engine/?type=entry

    #XMB.SLDConfiguration = SLDaccessor7

    XMB.User = xiappluser

    XMB.Password = xipass

    XMB.SenderBusinessSystem = PS_LEGACY

    XMB.SenderInterfaceNamespace = http://ps_crm.com

    XMB.SenderInterfaceName = Customer_out

    #XMB.SenderBusinessSystem=ExtAdapterSender

    #XMB.SenderInterfaceNamespace=http://sap.com/xi/xidemo

    #XMB.SenderInterfaceName=ExtAdapterSenderIF

    XMB.ContentKind=T

    #XMB.ContentKind=T

    #XMB.ContentType=application/xml

    #XMB.ContentType=text/xml

    XMB.ContentType=text/plain

    XMB.QualityOfService=EO

    #ftp server details

    ftp.host = 10.1.45.43

    ftp.port = 21

    ftp.user = sapftp

    ftp.password = ftp***sap123

    ftp.connection = permanently

    ftp.mode=Text

    #file.sourceFilename = bank.txt

    ##File Adapter specific parameters (example, see docu)

    file.sourceDir= \/pssap\/

    file.sourceFilename = testing.txt

    #file.processingMode=setAttribute

    #file.processingMode=archive

    #file.archiveDir=c:/temp_archive

    file.pollInterval= 60

    file.pollIntervalMsecs= 10

    #file.retryInterval = 30

    file.logPollInterval=YES

    file.processingMode=delete

    ##xml conversion properties if mode FILE2XMBWITHROWCONVERSION specified (example, see docu)

    #xml.fieldFixedLengths=8,9,2

    xml.processFieldNames=notAvailable

    xml.fieldSeparator=,

    xml.enclosureConversione = YES

    I am not able to test mapping in sap xi 2.0.

    Any suggestions greatly helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2005 at 12:31 PM

    Hi Sriram,

    Unfortunately I do not have an XI 2.0 system to test your scenario so I cannot help you any further, sorry!

    Cheers,

    Paul

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.